	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_config_default_opmode ## -- Begin function qlcnic_83xx_config_default_opmode
	.p2align	4, 0x90
_qlcnic_83xx_config_default_opmode:     ## @qlcnic_83xx_config_default_opmode
	.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, %r15
	movq	16(%rdi), %r14
	callq	_qlcnic_get_func_no
	movq	_QLC_83XX_DRV_OP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_QLCRDX
	movq	%rax, %rbx
	movq	___QLCNIC_SRIOV_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	movq	_QLC_83XX_DEFAULT_OPMODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmovneq	%rax, %rbx
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_qlcnic_83xx_init_default_driver@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movq	_qlcnic_83xx_idc_ready_state_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_DRV_OP_MODE,4,2       ## @QLC_83XX_DRV_OP_MODE
	.comm	___QLCNIC_SRIOV_CAPABLE,4,2     ## @__QLCNIC_SRIOV_CAPABLE
	.comm	_QLC_83XX_DEFAULT_OPMODE,8,3    ## @QLC_83XX_DEFAULT_OPMODE
	.comm	_qlcnic_83xx_init_default_driver,4,2 ## @qlcnic_83xx_init_default_driver
	.comm	_qlcnic_83xx_idc_ready_state_entry,4,2 ## @qlcnic_83xx_idc_ready_state_entry
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_config_default_opmode ; -- Begin function qlcnic_83xx_config_default_opmode
	.p2align	2
_qlcnic_83xx_config_default_opmode:     ; @qlcnic_83xx_config_default_opmode
	.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	x19, [x0, #16]
	bl	_qlcnic_get_func_no
Lloh0:
	adrp	x8, _QLC_83XX_DRV_OP_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_DRV_OP_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_QLCRDX
	mov	x21, x0
Lloh3:
	adrp	x8, ___QLCNIC_SRIOV_CAPABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___QLCNIC_SRIOV_CAPABLE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_test_bit
Lloh6:
	adrp	x8, _QLC_83XX_DEFAULT_OPMODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLC_83XX_DEFAULT_OPMODE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x9, x21, x8, eq
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
Lloh9:
	adrp	x8, _qlcnic_83xx_init_default_driver@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qlcnic_83xx_init_default_driver@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9]
Lloh12:
	adrp	x8, _qlcnic_83xx_idc_ready_state_entry@GOTPAGE
Lloh13:
	ldr	x8, [x8, _qlcnic_83xx_idc_ready_state_entry@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_DRV_OP_MODE,4,2       ; @QLC_83XX_DRV_OP_MODE
	.comm	___QLCNIC_SRIOV_CAPABLE,4,2     ; @__QLCNIC_SRIOV_CAPABLE
	.comm	_QLC_83XX_DEFAULT_OPMODE,8,3    ; @QLC_83XX_DEFAULT_OPMODE
	.comm	_qlcnic_83xx_init_default_driver,4,2 ; @qlcnic_83xx_init_default_driver
	.comm	_qlcnic_83xx_idc_ready_state_entry,4,2 ; @qlcnic_83xx_idc_ready_state_entry
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
