	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtas_gettime
_rtas_gettime:                          ## @rtas_gettime
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_rtas_token_lookup
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.1:
	leaq	-76(%rbp), %r8
	leaq	-72(%rbp), %r9
	leaq	-68(%rbp), %r10
	leaq	-64(%rbp), %r11
	leaq	-60(%rbp), %r15
	leaq	-56(%rbp), %r12
	leaq	-52(%rbp), %rbx
	subq	$8, %rsp
	leaq	-80(%rbp), %rcx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$8, %edx
	pushq	%rbx
	pushq	%r12
	pushq	%r15
	pushq	%r11
	pushq	%r10
	callq	_rtas_call_method
	addq	$48, %rsp
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movl	-80(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	cmpl	$-1, %eax
	jne	LBB0_10
LBB0_5:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_11
## %bb.8:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movups	-76(%rbp), %xmm0
	movaps	%xmm0, -112(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -96(%rbp)
	movq	-56(%rbp), %rax
	movq	%rax, -92(%rbp)
	leaq	-112(%rbp), %rdi
	movq	%r14, %rsi
	callq	_clock_ct_to_ts
	jmp	LBB0_7
LBB0_10:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get-time-of-day"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_rtas_gettime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtas_gettime
_rtas_gettime:                          ; @rtas_gettime
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_rtas_token_lookup
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	sub	x8, x29, #56
	add	x4, x8, #4
	add	x5, x8, #8
	add	x6, x8, #12
	add	x7, x8, #16
	add	x9, x8, #20
	add	x10, x8, #24
	add	x8, x8, #28
	stp	x10, x8, [sp, #8]
	sub	x3, x29, #56
	str	x9, [sp]
	mov	w1, #0
	mov	w2, #8
	bl	_rtas_call_method
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldur	w8, [x29, #-56]
	cbz	w8, LBB0_8
; %bb.3:
Lloh5:
	adrp	x9, _ENXIO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ENXIO@GOTPAGEOFF]
Lloh7:
	adrp	x10, _EAGAIN@GOTPAGE
Lloh8:
	ldr	x10, [x10, _EAGAIN@GOTPAGEOFF]
	cmn	w8, #1
	csel	x8, x9, x10, eq
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _ENXIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldur	x8, [x29, #-24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.7:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
	ldur	q0, [x29, #-52]
	str	q0, [sp, #32]
	ldur	d0, [x29, #-36]
	str	d0, [sp, #48]
	ldur	w8, [x29, #-28]
	str	w8, [sp, #56]
	add	x0, sp, #32
	mov	x1, x19
	bl	_clock_ct_to_ts
	b	LBB0_6
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get-time-of-day"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_rtas_gettime
.subsections_via_symbols
