	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nb8800_receive
_nb8800_receive:                        ## @nb8800_receive
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	8(%rax), %rdx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %r12
	movl	%r14d, %ebx
	movq	%rbx, %rcx
	shlq	$4, %rcx
	movq	8(%rdx,%rcx), %rdi
	movslq	(%rdx,%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_page_address
	movq	%rax, %r15
	movq	_RX_COPYBREAK@GOTPCREL(%rip), %rcx
	movq	_RX_COPYHDR@GOTPCREL(%rip), %rax
	movl	%r13d, %esi
	cmpl	%r13d, (%rcx)
	jae	LBB0_2
## %bb.1:
	movl	(%rax), %esi
LBB0_2:
	movl	(%r12,%rbx,4), %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_napi_alloc_skb
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r12
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	movq	_RX_COPYBREAK@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jae	LBB0_4
## %bb.5:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_nb8800_alloc_rx
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_err
	incl	4(%rbx)
	movq	%r12, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_kfree_skb                  ## TAILCALL
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_netdev_err
	incl	4(%rbx)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_dma_sync_single_for_cpu
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_skb_put_data
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_dma_sync_single_for_device
	jmp	LBB0_7
LBB0_6:
	movq	_RX_BUF_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_dma_unmap_page
	movq	_RX_COPYHDR@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_skb_put_data
	movq	%r12, %rdi
	callq	_skb_shinfo
	movl	(%rax), %esi
	movl	(%r15), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, %ecx
	subl	%eax, %r13d
	movl	(%r14), %r9d
	movq	%r12, %rdi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r13d, %r8d
	callq	_skb_add_rx_frag
LBB0_7:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r12)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_napi_gro_receive               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_COPYBREAK,4,2               ## @RX_COPYBREAK
	.comm	_RX_COPYHDR,4,2                 ## @RX_COPYHDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx skb allocation failed\n"

	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"rx buffer allocation failed\n"

	.comm	_RX_BUF_SIZE,4,2                ## @RX_BUF_SIZE
	.no_dead_strip	_nb8800_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nb8800_receive
_nb8800_receive:                        ; @nb8800_receive
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x2
	mov	x26, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldp	x8, x21, [x0, #8]
	add	x8, x8, w26, uxtw #4
	ldr	x23, [x8, #8]
	ldrsw	x27, [x8]
	mov	x0, x23
	bl	_page_address
	mov	x25, x0
	ldr	w24, [x21, w26, uxtw #2]
Lloh0:
	adrp	x28, _RX_COPYBREAK@GOTPAGE
Lloh1:
	ldr	x28, [x28, _RX_COPYBREAK@GOTPAGEOFF]
	ldr	w8, [x28]
Lloh2:
	adrp	x9, _RX_COPYHDR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RX_COPYHDR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w22
	csel	w1, w9, w22, lo
	mov	x0, x20
	bl	_napi_alloc_skb
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	add	x25, x25, x27
	ldr	w8, [x28]
	cmp	w8, w22
	b.hs	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x26
	mov	w2, #1
	bl	_nb8800_alloc_rx
	cbz	w0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_dev_kfree_skb
LBB0_4:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh9:
	adrp	x23, _DMA_FROM_DEVICE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	bl	_dma_sync_single_for_cpu
	mov	x0, x21
	mov	x1, x25
	mov	x2, x22
	bl	_skb_put_data
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	bl	_dma_sync_single_for_device
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x26, _RX_BUF_SIZE@GOTPAGE
Lloh12:
	ldr	x26, [x26, _RX_BUF_SIZE@GOTPAGEOFF]
	ldr	w2, [x26]
Lloh13:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x24
	bl	_dma_unmap_page
Lloh16:
	adrp	x24, _RX_COPYHDR@GOTPAGE
Lloh17:
	ldr	x24, [x24, _RX_COPYHDR@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x21
	mov	x1, x25
	bl	_skb_put_data
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w1, [x0]
	ldr	w8, [x24]
	add	w3, w8, w27
	sub	w4, w22, w8
	ldr	w5, [x26]
	mov	x0, x21
	mov	x2, x23
	bl	_skb_add_rx_frag
LBB0_7:
	mov	x0, x21
	mov	x1, x19
	bl	_eth_type_trans
	str	w0, [x21]
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_napi_gro_receive
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_COPYBREAK,4,2               ; @RX_COPYBREAK
	.comm	_RX_COPYHDR,4,2                 ; @RX_COPYHDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx skb allocation failed\n"

	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"rx buffer allocation failed\n"

	.comm	_RX_BUF_SIZE,4,2                ; @RX_BUF_SIZE
	.no_dead_strip	_nb8800_receive
.subsections_via_symbols
