	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_phy_lo_g_measure     ## -- Begin function b43legacy_phy_lo_g_measure
	.p2align	4, 0x90
_b43legacy_phy_lo_g_measure:            ## @b43legacy_phy_lo_g_measure
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_b43legacy_status
	movq	_B43legacy_STAT_STARTED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%ebx, %ebx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	cmpq	%rcx, %rax
	setl	%r14b
	movl	8(%r13), %eax
	movl	%eax, -180(%rbp)                ## 4-byte Spill
	movl	$0, -92(%rbp)                   ## 4-byte Folded Spill
	cmpq	$0, 24(%r13)
	movl	$0, %r12d
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	je	LBB0_2
## %bb.1:
	movq	_B43legacy_PHY_G_CRS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_b43legacy_phy_read
	movl	%eax, %r12d
	movq	%r13, %rdi
	movl	$2050, %esi                     ## imm = 0x802
	callq	_b43legacy_phy_read
	movl	%eax, %ebx
	movl	(%r15), %esi
	movl	%r12d, %edx
	andl	$32767, %edx                    ## imm = 0x7FFF
	movq	%r13, %rdi
	callq	_b43legacy_phy_write
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	xorl	%ebx, %ebx
	andl	$65532, %edx                    ## imm = 0xFFFC
	movq	%r13, %rdi
	movl	$2050, %esi                     ## imm = 0x802
	callq	_b43legacy_phy_write
LBB0_2:
	movq	%r13, %rdi
	movl	$994, %esi                      ## imm = 0x3E2
	callq	_b43legacy_read16
	movl	%eax, -176(%rbp)                ## 4-byte Spill
	movl	%eax, %edx
	orl	$32768, %edx                    ## imm = 0x8000
	movq	%r13, %rdi
	movl	$994, %esi                      ## imm = 0x3E2
	callq	_b43legacy_write16
	movq	_B43legacy_MMIO_CHANNEL_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43legacy_read16
	movl	%eax, -164(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movl	$21, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -160(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movl	$42, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -156(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movl	$53, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movl	$96, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -152(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movl	$67, %esi
	callq	_b43legacy_radio_read16
	movl	%eax, -148(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	$82, %esi
	callq	_b43legacy_radio_read16
	cmpq	$0, 24(%r13)
	movl	%eax, -168(%rbp)                ## 4-byte Spill
	movl	$0, %r15d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_read
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_read
	movl	%eax, %r15d
	movq	%r13, %rdi
	movl	$2068, %esi                     ## imm = 0x814
	callq	_b43legacy_phy_read
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	$2069, %esi                     ## imm = 0x815
	callq	_b43legacy_phy_read
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_4:
	movq	%r13, %rdi
	movl	$6, %esi
	xorl	%edx, %edx
	callq	_b43legacy_radio_selectchannel
	cmpq	$0, 24(%r13)
	je	LBB0_6
## %bb.5:
	movq	_B43legacy_PHY_G_CRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	andl	$32767, %edx                    ## imm = 0x7FFF
	movq	%r13, %rdi
	callq	_b43legacy_phy_write
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	andl	$65532, %edx                    ## imm = 0xFFFC
	movq	%r13, %rdi
	movl	$2050, %esi                     ## imm = 0x802
	callq	_b43legacy_phy_write
	movq	%r13, %rdi
	callq	_b43legacy_dummy_transmission
LBB0_6:
	movq	%r13, %rdi
	movl	$67, %esi
	movl	$6, %edx
	callq	_b43legacy_radio_write16
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_b43legacy_phy_set_baseband_attenuation
	movq	_B43legacy_MMIO_CHANNEL_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_b43legacy_write16
	movq	%r13, %rdi
	movl	$46, %esi
	movl	$127, %edx
	callq	_b43legacy_phy_write
	movq	%r13, %rdi
	movl	$2063, %esi                     ## imm = 0x80F
	movl	$120, %edx
	callq	_b43legacy_phy_write
	movl	-100(%rbp), %edx                ## 4-byte Reload
	andl	$-129, %edx
	movq	%r13, %rdi
	movl	$53, %esi
	callq	_b43legacy_phy_write
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	andl	$65520, %edx                    ## imm = 0xFFF0
	movq	%r13, %rdi
	movl	$122, %esi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_b43legacy_radio_write16
	movq	%r13, %rdi
	movl	$43, %esi
	movl	$515, %edx                      ## imm = 0x203
	callq	_b43legacy_phy_write
	movq	%r13, %rdi
	movl	$42, %esi
	movl	$2211, %edx                     ## imm = 0x8A3
	callq	_b43legacy_phy_write
	cmpq	$0, 24(%r13)
	je	LBB0_8
## %bb.7:
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	orl	$3, %edx
	movq	%r13, %rdi
	movl	$2068, %esi                     ## imm = 0x814
	callq	_b43legacy_phy_write
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	andl	$65532, %edx                    ## imm = 0xFFFC
	movq	%r13, %rdi
	movl	$2069, %esi                     ## imm = 0x815
	callq	_b43legacy_phy_write
	movq	%r13, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	movl	$435, %edx                      ## imm = 0x1B3
	callq	_b43legacy_phy_write
	movq	%r13, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	$178, %edx
	callq	_b43legacy_phy_write
LBB0_8:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	jge	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	_b43legacy_phy_lo_g_measure_txctl2
LBB0_10:
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	movl	%r12d, -88(%rbp)                ## 4-byte Spill
	movb	%r14b, %bl
	movl	%ebx, -172(%rbp)                ## 4-byte Spill
	leaq	8(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$2063, %esi                     ## imm = 0x80F
	movl	$32888, %edx                    ## imm = 0x8078
	callq	_b43legacy_phy_write
	movq	$0, -136(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	$8, %eax
	movl	%eax, -184(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movq	%r13, -144(%rbp)                ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-192(%rbp), %rbx                ## 8-byte Reload
	incq	%rbx
	movl	%r15d, %esi
	cmpq	$10, %rbx
	je	LBB0_29
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	leaq	_b43legacy_phy_lo_g_measure.pairorder(%rip), %rax
	movl	(%rax,%rbx,4), %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	-120(%rbp), %rax                ## 8-byte Folded Reload
	jge	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%r15d, %ecx
	shrl	$31, %ecx
	addl	%r15d, %ecx
	andl	$-2, %ecx
	movl	%r15d, %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%esi, %ecx
	andl	$-2147483647, %ecx              ## imm = 0x80000001
	cmpl	$1, %ecx
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%esi, %ecx
	andl	$1, %ecx
	orl	%ecx, %eax
	jne	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	$0, -136(%rbp)
	jmp	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	$3, %esi
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%edx, %edx
	callq	_b43legacy_get_lopair
	leaq	-136(%rbp), %rdi
	movq	%rax, %rsi
	movl	$12, %edx
	callq	_memcpy
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, -192(%rbp)                ## 8-byte Spill
	leal	(%r15,%r15), %r12d
	xorl	%ebx, %ebx
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=2
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	-144(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movl	$67, %esi
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	%r14d, %edx
	callq	_b43legacy_radio_write16
	movl	12(%r15), %edx
	movq	%r15, %rdi
	movl	$82, %esi
	callq	_b43legacy_radio_write16
	movl	$10, %edi
	callq	_udelay
	xorl	%eax, %eax
	callq	_cond_resched
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_b43legacy_phy_set_baseband_attenuation
	movq	%r15, %rdi
	movl	$122, %esi
	movl	%r13d, %edx
	callq	_b43legacy_radio_write16
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_b43legacy_get_lopair
	movq	%r15, %rdi
	movq	%r14, %r15
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	leaq	-136(%rbp), %rsi
	movq	%rax, %rdx
	movl	%r14d, %ecx
	callq	_b43legacy_phy_lo_g_state
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=2
	addl	$2, %ebx
	incl	%r12d
	cmpl	$8, %ebx
	je	LBB0_28
LBB0_21:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	-120(%rbp), %r13                ## 8-byte Folded Reload
	jge	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	cmpl	$15, %r12d
	jl	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=2
	xorl	%ecx, %ecx
	cmpl	$18, %r12d
	setae	%cl
	cmpl	$20, %r12d
	movl	$2, %eax
	cmovael	%eax, %ecx
	movl	-184(%rbp), %r13d               ## 4-byte Reload
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_b43legacy_get_lopair
	cmpl	$0, 8(%rax)
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=2
	leaq	-136(%rbp), %rdi
	movq	%rax, %rsi
	movl	$12, %edx
	callq	_memcpy
	movl	$3, %ecx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_26
LBB0_29:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	$10, %eax
	leaq	-136(%rbp), %r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	incl	%eax
	cmpl	$14, %eax
	je	LBB0_38
LBB0_30:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leal	-9(%rax), %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_31 Depth=2
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$12, %edx
	callq	_memcpy
	xorl	%r13d, %r13d
LBB0_35:                                ##   in Loop: Header=BB0_31 Depth=2
	movq	%r12, %rbx
	movq	-144(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movl	$67, %esi
	movl	%r14d, %edx
	callq	_b43legacy_radio_write16
	movl	12(%r12), %edx
	orl	$48, %edx
	movq	%r12, %rdi
	movl	$82, %esi
	callq	_b43legacy_radio_write16
	movl	$10, %edi
	callq	_udelay
	xorl	%eax, %eax
	callq	_cond_resched
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_b43legacy_phy_set_baseband_attenuation
	movq	%r12, %rdi
	movl	$122, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_radio_write16
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	callq	_b43legacy_get_lopair
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	%r13d, %ecx
	callq	_b43legacy_phy_lo_g_state
	movq	%rbx, %r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_36:                                ##   in Loop: Header=BB0_31 Depth=2
	addl	$2, %r15d
	cmpl	$8, %r15d
	je	LBB0_37
LBB0_31:                                ##   Parent Loop BB0_30 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_b43legacy_get_lopair
	cmpq	-120(%rbp), %rbx                ## 8-byte Folded Reload
	jl	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=2
	cmpl	$0, 8(%rax)
	je	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$12, %edx
	callq	_memcpy
	movl	$3, %r13d
	jmp	LBB0_35
LBB0_38:
	movq	-144(%rbp), %r13                ## 8-byte Reload
	cmpq	$0, 24(%r13)
	je	LBB0_40
## %bb.39:
	movq	%r13, %rdi
	movl	$21, %esi
	movl	$58112, %edx                    ## imm = 0xE300
	callq	_b43legacy_phy_write
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	shll	$8, %ebx
	leal	160(%rbx), %edx
	movq	%r13, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_write
	movl	$5, %edi
	callq	_udelay
	leal	162(%rbx), %edx
	movq	%r13, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_write
	movl	$2, %edi
	callq	_udelay
	orl	$163, %ebx
	movq	%r13, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	%ebx, %edx
	callq	_b43legacy_phy_write
	xorl	%eax, %eax
	callq	_cond_resched
	jmp	LBB0_41
LBB0_40:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	orl	$61344, %edx                    ## imm = 0xEFA0
	movq	%r13, %rdi
	movl	$21, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_b43legacy_phy_write
LBB0_41:
	movl	-88(%rbp), %r14d                ## 4-byte Reload
	movl	-84(%rbp), %r15d                ## 4-byte Reload
	movq	%r13, %rdi
	movl	-172(%rbp), %esi                ## 4-byte Reload
	callq	_b43legacy_phy_lo_adjust
	movq	%r13, %rdi
	movl	$46, %esi
	movl	$32895, %edx                    ## imm = 0x807F
	callq	_b43legacy_phy_write
	cmpq	$0, 24(%r13)
	movl	$257, %eax                      ## imm = 0x101
	movl	$514, %edx                      ## imm = 0x202
	cmovel	%eax, %edx
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_b43legacy_phy_write
	movq	_B43legacy_MMIO_CHANNEL_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-164(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_write16
	movq	%r13, %rdi
	movl	$21, %esi
	movl	-160(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r13, %rdi
	movl	$42, %esi
	movl	-156(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r13, %rdi
	movl	$53, %esi
	movl	-100(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r13, %rdi
	movl	$96, %esi
	movl	-152(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r13, %rdi
	movl	$67, %esi
	movl	-148(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_radio_write16
	movq	%r13, %rdi
	movl	$122, %esi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_radio_write16
	movl	-168(%rbp), %ebx                ## 4-byte Reload
	andl	$240, %ebx
	movq	%r13, %rdi
	movl	$82, %esi
	callq	_b43legacy_radio_read16
	andl	$15, %eax
	orl	%eax, %ebx
	movq	%r13, %rdi
	movl	$82, %esi
	movl	%ebx, %edx
	callq	_b43legacy_radio_write16
	movq	%r13, %rdi
	movl	$994, %esi                      ## imm = 0x3E2
	movl	-176(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_write16
	cmpq	$0, 24(%r13)
	je	LBB0_43
## %bb.42:
	movq	%r13, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r13, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	%r15d, %edx
	callq	_b43legacy_phy_write
	movq	%r13, %rdi
	movl	$2068, %esi                     ## imm = 0x814
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%r13, %rdi
	movl	$2069, %esi                     ## imm = 0x815
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	_B43legacy_PHY_G_CRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_b43legacy_phy_write
	movq	%r13, %rdi
	movl	$2050, %esi                     ## imm = 0x802
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
LBB0_43:
	movq	%r13, %rdi
	movl	-180(%rbp), %esi                ## 4-byte Reload
	movl	$1, %edx
	callq	_b43legacy_radio_selectchannel
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @b43legacy_phy_lo_g_measure.pairorder
_b43legacy_phy_lo_g_measure.pairorder:
	.long	3                               ## 0x3
	.long	1                               ## 0x1
	.long	5                               ## 0x5
	.long	7                               ## 0x7
	.long	9                               ## 0x9
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	4                               ## 0x4
	.long	6                               ## 0x6
	.long	8                               ## 0x8

	.comm	_B43legacy_STAT_STARTED,8,3     ## @B43legacy_STAT_STARTED
	.comm	_B43legacy_PHY_G_CRS,4,2        ## @B43legacy_PHY_G_CRS
	.comm	_B43legacy_MMIO_CHANNEL_EXT,4,2 ## @B43legacy_MMIO_CHANNEL_EXT
	.comm	_B43legacy_LO_COUNT,4,2         ## @B43legacy_LO_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_phy_lo_g_measure     ; -- Begin function b43legacy_phy_lo_g_measure
	.p2align	2
_b43legacy_phy_lo_g_measure:            ; @b43legacy_phy_lo_g_measure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	bl	_b43legacy_status
	mov	x26, x0
Lloh0:
	adrp	x8, _B43legacy_STAT_STARTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43legacy_STAT_STARTED@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	cmp	x0, x20
	cset	w8, lt
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	mov	x25, x19
	ldr	w8, [x25, #8]!
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
	ldr	x8, [x25, #16]
Lloh3:
	adrp	x21, _B43legacy_PHY_G_CRS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _B43legacy_PHY_G_CRS@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43legacy_phy_read
	mov	x22, x0
	mov	x0, x19
	mov	w1, #2050
	bl	_b43legacy_phy_read
	mov	x23, x0
	ldr	w1, [x21]
	and	w2, w22, #0x7fff
	mov	x0, x19
	bl	_b43legacy_phy_write
	and	w2, w23, #0xfffc
	mov	x0, x19
	mov	w1, #2050
	bl	_b43legacy_phy_write
	b	LBB0_3
LBB0_2:
	mov	w22, #0
	mov	w23, #0
LBB0_3:
	mov	x0, x19
	mov	w1, #994
	bl	_b43legacy_read16
	str	w0, [sp, #56]                   ; 4-byte Folded Spill
	orr	w2, w0, #0x8000
	mov	x0, x19
	mov	w1, #994
	bl	_b43legacy_write16
Lloh5:
	adrp	x27, _B43legacy_MMIO_CHANNEL_EXT@GOTPAGE
Lloh6:
	ldr	x27, [x27, _B43legacy_MMIO_CHANNEL_EXT@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x19
	bl	_b43legacy_read16
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_read
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #42
	bl	_b43legacy_phy_read
	str	w0, [sp, #32]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #53
	bl	_b43legacy_phy_read
	str	w0, [sp, #76]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #96
	bl	_b43legacy_phy_read
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #67
	bl	_b43legacy_radio_read16
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	str	w0, [sp, #72]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #82
	bl	_b43legacy_radio_read16
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_read
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_read
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #2068
	bl	_b43legacy_phy_read
	mov	x24, x0
	mov	x0, x19
	mov	w1, #2069
	bl	_b43legacy_phy_read
	mov	x28, x0
	b	LBB0_6
LBB0_5:
	stp	wzr, wzr, [sp, #12]             ; 8-byte Folded Spill
	mov	w24, #0
	mov	w28, #0
LBB0_6:
	mov	x0, x19
	mov	w1, #6
	mov	w2, #0
	bl	_b43legacy_radio_selectchannel
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w1, [x21]
	and	w2, w22, #0x7fff
	mov	x0, x19
	bl	_b43legacy_phy_write
	and	w2, w23, #0xfffc
	mov	x0, x19
	mov	w1, #2050
	bl	_b43legacy_phy_write
	mov	x0, x19
	bl	_b43legacy_dummy_transmission
LBB0_8:
	str	w23, [sp, #60]                  ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #67
	mov	w2, #6
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #2
	bl	_b43legacy_phy_set_baseband_attenuation
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #0
	bl	_b43legacy_write16
	mov	x0, x19
	mov	w1, #46
	mov	w2, #127
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2063
	mov	w2, #120
	bl	_b43legacy_phy_write
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	and	w2, w8, #0xffffff7f
	mov	x0, x19
	mov	w1, #53
	bl	_b43legacy_phy_write
	ldr	w8, [sp, #72]                   ; 4-byte Folded Reload
	and	w27, w8, #0xfff0
	mov	x0, x19
	mov	w1, #122
	mov	x2, x27
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #43
	mov	w2, #515
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #42
	mov	w2, #2211
	bl	_b43legacy_phy_write
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_10
; %bb.9:
	orr	w2, w24, #0x3
	mov	x0, x19
	mov	w1, #2068
	bl	_b43legacy_phy_write
	and	w2, w28, #0xfffc
	mov	x0, x19
	mov	w1, #2069
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2065
	mov	w2, #435
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2066
	mov	w2, #178
	bl	_b43legacy_phy_write
LBB0_10:
	stp	w28, w24, [sp, #44]             ; 8-byte Folded Spill
	cmp	x26, x20
	b.ge	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_b43legacy_phy_lo_g_measure_txctl2
LBB0_12:
	str	w22, [sp, #64]                  ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #2063
	mov	w2, #32888
	bl	_b43legacy_phy_write
	mov	x22, #0
	mov	w28, #0
	mov	w1, #0
	str	xzr, [sp, #96]
	orr	w8, w27, #0x8
	str	w8, [sp, #92]                   ; 4-byte Folded Spill
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x22, [sp, #80]                  ; 8-byte Folded Reload
	add	x22, x22, #1
	mov	x1, x21
	cmp	x22, #10
	b.eq	LBB0_27
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
Lloh7:
	adrp	x8, _b43legacy_phy_lo_g_measure.pairorder@PAGE
Lloh8:
	add	x8, x8, _b43legacy_phy_lo_g_measure.pairorder@PAGEOFF
	ldr	w21, [x8, x22, lsl #2]
	cmp	x26, x20
	b.ge	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cbz	x22, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	and	w8, w21, #0x1
	cmp	w21, #0
	cneg	w8, w8, lt
	and	w9, w1, #0x80000001
	cmp	w8, #1
	ccmp	w9, #1, #0, eq
	and	w9, w1, #0x1
	orr	w8, w8, w9
	mov	x0, x25
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w1, #3
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w2, #0
	bl	_b43legacy_get_lopair
	mov	x1, x0
	add	x0, sp, #96
	mov	w2, #12
	bl	_memcpy
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	str	xzr, [sp, #96]
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	str	x22, [sp, #80]                  ; 8-byte Folded Spill
	mov	w22, #0
	lsl	w24, w21, #1
	b	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_24 Depth=2
	cmp	w24, #17
	cset	w8, hi
	cmp	w24, #19
	mov	w9, #2
	csel	w8, w9, w8, hi
	cmp	w24, #15
	csel	w28, wzr, w8, lt
	ldr	w8, [sp, #92]                   ; 4-byte Folded Reload
	csel	w23, w27, w8, lt
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=2
	mov	x0, x19
	mov	w1, #67
	mov	x2, x21
	bl	_b43legacy_radio_write16
	ldr	w2, [x19, #12]
	mov	x0, x19
	mov	w1, #82
	bl	_b43legacy_radio_write16
	mov	w0, #10
	bl	_udelay
	bl	_cond_resched
	mov	x0, x19
	mov	x1, x22
	bl	_b43legacy_phy_set_baseband_attenuation
	mov	x0, x19
	mov	w1, #122
	mov	x2, x23
	bl	_b43legacy_radio_write16
	mov	x0, x25
	mov	x1, x21
	mov	x2, x22
	bl	_b43legacy_get_lopair
	mov	x2, x0
	add	x1, sp, #96
	mov	x0, x19
	mov	x3, x28
	bl	_b43legacy_phy_lo_g_state
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	add	w22, w22, #2
	add	w24, w24, #1
	cmp	w22, #8
	b.eq	LBB0_13
LBB0_24:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x26, x20
	b.lt	LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	x0, x25
	mov	x1, x21
	mov	x2, x22
	bl	_b43legacy_get_lopair
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	x1, x0
	add	x0, sp, #96
	mov	w2, #12
	bl	_memcpy
	mov	w28, #3
	mov	x23, x27
	b	LBB0_22
LBB0_27:
	mov	w21, #10
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	w21, w21, #1
	cmp	w21, #14
	b.eq	LBB0_36
LBB0_29:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_33 Depth 2
	mov	w22, #0
	sub	w23, w21, #9
	b	LBB0_33
LBB0_30:                                ;   in Loop: Header=BB0_33 Depth=2
	add	x0, sp, #96
	mov	w2, #12
	bl	_memcpy
	mov	w28, #0
LBB0_31:                                ;   in Loop: Header=BB0_33 Depth=2
	mov	x0, x19
	mov	w1, #67
	mov	x2, x23
	bl	_b43legacy_radio_write16
	ldr	w8, [x19, #12]
	orr	w2, w8, #0x30
	mov	x0, x19
	mov	w1, #82
	bl	_b43legacy_radio_write16
	mov	w0, #10
	bl	_udelay
	bl	_cond_resched
	mov	x0, x19
	mov	x1, x22
	bl	_b43legacy_phy_set_baseband_attenuation
	mov	x0, x19
	mov	w1, #122
	mov	x2, x27
	bl	_b43legacy_radio_write16
	mov	x0, x25
	mov	x1, x21
	mov	x2, x22
	bl	_b43legacy_get_lopair
	mov	x2, x0
	add	x1, sp, #96
	mov	x0, x19
	mov	x3, x28
	bl	_b43legacy_phy_lo_g_state
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=2
	add	w22, w22, #2
	cmp	w22, #8
	b.eq	LBB0_28
LBB0_33:                                ;   Parent Loop BB0_29 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	mov	x1, x23
	mov	x2, x22
	bl	_b43legacy_get_lopair
	mov	x1, x0
	cmp	x26, x20
	b.lt	LBB0_30
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=2
	ldr	w8, [x1, #8]
	cbz	w8, LBB0_32
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=2
	add	x0, sp, #96
	mov	w2, #12
	bl	_memcpy
	mov	w28, #3
	b	LBB0_31
LBB0_36:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_38
; %bb.37:
	mov	x0, x19
	mov	w1, #21
	mov	w2, #58112
	bl	_b43legacy_phy_write
	mov	w2, #160
	bfi	w2, w28, #8, #24
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
	mov	w0, #5
	bl	_udelay
	mov	w2, #162
	bfi	w2, w28, #8, #24
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
	mov	w0, #2
	bl	_udelay
	mov	w2, #163
	bfi	w2, w28, #8, #24
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
	bl	_cond_resched
	b	LBB0_39
LBB0_38:
	mov	w8, #61344
	orr	w2, w28, w8
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_write
LBB0_39:
Lloh9:
	adrp	x21, _B43legacy_PHY_G_CRS@GOTPAGE
Lloh10:
	ldr	x21, [x21, _B43legacy_PHY_G_CRS@GOTPAGEOFF]
	ldp	w23, w22, [sp, #60]             ; 8-byte Folded Reload
Lloh11:
	adrp	x20, _B43legacy_MMIO_CHANNEL_EXT@GOTPAGE
Lloh12:
	ldr	x20, [x20, _B43legacy_MMIO_CHANNEL_EXT@GOTPAGEOFF]
	mov	x0, x19
	ldr	w1, [sp, #52]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_lo_adjust
	mov	x0, x19
	mov	w1, #46
	mov	w2, #32895
	bl	_b43legacy_phy_write
	ldr	x8, [x19, #24]
	cmp	x8, #0
	mov	w8, #514
	mov	w9, #257
	csel	w2, w9, w8, eq
	mov	x0, x19
	mov	w1, #47
	bl	_b43legacy_phy_write
Lloh13:
	ldr	w1, [x20]
	mov	x0, x19
	ldr	w2, [sp, #40]                   ; 4-byte Folded Reload
	bl	_b43legacy_write16
	mov	x0, x19
	mov	w1, #21
	ldr	w2, [sp, #36]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #42
	ldr	w2, [sp, #32]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #53
	ldr	w2, [sp, #76]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #96
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #67
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #122
	ldr	w2, [sp, #72]                   ; 4-byte Folded Reload
	bl	_b43legacy_radio_write16
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	and	w20, w8, #0xf0
	mov	x0, x19
	mov	w1, #82
	bl	_b43legacy_radio_read16
	bfxil	w20, w0, #0, #4
	mov	x0, x19
	mov	w1, #82
	mov	x2, x20
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #994
	ldr	w2, [sp, #56]                   ; 4-byte Folded Reload
	bl	_b43legacy_write16
	ldr	x8, [x19, #24]
	ldp	w24, w20, [sp, #44]             ; 8-byte Folded Reload
	cbz	x8, LBB0_41
; %bb.40:
	mov	x0, x19
	mov	w1, #2065
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2066
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	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
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x22
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2050
	mov	x2, x23
	bl	_b43legacy_phy_write
LBB0_41:
	mov	x0, x19
	ldr	w1, [sp, #68]                   ; 4-byte Folded Reload
	mov	w2, #1
	bl	_b43legacy_radio_selectchannel
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @b43legacy_phy_lo_g_measure.pairorder
_b43legacy_phy_lo_g_measure.pairorder:
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.long	5                               ; 0x5
	.long	7                               ; 0x7
	.long	9                               ; 0x9
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.long	6                               ; 0x6
	.long	8                               ; 0x8

	.comm	_B43legacy_STAT_STARTED,8,3     ; @B43legacy_STAT_STARTED
	.comm	_B43legacy_PHY_G_CRS,4,2        ; @B43legacy_PHY_G_CRS
	.comm	_B43legacy_MMIO_CHANNEL_EXT,4,2 ; @B43legacy_MMIO_CHANNEL_EXT
	.comm	_B43legacy_LO_COUNT,4,2         ; @B43legacy_LO_COUNT
.subsections_via_symbols
