	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800usb_set_state
_rt2800usb_set_state:                   ## @rt2800usb_set_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_STATE_AWAKE@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	%esi, (%rax)
	movl	$255, %ecx
	cmovel	%edx, %ecx
	movq	_MCU_SLEEP@GOTPCREL(%rip), %rax
	cmoveq	_MCU_WAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$255, %edx
	movl	$2, %r8d
	callq	_rt2800_mcu_request
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATE_AWAKE,4,2                ## @STATE_AWAKE
	.comm	_MCU_WAKEUP,4,2                 ## @MCU_WAKEUP
	.comm	_MCU_SLEEP,4,2                  ## @MCU_SLEEP
	.no_dead_strip	_rt2800usb_set_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800usb_set_state
_rt2800usb_set_state:                   ; @rt2800usb_set_state
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _STATE_AWAKE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATE_AWAKE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #255
	cmp	w8, w1
	csel	w3, wzr, w9, eq
Lloh3:
	adrp	x8, _MCU_WAKEUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCU_WAKEUP@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MCU_SLEEP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MCU_SLEEP@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	w2, #255
	mov	w4, #2
	bl	_rt2800_mcu_request
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STATE_AWAKE,4,2                ; @STATE_AWAKE
	.comm	_MCU_WAKEUP,4,2                 ; @MCU_WAKEUP
	.comm	_MCU_SLEEP,4,2                  ; @MCU_SLEEP
	.no_dead_strip	_rt2800usb_set_state
.subsections_via_symbols
