	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function receiver_thread
_receiver_thread:                       ## @receiver_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	%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
	movq	%rdi, %r15
	cmpl	$0, (%rdi)
	jle	LBB0_1
## %bb.2:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %r13d
	movl	4(%r15), %edi
	movl	8(%r15), %r12d
	callq	_av_thread_message_queue_nb_elems
	xorl	%edi, %edi
	movl	%r13d, %esi
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movl	4(%r15), %edi
	callq	_av_thread_message_flush
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_rand
	movslq	(%r15), %rcx
	cltd
	idivl	%ecx
	imulq	$1717986919, %rcx, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r15), %edi
	leaq	-64(%rbp), %rsi
	xorl	%edx, %edx
	callq	_av_thread_message_queue_recv
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax
	xorl	%edi, %edi
	movq	_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_av_assert0
	movq	-56(%rbp), %rax
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	movl	(%r14), %esi
	movl	(%rax), %ecx
	movq	-56(%rbp), %r8
	xorl	%edi, %edi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%edi, %edi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movl	4(%r15), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	js	LBB0_10
## %bb.9:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_10:
	callq	_av_thread_message_queue_set_err_send
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"receiver #%d: flushing the queue, discarding %d message(s)\n"

	.comm	_MAGIC,8,3                      ## @MAGIC
L_.str.1:                               ## @.str.1
	.asciz	"sig"

L_.str.2:                               ## @.str.2
	.asciz	"got \"%s\" (%p)\n"

L_.str.3:                               ## @.str.3
	.asciz	"consumed enough (%d), stop\n"

	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_receiver_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function receiver_thread
_receiver_thread:                       ; @receiver_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x28, _AV_LOG_INFO@GOTPAGE
Lloh1:
	ldr	x28, [x28, _AV_LOG_INFO@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w20, #0
	mov	w21, #0
	add	x8, sp, #16
	add	x22, x8, #8
	mov	w24, #26215
	movk	w24, #26214, lsl #16
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
Lloh4:
	adrp	x25, l_.str.2@PAGE
Lloh5:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w26, [x28]
	ldp	w0, w27, [x19, #4]
	bl	_av_thread_message_queue_nb_elems
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, #0
	mov	x1, x26
	mov	x2, x23
	mov	x3, x27
	bl	_av_log
	ldr	w0, [x19, #4]
	bl	_av_thread_message_flush
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_rand
	ldrsw	x8, [x19]
	sdiv	w9, w0, w8
	msub	w9, w9, w8, w0
	mul	x8, x8, x24
	lsr	x10, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w10
	cmp	w9, w8
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #4]
	add	x1, sp, #16
	mov	w2, #0
	bl	_av_thread_message_queue_recv
	mov	x21, x0
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
Lloh6:
	adrp	x9, _MAGIC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_av_assert0
	ldr	x8, [sp, #24]
	ldr	x0, [x8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	ldr	w1, [x28]
	ldr	w3, [x0]
	ldr	x8, [sp, #24]
	str	x8, [sp]
	mov	x0, #0
	mov	x2, x25
	bl	_av_log
	mov	x0, x22
	bl	_av_frame_free
	b	LBB0_3
LBB0_7:
	mov	w20, #0
	mov	w21, #0
LBB0_8:
	ldr	w1, [x28]
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, #0
	mov	x3, x20
	bl	_av_log
	ldr	w0, [x19, #4]
Lloh13:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w21, #0
	csel	w1, w21, w8, lt
	bl	_av_thread_message_queue_set_err_send
	mov	x0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"receiver #%d: flushing the queue, discarding %d message(s)\n"

	.comm	_MAGIC,8,3                      ; @MAGIC
l_.str.1:                               ; @.str.1
	.asciz	"sig"

l_.str.2:                               ; @.str.2
	.asciz	"got \"%s\" (%p)\n"

l_.str.3:                               ; @.str.3
	.asciz	"consumed enough (%d), stop\n"

	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_receiver_thread
.subsections_via_symbols
