	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_thread_get_format           ## -- Begin function ff_thread_get_format
	.p2align	4, 0x90
_ff_thread_get_format:                  ## @ff_thread_get_format
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_FF_THREAD_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_10
## %bb.1:
	cmpq	$0, 16(%rbx)
	jne	LBB0_10
## %bb.2:
	movq	8(%rbx), %rax
	movq	_avcodec_default_get_format@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_10:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_get_format                  ## TAILCALL
LBB0_3:
	movq	24(%rbx), %rax
	movq	(%rax), %r14
	leaq	20(%r14), %r15
	movq	%r15, %rdi
	callq	_atomic_load
	movq	_STATE_SETTING_UP@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.5:
	movq	%r14, %rbx
	addq	$12, %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	%r12, (%rbx)
	movq	_STATE_GET_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_atomic_store
	movq	%rbx, %r12
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_pthread_cond_broadcast
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_atomic_load
	cmpq	(%r13), %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pthread_cond_wait
	jmp	LBB0_7
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_8:
	movl	8(%r12), %ebx
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_THREAD_FRAME,4,2            ## @FF_THREAD_FRAME
	.comm	_avcodec_default_get_format,8,3 ## @avcodec_default_get_format
	.comm	_STATE_SETTING_UP,8,3           ## @STATE_SETTING_UP
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_format() cannot be called after ff_thread_finish_setup()\n"

	.comm	_STATE_GET_FORMAT,4,2           ## @STATE_GET_FORMAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_thread_get_format           ; -- Begin function ff_thread_get_format
	.p2align	2
_ff_thread_get_format:                  ; @ff_thread_get_format
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FF_THREAD_FRAME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FF_THREAD_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _avcodec_default_get_format@GOTPAGE
Lloh4:
	ldr	x9, [x9, _avcodec_default_get_format@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ff_get_format
LBB0_4:
	ldr	x8, [x20, #24]
	ldr	x23, [x8]
	add	x19, x23, #20
	mov	x0, x19
	bl	_atomic_load
Lloh6:
	adrp	x24, _STATE_SETTING_UP@GOTPAGE
Lloh7:
	ldr	x24, [x24, _STATE_SETTING_UP@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
	add	x20, x23, #12
	mov	x0, x20
	bl	_pthread_mutex_lock
	mov	x22, x23
	str	x21, [x22], #16
Lloh8:
	adrp	x8, _STATE_GET_FORMAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STATE_GET_FORMAT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_atomic_store
	mov	x0, x22
	bl	_pthread_cond_broadcast
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_atomic_load
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_pthread_cond_wait
	b	LBB0_6
LBB0_8:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	w19, #-1
	b	LBB0_10
LBB0_9:
	ldr	w19, [x23, #8]
	mov	x0, x20
	bl	_pthread_mutex_unlock
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_THREAD_FRAME,4,2            ; @FF_THREAD_FRAME
	.comm	_avcodec_default_get_format,8,3 ; @avcodec_default_get_format
	.comm	_STATE_SETTING_UP,8,3           ; @STATE_SETTING_UP
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_format() cannot be called after ff_thread_finish_setup()\n"

	.comm	_STATE_GET_FORMAT,4,2           ; @STATE_GET_FORMAT
.subsections_via_symbols
