	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpphy_loopback
_lpphy_loopback:                        ## @lpphy_loopback
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-48(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_lpphy_set_trsw_over
	movq	_B43_LPPHY_AFE_CTL_OVR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_b43_phy_set
	movq	_B43_LPPHY_AFE_CTL_OVRVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$65534, %edx                    ## imm = 0xFFFE
	callq	_b43_phy_mask
	movq	_B43_LPPHY_RF_OVERRIDE_0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_b43_phy_set
	movq	_B43_LPPHY_RF_OVERRIDE_VAL_0@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_b43_phy_set
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_b43_phy_set
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_b43_phy_set
	movq	_B2062_N_TX_CTL_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$128, %edx
	callq	_b43_radio_write
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$128, %edx
	callq	_b43_phy_set
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	$128, %edx
	callq	_b43_phy_set
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	cmpl	$32, %ebx
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_lpphy_set_rx_gain_by_index
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	movl	$5, %ecx
	movl	$5, %r8d
	xorl	%r9d, %r9d
	callq	_lpphy_run_ddfs
	movq	%r14, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	movl	$32, %edx
	movq	%r15, %rcx
	callq	_lpphy_rx_iq_est
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ecx
	addl	%ecx, %eax
	addl	$-4001000, %eax                 ## imm = 0xFFC2F318
	cmpl	$5999000, %eax                  ## imm = 0x5B8998
	jae	LBB0_3
	jmp	LBB0_5
LBB0_4:
	movl	$-1, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_lpphy_stop_ddfs
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_LPPHY_AFE_CTL_OVR,4,2      ## @B43_LPPHY_AFE_CTL_OVR
	.comm	_B43_LPPHY_AFE_CTL_OVRVAL,4,2   ## @B43_LPPHY_AFE_CTL_OVRVAL
	.comm	_B43_LPPHY_RF_OVERRIDE_0,4,2    ## @B43_LPPHY_RF_OVERRIDE_0
	.comm	_B43_LPPHY_RF_OVERRIDE_VAL_0,4,2 ## @B43_LPPHY_RF_OVERRIDE_VAL_0
	.comm	_B2062_N_TX_CTL_A,4,2           ## @B2062_N_TX_CTL_A
	.no_dead_strip	_lpphy_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpphy_loopback
_lpphy_loopback:                        ; @lpphy_loopback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_lpphy_set_trsw_over
Lloh0:
	adrp	x8, _B43_LPPHY_AFE_CTL_OVR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_LPPHY_AFE_CTL_OVR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_b43_phy_set
Lloh3:
	adrp	x8, _B43_LPPHY_AFE_CTL_OVRVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_LPPHY_AFE_CTL_OVRVAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65534
	bl	_b43_phy_mask
Lloh6:
	adrp	x20, _B43_LPPHY_RF_OVERRIDE_0@GOTPAGE
Lloh7:
	ldr	x20, [x20, _B43_LPPHY_RF_OVERRIDE_0@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #2048
	bl	_b43_phy_set
Lloh8:
	adrp	x21, _B43_LPPHY_RF_OVERRIDE_VAL_0@GOTPAGE
Lloh9:
	ldr	x21, [x21, _B43_LPPHY_RF_OVERRIDE_VAL_0@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #2048
	bl	_b43_phy_set
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #8
	bl	_b43_phy_set
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #8
	bl	_b43_phy_set
Lloh10:
	adrp	x8, _B2062_N_TX_CTL_A@GOTPAGE
Lloh11:
	ldr	x8, [x8, _B2062_N_TX_CTL_A@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #128
	bl	_b43_radio_write
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #128
	bl	_b43_phy_set
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #128
	bl	_b43_phy_set
	mov	w20, #0
	mov	w21, #62232
	movk	w21, #65474, lsl #16
	mov	w22, #35224
	movk	w22, #91, lsl #16
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #1
	cmp	w20, #32
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_lpphy_set_rx_gain_by_index
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	mov	w3, #5
	mov	w4, #5
	mov	w5, #0
	bl	_lpphy_run_ddfs
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #1000
	mov	w2, #32
	bl	_lpphy_rx_iq_est
	cbz	w0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w8, w9, [sp, #8]
	add	w8, w8, w9
	add	w8, w8, w21
	cmp	w8, w22
	b.hs	LBB0_1
	b	LBB0_5
LBB0_4:
	mov	w20, #-1
LBB0_5:
	mov	x0, x19
	bl	_lpphy_stop_ddfs
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_LPPHY_AFE_CTL_OVR,4,2      ; @B43_LPPHY_AFE_CTL_OVR
	.comm	_B43_LPPHY_AFE_CTL_OVRVAL,4,2   ; @B43_LPPHY_AFE_CTL_OVRVAL
	.comm	_B43_LPPHY_RF_OVERRIDE_0,4,2    ; @B43_LPPHY_RF_OVERRIDE_0
	.comm	_B43_LPPHY_RF_OVERRIDE_VAL_0,4,2 ; @B43_LPPHY_RF_OVERRIDE_VAL_0
	.comm	_B2062_N_TX_CTL_A,4,2           ; @B2062_N_TX_CTL_A
	.no_dead_strip	_lpphy_loopback
.subsections_via_symbols
