	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_thread
_init_thread:                           ## @init_thread
	.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
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_slock_new
	movq	%rax, 56(%rbx)
	xorl	%eax, %eax
	callq	_slock_new
	movq	%rax, 48(%rbx)
	xorl	%eax, %eax
	callq	_scond_new
	movq	%rax, 40(%rbx)
	movslq	68(%rbx), %rax
	movq	_MAX_FRAMES@GOTPCREL(%rip), %r15
	movslq	(%r15), %rcx
	imulq	%rax, %rcx
	imulq	$128000, %rcx, %rax             ## imm = 0x1F400
	movabsq	$-8608480567731124087, %rcx     ## imm = 0x8888888888888889
	mulq	%rcx
	movq	%rdx, %rdi
	shrq	$5, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_fifo_new
	movq	%rax, 32(%rbx)
	movl	(%r15), %edi
	shll	$2, %edi
	callq	_fifo_new
	movq	%rax, 24(%rbx)
	movl	76(%rbx), %edi
	imull	72(%rbx), %edi
	imull	64(%rbx), %edi
	imull	(%r15), %edi
	callq	_fifo_new
	movq	%rax, 16(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movq	_ffmpeg_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_sthread_create
	movq	%rax, 8(%rbx)
	cmpq	$0, 56(%rbx)
	je	LBB0_7
## %bb.1:
	cmpq	$0, 48(%rbx)
	je	LBB0_7
## %bb.2:
	cmpq	$0, 40(%rbx)
	je	LBB0_7
## %bb.3:
	cmpq	$0, 32(%rbx)
	je	LBB0_7
## %bb.4:
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.5:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.6:
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
LBB0_7:
	movl	%r14d, %edi
	callq	_retro_assert
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FRAMES,4,2                 ## @MAX_FRAMES
	.comm	_ffmpeg_thread,4,2              ## @ffmpeg_thread
	.no_dead_strip	_init_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_thread
_init_thread:                           ; @init_thread
	.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, x0
	bl	_slock_new
	str	x0, [x19, #56]
	bl	_slock_new
	str	x0, [x19, #48]
	bl	_scond_new
	str	x0, [x19, #40]
	ldrsw	x8, [x19, #68]
Lloh0:
	adrp	x20, _MAX_FRAMES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAX_FRAMES@GOTPAGEOFF]
	ldrsw	x9, [x20]
	mul	x8, x8, x9
	mov	w9, #62464
	movk	w9, #1, lsl #16
	mul	x8, x8, x9
	mov	x9, #-8608480567731124088
	movk	x9, #34953
	umulh	x8, x8, x9
	lsr	x0, x8, #5
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_fifo_new
	str	x0, [x19, #32]
	ldr	w8, [x20]
	lsl	w0, w8, #2
	bl	_fifo_new
	str	x0, [x19, #24]
	ldp	w8, w9, [x19, #72]
	mul	w8, w9, w8
	ldr	w9, [x19, #64]
	mul	w8, w8, w9
	ldr	w9, [x20]
	mul	w0, w8, w9
	bl	_fifo_new
	str	x0, [x19, #16]
	movi.2s	v0, #1
	str	d0, [x19]
Lloh2:
	adrp	x8, _ffmpeg_thread@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ffmpeg_thread@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_sthread_create
	str	x0, [x19, #8]
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	bl	_retro_assert
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FRAMES,4,2                 ; @MAX_FRAMES
	.comm	_ffmpeg_thread,4,2              ; @ffmpeg_thread
	.no_dead_strip	_init_thread
.subsections_via_symbols
