	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nixge_tx_irq
_nixge_tx_irq:                          ## @nixge_tx_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	%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, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_XAXIDMA_TX_SR_OFFSET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_nixge_dma_read_reg
	movl	%eax, %r14d
	movq	_XAXIDMA_IRQ_IOC_MASK@GOTPCREL(%rip), %rax
	movq	_XAXIDMA_IRQ_DELAY_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_2
## %bb.1:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_nixge_dma_write_reg
	movl	24(%rbx), %edi
	callq	_nixge_start_xmit_done
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r12
LBB0_6:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_XAXIDMA_IRQ_ALL_MASK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_XAXIDMA_IRQ_ERROR_MASK@GOTPCREL(%rip), %rax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r12
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	16(%rbx), %rdi
	callq	_nixge_hw_dma_bd_get_addr
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_XAXIDMA_TX_CR_OFFSET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_nixge_dma_read_reg
	movq	_XAXIDMA_IRQ_ALL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_nixge_dma_write_reg
	movq	_XAXIDMA_RX_CR_OFFSET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_nixge_dma_read_reg
	movq	_XAXIDMA_IRQ_ALL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_nixge_dma_write_reg
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_tasklet_schedule
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_nixge_dma_write_reg
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_IRQ_NONE@GOTPCREL(%rip), %r12
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_XAXIDMA_TX_SR_OFFSET,4,2       ## @XAXIDMA_TX_SR_OFFSET
	.comm	_XAXIDMA_IRQ_IOC_MASK,4,2       ## @XAXIDMA_IRQ_IOC_MASK
	.comm	_XAXIDMA_IRQ_DELAY_MASK,4,2     ## @XAXIDMA_IRQ_DELAY_MASK
	.comm	_XAXIDMA_IRQ_ALL_MASK,4,2       ## @XAXIDMA_IRQ_ALL_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No interrupts asserted in Tx path\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_XAXIDMA_IRQ_ERROR_MASK,4,2     ## @XAXIDMA_IRQ_ERROR_MASK
L_.str.1:                               ## @.str.1
	.asciz	"DMA Tx error 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Current BD is at: 0x%llx\n"

	.comm	_XAXIDMA_TX_CR_OFFSET,4,2       ## @XAXIDMA_TX_CR_OFFSET
	.comm	_XAXIDMA_RX_CR_OFFSET,4,2       ## @XAXIDMA_RX_CR_OFFSET
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_nixge_tx_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nixge_tx_irq
_nixge_tx_irq:                          ; @nixge_tx_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x23, _XAXIDMA_TX_SR_OFFSET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XAXIDMA_TX_SR_OFFSET@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_nixge_dma_read_reg
	mov	x20, x0
Lloh2:
	adrp	x8, _XAXIDMA_IRQ_IOC_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XAXIDMA_IRQ_IOC_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _XAXIDMA_IRQ_DELAY_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _XAXIDMA_IRQ_DELAY_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	bl	_nixge_dma_write_reg
	ldr	w0, [x19, #24]
	bl	_nixge_start_xmit_done
LBB0_2:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_3:
	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
	add	sp, sp, #80
	ret
LBB0_4:
Lloh10:
	adrp	x24, _XAXIDMA_IRQ_ALL_MASK@GOTPAGE
Lloh11:
	ldr	x24, [x24, _XAXIDMA_IRQ_ALL_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _XAXIDMA_IRQ_ERROR_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XAXIDMA_IRQ_ERROR_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	add	x0, x8, x9, lsl #2
	bl	_nixge_hw_dma_bd_get_addr
	mov	x22, x0
	str	x20, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_netdev_err
	str	x22, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_netdev_err
Lloh19:
	adrp	x21, _XAXIDMA_TX_CR_OFFSET@GOTPAGE
Lloh20:
	ldr	x21, [x21, _XAXIDMA_TX_CR_OFFSET@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_nixge_dma_read_reg
	ldr	w8, [x24]
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_nixge_dma_write_reg
Lloh21:
	adrp	x21, _XAXIDMA_RX_CR_OFFSET@GOTPAGE
Lloh22:
	ldr	x21, [x21, _XAXIDMA_RX_CR_OFFSET@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_nixge_dma_read_reg
	ldr	w8, [x24]
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_nixge_dma_write_reg
	add	x0, x19, #8
	bl	_tasklet_schedule
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	bl	_nixge_dma_write_reg
	b	LBB0_2
LBB0_7:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_netdev_err
Lloh25:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_XAXIDMA_TX_SR_OFFSET,4,2       ; @XAXIDMA_TX_SR_OFFSET
	.comm	_XAXIDMA_IRQ_IOC_MASK,4,2       ; @XAXIDMA_IRQ_IOC_MASK
	.comm	_XAXIDMA_IRQ_DELAY_MASK,4,2     ; @XAXIDMA_IRQ_DELAY_MASK
	.comm	_XAXIDMA_IRQ_ALL_MASK,4,2       ; @XAXIDMA_IRQ_ALL_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No interrupts asserted in Tx path\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_XAXIDMA_IRQ_ERROR_MASK,4,2     ; @XAXIDMA_IRQ_ERROR_MASK
l_.str.1:                               ; @.str.1
	.asciz	"DMA Tx error 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Current BD is at: 0x%llx\n"

	.comm	_XAXIDMA_TX_CR_OFFSET,4,2       ; @XAXIDMA_TX_CR_OFFSET
	.comm	_XAXIDMA_RX_CR_OFFSET,4,2       ; @XAXIDMA_RX_CR_OFFSET
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_nixge_tx_irq
.subsections_via_symbols
