	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_i2c_isr_task
_xgbe_i2c_isr_task:                     ## @xgbe_i2c_isr_task
	.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	%rdi, %rbx
	movq	_IC_RAW_INTR_STAT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_XI2C_IOREAD
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movl	%eax, %r14d
	movq	_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_xgbe_i2c_clear_isr_interrupts
	movq	_XGBE_INTR_TX_ABRT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	movl	32(%rbx), %r8d
	movq	24(%rbx), %rax
	movl	(%rax), %r9d
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	%rbx, %rdi
	callq	_xgbe_i2c_disable_interrupts
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, 16(%rbx)
	testl	%r12d, %r12d
	jne	LBB0_6
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_xgbe_i2c_read
	movq	%rbx, %rdi
	callq	_xgbe_i2c_write
	movl	16(%rbx), %r12d
	testl	%r12d, %r12d
	jne	LBB0_6
LBB0_5:
	movl	(%r15), %esi
	movq	_STOP_DET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_XI2C_GET_BITS
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	leaq	8(%rbx), %rdi
	callq	_complete
LBB0_7:
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.9:
	movq	_XP_INT_REISSUE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XP_IOWRITE                     ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IC_RAW_INTR_STAT,4,2           ## @IC_RAW_INTR_STAT
	.comm	_intr,4,2                       ## @intr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C interrupt received: status=%#010x\n"

	.comm	_XGBE_INTR_TX_ABRT,4,2          ## @XGBE_INTR_TX_ABRT
	.comm	_link,4,2                       ## @link
L_.str.1:                               ## @.str.1
	.asciz	"I2C TX_ABRT received (%#010x) for target %#04x\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_STOP_DET,4,2                   ## @STOP_DET
	.comm	_XP_INT_REISSUE_EN,4,2          ## @XP_INT_REISSUE_EN
	.no_dead_strip	_xgbe_i2c_isr_task
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_i2c_isr_task
_xgbe_i2c_isr_task:                     ; @xgbe_i2c_isr_task
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x21, _IC_RAW_INTR_STAT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IC_RAW_INTR_STAT@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_XI2C_IOREAD
	cbz	w0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x8, _intr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _intr@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x19, #12]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_netif_dbg
	mov	x0, x19
	mov	x1, x20
	bl	_xgbe_i2c_clear_isr_interrupts
Lloh7:
	adrp	x8, _XGBE_INTR_TX_ABRT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XGBE_INTR_TX_ABRT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
Lloh10:
	adrp	x8, _link@GOTPAGE
Lloh11:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x19, #12]
	ldr	w4, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
Lloh13:
	adrp	x3, l_.str.1@PAGE
Lloh14:
	add	x3, x3, l_.str.1@PAGEOFF
	str	x8, [sp]
	mov	x0, x19
	bl	_netif_dbg
	mov	x0, x19
	bl	_xgbe_i2c_disable_interrupts
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #16]
	cbnz	w8, LBB0_5
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_xgbe_i2c_read
	mov	x0, x19
	bl	_xgbe_i2c_write
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_5
LBB0_4:
	ldr	w1, [x21]
Lloh18:
	adrp	x8, _STOP_DET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _STOP_DET@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_XI2C_GET_BITS
	cbz	x0, LBB0_6
LBB0_5:
	add	x0, x19, #8
	bl	_complete
LBB0_6:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh21:
	adrp	x8, _XP_INT_REISSUE_EN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _XP_INT_REISSUE_EN@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_XP_IOWRITE
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IC_RAW_INTR_STAT,4,2           ; @IC_RAW_INTR_STAT
	.comm	_intr,4,2                       ; @intr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C interrupt received: status=%#010x\n"

	.comm	_XGBE_INTR_TX_ABRT,4,2          ; @XGBE_INTR_TX_ABRT
	.comm	_link,4,2                       ; @link
l_.str.1:                               ; @.str.1
	.asciz	"I2C TX_ABRT received (%#010x) for target %#04x\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_STOP_DET,4,2                   ; @STOP_DET
	.comm	_XP_INT_REISSUE_EN,4,2          ; @XP_INT_REISSUE_EN
	.no_dead_strip	_xgbe_i2c_isr_task
.subsections_via_symbols
