	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_clear_lb_mode      ## -- Begin function qlcnic_83xx_clear_lb_mode
	.p2align	4, 0x90
_qlcnic_83xx_clear_lb_mode:             ## @qlcnic_83xx_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	%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, %r15
	movq	%rdi, %r13
	movq	16(%rdi), %r14
	movl	4(%r14), %ebx
	movq	_QLC_83XX_IDC_COMP_AEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	_QLCNIC_ILB_MODE@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_QLC_83XX_CFG_LOOPBACK_HSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r14)
LBB0_2:
	movq	_QLCNIC_ELB_MODE@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_QLC_83XX_CFG_LOOPBACK_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r14)
LBB0_4:
	movq	%r13, %rdi
	callq	_qlcnic_83xx_set_port_config
	testl	%eax, %eax
	je	LBB0_5
## %bb.13:
	movl	%eax, %r15d
	movq	8(%r13), %rdi
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, 4(%r14)
	movq	_QLC_83XX_IDC_COMP_AEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	jmp	LBB0_12
LBB0_5:
	movl	$-1, %ebx
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %r15
	movq	_QLCNIC_ILB_MAX_RCV_LOOP@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$300, %edi                      ## imm = 0x12C
	callq	_msleep
	movl	(%r15), %eax
	testl	%eax, (%r13)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_qlcnic_83xx_process_aen
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jg	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_QLC_83XX_IDC_COMP_AEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_6
## %bb.11:
	movl	4(%r13), %esi
	movq	_QLCNIC_MAC_DEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_qlcnic_sre_macaddr_change
	jmp	LBB0_12
LBB0_9:
	movq	8(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_QLC_83XX_IDC_COMP_AEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_IDC_COMP_AEN,4,2      ## @QLC_83XX_IDC_COMP_AEN
	.comm	_QLCNIC_ILB_MODE,8,3            ## @QLCNIC_ILB_MODE
	.comm	_QLC_83XX_CFG_LOOPBACK_HSS,4,2  ## @QLC_83XX_CFG_LOOPBACK_HSS
	.comm	_QLCNIC_ELB_MODE,8,3            ## @QLCNIC_ELB_MODE
	.comm	_QLC_83XX_CFG_LOOPBACK_EXT,4,2  ## @QLC_83XX_CFG_LOOPBACK_EXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to Clear Loopback Mode = 0x%x.\n"

	.comm	_QLCNIC_MSIX_ENABLED,4,2        ## @QLCNIC_MSIX_ENABLED
	.comm	_QLCNIC_ILB_MAX_RCV_LOOP,4,2    ## @QLCNIC_ILB_MAX_RCV_LOOP
L_.str.1:                               ## @.str.1
	.asciz	"Firmware didn't sent IDC completion AEN\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_MAC_DEL,4,2             ## @QLCNIC_MAC_DEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_clear_lb_mode      ; -- Begin function qlcnic_83xx_clear_lb_mode
	.p2align	2
_qlcnic_83xx_clear_lb_mode:             ; @qlcnic_83xx_clear_lb_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w23, [x19, #4]
Lloh0:
	adrp	x22, _QLC_83XX_IDC_COMP_AEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _QLC_83XX_IDC_COMP_AEN@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x19
	bl	_set_bit
Lloh2:
	adrp	x8, _QLCNIC_ILB_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QLCNIC_ILB_MODE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _QLC_83XX_CFG_LOOPBACK_HSS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLC_83XX_CFG_LOOPBACK_HSS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
LBB0_2:
Lloh8:
	adrp	x8, _QLCNIC_ELB_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLCNIC_ELB_MODE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _QLC_83XX_CFG_LOOPBACK_EXT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QLC_83XX_CFG_LOOPBACK_EXT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
LBB0_4:
	mov	x0, x20
	bl	_qlcnic_83xx_set_port_config
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
	ldr	x0, [x20, #8]
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	str	w23, [x19, #4]
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
	b	LBB0_13
LBB0_6:
	mov	w21, #-1
Lloh16:
	adrp	x23, _QLCNIC_MSIX_ENABLED@GOTPAGE
Lloh17:
	ldr	x23, [x23, _QLCNIC_MSIX_ENABLED@GOTPAGEOFF]
Lloh18:
	adrp	x24, _QLCNIC_ILB_MAX_RCV_LOOP@GOTPAGE
Lloh19:
	ldr	x24, [x24, _QLCNIC_ILB_MAX_RCV_LOOP@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #300
	bl	_msleep
	ldr	w8, [x20]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_qlcnic_83xx_process_aen
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x24]
	add	w21, w21, #1
	cmp	w21, w8
	b.gt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	bl	_test_bit
	cbnz	x0, LBB0_7
; %bb.11:
	ldr	w1, [x20, #4]
Lloh20:
	adrp	x8, _QLCNIC_MAC_DEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _QLCNIC_MAC_DEL@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_qlcnic_sre_macaddr_change
	mov	w21, #0
	b	LBB0_13
LBB0_12:
	ldr	x0, [x20, #8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
Lloh25:
	adrp	x8, _EIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_IDC_COMP_AEN,4,2      ; @QLC_83XX_IDC_COMP_AEN
	.comm	_QLCNIC_ILB_MODE,8,3            ; @QLCNIC_ILB_MODE
	.comm	_QLC_83XX_CFG_LOOPBACK_HSS,4,2  ; @QLC_83XX_CFG_LOOPBACK_HSS
	.comm	_QLCNIC_ELB_MODE,8,3            ; @QLCNIC_ELB_MODE
	.comm	_QLC_83XX_CFG_LOOPBACK_EXT,4,2  ; @QLC_83XX_CFG_LOOPBACK_EXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to Clear Loopback Mode = 0x%x.\n"

	.comm	_QLCNIC_MSIX_ENABLED,4,2        ; @QLCNIC_MSIX_ENABLED
	.comm	_QLCNIC_ILB_MAX_RCV_LOOP,4,2    ; @QLCNIC_ILB_MAX_RCV_LOOP
l_.str.1:                               ; @.str.1
	.asciz	"Firmware didn't sent IDC completion AEN\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_MAC_DEL,4,2             ; @QLCNIC_MAC_DEL
.subsections_via_symbols
