	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optc1_wait_for_state           ## -- Begin function optc1_wait_for_state
	.p2align	4, 0x90
_optc1_wait_for_state:                  ## @optc1_wait_for_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_DCN10TG_FROM_TG
	cmpl	$128, %ebx
	je	LBB0_1
## %bb.2:
	cmpl	$129, %ebx
	jne	LBB0_5
## %bb.3:
	movq	_OTG_V_ACTIVE_DISP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_OTG_V_BLANK@GOTPCREL(%rip), %rax
LBB0_4:
	movq	_OTG_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$100000, %r8d                   ## imm = 0x186A0
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_REG_WAIT                       ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OTG_STATUS,4,2                 ## @OTG_STATUS
	.comm	_OTG_V_BLANK,4,2                ## @OTG_V_BLANK
	.comm	_OTG_V_ACTIVE_DISP,4,2          ## @OTG_V_ACTIVE_DISP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optc1_wait_for_state           ; -- Begin function optc1_wait_for_state
	.p2align	2
_optc1_wait_for_state:                  ; @optc1_wait_for_state
	.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, x1
	bl	_DCN10TG_FROM_TG
	cmp	w19, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w19, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _OTG_V_ACTIVE_DISP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OTG_V_ACTIVE_DISP@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _OTG_V_BLANK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OTG_V_BLANK@GOTPAGEOFF]
LBB0_4:
Lloh4:
	adrp	x9, _OTG_STATUS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _OTG_STATUS@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x9]
	ldr	w1, [x8]
	mov	w2, #1
	mov	w3, #1
	mov	w4, #34464
	movk	w4, #1, lsl #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_WAIT
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_OTG_STATUS,4,2                 ; @OTG_STATUS
	.comm	_OTG_V_BLANK,4,2                ; @OTG_V_BLANK
	.comm	_OTG_V_ACTIVE_DISP,4,2          ; @OTG_V_ACTIVE_DISP
.subsections_via_symbols
