	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zx2967_i2c_isr
_zx2967_i2c_isr:                        ## @zx2967_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_REG_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_zx2967_i2c_readl
	movl	%eax, %ebx
	movq	_I2C_INT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_zx2967_i2c_isr_clr
	movq	_I2C_SR_EDEVICE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	_I2C_SR_EDATA@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_complete
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_I2C_TRANS_DONE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%ebx, (%rcx)
	jne	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_STAT,4,2                   ## @REG_STAT
	.comm	_I2C_INT_MASK,4,2               ## @I2C_INT_MASK
	.comm	_I2C_SR_EDEVICE,4,2             ## @I2C_SR_EDEVICE
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_I2C_SR_EDATA,4,2               ## @I2C_SR_EDATA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_I2C_TRANS_DONE,4,2             ## @I2C_TRANS_DONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_zx2967_i2c_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zx2967_i2c_isr
_zx2967_i2c_isr:                        ; @zx2967_i2c_isr
	.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, x1
Lloh0:
	adrp	x8, _REG_STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_STAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_zx2967_i2c_readl
Lloh3:
	adrp	x8, _I2C_INT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_INT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w20, w8, w0
	mov	x0, x19
	bl	_zx2967_i2c_isr_clr
Lloh6:
	adrp	x8, _I2C_SR_EDEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_SR_EDEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ENXIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh11:
	adrp	x8, _I2C_SR_EDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I2C_SR_EDATA@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.3:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_5:
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_complete
LBB0_6:
Lloh16:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh19:
	adrp	x8, _I2C_TRANS_DONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I2C_TRANS_DONE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.8:
	mov	w8, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_STAT,4,2                   ; @REG_STAT
	.comm	_I2C_INT_MASK,4,2               ; @I2C_INT_MASK
	.comm	_I2C_SR_EDEVICE,4,2             ; @I2C_SR_EDEVICE
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_I2C_SR_EDATA,4,2               ; @I2C_SR_EDATA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_I2C_TRANS_DONE,4,2             ; @I2C_TRANS_DONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_zx2967_i2c_isr
.subsections_via_symbols
