	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_alloc_rx_skb
_bnx2_alloc_rx_skb:                     ## @bnx2_alloc_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	8(%rsi), %r12
	movq	16(%rsi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_BNX2_RX_RING
	movq	(%r12,%rax,8), %r12
	movq	%r15, %rdi
	callq	_BNX2_RX_IDX
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	16(%r13), %esi
	movl	20(%r13), %edi
	movl	%r14d, %edx
	callq	___netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_BNX2_RX_ALIGN@GOTPCREL(%rip), %r12
	movslq	(%r12), %rbx
	decq	%rbx
	andq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r12), %esi
	subl	%ebx, %esi
	movq	%r14, %rdi
	callq	_skb_reserve
LBB0_5:
	movq	8(%r13), %rdi
	movq	(%r14), %rsi
	movl	(%r13), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movq	%rax, %r12
	movq	8(%r13), %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	shlq	$4, %r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rdi
	movq	%r14, 8(%rax,%r15)
	movq	(%r14), %rax
	movq	%rax, (%rdi)
	movq	%r12, %rsi
	movq	%r12, %rdx
	callq	_pci_unmap_addr_set
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, 4(%rax,%rcx,8)
	movl	(%r13), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BNX2_RX_ALIGN,4,2              ## @BNX2_RX_ALIGN
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_bnx2_alloc_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_alloc_rx_skb
_bnx2_alloc_rx_skb:                     ; @bnx2_alloc_rx_skb
	.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	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldp	x22, x26, [x1, #8]
	mov	x0, x2
	bl	_BNX2_RX_RING
	ldr	x25, [x22, x0, lsl #3]
	mov	x0, x21
	bl	_BNX2_RX_IDX
	mov	x22, x0
	ldp	w1, w0, [x20, #16]
	mov	x2, x23
	bl	___netdev_alloc_skb
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x27, _BNX2_RX_ALIGN@GOTPAGE
Lloh1:
	ldr	x27, [x27, _BNX2_RX_ALIGN@GOTPAGEOFF]
	ldrsw	x9, [x27]
	sub	x9, x9, #1
	and	x24, x8, x9
	mov	x0, x24
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x27]
	sub	w1, w8, w24
	mov	x0, x23
	bl	_skb_reserve
LBB0_3:
	ldr	x0, [x20, #8]
	ldr	x1, [x23]
	ldr	w2, [x20]
Lloh2:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	bl	_dma_map_single
	mov	x24, x0
	ldr	x0, [x20, #8]
	mov	x1, x24
	bl	_dma_mapping_error
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x23
	bl	_dev_kfree_skb
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	add	x0, x26, x21, lsl #4
	add	x8, x26, x21, lsl #4
	str	x23, [x8, #8]
	ldr	x8, [x23]
	str	x8, [x0]
	mov	x1, x24
	mov	x2, x24
	bl	_pci_unmap_addr_set
	mov	w0, #0
	add	x8, x25, x22, lsl #3
	str	w24, [x8, #4]
	ldr	w8, [x20]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BNX2_RX_ALIGN,4,2              ; @BNX2_RX_ALIGN
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_bnx2_alloc_rx_skb
.subsections_via_symbols
