	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_82xx_clear_lb_mode      ## -- Begin function qlcnic_82xx_clear_lb_mode
	.p2align	4, 0x90
_qlcnic_82xx_clear_lb_mode:             ## @qlcnic_82xx_clear_lb_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	_VPORT_MISS_MODE_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%esi, %esi
	callq	_qlcnic_set_fw_loopback
	movl	(%r15), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_VPORT_MISS_MODE_ACCEPT_ALL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_VPORT_MISS_MODE_ACCEPT_MULTI@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r14d
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_qlcnic_nic_set_promisc
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPORT_MISS_MODE_DROP,4,2       ## @VPORT_MISS_MODE_DROP
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_VPORT_MISS_MODE_ACCEPT_ALL,4,2 ## @VPORT_MISS_MODE_ACCEPT_ALL
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_VPORT_MISS_MODE_ACCEPT_MULTI,4,2 ## @VPORT_MISS_MODE_ACCEPT_MULTI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_82xx_clear_lb_mode      ; -- Begin function qlcnic_82xx_clear_lb_mode
	.p2align	2
_qlcnic_82xx_clear_lb_mode:             ; @qlcnic_82xx_clear_lb_mode
	.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	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _VPORT_MISS_MODE_DROP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPORT_MISS_MODE_DROP@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	w1, #0
	bl	_qlcnic_set_fw_loopback
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _VPORT_MISS_MODE_ACCEPT_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VPORT_MISS_MODE_ACCEPT_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _VPORT_MISS_MODE_ACCEPT_MULTI@GOTPAGE
Lloh13:
	ldr	x10, [x10, _VPORT_MISS_MODE_ACCEPT_MULTI@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w1, w20, w10, eq
LBB0_3:
	mov	x0, x19
	bl	_qlcnic_nic_set_promisc
	mov	w0, #1000
	bl	_msleep
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VPORT_MISS_MODE_DROP,4,2       ; @VPORT_MISS_MODE_DROP
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_VPORT_MISS_MODE_ACCEPT_ALL,4,2 ; @VPORT_MISS_MODE_ACCEPT_ALL
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_VPORT_MISS_MODE_ACCEPT_MULTI,4,2 ; @VPORT_MISS_MODE_ACCEPT_MULTI
.subsections_via_symbols
