	.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_15
## %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	%r14, -56(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	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
	movq	%r13, %rbx
	shlq	$4, %rbx
	movl	8(%rax,%rbx), %esi
	movq	_E1000_RXBUFFER_2048@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_sync_single_for_cpu
	movq	16(%r15), %rax
	movq	_NET_SKB_PAD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	(%rax,%rbx), %rdi
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	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), %rsi
	cmpl	$63, %r14d
	ja	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	$2, %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_time_after_eq
	testq	%rax, %rax
	jne	LBB0_14
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%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	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_3
	jmp	LBB0_15
LBB0_12:
	movl	$13, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	$14, %ebx
	jmp	LBB0_15
	.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	_E1000_RXBUFFER_2048,4,2        ## @E1000_RXBUFFER_2048
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_NET_SKB_PAD,8,3                ## @NET_SKB_PAD
	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.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	w23, #0
	b	LBB0_11
LBB0_2:
	mov	w24, #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	w27, #12
Lloh3:
	adrp	x28, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh5:
	adrp	x25, _TDT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _TDT@GOTPAGEOFF]
Lloh7:
	adrp	x26, _jiffies@GOTPAGE
Lloh8:
	ldr	x26, [x26, _jiffies@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, w27, x8
	ldp	w2, w1, [x8]
	ldr	w3, [x28]
	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
	ldr	w0, [x25]
	mov	x1, x21
	bl	_ew32
	bl	_E1000_WRITE_FLUSH
	mov	w0, #200
	bl	_msleep
	mov	w25, #0
	ldr	x8, [x26]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x22, x8, #20
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	sbfiz	x23, x24, #4, #32
	add	x8, x8, x23
	ldr	w1, [x8, #8]
Lloh9:
	adrp	x8, _E1000_RXBUFFER_2048@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E1000_RXBUFFER_2048@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_dma_sync_single_for_cpu
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x23]
Lloh15:
	adrp	x9, _NET_SKB_PAD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NET_SKB_PAD@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _NET_IP_ALIGN@GOTPAGE
Lloh19:
	ldr	x10, [x10, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x0, x8, x10
	mov	w1, #1024
	bl	_e1000_check_lbtest_frame
	mov	x23, x0
	cmp	w0, #0
	cinc	w25, w25, eq
	add	w8, w24, #1
	ldr	w9, [x19, #8]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cmp	x0, #0
	csinc	w24, wzr, w24, ne
	ldr	x1, [x26]
	cmp	w25, #63
	b.hi	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x22
	bl	_time_after
	cbnz	x0, LBB0_6
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x8, #2
	mov	x0, x1
	mov	x1, x8
	bl	_time_after_eq
	cbnz	x0, LBB0_12
; %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
Lloh21:
	adrp	x25, _TDT@GOTPAGE
Lloh22:
	ldr	x25, [x25, _TDT@GOTPAGEOFF]
	b.ne	LBB0_3
	b	LBB0_11
LBB0_10:
	mov	w23, #13
LBB0_11:
	mov	x0, x23
	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
LBB0_12:
	mov	w23, #14
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh21, Lloh22
	.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	_E1000_RXBUFFER_2048,4,2        ; @E1000_RXBUFFER_2048
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_NET_SKB_PAD,8,3                ; @NET_SKB_PAD
	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.no_dead_strip	_e1000_run_loopback_test
.subsections_via_symbols
