-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmach_absolute_time.s
More file actions
32 lines (31 loc) · 932 Bytes
/
mach_absolute_time.s
File metadata and controls
32 lines (31 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0 sdk_version 12, 1
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32 ; =32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16 ; =16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _mach_absolute_time
str x0, [sp, #8]
ldr x8, [sp, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov x9, sp
str x8, [x9]
bl _printf
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32 ; =32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%llu"
.subsections_via_symbols