	.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, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, -80(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	16(%rbp), %ebx
	movzwl	%bx, %r13d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdx
	callq	_bnx2_alloc_rx_skb
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	sarl	$16, %ebx
	movslq	%ebx, %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_bnx2_reuse_rx_skb
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_16
## %bb.2:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	subl	%eax, %edi
	addl	$4, %edi
	callq	_PAGE_ALIGN
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_bnx2_reuse_rx_skb_pages
	jmp	LBB0_16
LBB0_3:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_BNX2_RX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_skb_reserve
	movq	(%r14), %rdi
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	8(%r14), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_dma_unmap_single
	movl	-80(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.5:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %r14
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	subl	%ebx, %r12d
	addl	$4, %r12d
	movl	%r12d, %edi
	callq	_PAGE_ALIGN
	movl	%eax, %r13d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r13d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_skb_put
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.6:
	leal	-1(%r13), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movl	%r12d, %edi
	callq	_min
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$5, %eax
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leaq	(%r12,%r14,8), %rdi
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_unmap_addr
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	leal	-4(%rbx), %r13d
	cmpl	%r15d, -84(%rbp)                ## 4-byte Folded Reload
	cmovnel	%ebx, %r13d
	movq	(%r12,%r14,8), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	callq	_skb_fill_page_desc
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	$0, (%r12,%r14,8)
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_BNX2_RX_PG_RING_IDX
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_bnx2_alloc_rx_page
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	callq	_dma_unmap_page
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	%r13d, 8(%rcx)
	movl	(%rbx), %eax
	addl	%eax, 12(%rcx)
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	subl	%r13d, %r12d
	addl	%r13d, (%rcx)
	movq	%r14, %rdi
	callq	_BNX2_NEXT_RX_BD
	movq	%rax, %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BNX2_NEXT_RX_BD
	movq	%rax, %rdi
	callq	_BNX2_RX_PG_RING_IDX
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	incl	%r15d
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	cmpl	%r15d, %r13d
	jne	LBB0_7
LBB0_14:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, 8(%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_15
LBB0_4:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_skb_put
LBB0_15:
	xorl	%r12d, %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %r14d
	subl	%ebx, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsi)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rsi)
	subl	%r15d, %r13d
	xorl	%r12d, %r12d
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	xorl	%edx, %edx
	movl	%r13d, %ecx
	callq	_bnx2_reuse_rx_skb_pages
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	subl	%r14d, (%rbx)
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movq	(%rax), %rax
	decl	%r15d
	subl	%r14d, (%rax,%r15,4)
	subl	%r14d, 8(%rbx)
	jmp	LBB0_16
LBB0_12:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsi)
	movq	%r14, 8(%rsi)
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	subl	%r15d, %ecx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_bnx2_reuse_rx_skb_pages
	jmp	LBB0_16
LBB0_9:
	subl	%r14d, 4(%rbx)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_BNX2_RX_OFFSET,4,2             ## @BNX2_RX_OFFSET
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.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	x22, x6
	mov	x20, x5
	mov	x25, x4
	mov	x24, x3
	mov	x19, x2
	mov	x26, x0
	and	w23, 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, x23
	bl	_bnx2_alloc_rx_skb
	mov	x27, x0
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	sbfx	x3, x22, #16, #16
	mov	x0, x26
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x19
	mov	x4, x23
	bl	_bnx2_reuse_rx_skb
	cbz	w25, LBB0_15
; %bb.2:
	sub	w8, w24, w25
	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, x26
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, #0
	bl	_bnx2_reuse_rx_skb_pages
	b	LBB0_15
LBB0_3:
Lloh6:
	adrp	x8, _BNX2_RX_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNX2_RX_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skb_reserve
	ldr	x0, [x26]
	ldr	w2, [x26, #8]
Lloh9:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_dma_unmap_single
	cbz	w25, LBB0_10
; %bb.4:
	mov	x21, x26
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldp	x28, x23, [x8]
	sub	w8, w24, w25
	add	w22, w8, #4
	mov	x0, x22
	bl	_PAGE_ALIGN
Lloh12:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	asr	w26, w0, w8
	mov	x0, x19
	mov	x1, x25
	bl	_skb_put
	cbz	w26, LBB0_9
; %bb.5:
	mov	w25, #0
Lloh15:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh16:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x27]
	mov	x0, x22
	bl	_min
	mov	x27, x0
	cmp	w0, #5
	cset	w0, lo
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x9, #16]
	str	x23, [sp, #16]                  ; 8-byte Folded Spill
	mov	x23, x9
	add	x21, x8, x28, lsl #3
Lloh17:
	adrp	x8, _mapping@GOTPAGE
Lloh18:
	ldr	x8, [x8, _mapping@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_pci_unmap_addr
	mov	x20, x0
	sub	w8, w27, #4
	cmp	w26, #1
	mov	x24, x28
	csel	w28, w8, w27, eq
	ldr	x2, [x21]
	mov	x0, x19
	mov	x1, x25
	mov	w3, #0
	mov	x4, x28
	bl	_skb_fill_page_desc
	str	xzr, [x21]
	mov	x27, x23
	ldp	x21, x23, [sp, #8]              ; 16-byte Folded Reload
	mov	x0, x23
	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, x21
	mov	x1, x27
	bl	_bnx2_alloc_rx_page
	mov	x27, x0
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x21]
Lloh23:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh24:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x2, [x27]
Lloh25:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_dma_unmap_page
	sub	w22, w22, w28
	ldp	w8, w9, [x19, #8]
	add	w8, w8, w28
	ldr	w10, [x27]
	add	w9, w9, w10
	stp	w8, w9, [x19, #8]
	ldr	w8, [x19]
	add	w8, w8, w28
	str	w8, [x19]
	mov	x0, x23
	bl	_BNX2_NEXT_RX_BD
	mov	x23, x0
	mov	x0, x24
	bl	_BNX2_NEXT_RX_BD
	bl	_BNX2_RX_PG_RING_IDX
	mov	x28, x0
	add	w25, w25, #1
	subs	w26, w26, #1
	b.ne	LBB0_6
LBB0_9:
	mov	w27, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	stp	x28, x23, [x8]
	b	LBB0_15
LBB0_10:
	mov	x0, x19
	mov	x1, x24
	bl	_skb_put
	mov	w27, #0
	b	LBB0_15
LBB0_11:
	mov	w8, #4
	sub	w20, w8, w27
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	stp	x28, x23, [x1]
	mov	x0, x21
	mov	x2, #0
	mov	x3, x26
	bl	_bnx2_reuse_rx_skb_pages
	ldr	w8, [x19]
	sub	w8, w8, w20
	str	w8, [x19]
	cbz	w25, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_skb_shinfo
	mov	w27, #0
	ldr	x8, [x0]
	sub	w9, w25, #1
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	sub	w10, w10, w20
	str	w10, [x8, x9]
	ldr	w8, [x19, #8]
	sub	w8, w8, w20
	str	w8, [x19, #8]
	b	LBB0_15
LBB0_13:
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	stp	x24, x23, [x1]
	mov	x0, x21
	mov	x2, x19
	mov	x3, x26
	bl	_bnx2_reuse_rx_skb_pages
	b	LBB0_15
LBB0_14:
	mov	w27, #0
	ldr	w8, [x19, #4]
	sub	w8, w8, w20
	str	w8, [x19, #4]
LBB0_15:
	mov	x0, x27
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_BNX2_RX_OFFSET,4,2             ; @BNX2_RX_OFFSET
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_mapping,4,2                    ; @mapping
	.no_dead_strip	_bnx2_rx_skb
.subsections_via_symbols
