	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main_subtask_usb_state         ## -- Begin function main_subtask_usb_state
	.p2align	4, 0x90
_main_subtask_usb_state:                ## @main_subtask_usb_state
	.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	_USB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	_USB_FSMSTATUS_FSMSTATE_SUSPEND_Val@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_1
## %bb.3:
	movq	_USB_FSMSTATUS_FSMSTATE_SLEEP_Val@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_4
LBB0_1:
	movq	$0, _main_subtask_usb_state.fsmstate_on_delay(%rip)
	movq	_g_usb_state@GOTPCREL(%rip), %r14
	cmpq	%rbx, (%r14)
	je	LBB0_11
## %bb.2:
	xorl	%eax, %eax
	callq	_suspend_power_down
	movq	%rbx, (%r14)
	jmp	LBB0_11
LBB0_4:
	movq	_USB_FSMSTATUS_FSMSTATE_ON_Val@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_10
## %bb.5:
	movq	_g_usb_state@GOTPCREL(%rip), %r14
	cmpq	%rbx, (%r14)
	je	LBB0_11
## %bb.6:
	movq	_main_subtask_usb_state.fsmstate_on_delay(%rip), %r15
	xorl	%eax, %eax
	callq	_timer_read64
	testq	%r15, %r15
	je	LBB0_7
## %bb.8:
	cmpq	_main_subtask_usb_state.fsmstate_on_delay(%rip), %rax
	jle	LBB0_11
## %bb.9:
	xorl	%eax, %eax
	callq	_suspend_wakeup_init
	movq	%rbx, (%r14)
	jmp	LBB0_11
LBB0_10:
	movq	$0, _main_subtask_usb_state.fsmstate_on_delay(%rip)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	addq	$250, %rax
	movq	%rax, _main_subtask_usb_state.fsmstate_on_delay(%rip)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_main_subtask_usb_state.fsmstate_on_delay,8,3 ## @main_subtask_usb_state.fsmstate_on_delay
	.comm	_USB,8,3                        ## @USB
	.comm	_USB_FSMSTATUS_FSMSTATE_SUSPEND_Val,8,3 ## @USB_FSMSTATUS_FSMSTATE_SUSPEND_Val
	.comm	_g_usb_state,8,3                ## @g_usb_state
	.comm	_USB_FSMSTATUS_FSMSTATE_SLEEP_Val,8,3 ## @USB_FSMSTATUS_FSMSTATE_SLEEP_Val
	.comm	_USB_FSMSTATUS_FSMSTATE_ON_Val,8,3 ## @USB_FSMSTATUS_FSMSTATE_ON_Val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main_subtask_usb_state         ; -- Begin function main_subtask_usb_state
	.p2align	2
_main_subtask_usb_state:                ; @main_subtask_usb_state
	.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
Lloh0:
	adrp	x8, _USB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x19, [x8]
Lloh3:
	adrp	x8, _USB_FSMSTATUS_FSMSTATE_SUSPEND_Val@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_FSMSTATUS_FSMSTATE_SUSPEND_Val@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x19, x8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _USB_FSMSTATUS_FSMSTATE_SLEEP_Val@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USB_FSMSTATUS_FSMSTATE_SLEEP_Val@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ne	LBB0_4
LBB0_2:
	adrp	x8, _main_subtask_usb_state.fsmstate_on_delay@PAGE
	str	xzr, [x8, _main_subtask_usb_state.fsmstate_on_delay@PAGEOFF]
Lloh9:
	adrp	x20, _g_usb_state@GOTPAGE
Lloh10:
	ldr	x20, [x20, _g_usb_state@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, x19
	b.eq	LBB0_10
; %bb.3:
	bl	_suspend_power_down
	str	x19, [x20]
	b	LBB0_10
LBB0_4:
Lloh11:
	adrp	x8, _USB_FSMSTATUS_FSMSTATE_ON_Val@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USB_FSMSTATUS_FSMSTATE_ON_Val@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ne	LBB0_9
; %bb.5:
Lloh14:
	adrp	x20, _g_usb_state@GOTPAGE
Lloh15:
	ldr	x20, [x20, _g_usb_state@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, x19
	b.eq	LBB0_10
; %bb.6:
	adrp	x21, _main_subtask_usb_state.fsmstate_on_delay@PAGE
	ldr	x22, [x21, _main_subtask_usb_state.fsmstate_on_delay@PAGEOFF]
	bl	_timer_read64
	cbz	x22, LBB0_11
; %bb.7:
	ldr	x8, [x21, _main_subtask_usb_state.fsmstate_on_delay@PAGEOFF]
	cmp	x0, x8
	b.le	LBB0_10
; %bb.8:
	bl	_suspend_wakeup_init
	str	x19, [x20]
	b	LBB0_10
LBB0_9:
	adrp	x8, _main_subtask_usb_state.fsmstate_on_delay@PAGE
	str	xzr, [x8, _main_subtask_usb_state.fsmstate_on_delay@PAGEOFF]
LBB0_10:
	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
LBB0_11:
	add	x8, x0, #250
	str	x8, [x21, _main_subtask_usb_state.fsmstate_on_delay@PAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_main_subtask_usb_state.fsmstate_on_delay,8,3 ; @main_subtask_usb_state.fsmstate_on_delay
	.comm	_USB,8,3                        ; @USB
	.comm	_USB_FSMSTATUS_FSMSTATE_SUSPEND_Val,8,3 ; @USB_FSMSTATUS_FSMSTATE_SUSPEND_Val
	.comm	_g_usb_state,8,3                ; @g_usb_state
	.comm	_USB_FSMSTATUS_FSMSTATE_SLEEP_Val,8,3 ; @USB_FSMSTATUS_FSMSTATE_SLEEP_Val
	.comm	_USB_FSMSTATUS_FSMSTATE_ON_Val,8,3 ; @USB_FSMSTATUS_FSMSTATE_ON_Val
.subsections_via_symbols
