	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9150_charger_vbus_irq
_da9150_charger_vbus_irq:               ## @da9150_charger_vbus_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	28(%rsi), %edi
	movq	_DA9150_STATUS_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_da9150_reg_read
	movq	_DA9150_VBUS_STAT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	leal	-128(%rcx), %edx
	cmpl	$2, %edx
	jae	LBB0_1
## %bb.5:
	movq	(%rbx), %rax
	jmp	LBB0_4
LBB0_1:
	cmpl	$130, %ecx
	jne	LBB0_3
## %bb.2:
	movq	8(%rbx), %rax
	jmp	LBB0_4
LBB0_3:
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	xorl	%eax, %eax
LBB0_4:
	movq	%rax, 16(%rbx)
	movq	8(%rbx), %rdi
	callq	_power_supply_changed
	movq	(%rbx), %rdi
	callq	_power_supply_changed
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9150_STATUS_H,4,2            ## @DA9150_STATUS_H
	.comm	_DA9150_VBUS_STAT_MASK,4,2      ## @DA9150_VBUS_STAT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown VBUS state - reg = 0x%x\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_da9150_charger_vbus_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9150_charger_vbus_irq
_da9150_charger_vbus_irq:               ; @da9150_charger_vbus_irq
	.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
	mov	x19, x1
	ldr	w0, [x1, #28]
Lloh0:
	adrp	x8, _DA9150_STATUS_H@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DA9150_STATUS_H@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_da9150_reg_read
Lloh3:
	adrp	x8, _DA9150_VBUS_STAT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DA9150_VBUS_STAT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	b	LBB0_5
LBB0_2:
	cmp	w8, #130
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	b	LBB0_5
LBB0_4:
	mov	x2, x0
	ldr	w0, [x19, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	mov	x8, #0
LBB0_5:
	str	x8, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_power_supply_changed
	ldr	x0, [x19]
	bl	_power_supply_changed
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9150_STATUS_H,4,2            ; @DA9150_STATUS_H
	.comm	_DA9150_VBUS_STAT_MASK,4,2      ; @DA9150_VBUS_STAT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown VBUS state - reg = 0x%x\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_da9150_charger_vbus_irq
.subsections_via_symbols
