	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ijkmp_prepare_async_l
_ijkmp_prepare_async_l:                 ## @ijkmp_prepare_async_l
	.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	_assert
	movl	24(%rbx), %edi
	movq	_MP_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MPST_RET_IF_EQ
	movl	24(%rbx), %edi
	movq	_MP_STATE_ASYNC_PREPARING@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_MPST_RET_IF_EQ
	movl	24(%rbx), %edi
	movq	_MP_STATE_PREPARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MPST_RET_IF_EQ
	movl	24(%rbx), %edi
	movq	_MP_STATE_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MPST_RET_IF_EQ
	movl	24(%rbx), %edi
	movq	_MP_STATE_PAUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MPST_RET_IF_EQ
	movl	24(%rbx), %edi
	movq	_MP_STATE_COMPLETED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MPST_RET_IF_EQ
	movl	24(%rbx), %edi
	movq	_MP_STATE_ERROR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_MPST_RET_IF_EQ
	movl	24(%rbx), %edi
	movq	_MP_STATE_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MPST_RET_IF_EQ
	movq	(%rbx), %rdi
	callq	_assert
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ijkmp_change_state_l
	movq	8(%rbx), %rdi
	callq	_msg_queue_start
	movq	%rbx, %rdi
	callq	_ijkmp_inc_ref
	leaq	16(%rbx), %rdi
	movq	_ijkmp_msg_loop@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdx
	callq	_SDL_CreateThreadEx
	movl	%eax, 20(%rbx)
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	callq	_ffp_prepare_async_l
	movl	%eax, %r14d
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jns	LBB0_2
## %bb.1:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_ijkmp_change_state_l
	movl	%r14d, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP_STATE_IDLE,4,2              ## @MP_STATE_IDLE
	.comm	_MP_STATE_ASYNC_PREPARING,4,2   ## @MP_STATE_ASYNC_PREPARING
	.comm	_MP_STATE_PREPARED,4,2          ## @MP_STATE_PREPARED
	.comm	_MP_STATE_STARTED,4,2           ## @MP_STATE_STARTED
	.comm	_MP_STATE_PAUSED,4,2            ## @MP_STATE_PAUSED
	.comm	_MP_STATE_COMPLETED,4,2         ## @MP_STATE_COMPLETED
	.comm	_MP_STATE_ERROR,4,2             ## @MP_STATE_ERROR
	.comm	_MP_STATE_END,4,2               ## @MP_STATE_END
	.comm	_ijkmp_msg_loop,4,2             ## @ijkmp_msg_loop
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ff_msg_loop"

	.no_dead_strip	_ijkmp_prepare_async_l
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ijkmp_prepare_async_l
_ijkmp_prepare_async_l:                 ; @ijkmp_prepare_async_l
	.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	x19, x0
	bl	_assert
	ldr	w0, [x19, #24]
Lloh0:
	adrp	x8, _MP_STATE_IDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MP_STATE_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MPST_RET_IF_EQ
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x20, _MP_STATE_ASYNC_PREPARING@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MP_STATE_ASYNC_PREPARING@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_MPST_RET_IF_EQ
	ldr	w0, [x19, #24]
Lloh5:
	adrp	x8, _MP_STATE_PREPARED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MP_STATE_PREPARED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_MPST_RET_IF_EQ
	ldr	w0, [x19, #24]
Lloh8:
	adrp	x8, _MP_STATE_STARTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MP_STATE_STARTED@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_MPST_RET_IF_EQ
	ldr	w0, [x19, #24]
Lloh11:
	adrp	x8, _MP_STATE_PAUSED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MP_STATE_PAUSED@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_MPST_RET_IF_EQ
	ldr	w0, [x19, #24]
Lloh14:
	adrp	x8, _MP_STATE_COMPLETED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MP_STATE_COMPLETED@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_MPST_RET_IF_EQ
	ldr	w0, [x19, #24]
Lloh17:
	adrp	x21, _MP_STATE_ERROR@GOTPAGE
Lloh18:
	ldr	x21, [x21, _MP_STATE_ERROR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_MPST_RET_IF_EQ
	ldr	w0, [x19, #24]
Lloh19:
	adrp	x8, _MP_STATE_END@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MP_STATE_END@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_MPST_RET_IF_EQ
	ldr	x0, [x19]
	bl	_assert
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ijkmp_change_state_l
	ldr	x0, [x19, #8]
	bl	_msg_queue_start
	mov	x0, x19
	bl	_ijkmp_inc_ref
	add	x0, x19, #16
Lloh22:
	adrp	x8, _ijkmp_msg_loop@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ijkmp_msg_loop@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x3, l_.str@PAGE
Lloh26:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, x19
	bl	_SDL_CreateThreadEx
	str	w0, [x19, #20]
	ldp	x1, x0, [x19]
	bl	_ffp_prepare_async_l
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ijkmp_change_state_l
LBB0_3:
	mov	x0, x20
	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 AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_STATE_IDLE,4,2              ; @MP_STATE_IDLE
	.comm	_MP_STATE_ASYNC_PREPARING,4,2   ; @MP_STATE_ASYNC_PREPARING
	.comm	_MP_STATE_PREPARED,4,2          ; @MP_STATE_PREPARED
	.comm	_MP_STATE_STARTED,4,2           ; @MP_STATE_STARTED
	.comm	_MP_STATE_PAUSED,4,2            ; @MP_STATE_PAUSED
	.comm	_MP_STATE_COMPLETED,4,2         ; @MP_STATE_COMPLETED
	.comm	_MP_STATE_ERROR,4,2             ; @MP_STATE_ERROR
	.comm	_MP_STATE_END,4,2               ; @MP_STATE_END
	.comm	_ijkmp_msg_loop,4,2             ; @ijkmp_msg_loop
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ff_msg_loop"

	.no_dead_strip	_ijkmp_prepare_async_l
.subsections_via_symbols
