	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_rx_skb
_bnx2_rx_skb:                           ## @bnx2_rx_skb
	.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	%r9d, -64(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r13d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rdi, %r14
	movl	16(%rbp), %ebx
	movzwl	%bx, %r12d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	callq	_bnx2_alloc_rx_data
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	sarl	$16, %ebx
	movslq	%ebx, %rcx
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r12, %r8
	callq	_bnx2_reuse_rx_data
LBB0_2:
	testl	%r13d, %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_3
## %bb.4:
	subl	%r13d, %edi
	addl	$4, %edi
	callq	_PAGE_ALIGN
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_bnx2_reuse_rx_skb_pages
	jmp	LBB0_19
LBB0_5:
	movq	(%r14), %rdi
	movl	8(%r14), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_dma_unmap_single
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_build_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_get_l2_fhdr
	subq	%r15, %rax
	sarq	$2, %rax
	movq	_BNX2_RX_OFFSET@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_skb_reserve
	testl	%r13d, %r13d
	movq	%r12, %r15
	je	LBB0_8
## %bb.9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, %ecx
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	movq	(%rax), %r13
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	subl	%ecx, %ebx
	addl	$4, %ebx
	movl	%ebx, %edi
	callq	_PAGE_ALIGN
	movl	%eax, %r12d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	movq	%r15, %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_skb_put
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.10:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	leal	-1(%r12), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %esi
	movl	%ebx, %edi
	callq	_min
	movl	%eax, %r15d
	xorl	%edi, %edi
	cmpl	$5, %eax
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rbx
	leaq	(%rbx,%r13,8), %rdi
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dma_unmap_addr
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	%r12, %r14
	leal	-4(%r15), %r12d
	cmpl	%r14d, -84(%rbp)                ## 4-byte Folded Reload
	cmovnel	%r15d, %r12d
	movq	(%rbx,%r13,8), %rdx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	callq	_skb_fill_page_desc
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	$0, (%rbx,%r13,8)
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_BNX2_RX_PG_RING_IDX
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_bnx2_alloc_rx_page
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rbx), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	callq	_dma_unmap_page
	addl	%r12d, 8(%r15)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 12(%r15)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	subl	%r12d, %ebx
	addl	%r12d, (%r15)
	movq	%r13, %rdi
	callq	_BNX2_NEXT_RX_BD
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_BNX2_NEXT_RX_BD
	movq	%rax, %rdi
	callq	_BNX2_RX_PG_RING_IDX
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	%rax, %r13
	incl	%r14d
	cmpl	%r14d, -80(%rbp)                ## 4-byte Folded Reload
	movq	%r14, %r12
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_11
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	%r13, (%rax)
	jmp	LBB0_19
LBB0_3:
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_6:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_2
LBB0_8:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_skb_put
	jmp	LBB0_19
LBB0_12:
	movl	$4, %ebx
	subl	%r15d, %ebx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, (%rsi)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rsi)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	subl	%r12d, %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_bnx2_reuse_rx_skb_pages
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	subl	%ebx, (%r15)
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.14:
	movq	%r15, %rdi
	callq	_skb_shinfo
	decl	%r12d
	shlq	$2, %r12
	addq	(%rax), %r12
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_skb_frag_size_sub
	subl	%ebx, 8(%r15)
	jmp	LBB0_19
LBB0_16:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsi)
	movq	%r13, 8(%rsi)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	subl	%r14d, %ecx
	movq	%rbx, %rdi
	movq	%r15, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_bnx2_reuse_rx_skb_pages
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_13:
	subl	%ebx, 4(%r15)
LBB0_19:
	movq	%r15, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_BNX2_RX_OFFSET,8,3             ## @BNX2_RX_OFFSET
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_mapping,4,2                    ## @mapping
	.no_dead_strip	_bnx2_rx_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_rx_skb
_bnx2_rx_skb:                           ; @bnx2_rx_skb
	.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	x23, x6
	mov	x21, x5
	mov	x24, x4
	mov	x25, x3
	mov	x22, x2
	mov	x19, x0
	and	w26, w6, #0xffff
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	mov	x2, x26
	bl	_bnx2_alloc_rx_data
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	sbfx	x3, x23, #16, #16
	mov	x0, x19
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x22
	mov	x4, x26
	bl	_bnx2_reuse_rx_data
	cbz	w24, LBB0_13
LBB0_2:
	sub	w8, w25, w24
	add	w0, w8, #4
	bl	_PAGE_ALIGN
Lloh3:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w3, w0, w8
	mov	x0, x19
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, #0
LBB0_3:
	bl	_bnx2_reuse_rx_skb_pages
	mov	x21, #0
	b	LBB0_15
LBB0_4:
	ldr	x0, [x19]
	ldr	w2, [x19, #8]
Lloh6:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x1, x21
	bl	_dma_unmap_single
	mov	x0, x22
	mov	w1, #0
	bl	_build_skb
	cbz	x0, LBB0_12
; %bb.5:
	mov	x21, x0
	mov	x0, x22
	bl	_get_l2_fhdr
	sub	x8, x0, x22
Lloh9:
	adrp	x9, _BNX2_RX_OFFSET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BNX2_RX_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8, asr #2
	mov	x0, x21
	bl	_skb_reserve
	cbz	w24, LBB0_14
; %bb.6:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldp	x28, x22, [x8]
	sub	w8, w25, w24
	add	w20, w8, #4
	mov	x0, x20
	bl	_PAGE_ALIGN
Lloh12:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	asr	w23, w0, w8
	mov	x0, x21
	mov	x1, x24
	bl	_skb_put
	cbz	w23, LBB0_11
; %bb.7:
	mov	w25, #0
Lloh15:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh16:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	bl	_min
	mov	x27, x0
	cmp	w0, #5
	cset	w0, lo
	bl	_unlikely
	cbnz	x0, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x9, #16]
	mov	x26, x23
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	mov	x22, x19
	mov	x23, x9
	add	x19, x8, x28, lsl #3
Lloh17:
	adrp	x8, _mapping@GOTPAGE
Lloh18:
	ldr	x8, [x8, _mapping@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_unmap_addr
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	mov	x28, x0
	sub	w8, w27, #4
	cmp	w26, #1
	csel	w27, w8, w27, eq
	ldr	x2, [x19]
	mov	x0, x21
	mov	x1, x25
	mov	w3, #0
	mov	x4, x27
	bl	_skb_fill_page_desc
	str	xzr, [x19]
	mov	x19, x22
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x22
	bl	_BNX2_RX_PG_RING_IDX
	mov	x2, x0
Lloh20:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_bnx2_alloc_rx_page
	bl	_unlikely
	cbnz	x0, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x19]
	ldr	x2, [x24]
Lloh23:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x1, x28
	bl	_dma_unmap_page
	sub	w20, w20, w27
	ldp	w8, w9, [x21, #8]
	add	w8, w8, w27
	ldr	w10, [x24]
	add	w9, w9, w10
	stp	w8, w9, [x21, #8]
	ldr	w8, [x21]
	add	w8, w8, w27
	str	w8, [x21]
	mov	x0, x22
	bl	_BNX2_NEXT_RX_BD
	mov	x22, x0
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_BNX2_NEXT_RX_BD
	bl	_BNX2_RX_PG_RING_IDX
	mov	x28, x0
	add	w25, w25, #1
	subs	w23, w26, #1
	b.ne	LBB0_8
LBB0_11:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	stp	x28, x22, [x8]
	b	LBB0_15
LBB0_12:
	mov	x0, x22
	bl	_kfree
	cbnz	w24, LBB0_2
LBB0_13:
	mov	x21, #0
	b	LBB0_15
LBB0_14:
	mov	x0, x21
	mov	x1, x25
	bl	_skb_put
LBB0_15:
	mov	x0, x21
	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
LBB0_16:
	mov	w8, #4
	sub	w26, w8, w27
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	stp	x28, x22, [x1]
	mov	x0, x19
	mov	x2, #0
	mov	x3, x23
	bl	_bnx2_reuse_rx_skb_pages
	ldr	w8, [x21]
	sub	w8, w8, w26
	str	w8, [x21]
	cbz	w25, LBB0_19
; %bb.17:
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x8, [x0]
	sub	w9, w25, #1
	add	x0, x8, w9, uxtw #2
	mov	x1, x26
	bl	_skb_frag_size_sub
	ldr	w8, [x21, #8]
	sub	w8, w8, w26
	str	w8, [x21, #8]
	b	LBB0_15
LBB0_18:
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	stp	x8, x22, [x1]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x26
	b	LBB0_3
LBB0_19:
	ldr	w8, [x21, #4]
	sub	w8, w8, w26
	str	w8, [x21, #4]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_BNX2_RX_OFFSET,8,3             ; @BNX2_RX_OFFSET
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_mapping,4,2                    ; @mapping
	.no_dead_strip	_bnx2_rx_skb
.subsections_via_symbols
