	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nixge_recv
_nixge_recv:                            ## @nixge_recv
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r8
	movq	(%rax), %rdx
	movq	8(%rax), %rcx
	movq	_XAXIDMA_BD_STS_COMPLETE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movl	$0, %eax
	testl	%esi, (%rcx,%rdx,8)
	je	LBB0_1
## %bb.2:
	movl	$0, %edi
	testl	%r15d, %r15d
	jle	LBB0_14
## %bb.3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rdx,8), %rbx
	movq	%r8, %rax
	addq	$16, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%edi, %edi
	movl	$1, %eax
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r12
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	24(%r8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_sw_id_offset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nixge_hw_dma_bd_get_addr
	movq	%rbx, %rdi
	movq	%rax, %r14
	movq	_XAXIDMA_BD_STS_ACTUAL_LEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	(%rbx), %r13d
	movq	_NIXGE_MAX_JUMBO_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	cmovgel	%eax, %r13d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	8(%r15), %ebx
	movq	_phys@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	callq	_nixge_hw_dma_bd_get_addr
	movq	_NIXGE_MAX_JUMBO_FRAME_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r12), %ecx
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_dma_unmap_single
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_eth_type_trans
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_skb_checksum_none_assert
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	movq	_NIXGE_MAX_JUMBO_FRAME_SIZE@GOTPCREL(%rip), %rbx
	callq	_napi_gro_receive
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_netdev_alloc_skb_ip_align
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rcx
	movq	%rax, %r12
	movl	8(%r15), %edi
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movl	(%rcx), %ecx
	callq	_dma_map_single
	movq	%rax, %r14
	movl	8(%r15), %edi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_nixge_hw_dma_bd_set_phys
	movq	_NIXGE_MAX_JUMBO_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_nixge_hw_dma_bd_set_offset
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movq	(%r8), %rax
	incq	%rax
	movq	_RX_BD_NUM@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r12
	addl	%r13d, %edi
	movq	%rdx, (%r8)
	movq	8(%r8), %rax
	movq	_XAXIDMA_BD_STS_COMPLETE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leal	1(%rsi), %ecx
	testl	%ebx, (%rax,%rdx,8)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rax,%rdx,8), %rbx
	cmpl	%r15d, %esi
	movl	%ecx, %eax
	jl	LBB0_4
LBB0_13:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,8), %rax
	decl	%ecx
	movl	%ecx, %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_1:
	xorl	%edi, %edi
LBB0_14:
	addl	%r14d, (%rbx)
	addl	%edi, 4(%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_XAXIDMA_RX_TDESC_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r8, %rdi
	movq	%rax, %rdx
	callq	_nixge_dma_write_desc_reg
	jmp	LBB0_16
LBB0_5:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_16:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XAXIDMA_BD_STS_COMPLETE_MASK,4,2 ## @XAXIDMA_BD_STS_COMPLETE_MASK
	.comm	_sw_id_offset,4,2               ## @sw_id_offset
	.comm	_XAXIDMA_BD_STS_ACTUAL_LEN_MASK,4,2 ## @XAXIDMA_BD_STS_ACTUAL_LEN_MASK
	.comm	_NIXGE_MAX_JUMBO_FRAME_SIZE,4,2 ## @NIXGE_MAX_JUMBO_FRAME_SIZE
	.comm	_phys,4,2                       ## @phys
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to map ...\n"

	.comm	_RX_BD_NUM,4,2                  ## @RX_BD_NUM
	.comm	_XAXIDMA_RX_TDESC_OFFSET,4,2    ## @XAXIDMA_RX_TDESC_OFFSET
	.no_dead_strip	_nixge_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nixge_recv
_nixge_recv:                            ; @nixge_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldp	x8, x9, [x0]
	add	x23, x9, x8, lsl #3
	ldr	w9, [x23]
Lloh0:
	adrp	x10, _XAXIDMA_BD_STS_COMPLETE_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _XAXIDMA_BD_STS_COMPLETE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w9, w10, w9
	cmp	w9, #0
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	ccmp	w21, #1, #8, ne
	b.ge	LBB0_2
; %bb.1:
	mov	x2, #0
	movi.2d	v1, #0000000000000000
	b	LBB0_8
LBB0_2:
	movi.2d	v0, #0000000000000000
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
	add	x9, x19, #16
	str	x9, [sp]                        ; 8-byte Folded Spill
Lloh3:
	adrp	x24, _NIXGE_MAX_JUMBO_FRAME_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _NIXGE_MAX_JUMBO_FRAME_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x21, _DMA_FROM_DEVICE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	q0, [sp, #16]                   ; 16-byte Folded Reload
	fmov	w27, s0
	mov	x0, x23
	mov	x1, x26
	bl	_nixge_hw_dma_bd_set_phys
	ldr	w8, [x24]
	stp	wzr, w8, [x23]
	mov	x0, x23
	mov	x1, x25
	bl	_nixge_hw_dma_bd_set_offset
	ldp	x8, x9, [x19]
	add	x8, x8, #1
Lloh7:
	adrp	x10, _RX_BD_NUM@GOTPAGE
Lloh8:
	ldr	x10, [x10, _RX_BD_NUM@GOTPAGEOFF]
Lloh9:
	ldrsw	x10, [x10]
	udiv	x11, x8, x10
	msub	x8, x11, x10, x8
	str	x8, [x19]
	add	x23, x9, x8, lsl #3
	ldr	w9, [x23]
Lloh10:
	adrp	x10, _XAXIDMA_BD_STS_COMPLETE_MASK@GOTPAGE
Lloh11:
	ldr	x10, [x10, _XAXIDMA_BD_STS_COMPLETE_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	and	w9, w10, w9
	cmp	w9, #0
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	ccmp	w27, w9, #0, ne
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, x8
	ldr	x22, [x19, #24]
Lloh13:
	adrp	x8, _sw_id_offset@GOTPAGE
Lloh14:
	ldr	x8, [x8, _sw_id_offset@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_nixge_hw_dma_bd_get_addr
	mov	x25, x0
	ldr	w8, [x23]
Lloh16:
	adrp	x9, _XAXIDMA_BD_STS_ACTUAL_LEN_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _XAXIDMA_BD_STS_ACTUAL_LEN_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	and	w8, w9, w8
	ldr	w9, [x24]
	cmp	w8, w9
	csel	w26, w8, w9, lt
	ldr	w27, [x20, #8]
Lloh19:
	adrp	x8, _phys@GOTPAGE
Lloh20:
	ldr	x8, [x8, _phys@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_nixge_hw_dma_bd_get_addr
	mov	x1, x0
	ldr	w2, [x24]
	ldr	w3, [x21]
	mov	x0, x27
	bl	_dma_unmap_single
	mov	x0, x25
	mov	x1, x26
	bl	_skb_put
	mov	x0, x25
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x25, #8]
	mov	x0, x25
	bl	_skb_checksum_none_assert
Lloh22:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x25, #4]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x25
	bl	_napi_gro_receive
	movi.2s	v0, #1
	mov.s	v0[1], w26
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	add.2s	v1, v0, v1
	str	q1, [sp, #16]                   ; 16-byte Folded Spill
	ldr	w1, [x24]
	mov	x0, x20
	bl	_netdev_alloc_skb_ip_align
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	ldr	w0, [x20, #8]
	ldr	w1, [x25]
	ldr	w2, [x24]
	ldr	w3, [x21]
	bl	_dma_map_single
	mov	x26, x0
	ldr	w0, [x20, #8]
	mov	x1, x26
	bl	_dma_mapping_error
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_3
LBB0_7:
	add	x2, x22, x28, lsl #3
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
LBB0_8:
	ldr	d0, [x20]
	add.2s	v0, v0, v1
	str	d0, [x20]
	fmov	w20, s1
	cbz	x2, LBB0_11
; %bb.9:
Lloh27:
	adrp	x8, _XAXIDMA_RX_TDESC_OFFSET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _XAXIDMA_RX_TDESC_OFFSET@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nixge_dma_write_desc_reg
	b	LBB0_11
LBB0_10:
	ldr	q0, [sp, #16]                   ; 16-byte Folded Reload
	fmov	w20, s0
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_XAXIDMA_BD_STS_COMPLETE_MASK,4,2 ; @XAXIDMA_BD_STS_COMPLETE_MASK
	.comm	_sw_id_offset,4,2               ; @sw_id_offset
	.comm	_XAXIDMA_BD_STS_ACTUAL_LEN_MASK,4,2 ; @XAXIDMA_BD_STS_ACTUAL_LEN_MASK
	.comm	_NIXGE_MAX_JUMBO_FRAME_SIZE,4,2 ; @NIXGE_MAX_JUMBO_FRAME_SIZE
	.comm	_phys,4,2                       ; @phys
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to map ...\n"

	.comm	_RX_BD_NUM,4,2                  ; @RX_BD_NUM
	.comm	_XAXIDMA_RX_TDESC_OFFSET,4,2    ; @XAXIDMA_RX_TDESC_OFFSET
	.no_dead_strip	_nixge_recv
.subsections_via_symbols
