	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8788_irq_register
_lp8788_irq_register:                   ## @lp8788_irq_register
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LP8788_CHG_IRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movq	_LP8788_PRSW_IRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	_LP8788_BATT_IRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	leaq	8(%rsi), %rdi
	movq	_lp8788_charger_event@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	$0, (%r15)
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp,%rbx,8), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_lp8788_set_irqs
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_5:
	movq	(%r15), %rdx
	movq	_LP8788_MAX_CHG_IRQS@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpq	(%rax), %rdx
	jle	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %r13d
	movq	-80(%rbp,%rbx,8), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LP8788_CHG_IRQ,8,3             ## @LP8788_CHG_IRQ
	.comm	_LP8788_PRSW_IRQ,8,3            ## @LP8788_PRSW_IRQ
	.comm	_LP8788_BATT_IRQ,8,3            ## @LP8788_BATT_IRQ
	.comm	_lp8788_charger_event,4,2       ## @lp8788_charger_event
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq setup failed: %s\n"

	.comm	_LP8788_MAX_CHG_IRQS,8,3        ## @LP8788_MAX_CHG_IRQS
L_.str.1:                               ## @.str.1
	.asciz	"invalid total number of irqs: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lp8788_irq_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8788_irq_register
_lp8788_irq_register:                   ; @lp8788_irq_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _LP8788_CHG_IRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LP8788_CHG_IRQ@GOTPAGEOFF]
Lloh5:
	adrp	x9, _LP8788_PRSW_IRQ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LP8788_PRSW_IRQ@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	ldr	x9, [x9]
	stp	x8, x9, [sp]
Lloh9:
	adrp	x8, _LP8788_BATT_IRQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LP8788_BATT_IRQ@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	add	x0, x1, #8
Lloh12:
	adrp	x8, _lp8788_charger_event@GOTPAGE
Lloh13:
	ldr	x8, [x8, _lp8788_charger_event@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_INIT_WORK
	str	xzr, [x20]
	mov	x22, sp
	mov	x0, sp
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x22, x23, lsl #3]
	mov	x0, x19
	mov	x1, x20
	bl	_lp8788_set_irqs
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	mov	x0, sp
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_2
LBB0_4:
	ldr	x2, [x20]
Lloh15:
	adrp	x8, _LP8788_MAX_CHG_IRQS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LP8788_MAX_CHG_IRQS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x2, x8
	b.le	LBB0_6
; %bb.5:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_6:
	mov	w21, #0
	b	LBB0_8
LBB0_7:
	mov	x21, x0
	mov	x8, sp
	ldr	x2, [x8, x23, lsl #3]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_8:
	ldr	x8, [sp, #24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_LP8788_CHG_IRQ,8,3             ; @LP8788_CHG_IRQ
	.comm	_LP8788_PRSW_IRQ,8,3            ; @LP8788_PRSW_IRQ
	.comm	_LP8788_BATT_IRQ,8,3            ; @LP8788_BATT_IRQ
	.comm	_lp8788_charger_event,4,2       ; @lp8788_charger_event
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq setup failed: %s\n"

	.comm	_LP8788_MAX_CHG_IRQS,8,3        ; @LP8788_MAX_CHG_IRQS
l_.str.1:                               ; @.str.1
	.asciz	"invalid total number of irqs: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lp8788_irq_register
.subsections_via_symbols
