	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_settime
_smu_settime:                           ## @smu_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	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rax
	movl	%edi, %ebx
	movq	_SMU_RTC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, _smu_settime.cmd+16(%rip)
	leaq	_smu_settime.cmd(%rip), %r14
	movl	$8, _smu_settime.cmd(%rip)
	movq	_SMU_RTC_SET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_smu_settime.cmd+8(%rip), %rdx
	movq	%rcx, (%rdx)
	leaq	-72(%rbp), %rsi
	movq	%rax, %rdi
	callq	_clock_ts_to_ct
	movq	-24(%rbp), %rdi
	callq	_bin2bcd
	movq	_smu_settime.cmd+8(%rip), %rcx
	movq	%rax, 8(%rcx)
	movq	-32(%rbp), %rdi
	callq	_bin2bcd
	movq	_smu_settime.cmd+8(%rip), %rcx
	movq	%rax, 16(%rcx)
	movq	-40(%rbp), %rdi
	callq	_bin2bcd
	movq	_smu_settime.cmd+8(%rip), %rcx
	movq	%rax, 24(%rcx)
	movq	-48(%rbp), %rdi
	callq	_bin2bcd
	movq	_smu_settime.cmd+8(%rip), %rcx
	movq	%rax, 32(%rcx)
	movq	-56(%rbp), %rdi
	callq	_bin2bcd
	movq	_smu_settime.cmd+8(%rip), %rcx
	movq	%rax, 40(%rcx)
	movq	-64(%rbp), %rdi
	callq	_bin2bcd
	movq	_smu_settime.cmd+8(%rip), %rcx
	movq	%rax, 48(%rcx)
	movq	$-2000, %rdi                    ## imm = 0xF830
	addq	-72(%rbp), %rdi
	callq	_bin2bcd
	movq	_smu_settime.cmd+8(%rip), %rcx
	movq	%rax, 56(%rcx)
	movl	%ebx, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_smu_run_cmd
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_smu_settime.cmd,24,3 ## @smu_settime.cmd
	.comm	_SMU_RTC,4,2                    ## @SMU_RTC
	.comm	_SMU_RTC_SET,8,3                ## @SMU_RTC_SET
	.no_dead_strip	_smu_settime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_settime
_smu_settime:                           ; @smu_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	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _SMU_RTC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SMU_RTC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x20, _smu_settime.cmd@PAGE
Lloh4:
	add	x20, x20, _smu_settime.cmd@PAGEOFF
	str	w9, [x20, #16]
	mov	w9, #8
	str	w9, [x20]
Lloh5:
	adrp	x9, _SMU_RTC_SET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SMU_RTC_SET@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x10, [x20, #8]
	str	x9, [x10]
	add	x1, sp, #8
	mov	x0, x8
	bl	_clock_ts_to_ct
	ldr	x0, [sp, #56]
	bl	_bin2bcd
	ldr	x8, [x20, #8]
	str	x0, [x8, #8]
	ldr	x0, [sp, #48]
	bl	_bin2bcd
	ldr	x8, [x20, #8]
	str	x0, [x8, #16]
	ldr	x0, [sp, #40]
	bl	_bin2bcd
	ldr	x8, [x20, #8]
	str	x0, [x8, #24]
	ldr	x0, [sp, #32]
	bl	_bin2bcd
	ldr	x8, [x20, #8]
	str	x0, [x8, #32]
	ldr	x0, [sp, #24]
	bl	_bin2bcd
	ldr	x8, [x20, #8]
	str	x0, [x8, #40]
	ldr	x0, [sp, #16]
	bl	_bin2bcd
	ldr	x8, [x20, #8]
	str	x0, [x8, #48]
	ldr	x8, [sp, #8]
	sub	x0, x8, #2000
	bl	_bin2bcd
	ldr	x8, [x20, #8]
	str	x0, [x8, #56]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_smu_run_cmd
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_smu_settime.cmd,24,3 ; @smu_settime.cmd
	.comm	_SMU_RTC,4,2                    ; @SMU_RTC
	.comm	_SMU_RTC_SET,8,3                ; @SMU_RTC_SET
	.no_dead_strip	_smu_settime
.subsections_via_symbols
