	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_thread_await_progress2      ## -- Begin function ff_thread_await_progress2
	.p2align	4, 0x90
_ff_thread_await_progress2:             ## @ff_thread_await_progress2
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_8
## %bb.1:
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.2:
	movl	%ecx, %r14d
	movl	%esi, %r15d
	testl	%edx, %edx
	jne	LBB0_4
## %bb.3:
	movl	8(%r13), %edx
LBB0_4:
	movslq	%edx, %rax
	leaq	-4(,%rax,4), %rdi
	decq	%rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	16(%r13), %rdi
	callq	_pthread_mutex_lock
	movslq	%r15d, %r15
	movl	-4(%rbx,%r15,4), %eax
	subl	(%rbx,%r15,4), %eax
	cmpl	%r14d, %eax
	jge	LBB0_7
## %bb.5:
	leaq	-1(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rdi
	addq	%r12, %rdi
	movq	16(%r13), %rsi
	addq	%r12, %rsi
	callq	_pthread_cond_wait
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rbx,%rax,4), %eax
	subl	(%rbx,%r15,4), %eax
	cmpl	%r14d, %eax
	jl	LBB0_6
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	shlq	$2, %rdi
	addq	16(%r13), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_thread_await_progress2      ; -- Begin function ff_thread_await_progress2
	.p2align	2
_ff_thread_await_progress2:             ; @ff_thread_await_progress2
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	w1, LBB0_8
; %bb.1:
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	x22, [x21]
	cbz	x22, LBB0_8
; %bb.2:
	mov	x19, x3
	mov	x20, x1
	cbnz	w2, LBB0_4
; %bb.3:
	ldr	w2, [x21, #8]
LBB0_4:
	sub	w8, w2, #1
	ldr	x9, [x21, #16]
	sxtw	x23, w8
	add	x0, x9, w8, sxtw #2
	bl	_pthread_mutex_lock
	sxtw	x24, w20
	sub	x25, x24, #1
	ldr	w8, [x22, x25, lsl #2]
	ldr	w9, [x22, w20, sxtw #2]
	sub	w8, w8, w9
	cmp	w8, w19
	b.ge	LBB0_7
; %bb.5:
	lsl	x20, x23, #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x21, #16]
	add	x0, x8, x20
	add	x1, x9, x20
	bl	_pthread_cond_wait
	ldr	w8, [x22, x25, lsl #2]
	ldr	w9, [x22, x24, lsl #2]
	sub	w8, w8, w9
	cmp	w8, w19
	b.lt	LBB0_6
LBB0_7:
	ldr	x8, [x21, #16]
	add	x0, x8, x23, lsl #2
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pthread_mutex_unlock
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
