	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function desc_get_rx_status
_desc_get_rx_status:                    ## @desc_get_rx_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	%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	%rdi, %r12
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	4(%rsi), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	_RXDESC_DA_FILTER_FAIL@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	incl	12(%r12)
	movl	$-1, %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_RXDESC_FIRST_SEG@GOTPCREL(%rip), %rax
	movl	$-1, %r13d
	testl	%r14d, (%rax)
	je	LBB0_17
## %bb.3:
	movq	_RXDESC_LAST_SEG@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_17
## %bb.4:
	movq	_RXDESC_FRAME_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, %eax
	je	LBB0_8
## %bb.5:
	movq	_RXDESC_EXT_STATUS@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_8
## %bb.6:
	movq	_RXDESC_IP_PAYLOAD_MASK@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	jne	LBB0_8
## %bb.7:
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_8:
	movl	(%r12), %edi
	xorl	%edx, %edx
	testl	%r14d, %eax
	setne	%dl
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	_RXDESC_ERROR_SUMMARY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.10:
	movq	_RXDESC_DESCRIPTOR_ERR@GOTPCREL(%rip), %rax
	movq	_RXDESC_OVERFLOW_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_RXDESC_GIANT_FRAME@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_RXDESC_LENGTH_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_RXDESC_CRC_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	jne	LBB0_17
## %bb.11:
	movq	_RXDESC_EXT_STATUS@GOTPCREL(%rip), %rax
	movl	%r15d, %r13d
	testl	%r14d, (%rax)
	je	LBB0_17
## %bb.12:
	movq	_RXDESC_IP_HEADER_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.13:
	incl	8(%r12)
LBB0_14:
	movq	_RXDESC_IP_PAYLOAD_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_16
## %bb.15:
	incl	4(%r12)
LBB0_16:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_17
LBB0_9:
	movl	%r15d, %r13d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.comm	_RXDESC_DA_FILTER_FAIL,4,2      ## @RXDESC_DA_FILTER_FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XGMAC RX : Dest Address filter fail\n"

	.comm	_RXDESC_FIRST_SEG,4,2           ## @RXDESC_FIRST_SEG
	.comm	_RXDESC_LAST_SEG,4,2            ## @RXDESC_LAST_SEG
	.comm	_RXDESC_FRAME_TYPE,4,2          ## @RXDESC_FRAME_TYPE
	.comm	_RXDESC_EXT_STATUS,4,2          ## @RXDESC_EXT_STATUS
	.comm	_RXDESC_IP_PAYLOAD_MASK,4,2     ## @RXDESC_IP_PAYLOAD_MASK
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
L_.str.1:                               ## @.str.1
	.asciz	"rx status - frame type=%d, csum = %d, ext stat %08x\n"

	.comm	_RXDESC_ERROR_SUMMARY,4,2       ## @RXDESC_ERROR_SUMMARY
	.comm	_RXDESC_DESCRIPTOR_ERR,4,2      ## @RXDESC_DESCRIPTOR_ERR
	.comm	_RXDESC_OVERFLOW_ERR,4,2        ## @RXDESC_OVERFLOW_ERR
	.comm	_RXDESC_GIANT_FRAME,4,2         ## @RXDESC_GIANT_FRAME
	.comm	_RXDESC_LENGTH_ERR,4,2          ## @RXDESC_LENGTH_ERR
	.comm	_RXDESC_CRC_ERR,4,2             ## @RXDESC_CRC_ERR
	.comm	_RXDESC_IP_HEADER_ERR,4,2       ## @RXDESC_IP_HEADER_ERR
	.comm	_RXDESC_IP_PAYLOAD_ERR,4,2      ## @RXDESC_IP_PAYLOAD_ERR
L_.str.2:                               ## @.str.2
	.asciz	"IP checksum error - stat %08x\n"

	.no_dead_strip	_desc_get_rx_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_rx_status
_desc_get_rx_status:                    ; @desc_get_rx_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w0, [x1, #4]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [x21]
	bl	_le32_to_cpu
Lloh3:
	adrp	x8, _RXDESC_DA_FILTER_FAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RXDESC_DA_FILTER_FAIL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.1:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_2:
	mov	w20, #-1
LBB0_3:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_4:
Lloh8:
	adrp	x8, _RXDESC_FIRST_SEG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RXDESC_FIRST_SEG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.5:
Lloh11:
	adrp	x8, _RXDESC_LAST_SEG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RXDESC_LAST_SEG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.6:
	mov	x21, x0
Lloh14:
	adrp	x8, _RXDESC_FRAME_TYPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RXDESC_FRAME_TYPE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ands	w8, w8, w22
	b.eq	LBB0_9
; %bb.7:
Lloh17:
	adrp	x9, _RXDESC_EXT_STATUS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RXDESC_EXT_STATUS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w22
	b.eq	LBB0_9
; %bb.8:
Lloh20:
	adrp	x9, _RXDESC_IP_PAYLOAD_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RXDESC_IP_PAYLOAD_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _CHECKSUM_NONE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	tst	w9, w21
	csel	w20, w10, w20, eq
LBB0_9:
	ldr	w0, [x19]
	cmp	w8, #0
	cset	w8, ne
	stp	x20, x21, [sp, #8]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_dbg
Lloh28:
	adrp	x8, _RXDESC_ERROR_SUMMARY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RXDESC_ERROR_SUMMARY@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.10:
Lloh31:
	adrp	x8, _RXDESC_DESCRIPTOR_ERR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RXDESC_DESCRIPTOR_ERR@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _RXDESC_OVERFLOW_ERR@GOTPAGE
Lloh35:
	ldr	x9, [x9, _RXDESC_OVERFLOW_ERR@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
Lloh37:
	adrp	x10, _RXDESC_GIANT_FRAME@GOTPAGE
Lloh38:
	ldr	x10, [x10, _RXDESC_GIANT_FRAME@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh39:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh40:
	adrp	x9, _RXDESC_LENGTH_ERR@GOTPAGE
Lloh41:
	ldr	x9, [x9, _RXDESC_LENGTH_ERR@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh43:
	adrp	x9, _RXDESC_CRC_ERR@GOTPAGE
Lloh44:
	ldr	x9, [x9, _RXDESC_CRC_ERR@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w22
	b.ne	LBB0_2
; %bb.11:
Lloh46:
	adrp	x8, _RXDESC_EXT_STATUS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _RXDESC_EXT_STATUS@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.12:
Lloh49:
	adrp	x8, _RXDESC_IP_HEADER_ERR@GOTPAGE
Lloh50:
	ldr	x8, [x8, _RXDESC_IP_HEADER_ERR@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_14
; %bb.13:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_14:
Lloh52:
	adrp	x8, _RXDESC_IP_PAYLOAD_ERR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _RXDESC_IP_PAYLOAD_ERR@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_16
; %bb.15:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_16:
	ldr	w0, [x19]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh55:
	adrp	x1, l_.str.2@PAGE
Lloh56:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_dbg
Lloh57:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh59:
	ldr	w20, [x8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.comm	_RXDESC_DA_FILTER_FAIL,4,2      ; @RXDESC_DA_FILTER_FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XGMAC RX : Dest Address filter fail\n"

	.comm	_RXDESC_FIRST_SEG,4,2           ; @RXDESC_FIRST_SEG
	.comm	_RXDESC_LAST_SEG,4,2            ; @RXDESC_LAST_SEG
	.comm	_RXDESC_FRAME_TYPE,4,2          ; @RXDESC_FRAME_TYPE
	.comm	_RXDESC_EXT_STATUS,4,2          ; @RXDESC_EXT_STATUS
	.comm	_RXDESC_IP_PAYLOAD_MASK,4,2     ; @RXDESC_IP_PAYLOAD_MASK
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
l_.str.1:                               ; @.str.1
	.asciz	"rx status - frame type=%d, csum = %d, ext stat %08x\n"

	.comm	_RXDESC_ERROR_SUMMARY,4,2       ; @RXDESC_ERROR_SUMMARY
	.comm	_RXDESC_DESCRIPTOR_ERR,4,2      ; @RXDESC_DESCRIPTOR_ERR
	.comm	_RXDESC_OVERFLOW_ERR,4,2        ; @RXDESC_OVERFLOW_ERR
	.comm	_RXDESC_GIANT_FRAME,4,2         ; @RXDESC_GIANT_FRAME
	.comm	_RXDESC_LENGTH_ERR,4,2          ; @RXDESC_LENGTH_ERR
	.comm	_RXDESC_CRC_ERR,4,2             ; @RXDESC_CRC_ERR
	.comm	_RXDESC_IP_HEADER_ERR,4,2       ; @RXDESC_IP_HEADER_ERR
	.comm	_RXDESC_IP_PAYLOAD_ERR,4,2      ; @RXDESC_IP_PAYLOAD_ERR
l_.str.2:                               ; @.str.2
	.asciz	"IP checksum error - stat %08x\n"

	.no_dead_strip	_desc_get_rx_status
.subsections_via_symbols
