	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_set_drv_state
_qlcnic_set_drv_state:                  ## @qlcnic_set_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	%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, %rbx
	movq	_QLCNIC_DEV_NEED_RESET@GOTPCREL(%rip), %r13
	cmpq	%rsi, (%r13)
	setne	%al
	movq	_QLCNIC_DEV_NEED_QUISCENT@GOTPCREL(%rip), %r12
	cmpq	%rsi, (%r12)
	movq	%rdi, %r14
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	movq	%r14, %rdi
	callq	_qlcnic_api_lock
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movq	_QLCNIC_CRB_DRV_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_QLC_SHARED_REG_RD32
	movl	%eax, %r15d
	cmpq	%rbx, (%r13)
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %esi
	movl	%r15d, %edi
	callq	_QLC_DEV_SET_RST_RDY
	movq	_QLCNIC_CRB_DRV_STATE@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
LBB0_4:
	cmpq	%rbx, (%r12)
	movq	_QLCNIC_CRB_DRV_STATE@GOTPCREL(%rip), %rbx
	jne	LBB0_6
## %bb.5:
	movl	(%r14), %esi
	movl	%r15d, %edi
	callq	_QLC_DEV_SET_QSCNT_RDY
LBB0_6:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_QLC_SHARED_REG_WR32
	movq	%r14, %rdi
	callq	_qlcnic_api_unlock
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_DEV_NEED_RESET,8,3      ## @QLCNIC_DEV_NEED_RESET
	.comm	_QLCNIC_DEV_NEED_QUISCENT,8,3   ## @QLCNIC_DEV_NEED_QUISCENT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_CRB_DRV_STATE,4,2       ## @QLCNIC_CRB_DRV_STATE
	.no_dead_strip	_qlcnic_set_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_set_drv_state
_qlcnic_set_drv_state:                  ; @qlcnic_set_drv_state
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _QLCNIC_DEV_NEED_RESET@GOTPAGE
Lloh1:
	ldr	x24, [x24, _QLCNIC_DEV_NEED_RESET@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, x1
Lloh2:
	adrp	x23, _QLCNIC_DEV_NEED_QUISCENT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _QLCNIC_DEV_NEED_QUISCENT@GOTPAGEOFF]
	ldr	x8, [x23]
	ccmp	x8, x1, #4, ne
	cset	w0, ne
	bl	_WARN_ON
	mov	x0, x19
	bl	_qlcnic_api_lock
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
Lloh7:
	adrp	x22, _QLCNIC_CRB_DRV_STATE@GOTPAGE
Lloh8:
	ldr	x22, [x22, _QLCNIC_CRB_DRV_STATE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_QLC_SHARED_REG_RD32
	mov	x21, x0
	ldr	x8, [x24]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x19]
	mov	x0, x21
	bl	_QLC_DEV_SET_RST_RDY
	b	LBB0_6
LBB0_4:
	ldr	x8, [x23]
	cmp	x8, x20
	b.ne	LBB0_6
; %bb.5:
	ldr	w1, [x19]
	mov	x0, x21
	bl	_QLC_DEV_SET_QSCNT_RDY
LBB0_6:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_QLC_SHARED_REG_WR32
	mov	x0, x19
	bl	_qlcnic_api_unlock
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_DEV_NEED_RESET,8,3      ; @QLCNIC_DEV_NEED_RESET
	.comm	_QLCNIC_DEV_NEED_QUISCENT,8,3   ; @QLCNIC_DEV_NEED_QUISCENT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_CRB_DRV_STATE,4,2       ; @QLCNIC_CRB_DRV_STATE
	.no_dead_strip	_qlcnic_set_drv_state
.subsections_via_symbols
