	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_radio_turn_on        ## -- Begin function b43legacy_radio_turn_on
	.p2align	4, 0x90
_b43legacy_radio_turn_on:               ## @b43legacy_radio_turn_on
	.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, %rbx
	xorl	%eax, %eax
	callq	_might_sleep
	cmpl	$0, (%rbx)
	jne	LBB0_7
## %bb.1:
	movl	4(%rbx), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$52224, %edx                    ## imm = 0xCC00
	callq	_b43legacy_phy_write
	movl	24(%rbx), %eax
	testl	%eax, %eax
	movl	$192, %edx
	cmovel	%eax, %edx
	movq	%rbx, %rdi
	movl	$21, %esi
	callq	_b43legacy_phy_write
	cmpl	$0, 12(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_B43legacy_PHY_RFOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	movq	%rbx, %rdi
	callq	_b43legacy_phy_write
	movq	_B43legacy_PHY_RFOVERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%rbx), %edx
	movq	%rbx, %rdi
	callq	_b43legacy_phy_write
	movl	$0, 12(%rbx)
LBB0_4:
	movl	8(%rbx), %r14d
	movq	_B43legacy_RADIO_DEFAULT_CHANNEL_BG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_b43legacy_radio_selectchannel
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_b43legacy_radio_selectchannel
	orl	%eax, %r15d
	movl	%r15d, %edi
	callq	_B43legacy_WARN_ON
	jmp	LBB0_6
LBB0_5:
	movl	$1, %edi
	callq	_B43legacy_BUG_ON
LBB0_6:
	movl	$1, (%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_PHY_RFOVER,4,2       ## @B43legacy_PHY_RFOVER
	.comm	_B43legacy_PHY_RFOVERVAL,4,2    ## @B43legacy_PHY_RFOVERVAL
	.comm	_B43legacy_RADIO_DEFAULT_CHANNEL_BG,4,2 ## @B43legacy_RADIO_DEFAULT_CHANNEL_BG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_radio_turn_on        ; -- Begin function b43legacy_radio_turn_on
	.p2align	2
_b43legacy_radio_turn_on:               ; @b43legacy_radio_turn_on
	.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
	bl	_might_sleep
	ldr	w8, [x19]
	cbnz	w8, LBB0_7
; %bb.1:
	ldr	w8, [x19, #4]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #21
	mov	w2, #32768
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #21
	mov	w2, #52224
	bl	_b43legacy_phy_write
	ldr	w8, [x19, #24]
	mov	w9, #192
	cmp	w8, #0
	csel	w2, wzr, w9, eq
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_write
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _B43legacy_PHY_RFOVER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43legacy_PHY_RFOVER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	mov	x0, x19
	bl	_b43legacy_phy_write
Lloh3:
	adrp	x8, _B43legacy_PHY_RFOVERVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43legacy_PHY_RFOVERVAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19, #20]
	mov	x0, x19
	bl	_b43legacy_phy_write
	str	wzr, [x19, #12]
LBB0_4:
	ldr	w20, [x19, #8]
Lloh6:
	adrp	x8, _B43legacy_RADIO_DEFAULT_CHANNEL_BG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43legacy_RADIO_DEFAULT_CHANNEL_BG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_b43legacy_radio_selectchannel
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_b43legacy_radio_selectchannel
	orr	w0, w0, w21
	bl	_B43legacy_WARN_ON
	b	LBB0_6
LBB0_5:
	mov	w0, #1
	bl	_B43legacy_BUG_ON
LBB0_6:
	mov	w8, #1
	str	w8, [x19]
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_PHY_RFOVER,4,2       ; @B43legacy_PHY_RFOVER
	.comm	_B43legacy_PHY_RFOVERVAL,4,2    ; @B43legacy_PHY_RFOVERVAL
	.comm	_B43legacy_RADIO_DEFAULT_CHANNEL_BG,4,2 ; @B43legacy_RADIO_DEFAULT_CHANNEL_BG
.subsections_via_symbols
