	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_pf_q_prep_init
_bnx2x_pf_q_prep_init:                  ## @bnx2x_pf_q_prep_init
	.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	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_IS_FCOE_FP
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	_BNX2X_Q_FLG_HC@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	44(%r12), %rbx
	movq	%rbx, %rsi
	callq	___set_bit
	movl	(%r13), %edi
	leaq	28(%r12), %r13
	movq	%r13, %rsi
	callq	___set_bit
	movq	_BNX2X_Q_FLG_HC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	___set_bit
	movq	_BNX2X_Q_FLG_HC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	___set_bit
	movl	(%r15), %esi
	xorl	%ecx, %ecx
	movl	$0, %eax
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	movl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	idivl	%esi
LBB0_3:
	movl	%eax, 32(%r12)
	movl	4(%r15), %esi
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	movl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	idivl	%esi
	movl	%eax, %ecx
LBB0_5:
	movl	%ecx, 16(%r12)
	movl	20(%r14), %eax
	movl	%eax, 24(%r12)
	movl	%eax, 40(%r12)
	movq	_HC_INDEX_ETH_RX_CQ_CONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	_HC_INDEX_ETH_FIRST_TX_CQ_CONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
LBB0_6:
	movq	(%r14), %rcx
	movq	%rcx, (%r12)
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	_FIRST_TX_COS_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%r12), %rsi
	cmpq	%rsi, %rcx
	jae	LBB0_9
## %bb.7:
	movq	_ILT_PAGE_CIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %eax
	cltd
	idivl	%edi
	movq	8(%r15), %rbx
	cltq
	movslq	%edx, %rdx
	shlq	$2, %rdx
	addq	(%rbx,%rax,8), %rdx
	movq	8(%r12), %rax
	movq	%rdx, (%rax,%rcx,8)
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_Q_FLG_HC,4,2             ## @BNX2X_Q_FLG_HC
	.comm	_BNX2X_Q_FLG_HC_EN,4,2          ## @BNX2X_Q_FLG_HC_EN
	.comm	_HC_INDEX_ETH_RX_CQ_CONS,4,2    ## @HC_INDEX_ETH_RX_CQ_CONS
	.comm	_HC_INDEX_ETH_FIRST_TX_CQ_CONS,4,2 ## @HC_INDEX_ETH_FIRST_TX_CQ_CONS
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fp: %d setting queue params max cos to: %d\n"

	.comm	_FIRST_TX_COS_INDEX,8,3         ## @FIRST_TX_COS_INDEX
	.comm	_ILT_PAGE_CIDS,4,2              ## @ILT_PAGE_CIDS
	.no_dead_strip	_bnx2x_pf_q_prep_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_pf_q_prep_init
_bnx2x_pf_q_prep_init:                  ; @bnx2x_pf_q_prep_init
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_IS_FCOE_FP
	cbnz	w0, LBB0_6
; %bb.1:
	mov	w24, #16960
	movk	w24, #15, lsl #16
Lloh0:
	adrp	x23, _BNX2X_Q_FLG_HC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BNX2X_Q_FLG_HC@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x22, x19, #44
	mov	x1, x22
	bl	___set_bit
	ldr	w0, [x23]
	add	x23, x19, #28
	mov	x1, x23
	bl	___set_bit
Lloh2:
	adrp	x25, _BNX2X_Q_FLG_HC_EN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _BNX2X_Q_FLG_HC_EN@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x22
	bl	___set_bit
	ldr	w0, [x25]
	mov	x1, x23
	bl	___set_bit
	ldr	w8, [x21]
	cbz	w8, LBB0_3
; %bb.2:
	sdiv	w8, w24, w8
LBB0_3:
	str	w8, [x19, #32]
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_5
; %bb.4:
	sdiv	w8, w24, w8
LBB0_5:
	ldr	w9, [x20, #20]
	str	w9, [x19, #24]
Lloh4:
	adrp	x10, _HC_INDEX_ETH_RX_CQ_CONS@GOTPAGE
Lloh5:
	ldr	x10, [x10, _HC_INDEX_ETH_RX_CQ_CONS@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #36]
Lloh7:
	adrp	x9, _HC_INDEX_ETH_FIRST_TX_CQ_CONS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HC_INDEX_ETH_FIRST_TX_CQ_CONS@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #16]
LBB0_6:
	ldr	x3, [x20]
	str	x3, [x19]
Lloh10:
	adrp	x8, _NETIF_MSG_IFUP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NETIF_MSG_IFUP@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w2, [x20, #16]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh15:
	adrp	x8, _FIRST_TX_COS_INDEX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FIRST_TX_COS_INDEX@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.hs	LBB0_9
; %bb.7:
Lloh18:
	adrp	x10, _ILT_PAGE_CIDS@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ILT_PAGE_CIDS@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x20, #8]
	lsl	x12, x8, #3
	ldr	x11, [x11, x12]
	ldr	w11, [x11]
	sdiv	w13, w11, w10
	msub	w11, w13, w10, w11
	ldr	x14, [x21, #8]
	ldr	x13, [x14, w13, sxtw #3]
	add	x11, x13, w11, sxtw #2
	ldr	x13, [x19, #8]
	str	x11, [x13, x12]
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_8
LBB0_9:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_Q_FLG_HC,4,2             ; @BNX2X_Q_FLG_HC
	.comm	_BNX2X_Q_FLG_HC_EN,4,2          ; @BNX2X_Q_FLG_HC_EN
	.comm	_HC_INDEX_ETH_RX_CQ_CONS,4,2    ; @HC_INDEX_ETH_RX_CQ_CONS
	.comm	_HC_INDEX_ETH_FIRST_TX_CQ_CONS,4,2 ; @HC_INDEX_ETH_FIRST_TX_CQ_CONS
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fp: %d setting queue params max cos to: %d\n"

	.comm	_FIRST_TX_COS_INDEX,8,3         ; @FIRST_TX_COS_INDEX
	.comm	_ILT_PAGE_CIDS,4,2              ; @ILT_PAGE_CIDS
	.no_dead_strip	_bnx2x_pf_q_prep_init
.subsections_via_symbols
