	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_qm_set_ptr_table
_bnx2x_qm_set_ptr_table:                ## @bnx2x_qm_set_ptr_table
	.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
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_QM_QUEUES_PER_FUNC@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r12
	shll	$2, -68(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	cltd
	idivl	%ecx
	imull	-68(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_REG_WR
	movl	%r14d, %esi
	andl	$-8, %esi
	addq	-80(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r12, %rdi
	leaq	-64(%rbp), %rdx
	movl	$2, %ecx
	callq	_bnx2x_init_wr_wb
	incq	%r13
	movslq	(%r15), %rcx
	movq	%rcx, %rax
	shlq	$2, %rax
	addq	$8, %r14
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_QUEUES_PER_FUNC,4,2         ## @QM_QUEUES_PER_FUNC
	.no_dead_strip	_bnx2x_qm_set_ptr_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_qm_set_ptr_table
_bnx2x_qm_set_ptr_table:                ; @bnx2x_qm_set_ptr_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
Lloh3:
	adrp	x22, _QM_QUEUES_PER_FUNC@GOTPAGE
Lloh4:
	ldr	x22, [x22, _QM_QUEUES_PER_FUNC@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	mov	x23, #0
	mov	x24, #0
	lsl	w25, w1, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w9, w24, w8
	msub	w8, w9, w8, w24
	mul	w2, w25, w8
	mov	x0, x21
	mov	x1, x20
	bl	_REG_WR
	and	x8, x23, #0xfffffff8
	add	x1, x8, x19
	add	x2, sp, #8
	mov	x0, x21
	mov	w3, #2
	bl	_bnx2x_init_wr_wb
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #8
	add	x20, x20, #4
	cmp	x24, x8, lsl #2
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	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
	add	sp, sp, #112
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_QUEUES_PER_FUNC,4,2         ; @QM_QUEUES_PER_FUNC
	.no_dead_strip	_bnx2x_qm_set_ptr_table
.subsections_via_symbols
