	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_q_init
_bnx2x_q_init:                          ## @bnx2x_q_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	40(%rsi), %rbx
	movq	_BNX2X_Q_TYPE_HAS_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %r12
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_BNX2X_Q_FLG_HC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r15), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	24(%r15), %ecx
	testl	%ecx, %ecx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	idivl	%ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_5:
	movl	32(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	36(%r15), %r13d
	movq	_BNX2X_Q_FLG_HC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	%rdi, %r13
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_bnx2x_update_coalesce_sb_index
LBB0_6:
	movq	_BNX2X_Q_TYPE_HAS_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	_BNX2X_Q_FLG_HC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r15), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movl	8(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.10:
	movl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	idivl	%ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_11
LBB0_9:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_11:
	movl	16(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	20(%r15), %r12d
	movq	_BNX2X_Q_FLG_HC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_bnx2x_update_coalesce_sb_index
LBB0_12:
	cmpq	$0, (%rbx)
	je	LBB0_15
## %bb.13:
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	16(%rbx), %rax
	movl	(%rax,%r14,4), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_DP
	movl	(%r12), %edi
	movq	(%r15), %rax
	movl	(%rax,%r14,4), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	(%r15), %rax
	movl	(%rax,%r14,4), %esi
	movq	16(%rbx), %rax
	movl	(%rax,%r14,4), %edx
	movq	%r13, %rdi
	callq	_bnx2x_set_ctx_validation
	incq	%r14
	cmpq	(%rbx), %r14
	jb	LBB0_14
LBB0_15:
	movq	_BNX2X_Q_CMD_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	*8(%rbx)
	xorl	%eax, %eax
	callq	_smp_mb
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_Q_TYPE_HAS_TX,4,2        ## @BNX2X_Q_TYPE_HAS_TX
	.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	_BNX2X_Q_TYPE_HAS_RX,4,2        ## @BNX2X_Q_TYPE_HAS_RX
	.comm	_BNX2X_MSG_SP,4,2               ## @BNX2X_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting context validation. cid %d, cos %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"context pointer %p\n"

	.comm	_BNX2X_Q_CMD_INIT,4,2           ## @BNX2X_Q_CMD_INIT
	.no_dead_strip	_bnx2x_q_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_q_init
_bnx2x_q_init:                          ; @bnx2x_q_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x1, #40]
Lloh0:
	adrp	x8, _BNX2X_Q_TYPE_HAS_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2X_Q_TYPE_HAS_TX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x22, x19, #24
	mov	x1, x22
	bl	_test_bit
Lloh3:
	adrp	x27, _BNX2X_Q_FLG_HC@GOTPAGE
Lloh4:
	ldr	x27, [x27, _BNX2X_Q_FLG_HC@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x27]
	add	x23, x21, #28
	mov	x1, x23
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x21, #24]
	mov	w9, #16960
	movk	w9, #15, lsl #16
	sdiv	w9, w9, w8
	cmp	w8, #0
	csel	w24, wzr, w9, eq
	ldp	w26, w25, [x21, #32]
Lloh5:
	adrp	x8, _BNX2X_Q_FLG_HC_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BNX2X_Q_FLG_HC_EN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cmp	x0, #0
	cset	w3, eq
	mov	x0, x20
	mov	x1, x25
	mov	x2, x26
	mov	x4, x24
	bl	_bnx2x_update_coalesce_sb_index
LBB0_3:
Lloh8:
	adrp	x8, _BNX2X_Q_TYPE_HAS_RX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BNX2X_Q_TYPE_HAS_RX@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x27]
	add	x22, x21, #12
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x21, #8]
	mov	w9, #16960
	movk	w9, #15, lsl #16
	sdiv	w9, w9, w8
	cmp	w8, #0
	csel	w23, wzr, w9, eq
	ldp	w25, w24, [x21, #16]
Lloh11:
	adrp	x8, _BNX2X_Q_FLG_HC_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BNX2X_Q_FLG_HC_EN@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cmp	x0, #0
	cset	w3, eq
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	mov	x4, x23
	bl	_bnx2x_update_coalesce_sb_index
LBB0_6:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.7:
	mov	x24, #0
Lloh14:
	adrp	x25, _BNX2X_MSG_SP@GOTPAGE
Lloh15:
	ldr	x25, [x25, _BNX2X_MSG_SP@GOTPAGEOFF]
Lloh16:
	adrp	x22, l_.str@PAGE
Lloh17:
	add	x22, x22, l_.str@PAGEOFF
Lloh18:
	adrp	x23, l_.str.1@PAGE
Lloh19:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	ldr	x8, [x19, #16]
	lsl	x26, x24, #2
	ldr	w2, [x8, x26]
	str	x24, [sp]
	mov	x1, x22
	bl	_DP
	ldr	w0, [x25]
	ldr	x8, [x21]
	ldr	w2, [x8, x26]
	mov	x1, x23
	bl	_DP
	ldr	x8, [x21]
	ldr	w1, [x8, x26]
	ldr	x8, [x19, #16]
	ldr	w2, [x8, x26]
	mov	x0, x20
	bl	_bnx2x_set_ctx_validation
	add	x24, x24, #1
	ldr	x8, [x19]
	cmp	x24, x8
	b.lo	LBB0_8
LBB0_9:
	ldr	x8, [x19, #8]
Lloh20:
	adrp	x9, _BNX2X_Q_CMD_INIT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BNX2X_Q_CMD_INIT@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x9]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	bl	_smp_mb
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_Q_TYPE_HAS_TX,4,2        ; @BNX2X_Q_TYPE_HAS_TX
	.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	_BNX2X_Q_TYPE_HAS_RX,4,2        ; @BNX2X_Q_TYPE_HAS_RX
	.comm	_BNX2X_MSG_SP,4,2               ; @BNX2X_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting context validation. cid %d, cos %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"context pointer %p\n"

	.comm	_BNX2X_Q_CMD_INIT,4,2           ; @BNX2X_Q_CMD_INIT
	.no_dead_strip	_bnx2x_q_init
.subsections_via_symbols
