	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800pci_enable_radio
_rt2800pci_enable_radio:                ## @rt2800pci_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rt2800mmio_enable_radio
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_H2M_MAILBOX_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_rt2x00mmio_register_write
	movq	_H2M_MAILBOX_CID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_rt2x00mmio_register_write
	movq	_MCU_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TOKEN_RADIO_OFF@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	$255, %ecx
	movl	$2, %r8d
	callq	_rt2800_mcu_request
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rt2800pci_mcu_status
	movq	_MCU_WAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TOKEN_WAKEUP@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_rt2800_mcu_request
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rt2800pci_mcu_status
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2M_MAILBOX_STATUS,4,2         ## @H2M_MAILBOX_STATUS
	.comm	_H2M_MAILBOX_CID,4,2            ## @H2M_MAILBOX_CID
	.comm	_MCU_SLEEP,4,2                  ## @MCU_SLEEP
	.comm	_TOKEN_RADIO_OFF,4,2            ## @TOKEN_RADIO_OFF
	.comm	_MCU_WAKEUP,4,2                 ## @MCU_WAKEUP
	.comm	_TOKEN_WAKEUP,4,2               ## @TOKEN_WAKEUP
	.no_dead_strip	_rt2800pci_enable_radio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800pci_enable_radio
_rt2800pci_enable_radio:                ; @rt2800pci_enable_radio
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	_rt2800mmio_enable_radio
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _H2M_MAILBOX_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H2M_MAILBOX_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-1
	bl	_rt2x00mmio_register_write
Lloh3:
	adrp	x8, _H2M_MAILBOX_CID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H2M_MAILBOX_CID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-1
	bl	_rt2x00mmio_register_write
Lloh6:
	adrp	x8, _MCU_SLEEP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCU_SLEEP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x21, _TOKEN_RADIO_OFF@GOTPAGE
Lloh10:
	ldr	x21, [x21, _TOKEN_RADIO_OFF@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	mov	w3, #255
	mov	w4, #2
	bl	_rt2800_mcu_request
	ldr	w1, [x21]
	mov	x0, x20
	bl	_rt2800pci_mcu_status
Lloh11:
	adrp	x8, _MCU_WAKEUP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MCU_WAKEUP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x21, _TOKEN_WAKEUP@GOTPAGE
Lloh15:
	ldr	x21, [x21, _TOKEN_WAKEUP@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	mov	w3, #0
	mov	w4, #0
	bl	_rt2800_mcu_request
	ldr	w1, [x21]
	mov	x0, x20
	bl	_rt2800pci_mcu_status
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_H2M_MAILBOX_STATUS,4,2         ; @H2M_MAILBOX_STATUS
	.comm	_H2M_MAILBOX_CID,4,2            ; @H2M_MAILBOX_CID
	.comm	_MCU_SLEEP,4,2                  ; @MCU_SLEEP
	.comm	_TOKEN_RADIO_OFF,4,2            ; @TOKEN_RADIO_OFF
	.comm	_MCU_WAKEUP,4,2                 ; @MCU_WAKEUP
	.comm	_TOKEN_WAKEUP,4,2               ; @TOKEN_WAKEUP
	.no_dead_strip	_rt2800pci_enable_radio
.subsections_via_symbols
