	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_alloc_mem_bp             ## -- Begin function bnx2x_alloc_mem_bp
	.p2align	4, 0x90
_bnx2x_alloc_mem_bp:                    ## @bnx2x_alloc_mem_bp
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	callq	_IS_PF
	cmpq	$1, %rax
	sbbl	$-1, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_BNX2X_DEV_INFO
	movq	%r15, %rdi
	callq	_BNX2X_MAX_RSS_COUNT
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_CNIC_SUPPORT
	addl	%eax, %ebx
	movl	%ebx, 4(%r15)
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_BNX2X_DEV_INFO
	movl	4(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	movl	4(%r15), %edi
	testl	%edi, %edi
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	movq	_ETH_MAX_AGGREGATION_QUEUES_E1H_E2@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	(%r12), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, (%r13,%rbx,8)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	4(%r15), %rdi
	cmpq	%rdi, %rbx
	jl	LBB0_4
LBB0_6:
	movq	%r13, 48(%r15)
	movl	(%r12), %edx
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movl	4(%r15), %edi
	movl	(%r12), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%r15, %rdi
	callq	_BNX2X_MAX_RSS_COUNT
	movl	%eax, %ebx
	movq	_BNX2X_MULTI_TX_COS@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movq	%r15, %rdi
	callq	_CNIC_SUPPORT
	addl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	callq	_BNX2X_DEV_INFO
	movl	(%r12), %edx
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	movl	(%r12), %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$4, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.10:
	movq	%rax, 16(%r15)
	movl	(%r12), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:
	movq	%rax, 8(%r15)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_5:
	movq	%r15, %rdi
	callq	_bnx2x_free_mem_bp
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"msix_table_size %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"fp_array_size %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ETH_MAX_AGGREGATION_QUEUES_E1H_E2,4,2 ## @ETH_MAX_AGGREGATION_QUEUES_E1H_E2
	.comm	_BNX2X_MULTI_TX_COS,4,2         ## @BNX2X_MULTI_TX_COS
L_.str.2:                               ## @.str.2
	.asciz	"txq_array_size %d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_alloc_mem_bp             ; -- Begin function bnx2x_alloc_mem_bp
	.p2align	2
_bnx2x_alloc_mem_bp:                    ; @bnx2x_alloc_mem_bp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w20, [x0]
	bl	_IS_PF
	cmp	x0, #0
	cinc	w20, w20, ne
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_BNX2X_DEV_INFO
	mov	x0, x19
	bl	_BNX2X_MAX_RSS_COUNT
	mov	x21, x0
	mov	x0, x19
	bl	_CNIC_SUPPORT
	add	w1, w0, w21
	str	w1, [x19, #4]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BNX2X_DEV_INFO
	ldr	w0, [x19, #4]
Lloh4:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19, #4]
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x23, #0
Lloh6:
	adrp	x24, _ETH_MAX_AGGREGATION_QUEUES_E1H_E2@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ETH_MAX_AGGREGATION_QUEUES_E1H_E2@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	w2, [x22]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x21, x23, lsl #3]
	cbz	x0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x0, [x19, #4]
	cmp	x23, x0
	b.lt	LBB0_3
LBB0_5:
	str	x21, [x19, #48]
	ldr	w2, [x22]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_11
; %bb.6:
	ldr	w0, [x19, #4]
	ldr	w2, [x22]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_BNX2X_MAX_RSS_COUNT
	mov	x21, x0
Lloh8:
	adrp	x8, _BNX2X_MULTI_TX_COS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BNX2X_MULTI_TX_COS@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_CNIC_SUPPORT
	madd	w21, w23, w21, w0
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_BNX2X_DEV_INFO
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_11
; %bb.8:
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #4
	bl	_kcalloc
	cbz	x0, LBB0_11
; %bb.9:
	str	x0, [x19, #16]
	ldr	w1, [x22]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.10:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_bnx2x_free_mem_bp
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"msix_table_size %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"fp_array_size %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ETH_MAX_AGGREGATION_QUEUES_E1H_E2,4,2 ; @ETH_MAX_AGGREGATION_QUEUES_E1H_E2
	.comm	_BNX2X_MULTI_TX_COS,4,2         ; @BNX2X_MULTI_TX_COS
l_.str.2:                               ; @.str.2
	.asciz	"txq_array_size %d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
