	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_phy_initb4
_b43legacy_phy_initb4:                  ## @b43legacy_phy_initb4
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$1004, %esi                     ## imm = 0x3EC
	movl	$16162, %edx                    ## imm = 0x3F22
	callq	_b43legacy_write16
	movq	%r14, %rdi
	movl	$32, %esi
	movl	$12316, %edx                    ## imm = 0x301C
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$38, %esi
	xorl	%edx, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$48, %esi
	movl	$198, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$136, %esi
	movl	$15872, %edx                    ## imm = 0x3E00
	callq	_b43legacy_phy_write
	movl	$137, %r15d
	movl	$15421, %ebx                    ## imm = 0x3C3D
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_b43legacy_phy_write
	addl	$-514, %ebx                     ## imm = 0xFDFE
	incl	%r15d
	cmpl	$1, %ebx
	jne	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	$996, %esi                      ## imm = 0x3E4
	movl	$12288, %edx                    ## imm = 0x3000
	callq	_b43legacy_phy_write
	movl	12(%r14), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_b43legacy_radio_selectchannel
	cmpl	$8272, 8(%r14)                  ## imm = 0x2050
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	$117, %esi
	movl	$128, %edx
	callq	_b43legacy_radio_write16
	movq	%r14, %rdi
	movl	$121, %esi
	movl	$129, %edx
	callq	_b43legacy_radio_write16
LBB0_4:
	movq	%r14, %rdi
	movl	$80, %esi
	movl	$32, %edx
	callq	_b43legacy_radio_write16
	movq	%r14, %rdi
	movl	$80, %esi
	movl	$35, %edx
	callq	_b43legacy_radio_write16
	cmpl	$8272, 8(%r14)                  ## imm = 0x2050
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	$80, %esi
	movl	$32, %edx
	callq	_b43legacy_radio_write16
	movq	%r14, %rdi
	movl	$90, %esi
	movl	$112, %edx
	callq	_b43legacy_radio_write16
	movq	%r14, %rdi
	movl	$91, %esi
	movl	$123, %edx
	callq	_b43legacy_radio_write16
	movq	%r14, %rdi
	movl	$92, %esi
	movl	$176, %edx
	callq	_b43legacy_radio_write16
	movq	%r14, %rdi
	movl	$122, %esi
	movl	$15, %edx
	callq	_b43legacy_radio_write16
	movq	%r14, %rdi
	movl	$56, %esi
	movl	$1655, %edx                     ## imm = 0x677
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	callq	_b43legacy_radio_init2050
LBB0_6:
	movq	%r14, %rdi
	movl	$20, %esi
	movl	$128, %edx
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$50, %esi
	movl	$202, %edx
	callq	_b43legacy_phy_write
	cmpl	$8272, 8(%r14)                  ## imm = 0x2050
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	$50, %esi
	movl	$224, %edx
	callq	_b43legacy_phy_write
LBB0_8:
	movq	%r14, %rdi
	movl	$53, %esi
	movl	$1986, %edx                     ## imm = 0x7C2
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	callq	_b43legacy_phy_lo_b_measure
	movq	%r14, %rdi
	movl	$38, %esi
	movl	$52224, %edx                    ## imm = 0xCC00
	callq	_b43legacy_phy_write
	cmpl	$8272, 8(%r14)                  ## imm = 0x2050
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movl	$38, %esi
	movl	$52736, %edx                    ## imm = 0xCE00
	callq	_b43legacy_phy_write
LBB0_10:
	movq	_B43legacy_MMIO_CHANNEL_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$4352, %edx                     ## imm = 0x1100
	callq	_b43legacy_write16
	movq	%r14, %rdi
	movl	$42, %esi
	movl	$34979, %edx                    ## imm = 0x88A3
	callq	_b43legacy_phy_write
	cmpl	$8272, 8(%r14)                  ## imm = 0x2050
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movl	$42, %esi
	movl	$35010, %edx                    ## imm = 0x88C2
	callq	_b43legacy_phy_write
LBB0_12:
	movq	%r14, %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	movl	$65535, %edx                    ## imm = 0xFFFF
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_b43legacy_radio_set_txpower_bg
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_B43legacy_BFL_RSSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_b43legacy_calc_nrssi_slope
	movq	%r14, %rdi
	callq	_b43legacy_calc_nrssi_threshold
LBB0_14:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43legacy_phy_init_pctl        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_MMIO_CHANNEL_EXT,4,2 ## @B43legacy_MMIO_CHANNEL_EXT
	.comm	_B43legacy_BFL_RSSI,4,2         ## @B43legacy_BFL_RSSI
	.no_dead_strip	_b43legacy_phy_initb4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_phy_initb4
_b43legacy_phy_initb4:                  ; @b43legacy_phy_initb4
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	w1, #1004
	mov	w2, #16162
	bl	_b43legacy_write16
	mov	x0, x19
	mov	w1, #32
	mov	w2, #12316
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #38
	mov	w2, #0
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #48
	mov	w2, #198
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #136
	mov	w2, #15872
	bl	_b43legacy_phy_write
	mov	w20, #137
	mov	w21, #15421
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_b43legacy_phy_write
	sub	w21, w21, #514
	add	w20, w20, #1
	cmp	w21, #1
	b.ne	LBB0_1
; %bb.2:
	mov	x0, x19
	mov	w1, #996
	mov	w2, #12288
	bl	_b43legacy_phy_write
	ldr	w1, [x19, #12]
	mov	x0, x19
	mov	w2, #0
	bl	_b43legacy_radio_selectchannel
	ldr	w8, [x19, #8]
	mov	w20, #8272
	cmp	w8, w20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #117
	mov	w2, #128
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #121
	mov	w2, #129
	bl	_b43legacy_radio_write16
LBB0_4:
	mov	x0, x19
	mov	w1, #80
	mov	w2, #32
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #80
	mov	w2, #35
	bl	_b43legacy_radio_write16
	ldr	w8, [x19, #8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #80
	mov	w2, #32
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #90
	mov	w2, #112
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #91
	mov	w2, #123
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #92
	mov	w2, #176
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #122
	mov	w2, #15
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #56
	mov	w2, #1655
	bl	_b43legacy_phy_write
	mov	x0, x19
	bl	_b43legacy_radio_init2050
LBB0_6:
	mov	x0, x19
	mov	w1, #20
	mov	w2, #128
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #50
	mov	w2, #202
	bl	_b43legacy_phy_write
	ldr	w8, [x19, #8]
	mov	w20, #8272
	cmp	w8, w20
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #50
	mov	w2, #224
	bl	_b43legacy_phy_write
LBB0_8:
	mov	x0, x19
	mov	w1, #53
	mov	w2, #1986
	bl	_b43legacy_phy_write
	mov	x0, x19
	bl	_b43legacy_phy_lo_b_measure
	mov	x0, x19
	mov	w1, #38
	mov	w2, #52224
	bl	_b43legacy_phy_write
	ldr	w8, [x19, #8]
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #38
	mov	w2, #52736
	bl	_b43legacy_phy_write
LBB0_10:
Lloh0:
	adrp	x8, _B43legacy_MMIO_CHANNEL_EXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43legacy_MMIO_CHANNEL_EXT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4352
	bl	_b43legacy_write16
	mov	x0, x19
	mov	w1, #42
	mov	w2, #34979
	bl	_b43legacy_phy_write
	ldr	w8, [x19, #8]
	mov	w9, #8272
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #42
	mov	w2, #35010
	bl	_b43legacy_phy_write
LBB0_12:
	mov	x0, x19
	mov	w1, #65535
	mov	w2, #65535
	mov	w3, #65535
	bl	_b43legacy_radio_set_txpower_bg
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _B43legacy_BFL_RSSI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _B43legacy_BFL_RSSI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_b43legacy_calc_nrssi_slope
	mov	x0, x19
	bl	_b43legacy_calc_nrssi_threshold
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_b43legacy_phy_init_pctl
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_MMIO_CHANNEL_EXT,4,2 ; @B43legacy_MMIO_CHANNEL_EXT
	.comm	_B43legacy_BFL_RSSI,4,2         ; @B43legacy_BFL_RSSI
	.no_dead_strip	_b43legacy_phy_initb4
.subsections_via_symbols
