	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_run_loopback_test
_e1000_run_loopback_test:               ## @e1000_run_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	_RDT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	decl	%esi
	callq	_ew32
	movl	8(%r15), %ecx
	movl	24(%r15), %eax
	cmpl	%eax, %ecx
	cmovgl	%ecx, %eax
	xorl	%ebx, %ebx
	cmpl	$-63, %eax
	jl	LBB0_16
## %bb.1:
	leal	63(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$6, %ecx
	leal	(%rcx,%rcx), %eax
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	movl	$8, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	addq	$12, %rbx
	cmpq	$776, %rbx                      ## imm = 0x308
	je	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	32(%r15), %rax
	movl	(%rax,%rbx), %edi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_e1000_create_lbtest_frame
	movq	32(%r15), %rax
	movslq	%r12d, %r12
	leaq	(%r12,%r12,2), %rcx
	movl	(%rax,%rcx,4), %edx
	movl	4(%rax,%rcx,4), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_dma_sync_single_for_device
	incl	%r12d
	xorl	%edi, %edi
	cmpl	24(%r15), %r12d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_TDT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_ew32
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_E1000_WRITE_FLUSH
	movl	$200, %edi
	callq	_msleep
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	addq	$20, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r15), %rax
	movslq	%r13d, %r13
	leaq	(,%r13,4), %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movl	4(%rax,%rbx), %edx
	movl	8(%rax,%rbx), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_sync_single_for_cpu
	movq	16(%r15), %rax
	movl	(%rax,%rbx), %edi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_e1000_check_lbtest_frame
	movl	%eax, %ebx
	cmpl	$1, %eax
	adcl	$0, %r14d
	incl	%r13d
	xorl	%edi, %edi
	cmpl	8(%r15), %r13d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	xorl	%r13d, %r13d
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$63, %r14d
	ja	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	jb	LBB0_8
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$64, %r14d
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	$2, %rcx
	cmpq	%rcx, %rax
	jae	LBB0_15
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	1(%rcx), %eax
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_3
	jmp	LBB0_16
LBB0_13:
	movl	$13, %ebx
	jmp	LBB0_16
LBB0_15:
	movl	$14, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDT,4,2                        ## @RDT
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_TDT,4,2                        ## @TDT
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_e1000_run_loopback_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_run_loopback_test
_e1000_run_loopback_test:               ; @e1000_run_loopback_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _RDT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w8, [x19, #8]
	sub	w1, w8, #1
	bl	_ew32
	ldr	w8, [x19, #8]
	ldr	w9, [x19, #24]
	cmp	w8, w9
	csel	w8, w8, w9, gt
	cmn	w8, #63
	b.ge	LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_12
LBB0_2:
	mov	w23, #0
	mov	w21, #0
	mov	w10, #0
	add	w9, w8, #63
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #6
	mov	w9, #1
	bfi	w9, w8, #1, #31
	str	w9, [sp]                        ; 4-byte Folded Spill
	mov	w26, #12
Lloh3:
	adrp	x24, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh5:
	adrp	x28, _jiffies@GOTPAGE
Lloh6:
	ldr	x28, [x28, _jiffies@GOTPAGEOFF]
Lloh7:
	adrp	x25, _DMA_FROM_DEVICE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_6 Depth 2
	str	w10, [sp, #4]                   ; 4-byte Folded Spill
	mov	w22, #8
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x22]
	mov	w1, #1024
	bl	_e1000_create_lbtest_frame
	ldr	x8, [x19, #32]
	smaddl	x8, w21, w26, x8
	ldp	w2, w1, [x8]
	ldr	w3, [x24]
	mov	x0, x20
	bl	_dma_sync_single_for_device
	add	w8, w21, #1
	ldr	w9, [x19, #24]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cmp	x0, #0
	csinc	w21, wzr, w21, ne
	add	x22, x22, #12
	cmp	x22, #776
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x8, _TDT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TDT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_ew32
	bl	_E1000_WRITE_FLUSH
	mov	w0, #200
	bl	_msleep
	mov	w24, #0
	ldr	x8, [x28]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x27, x8, #20
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	smaddl	x8, w23, w26, x8
	smull	x22, w23, w26
	ldp	w2, w1, [x8, #4]
	ldr	w3, [x25]
	mov	x0, x20
	bl	_dma_sync_single_for_cpu
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x22]
	mov	w1, #1024
	bl	_e1000_check_lbtest_frame
	mov	x22, x0
	cmp	w0, #0
	cinc	w24, w24, eq
	add	w8, w23, #1
	ldr	w9, [x19, #8]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cmp	x0, #0
	csinc	w23, wzr, w23, ne
	ldr	x8, [x28]
	cmp	w24, #63
	ccmp	x8, x27, #2, ls
	b.lo	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, #64
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x9, x9, #2
	cmp	x8, x9
	b.hs	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w10, w9, [sp]                   ; 8-byte Folded Reload
	add	w8, w9, #1
	cmp	w9, w10
	mov	x10, x8
Lloh12:
	adrp	x24, _DMA_TO_DEVICE@GOTPAGE
Lloh13:
	ldr	x24, [x24, _DMA_TO_DEVICE@GOTPAGEOFF]
	b.ne	LBB0_3
	b	LBB0_12
LBB0_10:
	mov	w22, #13
	b	LBB0_12
LBB0_11:
	mov	w22, #14
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RDT,4,2                        ; @RDT
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_TDT,4,2                        ; @TDT
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_e1000_run_loopback_test
.subsections_via_symbols
