	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_loopback_test
_igb_loopback_test:                     ## @igb_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_igb_check_reset_block
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_2
LBB0_3:
	movq	(%rbx), %rax
	movq	_e1000_i354@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
LBB0_2:
	movl	$0, (%r14)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	callq	_igb_setup_desc_rings
	movl	%eax, (%r14)
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	callq	_igb_setup_loopback_test
	movl	%eax, (%r14)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_igb_run_loopback_test
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_igb_loopback_cleanup
LBB0_8:
	movq	%r15, %rdi
	callq	_igb_free_desc_rings
	movl	(%r14), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot do PHY loopback test when SoL/IDER is active.\n"

	.comm	_e1000_i354,8,3                 ## @e1000_i354
L_.str.1:                               ## @.str.1
	.asciz	"Loopback test not supported on i354.\n"

	.no_dead_strip	_igb_loopback_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_loopback_test
_igb_loopback_test:                     ; @igb_loopback_test
	.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, x1
	mov	x20, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_igb_check_reset_block
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_2:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _e1000_i354@GOTPAGE
Lloh3:
	ldr	x9, [x9, _e1000_i354@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x0, [x20]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
LBB0_4:
	mov	w0, #0
	str	wzr, [x19]
LBB0_5:
	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
LBB0_6:
	mov	x0, x20
	bl	_igb_setup_desc_rings
	str	w0, [x19]
	cbnz	w0, LBB0_5
; %bb.7:
	mov	x0, x20
	bl	_igb_setup_loopback_test
	str	w0, [x19]
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_igb_run_loopback_test
	str	w0, [x19]
	mov	x0, x20
	bl	_igb_loopback_cleanup
LBB0_9:
	mov	x0, x20
	bl	_igb_free_desc_rings
	ldr	w0, [x19]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot do PHY loopback test when SoL/IDER is active.\n"

	.comm	_e1000_i354,8,3                 ; @e1000_i354
l_.str.1:                               ; @.str.1
	.asciz	"Loopback test not supported on i354.\n"

	.no_dead_strip	_igb_loopback_test
.subsections_via_symbols
