	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlr_i2c_irq
_xlr_i2c_irq:                           ## @xlr_i2c_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	16(%rsi), %r12
	movl	12(%rsi), %edi
	movq	_XLR_I2C_INT_STAT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_xlr_i2c_rdreg
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	12(%rbx), %edi
	movl	(%r14), %esi
	movl	%eax, %edx
	callq	_xlr_i2c_wreg
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testq	%r12, %r12
	je	LBB0_9
## %bb.3:
	movl	12(%rbx), %edi
	movq	_XLR_I2C_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xlr_i2c_rdreg
	movl	%eax, %r14d
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jge	LBB0_7
## %bb.4:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_xlr_i2c_rx_irq
	jmp	LBB0_7
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
	jmp	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_xlr_i2c_tx_irq
LBB0_7:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_xlr_i2c_busy
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_wake_up
LBB0_9:
	movl	(%r15), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XLR_I2C_INT_STAT,4,2           ## @XLR_I2C_INT_STAT
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_XLR_I2C_STATUS,4,2             ## @XLR_I2C_STATUS
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.no_dead_strip	_xlr_i2c_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlr_i2c_irq
_xlr_i2c_irq:                           ; @xlr_i2c_irq
	.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
	ldr	x21, [x1, #16]
	ldr	w0, [x1, #12]
Lloh0:
	adrp	x20, _XLR_I2C_INT_STAT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _XLR_I2C_INT_STAT@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_xlr_i2c_rdreg
	cbz	w0, LBB0_5
; %bb.1:
	mov	x2, x0
	ldr	w0, [x19, #12]
	ldr	w1, [x20]
	bl	_xlr_i2c_wreg
	cbz	x21, LBB0_9
; %bb.2:
	ldr	w0, [x19, #12]
Lloh2:
	adrp	x8, _XLR_I2C_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XLR_I2C_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_xlr_i2c_rdreg
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.3:
	ldr	w8, [x21, #8]
Lloh5:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mov	x0, x19
	mov	x1, x20
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	bl	_xlr_i2c_rx_irq
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	bl	_xlr_i2c_tx_irq
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_xlr_i2c_busy
	cbnz	w0, LBB0_9
; %bb.8:
	add	x0, x19, #8
	bl	_wake_up
LBB0_9:
Lloh10:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_10:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_XLR_I2C_INT_STAT,4,2           ; @XLR_I2C_INT_STAT
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_XLR_I2C_STATUS,4,2             ; @XLR_I2C_STATUS
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.no_dead_strip	_xlr_i2c_irq
.subsections_via_symbols
