	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_check_drv_state
_qlcnic_check_drv_state:                ## @qlcnic_check_drv_state
	.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, %r14
	movq	8(%rdi), %r15
	movq	_QLCNIC_CRB_DRV_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QLC_SHARED_REG_RD32
	movl	%eax, %ebx
	movq	_QLCNIC_CRB_DRV_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_QLC_SHARED_REG_RD32
	movq	_QLCNIC_FW_RESET_OWNER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_2
## %bb.1:
	movb	(%r15), %cl
	shlb	$2, %cl
	btrl	%ecx, %eax
LBB0_2:
	movl	%ebx, %ecx
	andl	$286331153, %ecx                ## imm = 0x11111111
	andl	$286331153, %eax                ## imm = 0x11111111
	cmpl	%eax, %ecx
	setne	%cl
	shrl	%ebx
	andl	$286331153, %ebx                ## imm = 0x11111111
	cmpl	%ebx, %eax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CRB_DRV_STATE,4,2       ## @QLCNIC_CRB_DRV_STATE
	.comm	_QLCNIC_CRB_DRV_ACTIVE,4,2      ## @QLCNIC_CRB_DRV_ACTIVE
	.comm	_QLCNIC_FW_RESET_OWNER,4,2      ## @QLCNIC_FW_RESET_OWNER
	.no_dead_strip	_qlcnic_check_drv_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_check_drv_state
_qlcnic_check_drv_state:                ; @qlcnic_check_drv_state
	.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	x20, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _QLCNIC_CRB_DRV_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CRB_DRV_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_QLC_SHARED_REG_RD32
	mov	x19, x0
Lloh3:
	adrp	x8, _QLCNIC_CRB_DRV_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_CRB_DRV_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_QLC_SHARED_REG_RD32
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _QLCNIC_FW_RESET_OWNER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QLCNIC_FW_RESET_OWNER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x21]
	lsl	w8, w8, #2
	mov	w9, #1
	lsl	w8, w9, w8
	bic	w0, w0, w8
LBB0_2:
	and	w8, w19, #0x11111111
	and	w9, w0, #0x11111111
	cmp	w8, w9
	lsr	w8, w19, #1
	and	w8, w8, #0x11111111
	ccmp	w9, w8, #4, ne
	cset	w0, ne
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CRB_DRV_STATE,4,2       ; @QLCNIC_CRB_DRV_STATE
	.comm	_QLCNIC_CRB_DRV_ACTIVE,4,2      ; @QLCNIC_CRB_DRV_ACTIVE
	.comm	_QLCNIC_FW_RESET_OWNER,4,2      ; @QLCNIC_FW_RESET_OWNER
	.no_dead_strip	_qlcnic_check_drv_state
.subsections_via_symbols
