	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function loopback_test
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	2                               ## 0x2
	.byte	3                               ## 0x3
	.byte	4                               ## 0x4
	.byte	5                               ## 0x5
	.byte	6                               ## 0x6
	.byte	7                               ## 0x7
	.byte	8                               ## 0x8
	.byte	9                               ## 0x9
	.byte	10                              ## 0xa
	.byte	11                              ## 0xb
	.byte	12                              ## 0xc
	.byte	13                              ## 0xd
	.byte	14                              ## 0xe
	.byte	15                              ## 0xf
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_loopback_test:                         ## @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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	16(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	24(%rdi), %rsi
	leaq	-112(%rbp), %rdi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movl	$12, %edx
	callq	_memcpy
	movq	_MGSL_MODE_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movabsq	$4295888896, %rax               ## imm = 0x1000E1000
	movq	%rax, 24(%rbx)
	movq	$0, 16(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
	movaps	%xmm0, -80(%rbp)
	movl	$319951120, -64(%rbp)           ## imm = 0x13121110
	movl	%r13d, %r15d
	negl	%r15d
	movl	$0, (%rbx)
	movl	40(%rbx), %edi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	leaq	36(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_async_mode
	movq	%rbx, %rdi
	callq	_rx_start
	movl	$20, 4(%rbx)
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$20, %edx
	callq	_tx_load
	movq	%rbx, %rdi
	callq	_tx_start
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	$-100, %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_msleep_interruptible
	movq	%rbx, %rdi
	callq	_loopback_test_rx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	jne	LBB0_2
## %bb.3:
	testl	%r13d, %r13d
	jne	LBB0_8
LBB0_4:
	cmpl	$20, (%rbx)
	jne	LBB0_7
## %bb.5:
	movl	40(%rbx), %esi
	leaq	-80(%rbp), %rdi
	movl	$20, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	xorl	%r15d, %r15d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_8:
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_reset_adapter
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	leaq	-112(%rbp), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	$12, %edx
	callq	_memcpy
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movl	%r15d, %eax
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.9:
	movq	_DiagStatus_DmaFailure@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	movl	%eax, 8(%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MGSL_MODE_ASYNC,4,2            ## @MGSL_MODE_ASYNC
	.comm	_DiagStatus_DmaFailure,4,2      ## @DiagStatus_DmaFailure
	.comm	_TESTFRAMESIZE,4,2              ## @TESTFRAMESIZE
	.no_dead_strip	_loopback_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function loopback_test
lCPI0_0:
	.long	921600                          ; 0xe1000
	.long	1                               ; 0x1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.byte	0                               ; 0x0
	.byte	1                               ; 0x1
	.byte	2                               ; 0x2
	.byte	3                               ; 0x3
	.byte	4                               ; 0x4
	.byte	5                               ; 0x5
	.byte	6                               ; 0x6
	.byte	7                               ; 0x7
	.byte	8                               ; 0x8
	.byte	9                               ; 0x9
	.byte	10                              ; 0xa
	.byte	11                              ; 0xb
	.byte	12                              ; 0xc
	.byte	13                              ; 0xd
	.byte	14                              ; 0xe
	.byte	15                              ; 0xf
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_loopback_test:                         ; @loopback_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x24, _ENODEV@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ENODEV@GOTPAGEOFF]
	ldr	w25, [x24]
	ldr	x23, [x0, #16]
	add	x20, x0, #24
	mov	x0, sp
	mov	x1, x20
	mov	w2, #12
	bl	_memcpy
Lloh5:
	adrp	x8, _MGSL_MODE_ASYNC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MGSL_MODE_ASYNC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #24]
	str	xzr, [x19, #16]
Lloh10:
	adrp	x8, lCPI0_1@PAGE
Lloh11:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	str	q0, [sp, #16]
	mov	w8, #4368
	movk	w8, #4882, lsl #16
	str	w8, [sp, #32]
	neg	w21, w25
	str	wzr, [x19]
	ldr	w0, [x19, #40]
	mov	w26, #20
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	add	x22, x19, #36
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_async_mode
	mov	x0, x19
	bl	_rx_start
	str	w26, [x19, #4]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #20
	bl	_tx_load
	mov	x0, x19
	bl	_tx_start
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x26, #-100
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_msleep_interruptible
	mov	x0, x19
	bl	_loopback_test_rx
	cbnz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	adds	x26, x26, #1
	b.lo	LBB0_1
; %bb.3:
	cbnz	w25, LBB0_7
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #20
	b.ne	LBB0_6
; %bb.5:
	ldr	w1, [x19, #40]
	add	x0, sp, #16
	mov	w2, #20
	bl	_memcmp
	cbz	x0, LBB0_9
LBB0_6:
	ldr	w8, [x24]
	neg	w21, w8
LBB0_7:
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_reset_adapter
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x1, sp
	mov	x0, x20
	mov	w2, #12
	bl	_memcpy
	str	x23, [x19, #16]
Lloh12:
	adrp	x8, _DiagStatus_DmaFailure@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DiagStatus_DmaFailure@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w21, #0
	csel	w8, wzr, w8, eq
	str	w8, [x19, #8]
	ldr	x8, [sp, #40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	mov	w21, #0
	b	LBB0_7
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MGSL_MODE_ASYNC,4,2            ; @MGSL_MODE_ASYNC
	.comm	_DiagStatus_DmaFailure,4,2      ; @DiagStatus_DmaFailure
	.comm	_TESTFRAMESIZE,4,2              ; @TESTFRAMESIZE
	.no_dead_strip	_loopback_test
.subsections_via_symbols
