	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_credit_pool_get_entry
_bnx2x_credit_pool_get_entry:           ## @bnx2x_credit_pool_get_entry
	.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
	movl	$-1, (%rsi)
	movq	_BNX2X_POOL_VEC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	movq	%rdi, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	_BIT_VEC64_ELEM_SZ@GOTPCREL(%rip), %r12
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_BNX2X_POOL_VEC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	8(%r15), %rdi
	cmpl	$0, (%rdi,%r13,4)
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	imull	%r13d, %ebx
	movl	%ebx, %esi
	callq	_BIT_VEC64_TEST_BIT
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	(%r12), %r14d
	jge	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	incl	%ebx
	movq	8(%r15), %rdi
	movl	%ebx, %esi
	callq	_BIT_VEC64_TEST_BIT
	incl	%r14d
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	movq	8(%r15), %rdi
	movl	%ebx, %esi
	callq	_BIT_VEC64_CLEAR_BIT
	addl	(%r15), %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movl	$1, %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_POOL_VEC_SIZE,4,2        ## @BNX2X_POOL_VEC_SIZE
	.comm	_BIT_VEC64_ELEM_SZ,4,2          ## @BIT_VEC64_ELEM_SZ
	.no_dead_strip	_bnx2x_credit_pool_get_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_credit_pool_get_entry
_bnx2x_credit_pool_get_entry:           ; @bnx2x_credit_pool_get_entry
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	w8, #-1
	str	w8, [x1]
Lloh0:
	adrp	x22, _BNX2X_POOL_VEC_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BNX2X_POOL_VEC_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x23, #0
Lloh2:
	adrp	x24, _BIT_VEC64_ELEM_SZ@GOTPAGE
Lloh3:
	ldr	x24, [x24, _BIT_VEC64_ELEM_SZ@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x0, [x20, #8]
	ldr	w9, [x0, x23, lsl #2]
	cbz	w9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [x24]
	cmp	w25, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mul	w21, w25, w23
	mov	x1, x21
	bl	_BIT_VEC64_TEST_BIT
	cbnz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	mul	w21, w25, w23
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w26, w8, #1
	ldr	w9, [x24]
	cmp	w26, w9
	b.ge	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w8, w21, w8
	add	w1, w8, #1
	ldr	x0, [x20, #8]
	bl	_BIT_VEC64_TEST_BIT
	mov	x8, x26
	cbz	x0, LBB0_8
; %bb.10:
	madd	w21, w25, w23, w26
LBB0_11:
	ldr	x0, [x20, #8]
	mov	x1, x21
	bl	_BIT_VEC64_CLEAR_BIT
	ldr	w8, [x20]
	add	w8, w8, w21
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_POOL_VEC_SIZE,4,2        ; @BNX2X_POOL_VEC_SIZE
	.comm	_BIT_VEC64_ELEM_SZ,4,2          ; @BIT_VEC64_ELEM_SZ
	.no_dead_strip	_bnx2x_credit_pool_get_entry
.subsections_via_symbols
