	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_setup_loopback_test
_ixgbe_setup_loopback_test:             ## @ixgbe_setup_loopback_test
	.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	%rdi, %rbx
	movq	_IXGBE_HLREG0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_HLREG0_LPBK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_FCTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_FCTRL_BAM@GOTPCREL(%rip), %rcx
	movq	_IXGBE_FCTRL_SBP@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	_IXGBE_FCTRL_MPE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_IXGBE_WRITE_REG
	movl	(%rbx), %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.1:
	movq	_IXGBE_MACC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_IXGBE_READ_REG
	movl	%eax, %edx
	movq	_IXGBE_MACC_FLU@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movl	4(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.3:
	movq	_IXGBE_AUTOC@GOTPCREL(%rip), %r14
	movq	_IXGBE_AUTOC_FLU@GOTPCREL(%rip), %rax
LBB0_4:
	orl	(%rax), %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_IXGBE_WRITE_REG
	movq	%rbx, %rdi
	callq	_IXGBE_WRITE_FLUSH
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movslq	(%rbx), %rax
	movq	_ixgbe_mac_82598EB@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	%rax, (%rcx)
	jne	LBB0_6
## %bb.5:
	movq	_IXGBE_ATLAS_PDN_LPBK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	*16(%rbx)
	movq	_IXGBE_ATLAS_PDN_TX_REG_EN@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_IXGBE_ATLAS_PDN_10G@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	*16(%rbx)
	movq	_IXGBE_ATLAS_PDN_TX_10G_QL_ALL@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_IXGBE_ATLAS_PDN_1G@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	*16(%rbx)
	movq	_IXGBE_ATLAS_PDN_TX_1G_QL_ALL@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_IXGBE_ATLAS_PDN_AN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	*16(%rbx)
	movq	_IXGBE_ATLAS_PDN_TX_AN_QL_ALL@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	jmp	LBB0_6
LBB0_7:
	movl	$10, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_HLREG0,4,2               ## @IXGBE_HLREG0
	.comm	_IXGBE_HLREG0_LPBK,4,2          ## @IXGBE_HLREG0_LPBK
	.comm	_IXGBE_FCTRL,4,2                ## @IXGBE_FCTRL
	.comm	_IXGBE_FCTRL_BAM,4,2            ## @IXGBE_FCTRL_BAM
	.comm	_IXGBE_FCTRL_SBP,4,2            ## @IXGBE_FCTRL_SBP
	.comm	_IXGBE_FCTRL_MPE,4,2            ## @IXGBE_FCTRL_MPE
	.comm	_IXGBE_MACC,4,2                 ## @IXGBE_MACC
	.comm	_IXGBE_MACC_FLU,4,2             ## @IXGBE_MACC_FLU
	.comm	_IXGBE_AUTOC_FLU,4,2            ## @IXGBE_AUTOC_FLU
	.comm	_IXGBE_AUTOC,4,2                ## @IXGBE_AUTOC
	.comm	_ixgbe_mac_82598EB,8,3          ## @ixgbe_mac_82598EB
	.comm	_IXGBE_ATLAS_PDN_LPBK,4,2       ## @IXGBE_ATLAS_PDN_LPBK
	.comm	_IXGBE_ATLAS_PDN_TX_REG_EN,4,2  ## @IXGBE_ATLAS_PDN_TX_REG_EN
	.comm	_IXGBE_ATLAS_PDN_10G,4,2        ## @IXGBE_ATLAS_PDN_10G
	.comm	_IXGBE_ATLAS_PDN_TX_10G_QL_ALL,4,2 ## @IXGBE_ATLAS_PDN_TX_10G_QL_ALL
	.comm	_IXGBE_ATLAS_PDN_1G,4,2         ## @IXGBE_ATLAS_PDN_1G
	.comm	_IXGBE_ATLAS_PDN_TX_1G_QL_ALL,4,2 ## @IXGBE_ATLAS_PDN_TX_1G_QL_ALL
	.comm	_IXGBE_ATLAS_PDN_AN,4,2         ## @IXGBE_ATLAS_PDN_AN
	.comm	_IXGBE_ATLAS_PDN_TX_AN_QL_ALL,4,2 ## @IXGBE_ATLAS_PDN_TX_AN_QL_ALL
	.no_dead_strip	_ixgbe_setup_loopback_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_setup_loopback_test
_ixgbe_setup_loopback_test:             ; @ixgbe_setup_loopback_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _IXGBE_HLREG0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IXGBE_HLREG0@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_IXGBE_READ_REG
Lloh2:
	adrp	x8, _IXGBE_HLREG0_LPBK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IXGBE_HLREG0_LPBK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
Lloh5:
	adrp	x20, _IXGBE_FCTRL@GOTPAGE
Lloh6:
	ldr	x20, [x20, _IXGBE_FCTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_IXGBE_READ_REG
Lloh7:
	adrp	x8, _IXGBE_FCTRL_BAM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IXGBE_FCTRL_BAM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _IXGBE_FCTRL_SBP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IXGBE_FCTRL_SBP@GOTPAGEOFF]
Lloh12:
	adrp	x10, _IXGBE_FCTRL_MPE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IXGBE_FCTRL_MPE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	ldr	w10, [x10]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w2, w8, w10
	ldr	w1, [x20]
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
	ldr	w8, [x19]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
Lloh16:
	adrp	x20, _IXGBE_MACC@GOTPAGE
Lloh17:
	ldr	x20, [x20, _IXGBE_MACC@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_IXGBE_READ_REG
Lloh18:
	adrp	x8, _IXGBE_MACC_FLU@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IXGBE_MACC_FLU@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	w0, [x19, #4]
	cbz	w0, LBB0_7
; %bb.3:
Lloh20:
	adrp	x20, _IXGBE_AUTOC@GOTPAGE
Lloh21:
	ldr	x20, [x20, _IXGBE_AUTOC@GOTPAGEOFF]
Lloh22:
	adrp	x8, _IXGBE_AUTOC_FLU@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IXGBE_AUTOC_FLU@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
	mov	x0, x19
	bl	_IXGBE_WRITE_FLUSH
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldrsw	x8, [x19]
Lloh24:
	adrp	x9, _ixgbe_mac_82598EB@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ixgbe_mac_82598EB@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
Lloh27:
	adrp	x20, _IXGBE_ATLAS_PDN_LPBK@GOTPAGE
Lloh28:
	ldr	x20, [x20, _IXGBE_ATLAS_PDN_LPBK@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
Lloh29:
	adrp	x8, _IXGBE_ATLAS_PDN_TX_REG_EN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IXGBE_ATLAS_PDN_TX_REG_EN@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x8, [x19, #8]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
Lloh32:
	adrp	x20, _IXGBE_ATLAS_PDN_10G@GOTPAGE
Lloh33:
	ldr	x20, [x20, _IXGBE_ATLAS_PDN_10G@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
Lloh34:
	adrp	x8, _IXGBE_ATLAS_PDN_TX_10G_QL_ALL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IXGBE_ATLAS_PDN_TX_10G_QL_ALL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x8, [x19, #8]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
Lloh37:
	adrp	x20, _IXGBE_ATLAS_PDN_1G@GOTPAGE
Lloh38:
	ldr	x20, [x20, _IXGBE_ATLAS_PDN_1G@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
Lloh39:
	adrp	x8, _IXGBE_ATLAS_PDN_TX_1G_QL_ALL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IXGBE_ATLAS_PDN_TX_1G_QL_ALL@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x8, [x19, #8]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
Lloh42:
	adrp	x20, _IXGBE_ATLAS_PDN_AN@GOTPAGE
Lloh43:
	ldr	x20, [x20, _IXGBE_ATLAS_PDN_AN@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
Lloh44:
	adrp	x8, _IXGBE_ATLAS_PDN_TX_AN_QL_ALL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IXGBE_ATLAS_PDN_TX_AN_QL_ALL@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x8, [x19, #8]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #10
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_HLREG0,4,2               ; @IXGBE_HLREG0
	.comm	_IXGBE_HLREG0_LPBK,4,2          ; @IXGBE_HLREG0_LPBK
	.comm	_IXGBE_FCTRL,4,2                ; @IXGBE_FCTRL
	.comm	_IXGBE_FCTRL_BAM,4,2            ; @IXGBE_FCTRL_BAM
	.comm	_IXGBE_FCTRL_SBP,4,2            ; @IXGBE_FCTRL_SBP
	.comm	_IXGBE_FCTRL_MPE,4,2            ; @IXGBE_FCTRL_MPE
	.comm	_IXGBE_MACC,4,2                 ; @IXGBE_MACC
	.comm	_IXGBE_MACC_FLU,4,2             ; @IXGBE_MACC_FLU
	.comm	_IXGBE_AUTOC_FLU,4,2            ; @IXGBE_AUTOC_FLU
	.comm	_IXGBE_AUTOC,4,2                ; @IXGBE_AUTOC
	.comm	_ixgbe_mac_82598EB,8,3          ; @ixgbe_mac_82598EB
	.comm	_IXGBE_ATLAS_PDN_LPBK,4,2       ; @IXGBE_ATLAS_PDN_LPBK
	.comm	_IXGBE_ATLAS_PDN_TX_REG_EN,4,2  ; @IXGBE_ATLAS_PDN_TX_REG_EN
	.comm	_IXGBE_ATLAS_PDN_10G,4,2        ; @IXGBE_ATLAS_PDN_10G
	.comm	_IXGBE_ATLAS_PDN_TX_10G_QL_ALL,4,2 ; @IXGBE_ATLAS_PDN_TX_10G_QL_ALL
	.comm	_IXGBE_ATLAS_PDN_1G,4,2         ; @IXGBE_ATLAS_PDN_1G
	.comm	_IXGBE_ATLAS_PDN_TX_1G_QL_ALL,4,2 ; @IXGBE_ATLAS_PDN_TX_1G_QL_ALL
	.comm	_IXGBE_ATLAS_PDN_AN,4,2         ; @IXGBE_ATLAS_PDN_AN
	.comm	_IXGBE_ATLAS_PDN_TX_AN_QL_ALL,4,2 ; @IXGBE_ATLAS_PDN_TX_AN_QL_ALL
	.no_dead_strip	_ixgbe_setup_loopback_test
.subsections_via_symbols
