	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_is_hw_radio_enabled  ## -- Begin function b43legacy_is_hw_radio_enabled
	.p2align	4, 0x90
_b43legacy_is_hw_radio_enabled:         ## @b43legacy_is_hw_radio_enabled
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	cmpl	$3, (%rax)
	jl	LBB0_3
## %bb.1:
	movq	_B43legacy_MMIO_RADIO_HWENABLED_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_b43legacy_read32
	movq	_B43legacy_MMIO_RADIO_HWENABLED_HI_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.2:
	movl	$1, %r14d
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, %rdi
	callq	_b43legacy_status
	movq	_B43legacy_STAT_STARTED@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.4:
	movq	_B43legacy_MMIO_RADIO_HWENABLED_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_b43legacy_read16
	movq	_B43legacy_MMIO_RADIO_HWENABLED_LO_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
LBB0_5:
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_MMIO_RADIO_HWENABLED_HI,4,2 ## @B43legacy_MMIO_RADIO_HWENABLED_HI
	.comm	_B43legacy_MMIO_RADIO_HWENABLED_HI_MASK,4,2 ## @B43legacy_MMIO_RADIO_HWENABLED_HI_MASK
	.comm	_B43legacy_STAT_STARTED,8,3     ## @B43legacy_STAT_STARTED
	.comm	_B43legacy_MMIO_RADIO_HWENABLED_LO,4,2 ## @B43legacy_MMIO_RADIO_HWENABLED_LO
	.comm	_B43legacy_MMIO_RADIO_HWENABLED_LO_MASK,4,2 ## @B43legacy_MMIO_RADIO_HWENABLED_LO_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_is_hw_radio_enabled  ; -- Begin function b43legacy_is_hw_radio_enabled
	.p2align	2
_b43legacy_is_hw_radio_enabled:         ; @b43legacy_is_hw_radio_enabled
	.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	x19, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _B43legacy_MMIO_RADIO_HWENABLED_HI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43legacy_MMIO_RADIO_HWENABLED_HI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43legacy_read32
Lloh3:
	adrp	x8, _B43legacy_MMIO_RADIO_HWENABLED_HI_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43legacy_MMIO_RADIO_HWENABLED_HI_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_5
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_b43legacy_status
Lloh6:
	adrp	x8, _B43legacy_STAT_STARTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43legacy_STAT_STARTED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _B43legacy_MMIO_RADIO_HWENABLED_LO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B43legacy_MMIO_RADIO_HWENABLED_LO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43legacy_read16
Lloh12:
	adrp	x8, _B43legacy_MMIO_RADIO_HWENABLED_LO_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _B43legacy_MMIO_RADIO_HWENABLED_LO_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
LBB0_4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_MMIO_RADIO_HWENABLED_HI,4,2 ; @B43legacy_MMIO_RADIO_HWENABLED_HI
	.comm	_B43legacy_MMIO_RADIO_HWENABLED_HI_MASK,4,2 ; @B43legacy_MMIO_RADIO_HWENABLED_HI_MASK
	.comm	_B43legacy_STAT_STARTED,8,3     ; @B43legacy_STAT_STARTED
	.comm	_B43legacy_MMIO_RADIO_HWENABLED_LO,4,2 ; @B43legacy_MMIO_RADIO_HWENABLED_LO
	.comm	_B43legacy_MMIO_RADIO_HWENABLED_LO_MASK,4,2 ; @B43legacy_MMIO_RADIO_HWENABLED_LO_MASK
.subsections_via_symbols
