	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlp9xx_i2c_isr
_xlp9xx_i2c_isr:                        ## @xlp9xx_i2c_isr
	.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	_XLP9XX_I2C_INTST@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_xlp9xx_read_i2c_reg
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_xlp9xx_write_i2c_reg
	movq	_XLP9XX_I2C_STATUS_ERRMASK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	%r14d, (%rbx)
	jmp	LBB0_15
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_4:
	movq	_XLP9XX_I2C_INTEN_SADDR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	cmpq	$0, 8(%rbx)
	je	LBB0_15
LBB0_6:
	cmpl	$0, 32(%rbx)
	je	LBB0_7
## %bb.11:
	movq	_XLP9XX_I2C_INTEN_DATADONE@GOTPCREL(%rip), %rax
	movq	_XLP9XX_I2C_INTEN_MFIFOHI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_14
## %bb.12:
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_xlp9xx_i2c_drain_rx_fifo
	jmp	LBB0_14
LBB0_7:
	movq	_XLP9XX_I2C_INTEN_MFIFOEMTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r14d, %esi
	je	LBB0_14
## %bb.8:
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_xlp9xx_i2c_fill_tx_fifo
	jmp	LBB0_14
LBB0_10:
	movq	%rbx, %rdi
	callq	_xlp9xx_i2c_mask_irq
LBB0_14:
	movq	_XLP9XX_I2C_INTEN_DATADONE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_16
LBB0_15:
	movq	_XLP9XX_I2C_INTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_xlp9xx_write_i2c_reg
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_complete
LBB0_16:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XLP9XX_I2C_INTST,4,2           ## @XLP9XX_I2C_INTST
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_XLP9XX_I2C_STATUS_ERRMASK,4,2  ## @XLP9XX_I2C_STATUS_ERRMASK
	.comm	_XLP9XX_I2C_INTEN_SADDR,4,2     ## @XLP9XX_I2C_INTEN_SADDR
	.comm	_XLP9XX_I2C_INTEN_MFIFOEMTY,4,2 ## @XLP9XX_I2C_INTEN_MFIFOEMTY
	.comm	_XLP9XX_I2C_INTEN_DATADONE,4,2  ## @XLP9XX_I2C_INTEN_DATADONE
	.comm	_XLP9XX_I2C_INTEN_MFIFOHI,4,2   ## @XLP9XX_I2C_INTEN_MFIFOHI
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_XLP9XX_I2C_INTEN,4,2           ## @XLP9XX_I2C_INTEN
	.no_dead_strip	_xlp9xx_i2c_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlp9xx_i2c_isr
_xlp9xx_i2c_isr:                        ; @xlp9xx_i2c_isr
	.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
Lloh0:
	adrp	x21, _XLP9XX_I2C_INTST@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XLP9XX_I2C_INTST@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_xlp9xx_read_i2c_reg
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_xlp9xx_write_i2c_reg
Lloh2:
	adrp	x8, _XLP9XX_I2C_STATUS_ERRMASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XLP9XX_I2C_STATUS_ERRMASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
	str	w20, [x19]
	b	LBB0_15
LBB0_3:
Lloh5:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_17
LBB0_4:
Lloh7:
	adrp	x8, _XLP9XX_I2C_INTEN_SADDR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XLP9XX_I2C_INTEN_SADDR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
LBB0_6:
	ldr	w8, [x19, #32]
Lloh10:
	adrp	x21, _XLP9XX_I2C_INTEN_DATADONE@GOTPAGE
Lloh11:
	ldr	x21, [x21, _XLP9XX_I2C_INTEN_DATADONE@GOTPAGEOFF]
	cbz	w8, LBB0_10
; %bb.7:
	ldr	w8, [x21]
Lloh12:
	adrp	x9, _XLP9XX_I2C_INTEN_MFIFOHI@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XLP9XX_I2C_INTEN_MFIFOHI@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_14
; %bb.8:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_14
; %bb.9:
	mov	x0, x19
	bl	_xlp9xx_i2c_drain_rx_fifo
	b	LBB0_14
LBB0_10:
Lloh15:
	adrp	x8, _XLP9XX_I2C_INTEN_MFIFOEMTY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XLP9XX_I2C_INTEN_MFIFOEMTY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	tst	w1, w20
	b.eq	LBB0_14
; %bb.11:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_xlp9xx_i2c_fill_tx_fifo
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_xlp9xx_i2c_mask_irq
LBB0_14:
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_16
LBB0_15:
Lloh18:
	adrp	x8, _XLP9XX_I2C_INTEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XLP9XX_I2C_INTEN@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_xlp9xx_write_i2c_reg
	add	x0, x19, #16
	bl	_complete
LBB0_16:
Lloh21:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_17:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_XLP9XX_I2C_INTST,4,2           ; @XLP9XX_I2C_INTST
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_XLP9XX_I2C_STATUS_ERRMASK,4,2  ; @XLP9XX_I2C_STATUS_ERRMASK
	.comm	_XLP9XX_I2C_INTEN_SADDR,4,2     ; @XLP9XX_I2C_INTEN_SADDR
	.comm	_XLP9XX_I2C_INTEN_MFIFOEMTY,4,2 ; @XLP9XX_I2C_INTEN_MFIFOEMTY
	.comm	_XLP9XX_I2C_INTEN_DATADONE,4,2  ; @XLP9XX_I2C_INTEN_DATADONE
	.comm	_XLP9XX_I2C_INTEN_MFIFOHI,4,2   ; @XLP9XX_I2C_INTEN_MFIFOHI
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_XLP9XX_I2C_INTEN,4,2           ; @XLP9XX_I2C_INTEN
	.no_dead_strip	_xlp9xx_i2c_isr
.subsections_via_symbols
