	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_apm_init
_il3945_apm_init:                       ## @il3945_apm_init
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_il_apm_init
	movl	%eax, %r14d
	movq	_APMG_RTC_INT_MSK_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_il_wr_prph
	movq	_APMG_RTC_INT_STT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_il_wr_prph
	movq	_APMG_PS_CTRL_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_APMG_PS_CTRL_VAL_RESET_REQ@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_il_set_bits_prph
	movl	$5, %edi
	callq	_udelay
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_il_clear_bits_prph
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APMG_RTC_INT_MSK_REG,4,2       ## @APMG_RTC_INT_MSK_REG
	.comm	_APMG_RTC_INT_STT_REG,4,2       ## @APMG_RTC_INT_STT_REG
	.comm	_APMG_PS_CTRL_REG,4,2           ## @APMG_PS_CTRL_REG
	.comm	_APMG_PS_CTRL_VAL_RESET_REQ,4,2 ## @APMG_PS_CTRL_VAL_RESET_REQ
	.no_dead_strip	_il3945_apm_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il3945_apm_init
_il3945_apm_init:                       ; @il3945_apm_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_il_apm_init
	mov	x20, x0
Lloh0:
	adrp	x8, _APMG_RTC_INT_MSK_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APMG_RTC_INT_MSK_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_il_wr_prph
Lloh3:
	adrp	x8, _APMG_RTC_INT_STT_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APMG_RTC_INT_STT_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_il_wr_prph
Lloh6:
	adrp	x21, _APMG_PS_CTRL_REG@GOTPAGE
Lloh7:
	ldr	x21, [x21, _APMG_PS_CTRL_REG@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh8:
	adrp	x22, _APMG_PS_CTRL_VAL_RESET_REQ@GOTPAGE
Lloh9:
	ldr	x22, [x22, _APMG_PS_CTRL_VAL_RESET_REQ@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_il_set_bits_prph
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_il_clear_bits_prph
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_APMG_RTC_INT_MSK_REG,4,2       ; @APMG_RTC_INT_MSK_REG
	.comm	_APMG_RTC_INT_STT_REG,4,2       ; @APMG_RTC_INT_STT_REG
	.comm	_APMG_PS_CTRL_REG,4,2           ; @APMG_PS_CTRL_REG
	.comm	_APMG_PS_CTRL_VAL_RESET_REQ,4,2 ; @APMG_PS_CTRL_VAL_RESET_REQ
	.no_dead_strip	_il3945_apm_init
.subsections_via_symbols
