	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zmq_proto_open
_zmq_proto_open:                        ## @zmq_proto_open
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, -32(%rbp)
	movq	24(%rdi), %r15
	movq	$0, 24(%r15)
	movl	$1, (%rdi)
	movq	(%r15), %rax
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	movq	%rax, 8(%r14)
LBB0_2:
	xorl	%eax, %eax
	callq	_zmq_ctx_new
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_av_strstart
	movl	16(%r14), %eax
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.5:
	movl	8(%r15), %edi
	movq	_ZMQ_PUB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_zmq_socket
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_zmq_bind
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.8:
	movl	16(%r14), %eax
LBB0_9:
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.11:
	movl	8(%r15), %edi
	movq	_ZMQ_SUB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_zmq_socket
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.12:
	movq	_ZMQ_SUBSCRIBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_zmq_setsockopt
	movq	16(%r15), %rdi
	movq	-32(%rbp), %rsi
	callq	_zmq_connect
	cmpl	$-1, %eax
	jne	LBB0_17
## %bb.13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ZMQ_STRERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_14
LBB0_3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_16
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ZMQ_STRERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_15
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_18:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ZMQ_STRERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rdx
LBB0_14:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	16(%r15), %rdi
	callq	_zmq_close
LBB0_15:
	movl	8(%r15), %edi
	callq	_zmq_ctx_term
LBB0_16:
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error occured during zmq_ctx_new()\n"

	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
L_.str.1:                               ## @.str.1
	.asciz	"zmq:"

	.comm	_AVIO_FLAG_WRITE,4,2            ## @AVIO_FLAG_WRITE
	.comm	_ZMQ_PUB,4,2                    ## @ZMQ_PUB
L_.str.2:                               ## @.str.2
	.asciz	"Error occured during zmq_socket(): %s\n"

	.comm	_ZMQ_STRERROR,4,2               ## @ZMQ_STRERROR
L_.str.3:                               ## @.str.3
	.asciz	"Error occured during zmq_bind(): %s\n"

	.comm	_AVIO_FLAG_READ,4,2             ## @AVIO_FLAG_READ
	.comm	_ZMQ_SUB,4,2                    ## @ZMQ_SUB
	.comm	_ZMQ_SUBSCRIBE,4,2              ## @ZMQ_SUBSCRIBE
L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"Error occured during zmq_connect(): %s\n"

	.no_dead_strip	_zmq_proto_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zmq_proto_open
_zmq_proto_open:                        ; @zmq_proto_open
	.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	x20, x1
	mov	x19, x0
	str	x1, [sp, #8]
	ldr	x21, [x0, #24]
	str	xzr, [x21, #24]
	mov	w8, #1
	str	w8, [x0]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	str	x8, [x19, #8]
LBB0_2:
	bl	_zmq_ctx_new
	str	w0, [x21, #8]
	cbz	w0, LBB0_11
; %bb.3:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_av_strstart
	ldr	w8, [x19, #16]
Lloh2:
	adrp	x9, _AVIO_FLAG_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AVIO_FLAG_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	ldr	w0, [x21, #8]
Lloh5:
	adrp	x8, _ZMQ_PUB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZMQ_PUB@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_zmq_socket
	str	x0, [x21, #16]
	cbz	x0, LBB0_12
; %bb.5:
	ldr	x1, [sp, #8]
	bl	_zmq_bind
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.6:
	ldr	w8, [x19, #16]
LBB0_7:
Lloh8:
	adrp	x9, _AVIO_FLAG_READ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AVIO_FLAG_READ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.8:
	ldr	w0, [x21, #8]
Lloh11:
	adrp	x8, _ZMQ_SUB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ZMQ_SUB@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_zmq_socket
	str	x0, [x21, #16]
	cbz	x0, LBB0_12
; %bb.9:
Lloh14:
	adrp	x8, _ZMQ_SUBSCRIBE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ZMQ_SUBSCRIBE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w3, #0
	bl	_zmq_setsockopt
	ldr	x0, [x21, #16]
	ldr	x1, [sp, #8]
	bl	_zmq_connect
	mov	x8, x0
	mov	w0, #0
	cmn	w8, #1
	b.ne	LBB0_18
; %bb.10:
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _ZMQ_STRERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ZMQ_STRERROR@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh25:
	adrp	x2, l_.str.5@PAGE
Lloh26:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_11:
Lloh27:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str@PAGE
Lloh31:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_17
LBB0_12:
Lloh32:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _ZMQ_STRERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ZMQ_STRERROR@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh38:
	adrp	x2, l_.str.2@PAGE
Lloh39:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_16
LBB0_13:
	mov	w0, #0
	b	LBB0_18
LBB0_14:
Lloh40:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _ZMQ_STRERROR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ZMQ_STRERROR@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh46:
	adrp	x2, l_.str.3@PAGE
Lloh47:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_av_log
	ldr	x0, [x21, #16]
	bl	_zmq_close
LBB0_16:
	ldr	w0, [x21, #8]
	bl	_zmq_ctx_term
LBB0_17:
Lloh48:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
LBB0_18:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error occured during zmq_ctx_new()\n"

	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
l_.str.1:                               ; @.str.1
	.asciz	"zmq:"

	.comm	_AVIO_FLAG_WRITE,4,2            ; @AVIO_FLAG_WRITE
	.comm	_ZMQ_PUB,4,2                    ; @ZMQ_PUB
l_.str.2:                               ; @.str.2
	.asciz	"Error occured during zmq_socket(): %s\n"

	.comm	_ZMQ_STRERROR,4,2               ; @ZMQ_STRERROR
l_.str.3:                               ; @.str.3
	.asciz	"Error occured during zmq_bind(): %s\n"

	.comm	_AVIO_FLAG_READ,4,2             ; @AVIO_FLAG_READ
	.comm	_ZMQ_SUB,4,2                    ; @ZMQ_SUB
	.comm	_ZMQ_SUBSCRIBE,4,2              ; @ZMQ_SUBSCRIBE
l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"Error occured during zmq_connect(): %s\n"

	.no_dead_strip	_zmq_proto_open
.subsections_via_symbols
