	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_check_mbx_status
_qlcnic_83xx_check_mbx_status:          ## @qlcnic_83xx_check_mbx_status
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	8(%rbx), %r14
	movq	_QLC_83XX_MBX_READY@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_QLCNIC_HOST_MBX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_QLCRDX
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movl	$1, (%rbx)
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_MBX_READY,4,2         ## @QLC_83XX_MBX_READY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_QLCNIC_HOST_MBX_CTRL,4,2       ## @QLCNIC_HOST_MBX_CTRL
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_qlcnic_83xx_check_mbx_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_check_mbx_status
_qlcnic_83xx_check_mbx_status:          ; @qlcnic_83xx_check_mbx_status
	.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
	ldr	x19, [x0]
	ldr	x20, [x19, #8]
Lloh0:
	adrp	x21, _QLC_83XX_MBX_READY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _QLC_83XX_MBX_READY@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _QLCNIC_HOST_MBX_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QLCNIC_HOST_MBX_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_QLCRDX
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_clear_bit
	mov	w8, #1
	str	w8, [x19]
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_MBX_READY,4,2         ; @QLC_83XX_MBX_READY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_QLCNIC_HOST_MBX_CTRL,4,2       ; @QLCNIC_HOST_MBX_CTRL
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_qlcnic_83xx_check_mbx_status
.subsections_via_symbols
