	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtas_settime
_rtas_settime:                          ## @rtas_settime
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_rtas_token_lookup
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_clock_ts_to_ct
	movl	-32(%rbp), %ecx
	movl	-36(%rbp), %r8d
	movl	-40(%rbp), %r9d
	movl	-44(%rbp), %r10d
	movl	-48(%rbp), %r11d
	movl	-56(%rbp), %eax
	movl	-52(%rbp), %r14d
	subq	$8, %rsp
	leaq	-28(%rbp), %r15
	movl	%ebx, %edi
	movl	$7, %esi
	movl	$1, %edx
	pushq	%r15
	pushq	%rax
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_rtas_call_method
	addq	$48, %rsp
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	cmpl	$0, -28(%rbp)
	je	LBB0_3
## %bb.4:
	jns	LBB0_5
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set-time-of-day"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtas_settime
_rtas_settime:                          ; @rtas_settime
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_rtas_token_lookup
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	add	x1, sp, #32
	mov	x0, x20
	bl	_clock_ts_to_ct
	ldp	w4, w3, [sp, #52]
	ldp	w6, w5, [sp, #44]
	ldp	w8, w7, [sp, #36]
	ldr	w9, [sp, #32]
	add	x10, sp, #28
	str	x10, [sp, #8]
	stp	w8, w9, [sp]
	mov	x0, x19
	mov	w1, #7
	mov	w2, #1
	bl	_rtas_call_method
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_7
; %bb.3:
Lloh2:
	adrp	x9, _ENXIO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ENXIO@GOTPAGEOFF]
Lloh4:
	adrp	x10, _EAGAIN@GOTPAGE
Lloh5:
	ldr	x10, [x10, _EAGAIN@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, lt
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set-time-of-day"

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