	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_store_elb_mode
_qlcnic_store_elb_mode:                 ## @qlcnic_store_elb_mode
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_strict_strtoul
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subq	(%rax), %r15
	jmp	LBB0_4
LBB0_2:
	movq	-40(%rbp), %rbx
	movq	___QLCNIC_ELB_INPROGRESS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_test_and_set_bit
	cmpq	%rax, %rbx
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_rtnl_lock
	movl	4(%r14), %edi
	movq	_QLCNIC_ELB_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_qlcnic_loopback_test
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	testl	%ebx, %ebx
	cmovnel	%ebx, %r15d
	movslq	%r15d, %r15
LBB0_4:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	___QLCNIC_ELB_INPROGRESS,4,2    ## @__QLCNIC_ELB_INPROGRESS
	.comm	_QLCNIC_ELB_MODE,4,2            ## @QLCNIC_ELB_MODE
	.no_dead_strip	_qlcnic_store_elb_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_store_elb_mode
_qlcnic_store_elb_mode:                 ; @qlcnic_store_elb_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #2
	bl	_strict_strtoul
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_4
LBB0_2:
	ldr	x21, [sp, #8]
Lloh3:
	adrp	x22, ___QLCNIC_ELB_INPROGRESS@GOTPAGE
Lloh4:
	ldr	x22, [x22, ___QLCNIC_ELB_INPROGRESS@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_test_and_set_bit
	cmp	x21, x0
	b.eq	LBB0_4
; %bb.3:
	bl	_rtnl_lock
	ldr	w0, [x20, #4]
Lloh5:
	adrp	x8, _QLCNIC_ELB_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_ELB_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_qlcnic_loopback_test
	mov	x21, x0
	bl	_rtnl_unlock
	ldr	w0, [x22]
	mov	x1, x20
	bl	_clear_bit
	cmp	w21, #0
	csel	w8, w19, w21, eq
	sxtw	x19, w8
LBB0_4:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	___QLCNIC_ELB_INPROGRESS,4,2    ; @__QLCNIC_ELB_INPROGRESS
	.comm	_QLCNIC_ELB_MODE,4,2            ; @QLCNIC_ELB_MODE
	.no_dead_strip	_qlcnic_store_elb_mode
.subsections_via_symbols
