	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palmas_id_irq_handler
_palmas_id_irq_handler:                 ## @palmas_id_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_USB_OTG_BASE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_PALMAS_USB_ID_INT_LATCH_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	callq	_palmas_read
	movl	12(%rbx), %edi
	movl	(%r15), %esi
	movq	_PALMAS_USB_ID_INT_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	callq	_palmas_read
	movl	-32(%rbp), %ecx
	movq	_PALMAS_USB_ID_INT_SRC_ID_GND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %eax
	je	LBB0_3
## %bb.1:
	testl	%eax, -28(%rbp)
	je	LBB0_3
## %bb.2:
	movl	12(%rbx), %edi
	movl	(%r15), %esi
	movq	_PALMAS_USB_ID_INT_LATCH_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PALMAS_USB_ID_INT_EN_HI_CLR_ID_GND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_palmas_write
	movq	_PALMAS_USB_STATE_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	leaq	L_.str(%rip), %r15
LBB0_13:
	movl	$1, %edx
	jmp	LBB0_14
LBB0_3:
	movq	_PALMAS_USB_ID_INT_SRC_ID_FLOAT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_6
## %bb.4:
	testl	%edx, -28(%rbp)
	je	LBB0_6
## %bb.5:
	movl	12(%rbx), %edi
	movl	(%r15), %esi
	movq	_PALMAS_USB_ID_INT_LATCH_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PALMAS_USB_ID_INT_EN_HI_CLR_ID_FLOAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_palmas_write
	movq	_PALMAS_USB_STATE_DISCONNECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_9
LBB0_6:
	movq	(%rbx), %rsi
	movq	_PALMAS_USB_STATE_ID@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_PALMAS_USB_STATE_DISCONNECT@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	cmpq	%rdx, %rsi
	jne	LBB0_10
## %bb.7:
	andl	%eax, %ecx
	jne	LBB0_10
## %bb.8:
	movq	%rdi, (%rbx)
LBB0_9:
	leaq	L_.str.1(%rip), %r15
	xorl	%edx, %edx
LBB0_14:
	movq	_EXTCON_USB_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_extcon_set_state_sync
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	callq	_dev_dbg
LBB0_15:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpq	%rdi, %rsi
	jne	LBB0_15
## %bb.11:
	testl	%eax, -28(%rbp)
	je	LBB0_15
## %bb.12:
	movq	%rdx, (%rbx)
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_PALMAS_USB_OTG_BASE,4,2        ## @PALMAS_USB_OTG_BASE
	.comm	_PALMAS_USB_ID_INT_LATCH_SET,4,2 ## @PALMAS_USB_ID_INT_LATCH_SET
	.comm	_PALMAS_USB_ID_INT_SRC,4,2      ## @PALMAS_USB_ID_INT_SRC
	.comm	_PALMAS_USB_ID_INT_SRC_ID_GND,4,2 ## @PALMAS_USB_ID_INT_SRC_ID_GND
	.comm	_PALMAS_USB_ID_INT_LATCH_CLR,4,2 ## @PALMAS_USB_ID_INT_LATCH_CLR
	.comm	_PALMAS_USB_ID_INT_EN_HI_CLR_ID_GND,4,2 ## @PALMAS_USB_ID_INT_EN_HI_CLR_ID_GND
	.comm	_PALMAS_USB_STATE_ID,8,3        ## @PALMAS_USB_STATE_ID
	.comm	_EXTCON_USB_HOST,4,2            ## @EXTCON_USB_HOST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USB-HOST cable is attached\n"

	.comm	_PALMAS_USB_ID_INT_SRC_ID_FLOAT,4,2 ## @PALMAS_USB_ID_INT_SRC_ID_FLOAT
	.comm	_PALMAS_USB_ID_INT_EN_HI_CLR_ID_FLOAT,4,2 ## @PALMAS_USB_ID_INT_EN_HI_CLR_ID_FLOAT
	.comm	_PALMAS_USB_STATE_DISCONNECT,8,3 ## @PALMAS_USB_STATE_DISCONNECT
L_.str.1:                               ## @.str.1
	.asciz	"USB-HOST cable is detached\n"

L_.str.2:                               ## @.str.2
	.asciz	" USB-HOST cable is attached\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_palmas_id_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_id_irq_handler
_palmas_id_irq_handler:                 ; @palmas_id_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	x21, _PALMAS_USB_OTG_BASE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PALMAS_USB_OTG_BASE@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _PALMAS_USB_ID_INT_LATCH_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PALMAS_USB_ID_INT_LATCH_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_palmas_read
	ldr	w0, [x19, #12]
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _PALMAS_USB_ID_INT_SRC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PALMAS_USB_ID_INT_SRC@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	_palmas_read
	ldr	w10, [sp, #12]
Lloh8:
	adrp	x8, _PALMAS_USB_ID_INT_SRC_ID_GND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PALMAS_USB_ID_INT_SRC_ID_GND@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ands	w9, w8, w10
	b.eq	LBB0_4
; %bb.1:
	ldr	w11, [sp, #8]
	tst	w11, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x19, #12]
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _PALMAS_USB_ID_INT_LATCH_CLR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PALMAS_USB_ID_INT_LATCH_CLR@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _PALMAS_USB_ID_INT_EN_HI_CLR_ID_GND@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PALMAS_USB_ID_INT_EN_HI_CLR_ID_GND@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	bl	_palmas_write
Lloh17:
	adrp	x8, _PALMAS_USB_STATE_ID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PALMAS_USB_STATE_ID@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh20:
	adrp	x21, l_.str@PAGE
Lloh21:
	add	x21, x21, l_.str@PAGEOFF
LBB0_3:
	mov	w2, #1
	b	LBB0_13
LBB0_4:
Lloh22:
	adrp	x11, _PALMAS_USB_ID_INT_SRC_ID_FLOAT@GOTPAGE
Lloh23:
	ldr	x11, [x11, _PALMAS_USB_ID_INT_SRC_ID_FLOAT@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_7
; %bb.5:
	ldr	w10, [sp, #8]
	tst	w10, w11
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x19, #12]
	ldr	w1, [x21]
Lloh25:
	adrp	x8, _PALMAS_USB_ID_INT_LATCH_CLR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PALMAS_USB_ID_INT_LATCH_CLR@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _PALMAS_USB_ID_INT_EN_HI_CLR_ID_FLOAT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PALMAS_USB_ID_INT_EN_HI_CLR_ID_FLOAT@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	bl	_palmas_write
	mov	w2, #0
Lloh31:
	adrp	x8, _PALMAS_USB_STATE_DISCONNECT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PALMAS_USB_STATE_DISCONNECT@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_12
LBB0_7:
	ldr	x11, [x19]
Lloh34:
	adrp	x10, _PALMAS_USB_STATE_ID@GOTPAGE
Lloh35:
	ldr	x10, [x10, _PALMAS_USB_STATE_ID@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
Lloh37:
	adrp	x12, _PALMAS_USB_STATE_DISCONNECT@GOTPAGE
Lloh38:
	ldr	x12, [x12, _PALMAS_USB_STATE_DISCONNECT@GOTPAGEOFF]
Lloh39:
	ldr	x12, [x12]
	cmp	x11, x10
	ccmp	w9, #0, #0, eq
	b.eq	LBB0_11
; %bb.8:
	cmp	x11, x12
	b.ne	LBB0_14
; %bb.9:
	ldr	w9, [sp, #8]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.10:
	str	x10, [x19]
Lloh40:
	adrp	x21, l_.str.2@PAGE
Lloh41:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_11:
	mov	w2, #0
	str	x12, [x19]
LBB0_12:
Lloh42:
	adrp	x21, l_.str.1@PAGE
Lloh43:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_13:
Lloh44:
	adrp	x8, _EXTCON_USB_HOST@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EXTCON_USB_HOST@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_extcon_set_state_sync
	ldr	w0, [x19, #8]
	mov	x1, x21
	bl	_dev_dbg
LBB0_14:
Lloh47:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh49:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_PALMAS_USB_OTG_BASE,4,2        ; @PALMAS_USB_OTG_BASE
	.comm	_PALMAS_USB_ID_INT_LATCH_SET,4,2 ; @PALMAS_USB_ID_INT_LATCH_SET
	.comm	_PALMAS_USB_ID_INT_SRC,4,2      ; @PALMAS_USB_ID_INT_SRC
	.comm	_PALMAS_USB_ID_INT_SRC_ID_GND,4,2 ; @PALMAS_USB_ID_INT_SRC_ID_GND
	.comm	_PALMAS_USB_ID_INT_LATCH_CLR,4,2 ; @PALMAS_USB_ID_INT_LATCH_CLR
	.comm	_PALMAS_USB_ID_INT_EN_HI_CLR_ID_GND,4,2 ; @PALMAS_USB_ID_INT_EN_HI_CLR_ID_GND
	.comm	_PALMAS_USB_STATE_ID,8,3        ; @PALMAS_USB_STATE_ID
	.comm	_EXTCON_USB_HOST,4,2            ; @EXTCON_USB_HOST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USB-HOST cable is attached\n"

	.comm	_PALMAS_USB_ID_INT_SRC_ID_FLOAT,4,2 ; @PALMAS_USB_ID_INT_SRC_ID_FLOAT
	.comm	_PALMAS_USB_ID_INT_EN_HI_CLR_ID_FLOAT,4,2 ; @PALMAS_USB_ID_INT_EN_HI_CLR_ID_FLOAT
	.comm	_PALMAS_USB_STATE_DISCONNECT,8,3 ; @PALMAS_USB_STATE_DISCONNECT
l_.str.1:                               ; @.str.1
	.asciz	"USB-HOST cable is detached\n"

l_.str.2:                               ; @.str.2
	.asciz	" USB-HOST cable is attached\n"

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