	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_gphy_op_software_rfkill
_b43_gphy_op_software_rfkill:           ## @b43_gphy_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	%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	%esi, %ebx
	movq	%rdi, %r14
	movq	24(%rdi), %r12
	xorl	%eax, %eax
	callq	_might_sleep
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.5:
	movq	_B43_PHY_RFOVER@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_b43_phy_read
	movl	%eax, %ebx
	movq	_B43_PHY_RFOVERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43_phy_read
	movl	%eax, %r15d
	movl	%ebx, 4(%r12)
	movl	%eax, 8(%r12)
	movl	$1, (%r12)
	movl	(%r13), %esi
	orl	$140, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_b43_phy_write
	movq	_B43_PHY_RFOVERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$65395, %r15d                   ## imm = 0xFF73
	movq	%r14, %rdi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_phy_write                  ## TAILCALL
LBB0_1:
	cmpq	$0, 16(%r14)
	je	LBB0_2
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	movl	$21, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_b43_phy_write
	movq	%r14, %rdi
	movl	$21, %esi
	movl	$52224, %edx                    ## imm = 0xCC00
	callq	_b43_phy_write
	xorl	%eax, %eax
	cmpq	$0, 8(%r14)
	movl	$192, %edx
	cmovel	%eax, %edx
	movq	%r14, %rdi
	movl	$21, %esi
	callq	_b43_phy_write
	cmpl	$0, (%r12)
	je	LBB0_4
## %bb.3:
	movq	_B43_PHY_RFOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %edx
	movq	%r14, %rdi
	callq	_b43_phy_write
	movq	_B43_PHY_RFOVERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	movq	%r14, %rdi
	callq	_b43_phy_write
	movl	$0, (%r12)
LBB0_4:
	movl	(%r14), %ebx
	movq	%r14, %rdi
	movl	$6, %esi
	movl	$1, %edx
	callq	_b43_gphy_channel_switch
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_gphy_channel_switch        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_PHY_RFOVER,4,2             ## @B43_PHY_RFOVER
	.comm	_B43_PHY_RFOVERVAL,4,2          ## @B43_PHY_RFOVERVAL
	.no_dead_strip	_b43_gphy_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_gphy_op_software_rfkill
_b43_gphy_op_software_rfkill:           ; @b43_gphy_op_software_rfkill
	.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	x22, [x0, #24]
	bl	_might_sleep
	cbz	w20, LBB0_2
; %bb.1:
Lloh0:
	adrp	x23, _B43_PHY_RFOVER@GOTPAGE
Lloh1:
	ldr	x23, [x23, _B43_PHY_RFOVER@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_b43_phy_read
	mov	x20, x0
Lloh2:
	adrp	x24, _B43_PHY_RFOVERVAL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _B43_PHY_RFOVERVAL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_b43_phy_read
	mov	x21, x0
	stp	w20, w0, [x22, #4]
	mov	w8, #1
	str	w8, [x22]
	ldr	w1, [x23]
	mov	w8, #140
	orr	w2, w20, w8
	mov	x0, x19
	bl	_b43_phy_write
	ldr	w1, [x24]
	mov	w8, #65395
	and	w2, w21, w8
	mov	x0, x19
	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_phy_write
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	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
LBB0_4:
	mov	x0, x19
	mov	w1, #21
	mov	w2, #32768
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #21
	mov	w2, #52224
	bl	_b43_phy_write
	ldr	x8, [x19, #8]
	cmp	x8, #0
	mov	w8, #192
	csel	w2, wzr, w8, eq
	mov	x0, x19
	mov	w1, #21
	bl	_b43_phy_write
	ldr	w8, [x22]
	cbz	w8, LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _B43_PHY_RFOVER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _B43_PHY_RFOVER@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w2, [x22, #4]
	mov	x0, x19
	bl	_b43_phy_write
Lloh7:
	adrp	x8, _B43_PHY_RFOVERVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _B43_PHY_RFOVERVAL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x22, #8]
	mov	x0, x19
	bl	_b43_phy_write
	str	wzr, [x22]
LBB0_6:
	ldr	w20, [x19]
	mov	x0, x19
	mov	w1, #6
	mov	w2, #1
	bl	_b43_gphy_channel_switch
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_PHY_RFOVER,4,2             ; @B43_PHY_RFOVER
	.comm	_B43_PHY_RFOVERVAL,4,2          ; @B43_PHY_RFOVERVAL
	.no_dead_strip	_b43_gphy_op_software_rfkill
.subsections_via_symbols
