	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_queue_comp_cmd
_bnx2x_queue_comp_cmd:                  ## @bnx2x_queue_comp_cmd
	.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	%edx, %r14d
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movl	%edx, %edi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rdx
	cmpq	%rdx, %rsi
	jl	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_BNX2X_ERR
LBB0_4:
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	40(%rbx), %rax
	movq	_BNX2X_PRIMARY_CID_INDEX@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movslq	(%rax,%rcx,4), %rcx
	movl	32(%rbx), %r8d
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_DP
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movl	(%r12), %edi
	movq	40(%rbx), %rax
	movq	(%r13), %rdx
	movl	(%rax,%rdx,4), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	8(%rbx), %rax
	jmp	LBB0_7
LBB0_1:
	movl	%r14d, %esi
	movq	40(%rbx), %rax
	movq	_BNX2X_PRIMARY_CID_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rax,%rcx,4), %rdx
	movl	32(%rbx), %r9d
	movl	36(%rbx), %ecx
	movq	-48(%rbp), %r8
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	movl	32(%rbx), %ecx
	movl	%ecx, 36(%rbx)
	movq	%rax, 24(%rbx)
	movq	_BNX2X_Q_STATE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	xorl	%eax, %eax
	callq	_wmb
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	xorl	%eax, %eax
	callq	_smp_mb__after_atomic
LBB0_8:
	movl	%r15d, %eax
	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	"Bad MC reply %d for queue %d in state %d pending 0x%lx, next_state %d\n"

	.comm	_BNX2X_PRIMARY_CID_INDEX,8,3    ## @BNX2X_PRIMARY_CID_INDEX
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"illegal value for next tx_only: %d. max cos was %d"

	.comm	_BNX2X_MSG_SP,4,2               ## @BNX2X_MSG_SP
L_.str.2:                               ## @.str.2
	.asciz	"Completing command %d for queue %d, setting state to %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"primary cid %d: num tx-only cons %d\n"

	.comm	_BNX2X_Q_STATE_MAX,4,2          ## @BNX2X_Q_STATE_MAX
	.no_dead_strip	_bnx2x_queue_comp_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_queue_comp_cmd
_bnx2x_queue_comp_cmd:                  ; @bnx2x_queue_comp_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
	mov	x19, x1
	ldr	x8, [x1]
	str	x8, [sp, #24]
	add	x1, sp, #24
	mov	x0, x2
	bl	_test_and_clear_bit
	cbz	w0, LBB0_5
; %bb.1:
	ldp	x1, x2, [x19, #8]
	cmp	x1, x2
	b.lt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BNX2X_ERR
LBB0_3:
Lloh2:
	adrp	x21, _BNX2X_MSG_SP@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BNX2X_MSG_SP@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x8, [x19, #40]
Lloh4:
	adrp	x22, _BNX2X_PRIMARY_CID_INDEX@GOTPAGE
Lloh5:
	ldr	x22, [x22, _BNX2X_PRIMARY_CID_INDEX@GOTPAGEOFF]
	ldr	x9, [x22]
	ldrsw	x3, [x8, x9, lsl #2]
	ldr	w8, [x19, #32]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_DP
	ldr	x3, [x19, #8]
	cbz	x3, LBB0_6
; %bb.4:
	ldr	w0, [x21]
	ldr	x8, [x19, #40]
	ldr	x9, [x22]
	ldr	w2, [x8, x9, lsl #2]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DP
	ldr	x8, [x19, #8]
	b	LBB0_7
LBB0_5:
	mov	w1, w20
	ldr	x8, [x19, #40]
Lloh10:
	adrp	x9, _BNX2X_PRIMARY_CID_INDEX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BNX2X_PRIMARY_CID_INDEX@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldrsw	x2, [x8, x9, lsl #2]
	ldr	x8, [sp, #24]
	ldp	w10, w9, [x19, #32]
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	mov	x8, #0
LBB0_7:
	ldr	w9, [x19, #32]
	str	x8, [x19, #24]
Lloh18:
	adrp	x8, _BNX2X_Q_STATE_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BNX2X_Q_STATE_MAX@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	stp	w8, w9, [x19, #32]
	bl	_wmb
	mov	x0, x20
	mov	x1, x19
	bl	_clear_bit
	bl	_smp_mb__after_atomic
	mov	w0, #0
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad MC reply %d for queue %d in state %d pending 0x%lx, next_state %d\n"

	.comm	_BNX2X_PRIMARY_CID_INDEX,8,3    ; @BNX2X_PRIMARY_CID_INDEX
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"illegal value for next tx_only: %d. max cos was %d"

	.comm	_BNX2X_MSG_SP,4,2               ; @BNX2X_MSG_SP
l_.str.2:                               ; @.str.2
	.asciz	"Completing command %d for queue %d, setting state to %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"primary cid %d: num tx-only cons %d\n"

	.comm	_BNX2X_Q_STATE_MAX,4,2          ; @BNX2X_Q_STATE_MAX
	.no_dead_strip	_bnx2x_queue_comp_cmd
.subsections_via_symbols
