	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qup_i2c_interrupt
_qup_i2c_interrupt:                     ## @qup_i2c_interrupt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_QUP_I2C_STATUS@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	48(%rsi), %rdi
	callq	_readl
	movl	%eax, %r14d
	movq	_QUP_ERROR_FLAGS@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	48(%rbx), %rdi
	callq	_readl
	movl	%eax, %r15d
	movq	_QUP_OPERATIONAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	48(%rbx), %rdi
	callq	_readl
	cmpq	$0, 16(%rbx)
	je	LBB0_1
## %bb.2:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_I2C_STATUS_ERROR_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_QUP_STATUS_ERROR_FLAGS@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	je	LBB0_4
## %bb.3:
	movq	(%r12), %rsi
	addq	48(%rbx), %rsi
	movl	%r15d, %edi
	callq	_writel
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movq	(%r13), %rsi
	addq	48(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
LBB0_6:
	cmpq	$0, 80(%rbx)
	je	LBB0_11
## %bb.7:
	cmpl	$0, (%rbx)
	jne	LBB0_25
## %bb.8:
	cmpl	$0, 4(%rbx)
	jne	LBB0_25
## %bb.9:
	movl	%r15d, %eax
	orl	%r14d, %eax
	je	LBB0_12
	jmp	LBB0_24
LBB0_1:
	movq	_QUP_RESET_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_QUP_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	48(%rbx), %rsi
	callq	_writel
	jmp	LBB0_25
LBB0_11:
	movl	%r15d, %eax
	orl	%r14d, %eax
	je	LBB0_12
## %bb.10:
	movq	_QUP_RESET_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_QUP_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	48(%rbx), %rsi
	callq	_writel
	jmp	LBB0_24
LBB0_12:
	movq	_QUP_OUT_SVC_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %edi
	je	LBB0_15
## %bb.13:
	movq	_QUP_OPERATIONAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	48(%rbx), %rsi
	callq	_writel
	movq	_OUT_BLOCK_WRITE_REQ@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_15
## %bb.14:
	movl	72(%rbx), %eax
	addl	%eax, 108(%rbx)
	movq	16(%rbx), %rax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%rax), %ecx
	setne	%dl
	movq	%rbx, %rdi
	callq	*56(%rbx,%rdx,8)
LBB0_15:
	movq	_QUP_IN_SVC_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%r12d, %edi
	je	LBB0_20
## %bb.16:
	movq	_QUP_OPERATIONAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	48(%rbx), %rsi
	callq	_writel
	cmpl	$0, 104(%rbx)
	je	LBB0_17
## %bb.18:
	movq	_IN_BLOCK_READ_REQ@GOTPCREL(%rip), %rcx
	movl	$32, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, (%rcx)
	jne	LBB0_19
	jmp	LBB0_20
LBB0_17:
	movl	$40, %eax
LBB0_19:
	movl	(%rbx,%rax), %eax
	addl	%eax, 100(%rbx)
	movq	%rbx, %rdi
	callq	*24(%rbx)
LBB0_20:
	movq	16(%rbx), %rax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_22
## %bb.21:
	cmpl	$0, 96(%rbx)
	jne	LBB0_24
	jmp	LBB0_25
LBB0_22:
	cmpq	$0, 88(%rbx)
	je	LBB0_24
## %bb.23:
	movq	_QUP_MX_OUTPUT_DONE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_25
LBB0_24:
	movl	%r15d, (%rbx)
	movl	%r14d, 4(%rbx)
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_complete
LBB0_25:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUP_I2C_STATUS,8,3             ## @QUP_I2C_STATUS
	.comm	_QUP_ERROR_FLAGS,8,3            ## @QUP_ERROR_FLAGS
	.comm	_QUP_OPERATIONAL,8,3            ## @QUP_OPERATIONAL
	.comm	_QUP_RESET_STATE,4,2            ## @QUP_RESET_STATE
	.comm	_QUP_STATE,8,3                  ## @QUP_STATE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_I2C_STATUS_ERROR_MASK,4,2      ## @I2C_STATUS_ERROR_MASK
	.comm	_QUP_STATUS_ERROR_FLAGS,4,2     ## @QUP_STATUS_ERROR_FLAGS
	.comm	_QUP_OUT_SVC_FLAG,4,2           ## @QUP_OUT_SVC_FLAG
	.comm	_OUT_BLOCK_WRITE_REQ,4,2        ## @OUT_BLOCK_WRITE_REQ
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_QUP_IN_SVC_FLAG,4,2            ## @QUP_IN_SVC_FLAG
	.comm	_IN_BLOCK_READ_REQ,4,2          ## @IN_BLOCK_READ_REQ
	.comm	_QUP_MX_OUTPUT_DONE,4,2         ## @QUP_MX_OUTPUT_DONE
	.no_dead_strip	_qup_i2c_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qup_i2c_interrupt
_qup_i2c_interrupt:                     ; @qup_i2c_interrupt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	ldr	x8, [x1, #48]
Lloh0:
	adrp	x24, _QUP_I2C_STATUS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _QUP_I2C_STATUS@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	ldr	x8, [x19, #48]
Lloh2:
	adrp	x25, _QUP_ERROR_FLAGS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _QUP_ERROR_FLAGS@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	x8, [x19, #48]
Lloh4:
	adrp	x23, _QUP_OPERATIONAL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _QUP_OPERATIONAL@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x22, x0
Lloh6:
	adrp	x8, _I2C_STATUS_ERROR_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_STATUS_ERROR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w20, w8, w20
Lloh9:
	adrp	x8, _QUP_STATUS_ERROR_FLAGS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QUP_STATUS_ERROR_FLAGS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ands	w21, w8, w21
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #48]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
LBB0_3:
	cbz	w20, LBB0_5
; %bb.4:
	ldr	x8, [x19, #48]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
LBB0_5:
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_10
; %bb.6:
	ldr	w8, [x19]
	cbnz	w8, LBB0_26
; %bb.7:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_26
; %bb.8:
	orr	w8, w21, w20
	cbz	w8, LBB0_12
	b	LBB0_25
LBB0_9:
Lloh12:
	adrp	x8, _QUP_RESET_STATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QUP_RESET_STATE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x19, #48]
Lloh15:
	adrp	x9, _QUP_STATE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _QUP_STATE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_26
LBB0_10:
	orr	w8, w21, w20
	cbz	w8, LBB0_12
; %bb.11:
Lloh18:
	adrp	x8, _QUP_RESET_STATE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QUP_RESET_STATE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x8, [x19, #48]
Lloh21:
	adrp	x9, _QUP_STATE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _QUP_STATE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_25
LBB0_12:
Lloh24:
	adrp	x8, _QUP_OUT_SVC_FLAG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _QUP_OUT_SVC_FLAG@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x24, _I2C_M_RD@GOTPAGE
Lloh28:
	ldr	x24, [x24, _I2C_M_RD@GOTPAGEOFF]
	tst	w0, w22
	b.eq	LBB0_15
; %bb.13:
	ldr	x8, [x19, #48]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
Lloh29:
	adrp	x8, _OUT_BLOCK_WRITE_REQ@GOTPAGE
Lloh30:
	ldr	x8, [x8, _OUT_BLOCK_WRITE_REQ@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_15
; %bb.14:
	ldr	w8, [x19, #72]
	ldr	w9, [x19, #108]
	add	w8, w9, w8
	str	w8, [x19, #108]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	ldr	w9, [x24]
	tst	w9, w8
	mov	w8, #64
	mov	w9, #56
	csel	x8, x9, x8, eq
	ldr	x8, [x19, x8]
	mov	x0, x19
	blr	x8
LBB0_15:
Lloh32:
	adrp	x8, _QUP_IN_SVC_FLAG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _QUP_IN_SVC_FLAG@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	tst	w0, w22
	b.eq	LBB0_21
; %bb.16:
	ldr	x8, [x19, #48]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x19, #104]
	cbz	w8, LBB0_19
; %bb.17:
Lloh35:
	adrp	x8, _IN_BLOCK_READ_REQ@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IN_BLOCK_READ_REQ@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_21
; %bb.18:
	mov	w8, #32
	b	LBB0_20
LBB0_19:
	mov	w8, #40
LBB0_20:
	ldr	w8, [x19, x8]
	ldr	w9, [x19, #100]
	add	w8, w9, w8
	str	w8, [x19, #100]
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
LBB0_21:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:
	ldr	w8, [x19, #96]
	cbnz	w8, LBB0_25
	b	LBB0_26
LBB0_23:
	ldr	x8, [x19, #88]
	cbz	x8, LBB0_25
; %bb.24:
Lloh38:
	adrp	x8, _QUP_MX_OUTPUT_DONE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _QUP_MX_OUTPUT_DONE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_26
LBB0_25:
	stp	w21, w20, [x19]
	add	x0, x19, #8
	bl	_complete
LBB0_26:
Lloh41:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_QUP_I2C_STATUS,8,3             ; @QUP_I2C_STATUS
	.comm	_QUP_ERROR_FLAGS,8,3            ; @QUP_ERROR_FLAGS
	.comm	_QUP_OPERATIONAL,8,3            ; @QUP_OPERATIONAL
	.comm	_QUP_RESET_STATE,4,2            ; @QUP_RESET_STATE
	.comm	_QUP_STATE,8,3                  ; @QUP_STATE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_I2C_STATUS_ERROR_MASK,4,2      ; @I2C_STATUS_ERROR_MASK
	.comm	_QUP_STATUS_ERROR_FLAGS,4,2     ; @QUP_STATUS_ERROR_FLAGS
	.comm	_QUP_OUT_SVC_FLAG,4,2           ; @QUP_OUT_SVC_FLAG
	.comm	_OUT_BLOCK_WRITE_REQ,4,2        ; @OUT_BLOCK_WRITE_REQ
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_QUP_IN_SVC_FLAG,4,2            ; @QUP_IN_SVC_FLAG
	.comm	_IN_BLOCK_READ_REQ,4,2          ; @IN_BLOCK_READ_REQ
	.comm	_QUP_MX_OUTPUT_DONE,4,2         ; @QUP_MX_OUTPUT_DONE
	.no_dead_strip	_qup_i2c_interrupt
.subsections_via_symbols
