	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_nphy_op_software_rfkill
_b43_nphy_op_software_rfkill:           ## @b43_nphy_op_software_rfkill
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_B43_MMIO_MACCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_b43_read32
	movq	_B43_MACCTL_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	12(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43err
LBB0_2:
	movl	(%r14), %eax
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.3:
	cmpl	$18, %eax
	jg	LBB0_17
## %bb.4:
	cmpl	$8, %eax
	jl	LBB0_5
## %bb.18:
	movq	_B43_NPHY_RFCTL_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_NPHY_RFCTL_CMD_CHIP0PU@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43_phy_mask                   ## TAILCALL
LBB0_8:
	cmpl	$18, %eax
	jle	LBB0_9
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	cmpl	$7, %eax
	jl	LBB0_13
## %bb.10:
	cmpl	$0, 8(%r14)
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_b43_radio_2057_init
	jmp	LBB0_12
LBB0_5:
	cmpl	$7, %eax
	je	LBB0_17
## %bb.6:
	cmpl	$3, %eax
	jl	LBB0_17
## %bb.7:
	movq	_B43_NPHY_RFCTL_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_NPHY_RFCTL_CMD_CHIP0PU@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	%r14, %rdi
	callq	_b43_phy_mask
	movq	%r14, %rdi
	movl	$9, %esi
	movl	$-3, %edx
	callq	_b43_radio_mask
	movq	%r14, %rdi
	movl	$8269, %esi                     ## imm = 0x204D
	xorl	%edx, %edx
	callq	_b43_radio_write
	movq	%r14, %rdi
	movl	$8275, %esi                     ## imm = 0x2053
	xorl	%edx, %edx
	callq	_b43_radio_write
	movq	%r14, %rdi
	movl	$8280, %esi                     ## imm = 0x2058
	xorl	%edx, %edx
	callq	_b43_radio_write
	movq	%r14, %rdi
	movl	$8286, %esi                     ## imm = 0x205E
	xorl	%edx, %edx
	callq	_b43_radio_write
	movq	%r14, %rdi
	movl	$8290, %esi                     ## imm = 0x2062
	movl	$-241, %edx
	callq	_b43_radio_mask
	movq	%r14, %rdi
	movl	$8292, %esi                     ## imm = 0x2064
	xorl	%edx, %edx
	callq	_b43_radio_write
	movq	%r14, %rdi
	movl	$12365, %esi                    ## imm = 0x304D
	xorl	%edx, %edx
	callq	_b43_radio_write
	movq	%r14, %rdi
	movl	$12371, %esi                    ## imm = 0x3053
	xorl	%edx, %edx
	callq	_b43_radio_write
	movq	%r14, %rdi
	movl	$12376, %esi                    ## imm = 0x3058
	xorl	%edx, %edx
	callq	_b43_radio_write
	movq	%r14, %rdi
	movl	$12382, %esi                    ## imm = 0x305E
	xorl	%edx, %edx
	callq	_b43_radio_write
	movq	%r14, %rdi
	movl	$12386, %esi                    ## imm = 0x3062
	movl	$-241, %edx
	callq	_b43_radio_mask
	movq	%r14, %rdi
	movl	$12388, %esi                    ## imm = 0x3064
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43_radio_write                ## TAILCALL
LBB0_13:
	cmpl	$3, %eax
	jl	LBB0_16
## %bb.14:
	cmpl	$0, 8(%r14)
	jne	LBB0_12
## %bb.15:
	movq	%r14, %rdi
	callq	_b43_radio_init2056
LBB0_12:
	movl	4(%r14), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43_switch_channel             ## TAILCALL
LBB0_16:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43_radio_init2055             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_MMIO_MACCTL,4,2            ## @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_ENABLED,4,2         ## @B43_MACCTL_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC not suspended\n"

	.comm	_B43_NPHY_RFCTL_CMD,4,2         ## @B43_NPHY_RFCTL_CMD
	.comm	_B43_NPHY_RFCTL_CMD_CHIP0PU,4,2 ## @B43_NPHY_RFCTL_CMD_CHIP0PU
	.no_dead_strip	_b43_nphy_op_software_rfkill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_nphy_op_software_rfkill
_b43_nphy_op_software_rfkill:           ; @b43_nphy_op_software_rfkill
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _B43_MMIO_MACCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_MMIO_MACCTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_b43_read32
Lloh3:
	adrp	x8, _B43_MACCTL_ENABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_MACCTL_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #18
	cbz	w20, LBB0_6
; %bb.3:
	b.gt	LBB0_7
; %bb.4:
	cmp	w8, #8
	b.lt	LBB0_11
; %bb.5:
Lloh8:
	adrp	x8, _B43_NPHY_RFCTL_CMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B43_NPHY_RFCTL_CMD@GOTPAGEOFF]
Lloh10:
	adrp	x9, _B43_NPHY_RFCTL_CMD_CHIP0PU@GOTPAGE
Lloh11:
	ldr	x9, [x9, _B43_NPHY_RFCTL_CMD_CHIP0PU@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	ldr	w8, [x9]
	mvn	w2, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43_phy_mask
LBB0_6:
	b.le	LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	cmp	w8, #7
	b.lt	LBB0_14
; %bb.9:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_17
; %bb.10:
	mov	x0, x19
	bl	_b43_radio_2057_init
	b	LBB0_17
LBB0_11:
	cmp	w8, #7
	b.eq	LBB0_7
; %bb.12:
	cmp	w8, #3
	b.lt	LBB0_7
; %bb.13:
Lloh14:
	adrp	x8, _B43_NPHY_RFCTL_CMD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _B43_NPHY_RFCTL_CMD@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _B43_NPHY_RFCTL_CMD_CHIP0PU@GOTPAGE
Lloh18:
	ldr	x8, [x8, _B43_NPHY_RFCTL_CMD_CHIP0PU@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x19
	bl	_b43_phy_mask
	mov	x0, x19
	mov	w1, #9
	mov	w2, #-3
	bl	_b43_radio_mask
	mov	x0, x19
	mov	w1, #8269
	mov	w2, #0
	bl	_b43_radio_write
	mov	x0, x19
	mov	w1, #8275
	mov	w2, #0
	bl	_b43_radio_write
	mov	x0, x19
	mov	w1, #8280
	mov	w2, #0
	bl	_b43_radio_write
	mov	x0, x19
	mov	w1, #8286
	mov	w2, #0
	bl	_b43_radio_write
	mov	x0, x19
	mov	w1, #8290
	mov	w2, #-241
	bl	_b43_radio_mask
	mov	x0, x19
	mov	w1, #8292
	mov	w2, #0
	bl	_b43_radio_write
	mov	x0, x19
	mov	w1, #12365
	mov	w2, #0
	bl	_b43_radio_write
	mov	x0, x19
	mov	w1, #12371
	mov	w2, #0
	bl	_b43_radio_write
	mov	x0, x19
	mov	w1, #12376
	mov	w2, #0
	bl	_b43_radio_write
	mov	x0, x19
	mov	w1, #12382
	mov	w2, #0
	bl	_b43_radio_write
	mov	x0, x19
	mov	w1, #12386
	mov	w2, #-241
	bl	_b43_radio_mask
	mov	x0, x19
	mov	w1, #12388
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43_radio_write
LBB0_14:
	cmp	w8, #3
	b.lt	LBB0_18
; %bb.15:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_b43_radio_init2056
LBB0_17:
	ldr	w1, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43_switch_channel
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43_radio_init2055
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_MMIO_MACCTL,4,2            ; @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_ENABLED,4,2         ; @B43_MACCTL_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC not suspended\n"

	.comm	_B43_NPHY_RFCTL_CMD,4,2         ; @B43_NPHY_RFCTL_CMD
	.comm	_B43_NPHY_RFCTL_CMD_CHIP0PU,4,2 ; @B43_NPHY_RFCTL_CMD_CHIP0PU
	.no_dead_strip	_b43_nphy_op_software_rfkill
.subsections_via_symbols
