	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_radio_turn_off       ## -- Begin function b43legacy_radio_turn_off
	.p2align	4, 0x90
_b43legacy_radio_turn_off:              ## @b43legacy_radio_turn_off
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	16(%rdi), %eax
	orl	%esi, %eax
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	_B43legacy_PHYTYPE_G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	8(%rbx), %rax
	cmpl	$5, (%rax)
	jl	LBB0_6
## %bb.3:
	movl	%esi, %r14d
	movq	_B43legacy_PHY_RFOVER@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_b43legacy_phy_read
	movl	%eax, %r12d
	movq	_B43legacy_PHY_RFOVERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_b43legacy_phy_read
	movl	%eax, %r15d
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.4:
	movl	%r12d, 32(%rbx)
	movl	%r15d, 36(%rbx)
	movl	$1, 40(%rbx)
LBB0_5:
	movl	(%r13), %esi
	orl	$140, %r12d
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_b43legacy_phy_write
	movq	_B43legacy_PHY_RFOVERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$65395, %r15d                   ## imm = 0xFF73
	movq	%rbx, %rdi
	movl	%r15d, %edx
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$43520, %edx                    ## imm = 0xAA00
LBB0_7:
	callq	_b43legacy_phy_write
	movl	$0, 16(%rbx)
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43legacydbg                   ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_PHYTYPE_G,8,3        ## @B43legacy_PHYTYPE_G
	.comm	_B43legacy_PHY_RFOVER,4,2       ## @B43legacy_PHY_RFOVER
	.comm	_B43legacy_PHY_RFOVERVAL,4,2    ## @B43legacy_PHY_RFOVERVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Radio initialized\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_radio_turn_off       ; -- Begin function b43legacy_radio_turn_off
	.p2align	2
_b43legacy_radio_turn_off:              ; @b43legacy_radio_turn_off
	.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
	ldr	w8, [x0, #16]
	orr	w8, w8, w1
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _B43legacy_PHYTYPE_G@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B43legacy_PHYTYPE_G@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #5
	b.lt	LBB0_6
; %bb.3:
	mov	x20, x1
Lloh3:
	adrp	x24, _B43legacy_PHY_RFOVER@GOTPAGE
Lloh4:
	ldr	x24, [x24, _B43legacy_PHY_RFOVER@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_b43legacy_phy_read
	mov	x22, x0
Lloh5:
	adrp	x23, _B43legacy_PHY_RFOVERVAL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _B43legacy_PHY_RFOVERVAL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_b43legacy_phy_read
	mov	x21, x0
	cbnz	w20, LBB0_5
; %bb.4:
	stp	w22, w21, [x19, #32]
	mov	w8, #1
	str	w8, [x19, #40]
LBB0_5:
	ldr	w1, [x24]
	mov	w8, #140
	orr	w2, w22, w8
	mov	x0, x19
	bl	_b43legacy_phy_write
	ldr	w1, [x23]
	mov	w8, #65395
	and	w2, w21, w8
	mov	x0, x19
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	w1, #21
	mov	w2, #43520
LBB0_7:
	bl	_b43legacy_phy_write
	str	wzr, [x19, #16]
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	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	_b43legacydbg
LBB0_8:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_PHYTYPE_G,8,3        ; @B43legacy_PHYTYPE_G
	.comm	_B43legacy_PHY_RFOVER,4,2       ; @B43legacy_PHY_RFOVER
	.comm	_B43legacy_PHY_RFOVERVAL,4,2    ; @B43legacy_PHY_RFOVERVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Radio initialized\n"

.subsections_via_symbols
