	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_enqueue_mbx_cmd
_qlcnic_83xx_enqueue_mbx_cmd:           ## @qlcnic_83xx_enqueue_mbx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	_QLC_83XX_MBX_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	20(%r15), %rdi
	movq	_QLC_83XX_MBX_RESPONSE_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atomic_set
	leaq	16(%r15), %rdi
	callq	_init_completion
	movq	_QLC_83XX_MBX_RESPONSE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	leaq	8(%r15), %rdi
	leaq	20(%rbx), %rsi
	callq	_list_add_tail
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	movq	%rax, (%r15)
	movq	_QLC_83XX_MBX_TIMEOUT@GOTPCREL(%rip), %rcx
	imulq	(%rcx), %rax
	movq	%rax, (%r14)
	movl	16(%rbx), %edi
	addq	$12, %rbx
	movq	%rbx, %rsi
	callq	_queue_work
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_MBX_READY,4,2         ## @QLC_83XX_MBX_READY
	.comm	_QLC_83XX_MBX_RESPONSE_WAIT,4,2 ## @QLC_83XX_MBX_RESPONSE_WAIT
	.comm	_QLC_83XX_MBX_RESPONSE_UNKNOWN,4,2 ## @QLC_83XX_MBX_RESPONSE_UNKNOWN
	.comm	_QLC_83XX_MBX_TIMEOUT,8,3       ## @QLC_83XX_MBX_TIMEOUT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_qlcnic_83xx_enqueue_mbx_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_enqueue_mbx_cmd
_qlcnic_83xx_enqueue_mbx_cmd:           ; @qlcnic_83xx_enqueue_mbx_cmd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x20, x1
	ldr	x8, [x0]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _QLC_83XX_MBX_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_MBX_READY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x22, #24
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x20, #20
Lloh3:
	adrp	x8, _QLC_83XX_MBX_RESPONSE_WAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLC_83XX_MBX_RESPONSE_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_atomic_set
	add	x0, x20, #16
	bl	_init_completion
Lloh6:
	adrp	x8, _QLC_83XX_MBX_RESPONSE_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLC_83XX_MBX_RESPONSE_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	add	x21, x22, #8
	mov	x0, x21
	bl	_spin_lock_bh
	add	x0, x20, #8
	add	x1, x22, #20
	bl	_list_add_tail
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [x22]
Lloh9:
	adrp	x9, _QLC_83XX_MBX_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QLC_83XX_MBX_TIMEOUT@GOTPAGEOFF]
	str	x8, [x20]
Lloh11:
	ldr	x9, [x9]
	mul	x8, x9, x8
	str	x8, [x19]
	ldr	w0, [x22, #16]
	add	x1, x22, #12
	bl	_queue_work
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_MBX_READY,4,2         ; @QLC_83XX_MBX_READY
	.comm	_QLC_83XX_MBX_RESPONSE_WAIT,4,2 ; @QLC_83XX_MBX_RESPONSE_WAIT
	.comm	_QLC_83XX_MBX_RESPONSE_UNKNOWN,4,2 ; @QLC_83XX_MBX_RESPONSE_UNKNOWN
	.comm	_QLC_83XX_MBX_TIMEOUT,8,3       ; @QLC_83XX_MBX_TIMEOUT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_qlcnic_83xx_enqueue_mbx_cmd
.subsections_via_symbols
