	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palmas_enable_irq
_palmas_enable_irq:                     ## @palmas_enable_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	32(%rdi), %edi
	movq	_PALMAS_USB_OTG_BASE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_PALMAS_USB_VBUS_CTRL_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_palmas_write
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movl	32(%rbx), %edi
	movl	(%r14), %esi
	movq	_PALMAS_USB_ID_CTRL_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_palmas_write
	movl	32(%rbx), %edi
	movl	(%r14), %esi
	movq	_PALMAS_USB_ID_INT_EN_HI_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PALMAS_USB_ID_INT_EN_HI_SET_ID_GND@GOTPCREL(%rip), %rax
	movq	_PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	callq	_palmas_write
LBB0_2:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	movq	%rbx, %rsi
	callq	_palmas_vbus_irq_handler
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.6:
	movl	$30, %edi
	callq	_msleep
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_palmas_id_irq_handler          ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PALMAS_USB_OTG_BASE,4,2        ## @PALMAS_USB_OTG_BASE
	.comm	_PALMAS_USB_VBUS_CTRL_SET,4,2   ## @PALMAS_USB_VBUS_CTRL_SET
	.comm	_PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COMP,4,2 ## @PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COMP
	.comm	_PALMAS_USB_ID_CTRL_SET,4,2     ## @PALMAS_USB_ID_CTRL_SET
	.comm	_PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP,4,2 ## @PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP
	.comm	_PALMAS_USB_ID_INT_EN_HI_SET,4,2 ## @PALMAS_USB_ID_INT_EN_HI_SET
	.comm	_PALMAS_USB_ID_INT_EN_HI_SET_ID_GND,4,2 ## @PALMAS_USB_ID_INT_EN_HI_SET_ID_GND
	.comm	_PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT,4,2 ## @PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT
	.no_dead_strip	_palmas_enable_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function palmas_enable_irq
_palmas_enable_irq:                     ; @palmas_enable_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, x0
	ldr	w0, [x0, #32]
Lloh0:
	adrp	x20, _PALMAS_USB_OTG_BASE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PALMAS_USB_OTG_BASE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _PALMAS_USB_VBUS_CTRL_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PALMAS_USB_VBUS_CTRL_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COMP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COMP@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	bl	_palmas_write
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #32]
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _PALMAS_USB_ID_CTRL_SET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PALMAS_USB_ID_CTRL_SET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	bl	_palmas_write
	ldr	w0, [x19, #32]
	ldr	w1, [x20]
Lloh14:
	adrp	x8, _PALMAS_USB_ID_INT_EN_HI_SET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PALMAS_USB_ID_INT_EN_HI_SET@GOTPAGEOFF]
Lloh16:
	adrp	x9, _PALMAS_USB_ID_INT_EN_HI_SET_ID_GND@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PALMAS_USB_ID_INT_EN_HI_SET_ID_GND@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	ldr	w8, [x9]
Lloh20:
	adrp	x9, _PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w3, w9, w8
	bl	_palmas_write
LBB0_2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
	mov	x1, x19
	bl	_palmas_vbus_irq_handler
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w0, #30
	bl	_msleep
	ldr	w0, [x19]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_palmas_id_irq_handler
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PALMAS_USB_OTG_BASE,4,2        ; @PALMAS_USB_OTG_BASE
	.comm	_PALMAS_USB_VBUS_CTRL_SET,4,2   ; @PALMAS_USB_VBUS_CTRL_SET
	.comm	_PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COMP,4,2 ; @PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COMP
	.comm	_PALMAS_USB_ID_CTRL_SET,4,2     ; @PALMAS_USB_ID_CTRL_SET
	.comm	_PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP,4,2 ; @PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP
	.comm	_PALMAS_USB_ID_INT_EN_HI_SET,4,2 ; @PALMAS_USB_ID_INT_EN_HI_SET
	.comm	_PALMAS_USB_ID_INT_EN_HI_SET_ID_GND,4,2 ; @PALMAS_USB_ID_INT_EN_HI_SET_ID_GND
	.comm	_PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT,4,2 ; @PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT
	.no_dead_strip	_palmas_enable_irq
.subsections_via_symbols
