	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_msg
_recv_msg:                              ## @recv_msg
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	leaq	-36(%rbp), %rdi
	callq	_zmq_msg_init
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %esi
	movq	_ZMQ_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rdi
	callq	_zmq_msg_recv
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.6:
	leaq	-36(%rbp), %rdi
	callq	_zmq_msg_size
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	movl	%edi, (%r15)
	callq	_av_malloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	leaq	-36(%rbp), %rdi
	callq	_zmq_msg_data
	movl	(%r15), %edx
	decl	%edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_memcpy
	movq	(%r14), %rax
	movslq	(%r15), %rcx
	movb	$0, -1(%rcx,%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_zmq_strerror
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_5
## %bb.4:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_zmq_strerror
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	_av_log
LBB0_5:
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_9:
	leaq	-36(%rbp), %rdi
	callq	_zmq_msg_close
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not initialize receive message: %s\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_ZMQ_DONTWAIT,4,2               ## @ZMQ_DONTWAIT
	.comm	_EAGAIN,8,3                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"Could not receive message: %s\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_recv_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_msg
_recv_msg:                              ; @recv_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	add	x0, sp, #12
	bl	_zmq_msg_init
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	ldr	w1, [x22]
Lloh0:
	adrp	x8, _ZMQ_DONTWAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZMQ_DONTWAIT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_zmq_msg_recv
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	add	x0, sp, #12
	bl	_zmq_msg_size
	add	w0, w0, #1
	str	w0, [x19]
	bl	_av_malloc
	str	x0, [x20]
	cbz	x0, LBB0_8
; %bb.3:
	mov	x21, x0
	add	x0, sp, #12
	bl	_zmq_msg_data
	mov	x1, x0
	ldr	w8, [x19]
	sub	w2, w8, #1
	mov	x0, x21
	bl	_memcpy
	mov	w21, #0
	ldr	x8, [x20]
	ldrsw	x9, [x19]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
	b	LBB0_9
LBB0_4:
Lloh3:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	bl	_zmq_strerror
	mov	x3, x0
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	bl	_av_log
Lloh11:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_5:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
Lloh17:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
Lloh20:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh22:
	ldr	w19, [x8]
	bl	_zmq_strerror
	mov	x3, x0
Lloh23:
	adrp	x2, l_.str.1@PAGE
Lloh24:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	bl	_av_log
LBB0_7:
Lloh25:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh27:
	ldr	w21, [x8]
	b	LBB0_9
LBB0_8:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
LBB0_9:
	add	x0, sp, #12
	bl	_zmq_msg_close
LBB0_10:
	mov	x0, 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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not initialize receive message: %s\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_ZMQ_DONTWAIT,4,2               ; @ZMQ_DONTWAIT
	.comm	_EAGAIN,8,3                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"Could not receive message: %s\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_recv_msg
.subsections_via_symbols
