	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_queue_state_change       ## -- Begin function bnx2x_queue_state_change
	.p2align	4, 0x90
_bnx2x_queue_state_change:              ## @bnx2x_queue_state_change
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %r13
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	*8(%r13)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	(%r13), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	*16(%r13)
	movl	%eax, %r12d
	movl	(%rbx), %edi
	movq	(%r13), %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_DP
	movq	_RAMROD_DRV_CLR_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	*48(%r13)
LBB0_7:
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_test_bit
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	jmp	LBB0_8
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*24(%r13)
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	_BNX2X_Q_STATE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_clear_bit
	xorl	%eax, %eax
	callq	_smp_mb__after_atomic
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_RAMROD_COMP_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	32(%r13), %rax
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"check transition returned an error. rc %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BNX2X_MSG_SP,4,2               ## @BNX2X_MSG_SP
L_.str.1:                               ## @.str.1
	.asciz	"pending bit was=%lx\n"

L_.str.2:                               ## @.str.2
	.asciz	"pending bit now=%lx\n"

	.comm	_RAMROD_DRV_CLR_ONLY,4,2        ## @RAMROD_DRV_CLR_ONLY
	.comm	_BNX2X_Q_STATE_MAX,4,2          ## @BNX2X_Q_STATE_MAX
	.comm	_RAMROD_COMP_WAIT,4,2           ## @RAMROD_COMP_WAIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_queue_state_change       ; -- Begin function bnx2x_queue_state_change
	.p2align	2
_bnx2x_queue_state_change:              ; @bnx2x_queue_state_change
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x1, #8]
	ldr	x8, [x19, #8]
	mov	x1, x19
	mov	x2, x21
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_7
LBB0_2:
Lloh5:
	adrp	x23, _BNX2X_MSG_SP@GOTPAGE
Lloh6:
	ldr	x23, [x23, _BNX2X_MSG_SP@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	x2, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x21
	blr	x8
	mov	x22, x0
	ldr	w0, [x23]
	ldr	x2, [x19]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
Lloh11:
	adrp	x8, _RAMROD_DRV_CLR_ONLY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RAMROD_DRV_CLR_ONLY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19, #48]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	blr	x8
LBB0_4:
	mov	x0, x22
	mov	x1, x19
	bl	_test_bit
	cmp	x0, #0
	cset	w23, ne
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19, #24]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	cbz	w0, LBB0_8
; %bb.6:
	mov	x23, x0
Lloh14:
	adrp	x8, _BNX2X_Q_STATE_MAX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BNX2X_Q_STATE_MAX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	mov	x0, x22
	mov	x1, x19
	bl	_clear_bit
	bl	_smp_mb__after_atomic
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh17:
	adrp	x8, _RAMROD_COMP_WAIT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RAMROD_COMP_WAIT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.9:
	ldr	x3, [x19, #32]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"check transition returned an error. rc %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BNX2X_MSG_SP,4,2               ; @BNX2X_MSG_SP
l_.str.1:                               ; @.str.1
	.asciz	"pending bit was=%lx\n"

l_.str.2:                               ; @.str.2
	.asciz	"pending bit now=%lx\n"

	.comm	_RAMROD_DRV_CLR_ONLY,4,2        ; @RAMROD_DRV_CLR_ONLY
	.comm	_BNX2X_Q_STATE_MAX,4,2          ; @BNX2X_Q_STATE_MAX
	.comm	_RAMROD_COMP_WAIT,4,2           ; @RAMROD_COMP_WAIT
.subsections_via_symbols
