	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_calc_loopback_gain
_b43legacy_calc_loopback_gain:          ## @b43legacy_calc_loopback_gain
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$1065, %esi                     ## imm = 0x429
	callq	_b43legacy_phy_read
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_read
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_read
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	cmpl	$1, 8(%r14)
	movl	$0, %ebx
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$2068, %esi                     ## imm = 0x814
	callq	_b43legacy_phy_read
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$2069, %esi                     ## imm = 0x815
	callq	_b43legacy_phy_read
LBB0_2:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$90, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	$89, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	$88, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$2063, %esi                     ## imm = 0x80F
	callq	_b43legacy_phy_read
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$2064, %esi                     ## imm = 0x810
	callq	_b43legacy_phy_read
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$43, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$21, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$45, %esi
	callq	_b43legacy_phy_read
	movl	12(%r14), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$82, %esi
	callq	_b43legacy_radio_read16
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$67, %esi
	callq	_b43legacy_radio_read16
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$1065, %esi                     ## imm = 0x429
	callq	_b43legacy_phy_read
	andl	$16383, %eax                    ## imm = 0x3FFF
	movq	%r14, %rdi
	movl	$1065, %esi                     ## imm = 0x429
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_b43legacy_phy_read
	andl	$32768, %eax                    ## imm = 0x8000
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_read
	orl	$2, %eax
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_read
	andl	$65533, %eax                    ## imm = 0xFFFD
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_read
	orl	$1, %eax
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_read
	andl	$65534, %eax                    ## imm = 0xFFFE
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	cmpl	$1, 8(%r14)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	$2068, %esi                     ## imm = 0x814
	callq	_b43legacy_phy_read
	orl	$1, %eax
	movq	%r14, %rdi
	movl	$2068, %esi                     ## imm = 0x814
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2069, %esi                     ## imm = 0x815
	callq	_b43legacy_phy_read
	andl	$65534, %eax                    ## imm = 0xFFFE
	movq	%r14, %rdi
	movl	$2069, %esi                     ## imm = 0x815
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2068, %esi                     ## imm = 0x814
	callq	_b43legacy_phy_read
	orl	$2, %eax
	movq	%r14, %rdi
	movl	$2068, %esi                     ## imm = 0x814
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2069, %esi                     ## imm = 0x815
	callq	_b43legacy_phy_read
	andl	$65533, %eax                    ## imm = 0xFFFD
	movq	%r14, %rdi
	movl	$2069, %esi                     ## imm = 0x815
	movl	%eax, %edx
	callq	_b43legacy_phy_write
LBB0_4:
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_read
	orl	$12, %eax
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_read
	orl	$12, %eax
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_read
	orl	$48, %eax
	movzwl	%ax, %edx
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65487, %eax                    ## imm = 0xFFCF
	leal	16(%rax), %edx
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$90, %esi
	movl	$1920, %edx                     ## imm = 0x780
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$89, %esi
	movl	$51216, %edx                    ## imm = 0xC810
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$88, %esi
	movl	$13, %edx
	callq	_b43legacy_phy_write
	cmpq	$0, 16(%r14)
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_b43legacy_phy_read
	orl	$8192, %eax                     ## imm = 0x2000
	movq	%r14, %rdi
	movl	$10, %esi
	movl	%eax, %edx
	jmp	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	movl	$3, %esi
	movl	$290, %edx                      ## imm = 0x122
LBB0_7:
	callq	_b43legacy_phy_write
	cmpl	$1, 8(%r14)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movl	$2068, %esi                     ## imm = 0x814
	callq	_b43legacy_phy_read
	orl	$4, %eax
	movq	%r14, %rdi
	movl	$2068, %esi                     ## imm = 0x814
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2069, %esi                     ## imm = 0x815
	callq	_b43legacy_phy_read
	andl	$65531, %eax                    ## imm = 0xFFFB
	movq	%r14, %rdi
	movl	$2069, %esi                     ## imm = 0x815
	movl	%eax, %edx
	callq	_b43legacy_phy_write
LBB0_9:
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65439, %eax                    ## imm = 0xFF9F
	leal	64(%rax), %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_b43legacy_phy_write
	movl	28(%r14), %eax
	cmpl	$8272, 24(%r14)                 ## imm = 0x2050
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jne	LBB0_12
## %bb.10:
	cmpl	$2, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movl	$82, %esi
	xorl	%edx, %edx
	callq	_b43legacy_radio_write16
	movq	%r14, %rdi
	movl	$67, %esi
	callq	_b43legacy_radio_read16
	movl	%eax, %edx
	andl	$65520, %edx                    ## imm = 0xFFF0
	orl	$9, %edx
	movl	$9, %ebx
	jmp	LBB0_13
LBB0_12:
	xorl	%r13d, %r13d
	movl	$15, %edx
	movl	$15, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$8, %eax
	jne	LBB0_14
LBB0_13:
	movq	%r14, %rdi
	movl	$67, %esi
	callq	_b43legacy_radio_write16
	movb	$1, %r13b
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_14:
	movq	%r14, %rdi
	movl	$11, %esi
	callq	_b43legacy_phy_set_baseband_attenuation
	xorl	%edx, %edx
	cmpl	$3, 8(%r14)
	setge	%dl
	shll	$14, %edx
	orl	$32800, %edx                    ## imm = 0x8020
	movq	%r14, %rdi
	movl	$2063, %esi                     ## imm = 0x80F
	callq	_b43legacy_phy_write
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$2064, %esi                     ## imm = 0x810
	xorl	%edx, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$43, %esi
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65472, %eax                    ## imm = 0xFFC0
	leal	1(%rax), %edx
	movq	%r14, %rdi
	movl	$43, %esi
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$43, %esi
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$49407, %eax                    ## imm = 0xC0FF
	leal	2048(%rax), %edx
	movq	%r14, %rdi
	movl	$43, %esi
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_read
	orl	$256, %eax                      ## imm = 0x100
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_read
	andl	$53247, %eax                    ## imm = 0xCFFF
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_B43legacy_BFL_EXTLNA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_17
## %bb.15:
	cmpl	$7, 8(%r14)
	jl	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_read
	orl	$2048, %eax                     ## imm = 0x800
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_read
	orl	$32768, %eax                    ## imm = 0x8000
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	%eax, %edx
	callq	_b43legacy_phy_write
LBB0_17:
	movq	%r14, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	andl	$247, %eax
	movq	%r14, %rdi
	movl	$122, %esi
	movl	%eax, %edx
	callq	_b43legacy_radio_write16
	testb	%r13b, %r13b
	je	LBB0_27
## %bb.18:
	movl	%r12d, %ebx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	movl	$1, %r13d
	cmovael	%eax, %r13d
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$67, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_radio_write16
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_read
	andl	$61695, %eax                    ## imm = 0xF0FF
	orl	%r12d, %eax
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$21, %esi
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$4095, %eax                     ## imm = 0xFFF
	leal	40960(%rax), %edx
	movq	%r14, %rdi
	movl	$21, %esi
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$21, %esi
	callq	_b43legacy_phy_read
	orl	$61440, %eax                    ## imm = 0xF000
	movzwl	%ax, %edx
	movq	%r14, %rdi
	movl	$21, %esi
	callq	_b43legacy_phy_write
	movl	$20, %edi
	callq	_udelay
	movq	%r14, %rdi
	movl	$45, %esi
	callq	_b43legacy_phy_read
	cmpl	$3579, %eax                     ## imm = 0xDFB
	jg	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	incl	%r15d
	addl	$256, %r12d                     ## imm = 0x100
	cmpl	%r15d, %r13d
	jne	LBB0_19
## %bb.21:
	movl	%r13d, %r15d
LBB0_22:
	movl	%ebx, %r12d
	cmpl	$8, %r15d
	jb	LBB0_27
## %bb.23:
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_read
	orl	$48, %eax
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	cmpl	$23, %r15d
	jg	LBB0_27
## %bb.24:
	movl	%r15d, %ebx
	shll	$8, %ebx
	addl	$-2048, %ebx                    ## imm = 0xF800
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_read
	andl	$61695, %eax                    ## imm = 0xF0FF
	orl	%ebx, %eax
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$21, %esi
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$4095, %eax                     ## imm = 0xFFF
	leal	40960(%rax), %edx
	movq	%r14, %rdi
	movl	$21, %esi
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$21, %esi
	callq	_b43legacy_phy_read
	orl	$61440, %eax                    ## imm = 0xF000
	movzwl	%ax, %edx
	movq	%r14, %rdi
	movl	$21, %esi
	callq	_b43legacy_phy_write
	movl	$20, %edi
	callq	_udelay
	movq	%r14, %rdi
	movl	$45, %esi
	callq	_b43legacy_phy_read
	cmpl	$3579, %eax                     ## imm = 0xDFB
	jg	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	leal	256(%rbx), %eax
	cmpl	$3840, %ebx                     ## imm = 0xF00
	movl	%eax, %ebx
	jne	LBB0_25
LBB0_27:
	cmpl	$1, 8(%r14)
	je	LBB0_29
## %bb.28:
	movq	%r14, %rdi
	movl	$2068, %esi                     ## imm = 0x814
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2069, %esi                     ## imm = 0x815
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
LBB0_29:
	movl	%r15d, %r13d
	subl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	%r14, %rdi
	movl	$90, %esi
	movl	-104(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$89, %esi
	movl	-100(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$88, %esi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$10, %esi
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$3, %esi
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2063, %esi                     ## imm = 0x80F
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2064, %esi                     ## imm = 0x810
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$43, %esi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$21, %esi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_b43legacy_phy_set_baseband_attenuation
	movq	%r14, %rdi
	movl	$82, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_radio_write16
	movq	%r14, %rdi
	movl	$67, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_radio_write16
	movq	%r14, %rdi
	movl	$122, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_radio_write16
	movl	-112(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %edx
	orl	$3, %edx
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_write
	movl	$10, %edi
	callq	_udelay
	movq	%r14, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	movl	%ebx, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	-108(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$1065, %esi                     ## imm = 0x429
	movl	%r12d, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$1, %esi
	movl	-116(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_phy_write
	leal	(%r15,%r15,2), %eax
	shll	$2, %r13d
	leal	-11(%r13,%rax,2), %eax
	movq	32(%r14), %rcx
	movl	%eax, (%rcx)
	movl	$48, 4(%rcx)
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_BFL_EXTLNA,4,2       ## @B43legacy_BFL_EXTLNA
	.no_dead_strip	_b43legacy_calc_loopback_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_calc_loopback_gain
_b43legacy_calc_loopback_gain:          ; @b43legacy_calc_loopback_gain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	w1, #1065
	bl	_b43legacy_phy_read
	mov	x28, x0
	mov	x0, x19
	mov	w1, #1
	bl	_b43legacy_phy_read
	mov	x21, x0
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_read
	mov	x22, x0
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_read
	mov	x23, x0
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w24, #0
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w1, #2068
	bl	_b43legacy_phy_read
	mov	x20, x0
	mov	x0, x19
	mov	w1, #2069
	bl	_b43legacy_phy_read
	mov	x24, x0
LBB0_3:
	mov	x0, x19
	mov	w1, #90
	bl	_b43legacy_phy_read
	mov	x27, x0
	mov	x0, x19
	mov	w1, #89
	bl	_b43legacy_phy_read
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #88
	bl	_b43legacy_phy_read
	str	w0, [sp, #56]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #10
	bl	_b43legacy_phy_read
	str	w0, [sp, #52]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #3
	bl	_b43legacy_phy_read
	str	w0, [sp, #48]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #2063
	bl	_b43legacy_phy_read
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #2064
	bl	_b43legacy_phy_read
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #43
	bl	_b43legacy_phy_read
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_read
	str	w0, [sp, #32]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #45
	bl	_b43legacy_phy_read
	ldr	w8, [x19, #12]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #82
	bl	_b43legacy_radio_read16
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #67
	bl	_b43legacy_radio_read16
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #1065
	bl	_b43legacy_phy_read
	and	w2, w0, #0x3fff
	mov	x0, x19
	mov	w1, #1065
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1
	bl	_b43legacy_phy_read
	and	w2, w0, #0x8000
	mov	x0, x19
	mov	w1, #1
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x2
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_read
	mov	w25, #65533
	and	w2, w0, w25
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x1
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_read
	and	w2, w0, #0xfffe
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #2068
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x1
	mov	x0, x19
	mov	w1, #2068
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2069
	bl	_b43legacy_phy_read
	and	w2, w0, #0xfffe
	mov	x0, x19
	mov	w1, #2069
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2068
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x2
	mov	x0, x19
	mov	w1, #2068
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2069
	bl	_b43legacy_phy_read
	and	w2, w0, w25
	mov	x0, x19
	mov	w1, #2069
	bl	_b43legacy_phy_write
LBB0_5:
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_read
	orr	w2, w0, #0xc
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_read
	orr	w2, w0, #0xc
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_read
	and	w8, w0, #0xffff
	orr	w2, w8, #0x30
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_read
	mov	w8, #65487
	and	w8, w0, w8
	orr	w2, w8, #0x10
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #90
	mov	w2, #1920
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #89
	mov	w2, #51216
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #88
	mov	w2, #13
	bl	_b43legacy_phy_write
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #10
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x2000
	mov	x0, x19
	mov	w1, #10
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	w1, #3
	mov	w2, #290
LBB0_8:
	bl	_b43legacy_phy_write
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #2068
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x4
	mov	x0, x19
	mov	w1, #2068
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2069
	bl	_b43legacy_phy_read
	mov	w8, #65531
	and	w2, w0, w8
	mov	x0, x19
	mov	w1, #2069
	bl	_b43legacy_phy_write
LBB0_10:
	mov	x0, x19
	mov	w1, #3
	bl	_b43legacy_phy_read
	mov	w8, #65439
	and	w8, w0, w8
	orr	w2, w8, #0x40
	mov	x0, x19
	mov	w1, #3
	bl	_b43legacy_phy_write
	ldp	w9, w8, [x19, #24]
	mov	w10, #8272
	cmp	w9, w10
	b.ne	LBB0_13
; %bb.11:
	cmp	w8, #2
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	w1, #82
	mov	w2, #0
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #67
	bl	_b43legacy_radio_read16
	and	w8, w0, #0xfff0
	mov	w25, #9
	orr	w2, w8, w25
	b	LBB0_15
LBB0_13:
	cmp	w8, #8
	b.ne	LBB0_16
; %bb.14:
	mov	w2, #15
	mov	w25, #15
LBB0_15:
	mov	x0, x19
	mov	w1, #67
	bl	_b43legacy_radio_write16
	mov	w26, #1
	b	LBB0_17
LBB0_16:
	mov	w26, #0
	mov	w25, #0
LBB0_17:
	mov	x0, x19
	mov	w1, #11
	bl	_b43legacy_phy_set_baseband_attenuation
	ldr	w8, [x19, #8]
	mov	w9, #32800
	mov	w10, #49184
	cmp	w8, #2
	csel	w2, w10, w9, gt
	mov	x0, x19
	mov	w1, #2063
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2064
	mov	w2, #0
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #43
	bl	_b43legacy_phy_read
	and	w8, w0, #0xffc0
	orr	w2, w8, #0x1
	mov	x0, x19
	mov	w1, #43
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #43
	bl	_b43legacy_phy_read
	mov	w8, #49407
	and	w8, w0, w8
	orr	w2, w8, #0x800
	mov	x0, x19
	mov	w1, #43
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x100
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_read
	mov	w8, #53247
	and	w2, w0, w8
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _B43legacy_BFL_EXTLNA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B43legacy_BFL_EXTLNA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.18:
	ldr	w8, [x19, #8]
	cmp	w8, #7
	b.lt	LBB0_20
; %bb.19:
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x800
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x8000
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
LBB0_20:
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	mov	w8, #247
	and	w2, w0, w8
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_write16
	cbz	w26, LBB0_31
; %bb.21:
	stp	w27, w20, [sp, #8]              ; 8-byte Folded Spill
	str	w22, [sp, #4]                   ; 4-byte Folded Spill
	mov	x22, x24
	mov	x24, x23
	mov	x23, x21
	mov	x21, x28
	mov	w27, #0
	mov	w26, #0
	cmp	w25, #1
	csinc	w28, w25, wzr, hi
	mov	w20, #61695
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #67
	mov	x2, x25
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_read
	and	w8, w0, w20
	orr	w2, w8, w27
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_read
	mov	w2, #40960
	bfxil	w2, w0, #0, #12
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_read
	mov	w2, #61440
	bfxil	w2, w0, #0, #12
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_write
	mov	w0, #20
	bl	_udelay
	mov	x0, x19
	mov	w1, #45
	bl	_b43legacy_phy_read
	cmp	w0, #3579
	b.gt	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	add	w26, w26, #1
	add	w27, w27, #256
	cmp	w28, w26
	b.ne	LBB0_22
; %bb.24:
	mov	x26, x28
LBB0_25:
	mov	x28, x21
	mov	x21, x23
	mov	x23, x24
	mov	x24, x22
	ldp	w22, w27, [sp, #4]              ; 8-byte Folded Reload
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w26, #8
	b.lo	LBB0_31
; %bb.26:
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x30
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
	cmp	w26, #23
	b.gt	LBB0_31
; %bb.27:
	lsl	w8, w26, #8
	sub	w20, w8, #2048
	mov	w27, #61695
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_read
	and	w8, w0, w27
	orr	w2, w8, w20
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_read
	mov	w2, #40960
	bfxil	w2, w0, #0, #12
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_read
	mov	w2, #61440
	bfxil	w2, w0, #0, #12
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_write
	mov	w0, #20
	bl	_udelay
	mov	x0, x19
	mov	w1, #45
	bl	_b43legacy_phy_read
	cmp	w0, #3579
	b.gt	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	add	w8, w20, #256
	cmp	w20, #3840
	mov	x20, x8
	b.ne	LBB0_28
LBB0_30:
	ldp	w27, w20, [sp, #8]              ; 8-byte Folded Reload
LBB0_31:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.eq	LBB0_33
; %bb.32:
	mov	x0, x19
	mov	w1, #2068
	mov	x2, x20
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2069
	mov	x2, x24
	bl	_b43legacy_phy_write
LBB0_33:
	sub	w25, w26, w25
	mov	x0, x19
	mov	w1, #90
	mov	x2, x27
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #89
	ldr	w2, [sp, #60]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #88
	ldr	w2, [sp, #56]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #10
	ldr	w2, [sp, #52]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #3
	ldr	w2, [sp, #48]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2063
	ldr	w2, [sp, #44]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2064
	ldr	w2, [sp, #40]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #43
	ldr	w2, [sp, #36]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #21
	ldr	w2, [sp, #32]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_set_baseband_attenuation
	mov	x0, x19
	mov	w1, #82
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #67
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #122
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_b43legacy_radio_write16
	orr	w2, w22, #0x3
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_write
	mov	w0, #10
	bl	_udelay
	mov	x0, x19
	mov	w1, #2065
	mov	x2, x22
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2066
	mov	x2, x23
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1065
	mov	x2, x28
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	bl	_b43legacy_phy_write
	mov	w8, #6
	mul	w8, w26, w8
	add	w8, w8, w25, lsl #2
	sub	w8, w8, #11
	ldr	x9, [x19, #32]
	mov	w10, #48
	stp	w8, w10, [x9]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_BFL_EXTLNA,4,2       ; @B43legacy_BFL_EXTLNA
	.no_dead_strip	_b43legacy_calc_loopback_gain
.subsections_via_symbols
