	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9052_bat_irq
_da9052_bat_irq:                        ## @da9052_bat_irq
	.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, %r14
	movl	%edi, %ebx
	movq	8(%rsi), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_regmap_irq_get_virq
	subl	%eax, %ebx
	movq	_DA9052_IRQ_CHGEND@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	jne	LBB0_2
## %bb.1:
	movq	_POWER_SUPPLY_STATUS_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	%ebx, %eax
	cmpl	%eax, %ebx
	jne	LBB0_4
	jmp	LBB0_7
LBB0_2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_da9052_bat_check_status
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	je	LBB0_7
LBB0_4:
	movq	_DA9052_IRQ_DCIN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_7
## %bb.5:
	movq	_DA9052_IRQ_VBUS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_7
## %bb.6:
	movq	_DA9052_IRQ_TBAT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_8
LBB0_7:
	movl	(%r14), %edi
	callq	_power_supply_changed
LBB0_8:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9052_IRQ_CHGEND,4,2          ## @DA9052_IRQ_CHGEND
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ## @POWER_SUPPLY_STATUS_FULL
	.comm	_DA9052_IRQ_DCIN,4,2            ## @DA9052_IRQ_DCIN
	.comm	_DA9052_IRQ_VBUS,4,2            ## @DA9052_IRQ_VBUS
	.comm	_DA9052_IRQ_TBAT,4,2            ## @DA9052_IRQ_TBAT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_da9052_bat_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9052_bat_irq
_da9052_bat_irq:                        ; @da9052_bat_irq
	.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
	ldr	x8, [x1, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_regmap_irq_get_virq
Lloh0:
	adrp	x21, _DA9052_IRQ_CHGEND@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DA9052_IRQ_CHGEND@GOTPAGEOFF]
	ldr	w8, [x21]
	sub	w20, w20, w0
	cmp	w20, w8
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x8, x20
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, #0
	bl	_da9052_bat_check_status
	ldr	w8, [x21]
LBB0_3:
Lloh5:
	adrp	x9, _DA9052_IRQ_DCIN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DA9052_IRQ_DCIN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _DA9052_IRQ_VBUS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DA9052_IRQ_VBUS@GOTPAGEOFF]
Lloh10:
	adrp	x11, _DA9052_IRQ_TBAT@GOTPAGE
Lloh11:
	ldr	x11, [x11, _DA9052_IRQ_TBAT@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	ldr	w11, [x11]
	cmp	w20, w8
	ccmp	w20, w9, #4, ne
	ccmp	w20, w10, #4, ne
	ccmp	w20, w11, #4, ne
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x19]
	bl	_power_supply_changed
LBB0_5:
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9052_IRQ_CHGEND,4,2          ; @DA9052_IRQ_CHGEND
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ; @POWER_SUPPLY_STATUS_FULL
	.comm	_DA9052_IRQ_DCIN,4,2            ; @DA9052_IRQ_DCIN
	.comm	_DA9052_IRQ_VBUS,4,2            ; @DA9052_IRQ_VBUS
	.comm	_DA9052_IRQ_TBAT,4,2            ; @DA9052_IRQ_TBAT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_da9052_bat_irq
.subsections_via_symbols
