	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function desc_get_tx_status
_desc_get_tx_status:                    ## @desc_get_tx_status
	.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	%rdi, %r14
	movl	(%rsi), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	_TXDESC_ERROR_SUMMARY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.2:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_dbg
	movq	_TXDESC_JABBER_TIMEOUT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	incl	28(%r14)
LBB0_4:
	movq	_TXDESC_FRAME_FLUSHED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	incl	24(%r14)
LBB0_6:
	movq	_TXDESC_UNDERFLOW_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	movl	(%r14), %edi
	callq	_xgmac_dma_flush_tx_fifo
LBB0_8:
	movq	_TXDESC_IP_HEADER_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	incl	20(%r14)
LBB0_10:
	movq	_TXDESC_LOCAL_FAULT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.11:
	incl	16(%r14)
LBB0_12:
	movq	_TXDESC_REMOTE_FAULT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.13:
	incl	12(%r14)
LBB0_14:
	movq	_TXDESC_PAYLOAD_CSUM_ERR@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	testl	%ebx, (%rcx)
	je	LBB0_16
## %bb.15:
	incl	8(%r14)
	jmp	LBB0_16
LBB0_1:
	xorl	%eax, %eax
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXDESC_ERROR_SUMMARY,4,2       ## @TXDESC_ERROR_SUMMARY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx desc error = 0x%08x\n"

	.comm	_TXDESC_JABBER_TIMEOUT,4,2      ## @TXDESC_JABBER_TIMEOUT
	.comm	_TXDESC_FRAME_FLUSHED,4,2       ## @TXDESC_FRAME_FLUSHED
	.comm	_TXDESC_UNDERFLOW_ERR,4,2       ## @TXDESC_UNDERFLOW_ERR
	.comm	_TXDESC_IP_HEADER_ERR,4,2       ## @TXDESC_IP_HEADER_ERR
	.comm	_TXDESC_LOCAL_FAULT,4,2         ## @TXDESC_LOCAL_FAULT
	.comm	_TXDESC_REMOTE_FAULT,4,2        ## @TXDESC_REMOTE_FAULT
	.comm	_TXDESC_PAYLOAD_CSUM_ERR,4,2    ## @TXDESC_PAYLOAD_CSUM_ERR
	.no_dead_strip	_desc_get_tx_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function desc_get_tx_status
_desc_get_tx_status:                    ; @desc_get_tx_status
	.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, x0
	ldr	w0, [x1]
	bl	_le32_to_cpu
Lloh0:
	adrp	x8, _TXDESC_ERROR_SUMMARY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TXDESC_ERROR_SUMMARY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_netdev_dbg
Lloh5:
	adrp	x8, _TXDESC_JABBER_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TXDESC_JABBER_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_3:
Lloh8:
	adrp	x8, _TXDESC_FRAME_FLUSHED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TXDESC_FRAME_FLUSHED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
LBB0_5:
Lloh11:
	adrp	x8, _TXDESC_UNDERFLOW_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TXDESC_UNDERFLOW_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x19]
	bl	_xgmac_dma_flush_tx_fifo
LBB0_7:
Lloh14:
	adrp	x8, _TXDESC_IP_HEADER_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TXDESC_IP_HEADER_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_9:
Lloh17:
	adrp	x8, _TXDESC_LOCAL_FAULT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TXDESC_LOCAL_FAULT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_11:
Lloh20:
	adrp	x8, _TXDESC_REMOTE_FAULT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TXDESC_REMOTE_FAULT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.12:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_13:
Lloh23:
	adrp	x8, _TXDESC_PAYLOAD_CSUM_ERR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TXDESC_PAYLOAD_CSUM_ERR@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_15
; %bb.14:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_15:
	mov	w0, #-1
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TXDESC_ERROR_SUMMARY,4,2       ; @TXDESC_ERROR_SUMMARY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx desc error = 0x%08x\n"

	.comm	_TXDESC_JABBER_TIMEOUT,4,2      ; @TXDESC_JABBER_TIMEOUT
	.comm	_TXDESC_FRAME_FLUSHED,4,2       ; @TXDESC_FRAME_FLUSHED
	.comm	_TXDESC_UNDERFLOW_ERR,4,2       ; @TXDESC_UNDERFLOW_ERR
	.comm	_TXDESC_IP_HEADER_ERR,4,2       ; @TXDESC_IP_HEADER_ERR
	.comm	_TXDESC_LOCAL_FAULT,4,2         ; @TXDESC_LOCAL_FAULT
	.comm	_TXDESC_REMOTE_FAULT,4,2        ; @TXDESC_REMOTE_FAULT
	.comm	_TXDESC_PAYLOAD_CSUM_ERR,4,2    ; @TXDESC_PAYLOAD_CSUM_ERR
	.no_dead_strip	_desc_get_tx_status
.subsections_via_symbols
