	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8788_charger_irq_thread
_lp8788_charger_irq_thread:             ## @lp8788_charger_irq_thread
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %esi
	movq	16(%rbx), %r14
	movl	$-1, -28(%rbp)
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_lp8788_find_irq_id
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	-28(%rbp), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	callq	_power_supply_changed
	movl	4(%rbx), %edi
	callq	_power_supply_changed
LBB0_4:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testq	%r14, %r14
	je	LBB0_8
## %bb.5:
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.6:
	cmpl	$131, -28(%rbp)
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_schedule_work
	jmp	LBB0_8
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
LBB0_8:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_lp8788_charger_irq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8788_charger_irq_thread
_lp8788_charger_irq_thread:             ; @lp8788_charger_irq_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x1, x0
	ldr	x20, [x19, #16]
	mov	w8, #-1
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	bl	_lp8788_find_irq_id
	cbz	w0, LBB0_8
; %bb.1:
	ldr	w8, [sp, #12]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_power_supply_changed
	ldr	w0, [x19, #4]
	bl	_power_supply_changed
LBB0_3:
	cbz	x20, LBB0_7
; %bb.4:
	ldr	x9, [x20]
Lloh0:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	cbz	x9, LBB0_9
; %bb.5:
	ldr	w9, [sp, #12]
	cmp	w9, #131
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_schedule_work
LBB0_7:
Lloh2:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_lp8788_charger_irq_thread
.subsections_via_symbols
