	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r13
	movl	16(%rdi), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	$3686400, 16(%rdi)              ## imm = 0x384000
	movq	$0, 8(%rdi)
	movq	_DiagStatus_DmaFailure@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rdi)
	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	24(%rdi), %edi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	leaq	20(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	callq	_hdlc_mode
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_enable_loopback
	movq	%r12, %rdi
	callq	_rx_start
	movl	$20, (%r12)
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	movl	$20, %edx
	callq	_tx_load_dma_buffer
	movq	%r12, %rdi
	callq	_tx_start
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	$-100, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_msleep_interruptible
	movq	%r12, %rdi
	callq	_rx_get_frame
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	jne	LBB0_2
	jmp	LBB0_6
LBB0_3:
	cmpl	$20, 4(%r12)
	jne	LBB0_6
## %bb.4:
	movl	24(%r12), %esi
	leaq	-80(%rbp), %rdi
	movl	$20, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	callq	_reset_adapter
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, 16(%r12)
	movq	%r13, 8(%r12)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$1, %r15d
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.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,__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	2
_loopback_test:                         ; @loopback_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	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, #24]
	ldr	x22, [x0, #8]
	ldr	w23, [x0, #16]
	mov	w8, #16384
	movk	w8, #56, lsl #16
	str	w8, [x0, #16]
	str	xzr, [x0, #8]
Lloh3:
	adrp	x8, _DiagStatus_DmaFailure@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DiagStatus_DmaFailure@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #28]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]
	mov	w8, #4368
	movk	w8, #4882, lsl #16
	str	w8, [sp, #16]
	ldr	w0, [x0, #24]
	mov	w21, #20
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	add	x20, x19, #20
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_hdlc_mode
	mov	x0, x19
	mov	w1, #1
	bl	_enable_loopback
	mov	x0, x19
	bl	_rx_start
	str	w21, [x19]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #20
	bl	_tx_load_dma_buffer
	mov	x0, x19
	bl	_tx_start
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x21, #-100
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_msleep_interruptible
	mov	x0, x19
	bl	_rx_get_frame
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	adds	x21, x21, #1
	b.lo	LBB0_1
	b	LBB0_5
LBB0_3:
	ldr	w8, [x19, #4]
	cmp	w8, #20
	b.ne	LBB0_5
; %bb.4:
	ldr	w1, [x19, #24]
	mov	x0, sp
	mov	w2, #20
	bl	_memcmp
	cbz	x0, LBB0_8
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_reset_adapter
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	str	w23, [x19, #16]
	str	x22, [x19, #8]
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	mov	w21, #1
	b	LBB0_6
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DiagStatus_DmaFailure,4,2      ; @DiagStatus_DmaFailure
	.comm	_TESTFRAMESIZE,4,2              ; @TESTFRAMESIZE
	.no_dead_strip	_loopback_test
.subsections_via_symbols
