	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpcap_battery_init_interrupts
_cpcap_battery_init_interrupts:         ## @cpcap_battery_init_interrupts
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	_cpcap_battery_init_interrupts.cpcap_battery_irqs(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%r13d, %r13d
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_cpcap_battery_init_irq
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$8, %rbx
	cmpq	%rax, %r13
	jl	LBB0_3
LBB0_5:
	movl	(%r12), %edi
	movq	_CPCAP_REG_BPEOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CPCAP_REG_BPEOL_BIT_BATTDETEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$65535, %edx                    ## imm = 0xFFFF
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @cpcap_battery_init_interrupts.cpcap_battery_irqs
_cpcap_battery_init_interrupts.cpcap_battery_irqs:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3
	.quad	L_.str.4

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eol"

L_.str.1:                               ## @.str.1
	.asciz	"lowbph"

L_.str.2:                               ## @.str.2
	.asciz	"lowbpl"

L_.str.3:                               ## @.str.3
	.asciz	"chrgcurr1"

L_.str.4:                               ## @.str.4
	.asciz	"battdetb"

	.comm	_CPCAP_REG_BPEOL,4,2            ## @CPCAP_REG_BPEOL
	.comm	_CPCAP_REG_BPEOL_BIT_BATTDETEN,4,2 ## @CPCAP_REG_BPEOL_BIT_BATTDETEN
	.no_dead_strip	_cpcap_battery_init_interrupts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpcap_battery_init_interrupts
_cpcap_battery_init_interrupts:         ; @cpcap_battery_init_interrupts
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _cpcap_battery_init_interrupts.cpcap_battery_irqs@PAGE
Lloh1:
	add	x21, x21, _cpcap_battery_init_interrupts.cpcap_battery_irqs@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x21, x22, lsl #3]
	mov	x0, x20
	mov	x1, x19
	bl	_cpcap_battery_init_irq
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
LBB0_4:
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _CPCAP_REG_BPEOL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CPCAP_REG_BPEOL@GOTPAGEOFF]
Lloh4:
	adrp	x9, _CPCAP_REG_BPEOL_BIT_BATTDETEN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CPCAP_REG_BPEOL_BIT_BATTDETEN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	ldr	w3, [x9]
	mov	w2, #65535
	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
	b	_regmap_update_bits
LBB0_5:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @cpcap_battery_init_interrupts.cpcap_battery_irqs
_cpcap_battery_init_interrupts.cpcap_battery_irqs:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eol"

l_.str.1:                               ; @.str.1
	.asciz	"lowbph"

l_.str.2:                               ; @.str.2
	.asciz	"lowbpl"

l_.str.3:                               ; @.str.3
	.asciz	"chrgcurr1"

l_.str.4:                               ; @.str.4
	.asciz	"battdetb"

	.comm	_CPCAP_REG_BPEOL,4,2            ; @CPCAP_REG_BPEOL
	.comm	_CPCAP_REG_BPEOL_BIT_BATTDETEN,4,2 ; @CPCAP_REG_BPEOL_BIT_BATTDETEN
	.no_dead_strip	_cpcap_battery_init_interrupts
.subsections_via_symbols
