	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lo_measure_restore
_lo_measure_restore:                    ## @lo_measure_restore
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	24(%rdi), %rbx
	cmpl	$2, (%rdi)
	jl	LBB0_2
## %bb.1:
	movq	_B43_PHY_PGACTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$58112, %edx                    ## imm = 0xE300
	callq	_b43_phy_write
	movl	(%rbx), %r15d
	shll	$8, %r15d
	movq	_B43_PHY_RFOVERVAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leal	160(%r15), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movl	$5, %edi
	callq	_udelay
	movl	(%rbx), %esi
	leal	162(%r15), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movl	$2, %edi
	callq	_udelay
	movl	(%rbx), %esi
	orl	$163, %r15d
	movq	%r12, %rdi
	movl	%r15d, %edx
	jmp	LBB0_3
LBB0_2:
	movl	$61344, %edx                    ## imm = 0xEFA0
	orl	(%rbx), %edx
	movq	_B43_PHY_PGACTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
LBB0_3:
	callq	_b43_phy_write
	movq	8(%r12), %rax
	movq	_B43_PHYTYPE_G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	cmpl	$3, (%r12)
	setge	%bl
	movl	$46, %edi
	callq	_B43_PHY_CCK
	shll	$14, %ebx
	orl	$32888, %ebx                    ## imm = 0x8078
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_b43_phy_write
	cmpl	$2, (%r12)
	movl	$514, %eax                      ## imm = 0x202
	movl	$257, %ebx                      ## imm = 0x101
	cmovgel	%eax, %ebx
	movl	$47, %edi
	callq	_B43_PHY_CCK
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_b43_phy_write
LBB0_5:
	movl	92(%r14), %edx
	movq	%r12, %rdi
	movl	$1012, %esi                     ## imm = 0x3F4
	callq	_b43_write16
	movq	_B43_PHY_PGACTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movl	$42, %edi
	callq	_B43_PHY_CCK
	movl	4(%r14), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_b43_phy_write
	movq	_B43_PHY_SYNCCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_PHY_DACCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	12(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movl	88(%r14), %edx
	movq	%r12, %rdi
	movl	$67, %esi
	callq	_b43_radio_write16
	movl	84(%r14), %edx
	movq	%r12, %rdi
	movl	$122, %esi
	callq	_b43_radio_write16
	movq	%r12, %rdi
	callq	_has_tx_magnification
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	16(%r14), %ecx
	movq	%r12, %rdi
	movl	$82, %esi
	movl	$65295, %edx                    ## imm = 0xFF0F
	callq	_b43_radio_maskset
LBB0_7:
	movl	80(%r14), %edx
	movq	%r12, %rdi
	movl	$994, %esi                      ## imm = 0x3E2
	callq	_b43_write16
	movq	8(%r12), %rax
	movq	_B43_PHYTYPE_B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	cmpl	$8272, 16(%r12)                 ## imm = 0x2050
	jne	LBB0_11
## %bb.9:
	cmpl	$5, 20(%r12)
	jg	LBB0_11
## %bb.10:
	movl	$48, %edi
	callq	_B43_PHY_CCK
	movl	20(%r14), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_b43_phy_write
	movl	$6, %edi
	callq	_B43_PHY_CCK
	movl	24(%r14), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_b43_phy_write
LBB0_11:
	cmpl	$2, (%r12)
	jl	LBB0_13
## %bb.12:
	movq	_B43_PHY_ANALOGOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_PHY_ANALOGOVERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_PHY_CLASSCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	36(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_PHY_RFOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_PHY_RFOVERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	44(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movl	$62, %edi
	callq	_B43_PHY_CCK
	movl	48(%r14), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_b43_phy_write
	movq	_B43_PHY_CRS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	52(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
LBB0_13:
	movq	%r12, %rdi
	callq	_b43_has_hardware_pctl
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	$49151, %edx                    ## imm = 0xBFFF
	andl	56(%r14), %edx
	movq	_B43_PHY_LO_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_b43_phy_write
	movl	$1, %edi
	callq	_B43_PHY_EXTG
	movl	60(%r14), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_b43_phy_write
	movl	(%rbx), %esi
	movl	64(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movl	$20, %edi
	callq	_B43_PHY_CCK
	movl	68(%r14), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_b43_phy_write
	movq	_B43_PHY_HPWR_TSSICTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	72(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
LBB0_15:
	movl	76(%r14), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_gphy_channel_switch        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_PHY_PGACTL,4,2             ## @B43_PHY_PGACTL
	.comm	_B43_PHY_RFOVERVAL,4,2          ## @B43_PHY_RFOVERVAL
	.comm	_B43_PHYTYPE_G,8,3              ## @B43_PHYTYPE_G
	.comm	_B43_PHY_SYNCCTL,4,2            ## @B43_PHY_SYNCCTL
	.comm	_B43_PHY_DACCTL,4,2             ## @B43_PHY_DACCTL
	.comm	_B43_PHYTYPE_B,8,3              ## @B43_PHYTYPE_B
	.comm	_B43_PHY_ANALOGOVER,4,2         ## @B43_PHY_ANALOGOVER
	.comm	_B43_PHY_ANALOGOVERVAL,4,2      ## @B43_PHY_ANALOGOVERVAL
	.comm	_B43_PHY_CLASSCTL,4,2           ## @B43_PHY_CLASSCTL
	.comm	_B43_PHY_RFOVER,4,2             ## @B43_PHY_RFOVER
	.comm	_B43_PHY_CRS0,4,2               ## @B43_PHY_CRS0
	.comm	_B43_PHY_LO_MASK,4,2            ## @B43_PHY_LO_MASK
	.comm	_B43_PHY_HPWR_TSSICTL,4,2       ## @B43_PHY_HPWR_TSSICTL
	.no_dead_strip	_lo_measure_restore
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lo_measure_restore
_lo_measure_restore:                    ; @lo_measure_restore
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #24]
	ldr	w8, [x0]
Lloh0:
	adrp	x23, _B43_PHY_PGACTL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _B43_PHY_PGACTL@GOTPAGEOFF]
Lloh2:
	adrp	x22, _B43_PHY_RFOVERVAL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _B43_PHY_RFOVERVAL@GOTPAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #58112
	bl	_b43_phy_write
	ldr	w21, [x21]
	ldr	w1, [x22]
	mov	w2, #160
	bfi	w2, w21, #8, #24
	mov	x0, x19
	bl	_b43_phy_write
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x22]
	mov	w2, #162
	bfi	w2, w21, #8, #24
	mov	x0, x19
	bl	_b43_phy_write
	mov	w0, #2
	bl	_udelay
	ldr	w1, [x22]
	mov	w2, #163
	bfi	w2, w21, #8, #24
	b	LBB0_3
LBB0_2:
	ldr	w8, [x21]
	mov	w9, #61344
	orr	w2, w8, w9
	ldr	w1, [x23]
LBB0_3:
	mov	x0, x19
	bl	_b43_phy_write
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _B43_PHYTYPE_G@GOTPAGE
Lloh5:
	ldr	x9, [x9, _B43_PHYTYPE_G@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w21, [x19]
	mov	w0, #46
	bl	_B43_PHY_CCK
	mov	x1, x0
	mov	w8, #32888
	mov	w9, #49272
	cmp	w21, #2
	csel	w2, w9, w8, gt
	mov	x0, x19
	bl	_b43_phy_write
	ldr	w8, [x19]
	mov	w9, #257
	mov	w10, #514
	cmp	w8, #1
	csel	w21, w10, w9, gt
	mov	w0, #47
	bl	_B43_PHY_CCK
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_b43_phy_write
LBB0_5:
	ldr	w2, [x20, #92]
	mov	x0, x19
	mov	w1, #1012
	bl	_b43_write16
	ldr	w1, [x23]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_b43_phy_write
	mov	w0, #42
	bl	_B43_PHY_CCK
	mov	x1, x0
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_b43_phy_write
Lloh7:
	adrp	x8, _B43_PHY_SYNCCTL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _B43_PHY_SYNCCTL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_b43_phy_write
Lloh10:
	adrp	x21, _B43_PHY_DACCTL@GOTPAGE
Lloh11:
	ldr	x21, [x21, _B43_PHY_DACCTL@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_b43_phy_write
	ldr	w2, [x20, #88]
	mov	x0, x19
	mov	w1, #67
	bl	_b43_radio_write16
	ldr	w2, [x20, #84]
	mov	x0, x19
	mov	w1, #122
	bl	_b43_radio_write16
	mov	x0, x19
	bl	_has_tx_magnification
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w3, [x20, #16]
	mov	x0, x19
	mov	w1, #82
	mov	w2, #65295
	bl	_b43_radio_maskset
LBB0_7:
	ldr	w2, [x20, #80]
	mov	x0, x19
	mov	w1, #994
	bl	_b43_write16
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _B43_PHYTYPE_B@GOTPAGE
Lloh13:
	ldr	x9, [x9, _B43_PHYTYPE_B@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x19, #16]
	mov	w9, #8272
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x19, #20]
	cmp	w8, #5
	b.gt	LBB0_11
; %bb.10:
	mov	w0, #48
	bl	_B43_PHY_CCK
	mov	x1, x0
	ldr	w2, [x20, #20]
	mov	x0, x19
	bl	_b43_phy_write
	mov	w0, #6
	bl	_B43_PHY_CCK
	mov	x1, x0
	ldr	w2, [x20, #24]
	mov	x0, x19
	bl	_b43_phy_write
LBB0_11:
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.12:
Lloh15:
	adrp	x8, _B43_PHY_ANALOGOVER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _B43_PHY_ANALOGOVER@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x20, #28]
	mov	x0, x19
	bl	_b43_phy_write
Lloh18:
	adrp	x8, _B43_PHY_ANALOGOVERVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _B43_PHY_ANALOGOVERVAL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x20, #32]
	mov	x0, x19
	bl	_b43_phy_write
Lloh21:
	adrp	x8, _B43_PHY_CLASSCTL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _B43_PHY_CLASSCTL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [x20, #36]
	mov	x0, x19
	bl	_b43_phy_write
Lloh24:
	adrp	x8, _B43_PHY_RFOVER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _B43_PHY_RFOVER@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x20, #40]
	mov	x0, x19
	bl	_b43_phy_write
	ldr	w1, [x22]
	ldr	w2, [x20, #44]
	mov	x0, x19
	bl	_b43_phy_write
	mov	w0, #62
	bl	_B43_PHY_CCK
	mov	x1, x0
	ldr	w2, [x20, #48]
	mov	x0, x19
	bl	_b43_phy_write
Lloh27:
	adrp	x8, _B43_PHY_CRS0@GOTPAGE
Lloh28:
	ldr	x8, [x8, _B43_PHY_CRS0@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x20, #52]
	mov	x0, x19
	bl	_b43_phy_write
LBB0_13:
	mov	x0, x19
	bl	_b43_has_hardware_pctl
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w8, [x20, #56]
	mov	w9, #49151
	and	w2, w8, w9
Lloh30:
	adrp	x8, _B43_PHY_LO_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _B43_PHY_LO_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_phy_write
	mov	w0, #1
	bl	_B43_PHY_EXTG
	mov	x1, x0
	ldr	w2, [x20, #60]
	mov	x0, x19
	bl	_b43_phy_write
	ldr	w1, [x21]
	ldr	w2, [x20, #64]
	mov	x0, x19
	bl	_b43_phy_write
	mov	w0, #20
	bl	_B43_PHY_CCK
	mov	x1, x0
	ldr	w2, [x20, #68]
	mov	x0, x19
	bl	_b43_phy_write
Lloh33:
	adrp	x8, _B43_PHY_HPWR_TSSICTL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _B43_PHY_HPWR_TSSICTL@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	w2, [x20, #72]
	mov	x0, x19
	bl	_b43_phy_write
LBB0_15:
	ldr	w1, [x20, #76]
	mov	x0, x19
	mov	w2, #1
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_b43_gphy_channel_switch
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_PHY_PGACTL,4,2             ; @B43_PHY_PGACTL
	.comm	_B43_PHY_RFOVERVAL,4,2          ; @B43_PHY_RFOVERVAL
	.comm	_B43_PHYTYPE_G,8,3              ; @B43_PHYTYPE_G
	.comm	_B43_PHY_SYNCCTL,4,2            ; @B43_PHY_SYNCCTL
	.comm	_B43_PHY_DACCTL,4,2             ; @B43_PHY_DACCTL
	.comm	_B43_PHYTYPE_B,8,3              ; @B43_PHYTYPE_B
	.comm	_B43_PHY_ANALOGOVER,4,2         ; @B43_PHY_ANALOGOVER
	.comm	_B43_PHY_ANALOGOVERVAL,4,2      ; @B43_PHY_ANALOGOVERVAL
	.comm	_B43_PHY_CLASSCTL,4,2           ; @B43_PHY_CLASSCTL
	.comm	_B43_PHY_RFOVER,4,2             ; @B43_PHY_RFOVER
	.comm	_B43_PHY_CRS0,4,2               ; @B43_PHY_CRS0
	.comm	_B43_PHY_LO_MASK,4,2            ; @B43_PHY_LO_MASK
	.comm	_B43_PHY_HPWR_TSSICTL,4,2       ; @B43_PHY_HPWR_TSSICTL
	.no_dead_strip	_lo_measure_restore
.subsections_via_symbols
