	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_rfkill_poll          ## -- Begin function b43legacy_rfkill_poll
	.p2align	4, 0x90
_b43legacy_rfkill_poll:                 ## @b43legacy_rfkill_poll
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_hw_to_b43legacy_wl
	movq	%rax, %r15
	movq	8(%rax), %rbx
	movq	8(%rbx), %rax
	movq	(%rax), %r12
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_b43legacy_status
	movq	_B43legacy_STAT_INITIALIZED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_unlikely
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ssb_bus_powerup
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	callq	_ssb_device_enable
LBB0_3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_b43legacy_is_hw_radio_enabled
	movl	%eax, %r14d
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movl	%r14d, (%rbx)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	testl	%r14d, %r14d
	sete	%r12b
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_b43legacyinfo
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r12d, %esi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	callq	_wiphy_rfkill_set_hw_state
	cmpl	16(%rbx), %r14d
	je	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	callq	_b43legacy_radio_turn_on
LBB0_8:
	testq	%r13, %r13
	je	LBB0_10
LBB0_9:
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	callq	_ssb_device_disable
	movq	%r12, %rdi
	callq	_ssb_bus_may_powerdown
LBB0_10:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_7:
	xorl	%esi, %esi
	callq	_b43legacy_radio_turn_off
	testq	%r13, %r13
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_STAT_INITIALIZED,8,3 ## @B43legacy_STAT_INITIALIZED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Radio hardware status changed to %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"ENABLED"

L_.str.2:                               ## @.str.2
	.asciz	"DISABLED"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_rfkill_poll          ; -- Begin function b43legacy_rfkill_poll
	.p2align	2
_b43legacy_rfkill_poll:                 ; @b43legacy_rfkill_poll
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x0
	bl	_hw_to_b43legacy_wl
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	x8, [x21, #8]
	ldr	x20, [x8]
	bl	_mutex_lock
	mov	x0, x21
	bl	_b43legacy_status
Lloh0:
	adrp	x8, _B43legacy_STAT_INITIALIZED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43legacy_STAT_INITIALIZED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, lt
	bl	_unlikely
	mov	x23, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_ssb_bus_powerup
	cbnz	x0, LBB0_9
; %bb.2:
	ldr	x0, [x21, #8]
	mov	w1, #0
	bl	_ssb_device_enable
LBB0_3:
	mov	x0, x21
	bl	_b43legacy_is_hw_radio_enabled
	mov	x24, x0
	ldr	w8, [x21]
	cmp	w0, w8
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.4:
	str	w24, [x21]
	cmp	w24, #0
	cset	w25, eq
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x2, x9, x8, eq
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_b43legacyinfo
	ldr	w0, [x22]
	mov	x1, x25
	bl	_wiphy_rfkill_set_hw_state
	ldr	w8, [x21, #16]
	cmp	w24, w8
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x21
	cbz	w24, LBB0_10
; %bb.6:
	bl	_b43legacy_radio_turn_on
LBB0_7:
	cbz	x23, LBB0_9
LBB0_8:
	ldr	x0, [x21, #8]
	mov	w1, #0
	bl	_ssb_device_disable
	mov	x0, x20
	bl	_ssb_bus_may_powerdown
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_10:
	mov	w1, #0
	bl	_b43legacy_radio_turn_off
	cbnz	x23, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_STAT_INITIALIZED,8,3 ; @B43legacy_STAT_INITIALIZED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Radio hardware status changed to %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"ENABLED"

l_.str.2:                               ; @.str.2
	.asciz	"DISABLED"

.subsections_via_symbols
