	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function act8945a_enable_interrupt
_act8945a_enable_interrupt:             ## @act8945a_enable_interrupt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_APCH_CTRL_CHGEOCOUT@GOTPCREL(%rip), %rax
	movq	_APCH_CTRL_CHGEOCIN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	orb	(%rax), %cl
	movq	_APCH_CTRL_INDIS@GOTPCREL(%rip), %rax
	orb	(%rax), %cl
	movq	_APCH_CTRL_INCON@GOTPCREL(%rip), %rax
	orb	(%rax), %cl
	movq	_APCH_CTRL_TEMPOUT@GOTPCREL(%rip), %rax
	orb	(%rax), %cl
	movq	_APCH_CTRL_TEMPIN@GOTPCREL(%rip), %rax
	orb	(%rax), %cl
	movq	_APCH_CTRL_TIMRPRE@GOTPCREL(%rip), %rax
	orb	(%rax), %cl
	movq	_APCH_CTRL_TIMRTOT@GOTPCREL(%rip), %rax
	orb	(%rax), %cl
	movq	(%rdi), %rbx
	movq	_ACT8945A_APCH_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%cl, %edx
	movq	%rbx, %rdi
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_APCH_STATUS_CHGSTAT@GOTPCREL(%rip), %rax
	movq	_APCH_STATUS_INSTAT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	orb	(%rax), %cl
	movq	_APCH_STATUS_TEMPSTAT@GOTPCREL(%rip), %rax
	orb	(%rax), %cl
	movq	_APCH_STATUS_TIMRSTAT@GOTPCREL(%rip), %rax
	orb	(%rax), %cl
	movq	_ACT8945A_APCH_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%cl, %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_APCH_CTRL_CHGEOCOUT,1,0        ## @APCH_CTRL_CHGEOCOUT
	.comm	_APCH_CTRL_CHGEOCIN,1,0         ## @APCH_CTRL_CHGEOCIN
	.comm	_APCH_CTRL_INDIS,1,0            ## @APCH_CTRL_INDIS
	.comm	_APCH_CTRL_INCON,1,0            ## @APCH_CTRL_INCON
	.comm	_APCH_CTRL_TEMPOUT,1,0          ## @APCH_CTRL_TEMPOUT
	.comm	_APCH_CTRL_TEMPIN,1,0           ## @APCH_CTRL_TEMPIN
	.comm	_APCH_CTRL_TIMRPRE,1,0          ## @APCH_CTRL_TIMRPRE
	.comm	_APCH_CTRL_TIMRTOT,1,0          ## @APCH_CTRL_TIMRTOT
	.comm	_ACT8945A_APCH_CTRL,4,2         ## @ACT8945A_APCH_CTRL
	.comm	_APCH_STATUS_CHGSTAT,1,0        ## @APCH_STATUS_CHGSTAT
	.comm	_APCH_STATUS_INSTAT,1,0         ## @APCH_STATUS_INSTAT
	.comm	_APCH_STATUS_TEMPSTAT,1,0       ## @APCH_STATUS_TEMPSTAT
	.comm	_APCH_STATUS_TIMRSTAT,1,0       ## @APCH_STATUS_TIMRSTAT
	.comm	_ACT8945A_APCH_STATUS,4,2       ## @ACT8945A_APCH_STATUS
	.no_dead_strip	_act8945a_enable_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function act8945a_enable_interrupt
_act8945a_enable_interrupt:             ; @act8945a_enable_interrupt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _APCH_CTRL_CHGEOCOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APCH_CTRL_CHGEOCOUT@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh2:
	adrp	x9, _APCH_CTRL_CHGEOCIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _APCH_CTRL_CHGEOCIN@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w9, w8
Lloh4:
	adrp	x9, _APCH_CTRL_INDIS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _APCH_CTRL_INDIS@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
Lloh6:
	adrp	x9, _APCH_CTRL_INCON@GOTPAGE
Lloh7:
	ldr	x9, [x9, _APCH_CTRL_INCON@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
Lloh8:
	adrp	x9, _APCH_CTRL_TEMPOUT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _APCH_CTRL_TEMPOUT@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
Lloh10:
	adrp	x9, _APCH_CTRL_TEMPIN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _APCH_CTRL_TEMPIN@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _APCH_CTRL_TIMRPRE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _APCH_CTRL_TIMRPRE@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _APCH_CTRL_TIMRTOT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _APCH_CTRL_TIMRTOT@GOTPAGEOFF]
	ldr	x19, [x0]
	ldrb	w9, [x9]
	orr	w2, w8, w9
Lloh16:
	adrp	x8, _ACT8945A_APCH_CTRL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ACT8945A_APCH_CTRL@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_regmap_write
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh19:
	adrp	x8, _APCH_STATUS_CHGSTAT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _APCH_STATUS_CHGSTAT@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh21:
	adrp	x9, _APCH_STATUS_INSTAT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _APCH_STATUS_INSTAT@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _APCH_STATUS_TEMPSTAT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _APCH_STATUS_TEMPSTAT@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _APCH_STATUS_TIMRSTAT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _APCH_STATUS_TIMRSTAT@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w2, w8, w9
Lloh27:
	adrp	x8, _ACT8945A_APCH_STATUS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ACT8945A_APCH_STATUS@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regmap_write
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_APCH_CTRL_CHGEOCOUT,1,0        ; @APCH_CTRL_CHGEOCOUT
	.comm	_APCH_CTRL_CHGEOCIN,1,0         ; @APCH_CTRL_CHGEOCIN
	.comm	_APCH_CTRL_INDIS,1,0            ; @APCH_CTRL_INDIS
	.comm	_APCH_CTRL_INCON,1,0            ; @APCH_CTRL_INCON
	.comm	_APCH_CTRL_TEMPOUT,1,0          ; @APCH_CTRL_TEMPOUT
	.comm	_APCH_CTRL_TEMPIN,1,0           ; @APCH_CTRL_TEMPIN
	.comm	_APCH_CTRL_TIMRPRE,1,0          ; @APCH_CTRL_TIMRPRE
	.comm	_APCH_CTRL_TIMRTOT,1,0          ; @APCH_CTRL_TIMRTOT
	.comm	_ACT8945A_APCH_CTRL,4,2         ; @ACT8945A_APCH_CTRL
	.comm	_APCH_STATUS_CHGSTAT,1,0        ; @APCH_STATUS_CHGSTAT
	.comm	_APCH_STATUS_INSTAT,1,0         ; @APCH_STATUS_INSTAT
	.comm	_APCH_STATUS_TEMPSTAT,1,0       ; @APCH_STATUS_TEMPSTAT
	.comm	_APCH_STATUS_TIMRSTAT,1,0       ; @APCH_STATUS_TIMRSTAT
	.comm	_ACT8945A_APCH_STATUS,4,2       ; @ACT8945A_APCH_STATUS
	.no_dead_strip	_act8945a_enable_interrupt
.subsections_via_symbols
