	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palmas_vbus_irq_handler
_palmas_vbus_irq_handler:               ## @palmas_vbus_irq_handler
	.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
	movq	16(%rsi), %r14
	movl	12(%rsi), %edi
	movq	_PALMAS_INTERRUPT_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PALMAS_INT3_LINE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	callq	_palmas_read
	movq	_PALMAS_INT3_LINE_STATE_VBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%rbx), %rcx
	movq	_PALMAS_USB_STATE_VBUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testl	%edx, -28(%rbp)
	je	LBB0_4
## %bb.1:
	cmpq	%rax, %rcx
	jne	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_8
LBB0_4:
	cmpq	%rax, %rcx
	jne	LBB0_5
## %bb.6:
	movq	_PALMAS_USB_STATE_DISCONNECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str.2(%rip), %r15
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %r15
	movl	$1, %edx
LBB0_7:
	movq	%rax, (%rbx)
	movq	_EXTCON_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_extcon_set_state_sync
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.3(%rip), %r15
LBB0_8:
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	callq	_dev_dbg
	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	_PALMAS_INTERRUPT_BASE,4,2      ## @PALMAS_INTERRUPT_BASE
	.comm	_PALMAS_INT3_LINE_STATE,4,2     ## @PALMAS_INT3_LINE_STATE
	.comm	_PALMAS_INT3_LINE_STATE_VBUS,4,2 ## @PALMAS_INT3_LINE_STATE_VBUS
	.comm	_PALMAS_USB_STATE_VBUS,8,3      ## @PALMAS_USB_STATE_VBUS
	.comm	_EXTCON_USB,4,2                 ## @EXTCON_USB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USB cable is attached\n"

L_.str.1:                               ## @.str.1
	.asciz	"Spurious connect event detected\n"

	.comm	_PALMAS_USB_STATE_DISCONNECT,8,3 ## @PALMAS_USB_STATE_DISCONNECT
L_.str.2:                               ## @.str.2
	.asciz	"USB cable is detached\n"

L_.str.3:                               ## @.str.3
	.asciz	"Spurious disconnect event detected\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function palmas_vbus_irq_handler
_palmas_vbus_irq_handler:               ; @palmas_vbus_irq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x20, [x1, #16]
	ldr	w0, [x1, #12]
Lloh0:
	adrp	x8, _PALMAS_INTERRUPT_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PALMAS_INTERRUPT_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _PALMAS_INT3_LINE_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PALMAS_INT3_LINE_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_palmas_read
	ldr	w10, [sp, #12]
Lloh6:
	adrp	x8, _PALMAS_INT3_LINE_STATE_VBUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PALMAS_INT3_LINE_STATE_VBUS@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x8]
	ldr	x9, [x19]
Lloh9:
	adrp	x8, _PALMAS_USB_STATE_VBUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PALMAS_USB_STATE_VBUS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	tst	w11, w10
	b.eq	LBB0_3
; %bb.1:
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.2:
Lloh12:
	adrp	x21, l_.str.1@PAGE
Lloh13:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_3:
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.4:
	mov	w2, #0
Lloh14:
	adrp	x8, _PALMAS_USB_STATE_DISCONNECT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PALMAS_USB_STATE_DISCONNECT@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x21, l_.str.2@PAGE
Lloh18:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x21, l_.str@PAGE
Lloh20:
	add	x21, x21, l_.str@PAGEOFF
	mov	w2, #1
LBB0_6:
	str	x8, [x19]
Lloh21:
	adrp	x8, _EXTCON_USB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EXTCON_USB@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_extcon_set_state_sync
	b	LBB0_8
LBB0_7:
Lloh24:
	adrp	x21, l_.str.3@PAGE
Lloh25:
	add	x21, x21, l_.str.3@PAGEOFF
LBB0_8:
	ldr	w0, [x19, #8]
	mov	x1, x21
	bl	_dev_dbg
Lloh26:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PALMAS_INTERRUPT_BASE,4,2      ; @PALMAS_INTERRUPT_BASE
	.comm	_PALMAS_INT3_LINE_STATE,4,2     ; @PALMAS_INT3_LINE_STATE
	.comm	_PALMAS_INT3_LINE_STATE_VBUS,4,2 ; @PALMAS_INT3_LINE_STATE_VBUS
	.comm	_PALMAS_USB_STATE_VBUS,8,3      ; @PALMAS_USB_STATE_VBUS
	.comm	_EXTCON_USB,4,2                 ; @EXTCON_USB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USB cable is attached\n"

l_.str.1:                               ; @.str.1
	.asciz	"Spurious connect event detected\n"

	.comm	_PALMAS_USB_STATE_DISCONNECT,8,3 ; @PALMAS_USB_STATE_DISCONNECT
l_.str.2:                               ; @.str.2
	.asciz	"USB cable is detached\n"

l_.str.3:                               ; @.str.3
	.asciz	"Spurious disconnect event detected\n"

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