	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt61pci_enable_radio
_rt61pci_enable_radio:                  ## @rt61pci_enable_radio
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_rt61pci_init_queues
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_rt61pci_init_registers
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_rt61pci_init_bbp
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
LBB0_3:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	_RX_CNTL_CSR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rt2x00mmio_register_read
	movl	%eax, -20(%rbp)
	movq	_RX_CNTL_CSR_ENABLE_RX_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movl	(%rbx), %esi
	movl	-20(%rbp), %edx
	movq	%r14, %rdi
	callq	_rt2x00mmio_register_write
	xorl	%eax, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_RX_CNTL_CSR,4,2                ## @RX_CNTL_CSR
	.comm	_RX_CNTL_CSR_ENABLE_RX_DMA,4,2  ## @RX_CNTL_CSR_ENABLE_RX_DMA
	.no_dead_strip	_rt61pci_enable_radio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt61pci_enable_radio
_rt61pci_enable_radio:                  ; @rt61pci_enable_radio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_rt61pci_init_queues
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rt61pci_init_registers
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #1
	bl	_unlikely
	cbz	x0, LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_rt61pci_init_bbp
	cmp	x0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_3
LBB0_5:
Lloh3:
	adrp	x20, _RX_CNTL_CSR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _RX_CNTL_CSR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2x00mmio_register_read
	str	w0, [sp, #12]
Lloh5:
	adrp	x8, _RX_CNTL_CSR_ENABLE_RX_DMA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RX_CNTL_CSR_ENABLE_RX_DMA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00mmio_register_write
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_RX_CNTL_CSR,4,2                ; @RX_CNTL_CSR
	.comm	_RX_CNTL_CSR_ENABLE_RX_DMA,4,2  ; @RX_CNTL_CSR_ENABLE_RX_DMA
	.no_dead_strip	_rt61pci_enable_radio
.subsections_via_symbols
