	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sender_thread
_sender_thread:                         ## @sender_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%rdi), %r8d
	movl	8(%rdi), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_av_log
	cmpl	$0, (%rbx)
	jle	LBB0_14
## %bb.1:
	leaq	L_.str.1(%rip), %r14
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	movl	8(%rbx), %ecx
	xorl	%edi, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	4(%rbx), %edi
	callq	_av_thread_message_flush
	incl	%r13d
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%rbx), %r13d
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_rand
	movslq	(%rbx), %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_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, -64(%rbp)
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, -56(%rbp)
	movq	_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	movl	(%rbx), %edx
	movl	8(%rbx), %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	callq	_av_asprintf
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AV_DICT_DONT_STRDUP_VAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-64(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdx
	callq	_av_dict_set
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax
	movq	-56(%rbp), %rdi
	movq	%rax, 16(%rdi)
	movq	_AV_PIX_FMT_RGBA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movabsq	$1030792151360, %rax            ## imm = 0xF000000140
	movq	%rax, (%rdi)
	movl	$32, %esi
	callq	_av_frame_get_buffer
	testl	%eax, %eax
	js	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	movl	(%rbx), %r9d
	movl	8(%rbx), %ecx
	movq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	xorl	%edi, %edi
	leaq	L_.str.4(%rip), %rdx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movl	4(%rbx), %edi
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_av_thread_message_queue_send
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_4
	jmp	LBB0_13
LBB0_10:
	movl	%eax, %r12d
LBB0_13:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	jmp	LBB0_14
LBB0_8:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
LBB0_14:
	movl	(%r15), %r14d
	movl	8(%rbx), %r15d
	movl	%r12d, %edi
	callq	_av_err2str
	leaq	L_.str.5(%rip), %rdx
	xorl	%edi, %edi
	movl	%r14d, %esi
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movl	4(%rbx), %edi
	testl	%r12d, %r12d
	js	LBB0_16
## %bb.15:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_16:
	movl	%r12d, %esi
	callq	_av_thread_message_queue_set_err_recv
	xorl	%eax, %eax
	addq	$40, %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	"sender #%d: workload=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"sender #%d: flushing the queue\n"

	.comm	_MAGIC,4,2                      ## @MAGIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"frame %d/%d from sender %d"

L_.str.3:                               ## @.str.3
	.asciz	"sig"

	.comm	_AV_DICT_DONT_STRDUP_VAL,4,2    ## @AV_DICT_DONT_STRDUP_VAL
	.comm	_AV_PIX_FMT_RGBA,4,2            ## @AV_PIX_FMT_RGBA
L_.str.4:                               ## @.str.4
	.asciz	"sender #%d: sending my work (%d/%d frame:%p)\n"

L_.str.5:                               ## @.str.5
	.asciz	"sender #%d: my work is done here (%s)\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sender_thread
lCPI0_0:
	.long	320                             ; 0x140
	.long	240                             ; 0xf0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sender_thread:                         ; @sender_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x0
Lloh0:
	adrp	x26, _AV_LOG_INFO@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AV_LOG_INFO@GOTPAGEOFF]
	ldr	w1, [x26]
	ldr	w3, [x0, #8]
	ldr	w8, [x0]
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w20, #0
	mov	w24, #0
	mov	w27, #26215
	movk	w27, #26214, lsl #16
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh6:
	adrp	x28, _MAGIC@GOTPAGE
Lloh7:
	ldr	x28, [x28, _MAGIC@GOTPAGEOFF]
Lloh8:
	adrp	x22, l_.str.2@PAGE
Lloh9:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh10:
	adrp	x23, l_.str.3@PAGE
Lloh11:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh14:
	adrp	x25, l_.str.4@PAGE
Lloh15:
	add	x25, x25, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
	ldr	w3, [x19, #8]
	mov	x0, #0
	mov	x2, x21
	bl	_av_log
	ldr	w0, [x19, #4]
	bl	_av_thread_message_flush
	add	w20, w20, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	cmp	w20, w8
	b.ge	LBB0_15
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, x27
	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
	str	xzr, [sp, #40]
	bl	_av_frame_alloc
	str	x0, [sp, #24]
	ldr	w8, [x28]
	str	w8, [sp, #32]
	cbz	x0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	ldr	w2, [x19]
	ldr	w3, [x19, #8]
	mov	x0, x22
	mov	x1, x20
	bl	_av_asprintf
	cbz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x0
Lloh16:
	adrp	x8, _AV_DICT_DONT_STRDUP_VAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_DICT_DONT_STRDUP_VAL@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	add	x0, sp, #40
	mov	x1, x23
	bl	_av_dict_set
	tbnz	w0, #31, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #40]
	ldr	x0, [sp, #24]
	str	x8, [x0, #16]
Lloh19:
	adrp	x8, _AV_PIX_FMT_RGBA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_PIX_FMT_RGBA@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	d8, [x0]
	mov	w1, #32
	bl	_av_frame_get_buffer
	tbnz	w0, #31, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
	ldr	w3, [x19, #8]
	ldr	x8, [sp, #24]
	ldr	w9, [x19]
	stp	x9, x8, [sp, #8]
	str	x20, [sp]
	mov	x0, #0
	mov	x2, x25
	bl	_av_log
	ldr	w0, [x19, #4]
	add	x1, sp, #24
	mov	w2, #0
	bl	_av_thread_message_queue_send
	mov	x24, x0
	tbz	w0, #31, LBB0_3
	b	LBB0_12
LBB0_10:
	mov	w24, #0
	b	LBB0_15
LBB0_11:
	mov	x24, x0
LBB0_12:
	add	x0, sp, #24
	bl	_av_frame_free
	b	LBB0_15
LBB0_13:
	add	x0, sp, #24
	bl	_av_frame_free
LBB0_14:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x24, x0
LBB0_15:
	ldr	w20, [x26]
	ldr	w21, [x19, #8]
	mov	x0, x24
	bl	_av_err2str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh25:
	adrp	x2, l_.str.5@PAGE
Lloh26:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, #0
	mov	x1, x20
	mov	x3, x21
	bl	_av_log
	ldr	w0, [x19, #4]
Lloh27:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w24, #0
	csel	w1, w24, w8, lt
	bl	_av_thread_message_queue_set_err_recv
	mov	x0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sender #%d: workload=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"sender #%d: flushing the queue\n"

	.comm	_MAGIC,4,2                      ; @MAGIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"frame %d/%d from sender %d"

l_.str.3:                               ; @.str.3
	.asciz	"sig"

	.comm	_AV_DICT_DONT_STRDUP_VAL,4,2    ; @AV_DICT_DONT_STRDUP_VAL
	.comm	_AV_PIX_FMT_RGBA,4,2            ; @AV_PIX_FMT_RGBA
l_.str.4:                               ; @.str.4
	.asciz	"sender #%d: sending my work (%d/%d frame:%p)\n"

l_.str.5:                               ; @.str.5
	.asciz	"sender #%d: my work is done here (%s)\n"

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