	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge_ctf_cb
_merge_ctf_cb:                          ## @merge_ctf_cb
	.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	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_debug
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	movl	16(%rbx), %edi
	callq	_fifo_len
	cmpq	(%rbx), %rax
	jbe	LBB0_3
## %bb.1:
	leaq	20(%rbx), %r13
	leaq	L_.str.1(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %edi
	callq	_fifo_len
	movq	(%rbx), %rcx
	movl	$2, %edi
	movq	%r14, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_debug
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_pthread_cond_wait
	movl	16(%rbx), %edi
	callq	_fifo_len
	cmpq	(%rbx), %rax
	ja	LBB0_2
LBB0_3:
	movl	16(%rbx), %edi
	movq	%r12, %rsi
	callq	_fifo_add
	xorl	%eax, %eax
	callq	_pthread_self
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%rax, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_debug
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_pthread_cond_broadcast
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adding tdata %p for processing\n"

L_.str.1:                               ## @.str.1
	.asciz	"Throttling input (len = %d, throttle = %d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Thread %d announcing %s\n"

	.no_dead_strip	_merge_ctf_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function merge_ctf_cb
_merge_ctf_cb:                          ; @merge_ctf_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x22
	bl	_debug
	add	x20, x19, #8
	mov	x0, x20
	bl	_pthread_mutex_lock
	ldr	w0, [x19, #16]
	bl	_fifo_len
	ldr	x8, [x19]
	cmp	x0, x8
	b.ls	LBB0_3
; %bb.1:
	add	x23, x19, #20
Lloh2:
	adrp	x24, l_.str.1@PAGE
Lloh3:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	bl	_fifo_len
	mov	x2, x0
	ldr	x8, [x19]
	str	x8, [sp]
	mov	w0, #2
	mov	x1, x24
	bl	_debug
	mov	x0, x23
	mov	x1, x20
	bl	_pthread_cond_wait
	ldr	w0, [x19, #16]
	bl	_fifo_len
	ldr	x8, [x19]
	cmp	x0, x8
	b.hi	LBB0_2
LBB0_3:
	ldr	w0, [x19, #16]
	mov	x1, x22
	bl	_fifo_add
	bl	_pthread_self
	mov	x2, x0
	str	x21, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_debug
	add	x0, x19, #12
	bl	_pthread_cond_broadcast
	mov	x0, x20
	bl	_pthread_mutex_unlock
	mov	w0, #1
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adding tdata %p for processing\n"

l_.str.1:                               ; @.str.1
	.asciz	"Throttling input (len = %d, throttle = %d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Thread %d announcing %s\n"

	.no_dead_strip	_merge_ctf_cb
.subsections_via_symbols
