	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu_set_rtc_time               ## -- Begin function smu_set_rtc_time
	.p2align	4, 0x90
_smu_set_rtc_time:                      ## @smu_set_rtc_time
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_smu@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_SMU_CMD_RTC_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_SMU_CMD_RTC_SET_DATETIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	48(%rdi), %rdi
	callq	_hex2bcd
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	40(%rbx), %rdi
	callq	_hex2bcd
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %rdi
	callq	_hex2bcd
	movq	%rax, %r14
	movl	24(%rbx), %r13d
	movq	16(%rbx), %rdi
	callq	_hex2bcd
	movq	%rax, %r15
	movq	8(%rbx), %rdi
	callq	_hex2bcd
	movq	%rax, %r12
	incq	%r12
	movq	(%rbx), %rdi
	addq	$-100, %rdi
	callq	_hex2bcd
	subq	$8, %rsp
	leaq	-48(%rbp), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	$8, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r12
	pushq	%r15
	pushq	%r13
	pushq	%r14
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_smu_queue_simple
	addq	$64, %rsp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	-48(%rbp), %rdi
	callq	_smu_spinwait_simple
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_smu,8,3                        ## @smu
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SMU_CMD_RTC_COMMAND,4,2        ## @SMU_CMD_RTC_COMMAND
	.comm	_SMU_CMD_RTC_SET_DATETIME,4,2   ## @SMU_CMD_RTC_SET_DATETIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu_set_rtc_time               ; -- Begin function smu_set_rtc_time
	.p2align	2
_smu_set_rtc_time:                      ; @smu_set_rtc_time
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _smu@GOTPAGE
Lloh1:
	ldr	x8, [x8, _smu@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _SMU_CMD_RTC_COMMAND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMU_CMD_RTC_COMMAND@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x8, _SMU_CMD_RTC_SET_DATETIME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMU_CMD_RTC_SET_DATETIME@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	ldr	x0, [x0, #48]
	bl	_hex2bcd
	mov	x22, x0
	ldr	x0, [x19, #40]
	bl	_hex2bcd
	mov	x23, x0
	ldr	x0, [x19, #32]
	bl	_hex2bcd
	mov	x24, x0
	ldr	w26, [x19, #24]
	ldr	x0, [x19, #16]
	bl	_hex2bcd
	mov	x25, x0
	ldr	x0, [x19, #8]
	bl	_hex2bcd
	add	x27, x0, #1
	ldr	x8, [x19]
	sub	x0, x8, #100
	bl	_hex2bcd
	stp	x27, x0, [sp, #24]
	add	x0, sp, #40
	str	x25, [sp, #16]
	str	w26, [sp, #8]
	str	x24, [sp]
	mov	x1, x20
	mov	w2, #8
	mov	x3, #0
	mov	x4, #0
	mov	x5, x21
	mov	x6, x22
	mov	x7, x23
	bl	_smu_queue_simple
	cbnz	w0, LBB0_4
; %bb.2:
	add	x0, sp, #40
	bl	_smu_spinwait_simple
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_smu,8,3                        ; @smu
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SMU_CMD_RTC_COMMAND,4,2        ; @SMU_CMD_RTC_COMMAND
	.comm	_SMU_CMD_RTC_SET_DATETIME,4,2   ; @SMU_CMD_RTC_SET_DATETIME
.subsections_via_symbols
