	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zmq_proto_wait
_zmq_proto_wait:                        ## @zmq_proto_wait
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movq	_ZMQ_POLLIN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ZMQ_POLLOUT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movq	%rsi, -40(%rbp)
	movl	%ebx, -32(%rbp)
	movq	$0, -28(%rbp)
	movq	_POLLING_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rdi
	movl	$1, %esi
	callq	_zmq_poll
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	testl	%ebx, -28(%rbp)
	jne	LBB0_7
## %bb.6:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_7
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ZMQ_STRERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZMQ_POLLOUT,4,2                ## @ZMQ_POLLOUT
	.comm	_ZMQ_POLLIN,4,2                 ## @ZMQ_POLLIN
	.comm	_POLLING_TIME,4,2               ## @POLLING_TIME
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error occured during zmq_poll(): %s\n"

	.comm	_ZMQ_STRERROR,4,2               ## @ZMQ_STRERROR
	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_zmq_proto_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zmq_proto_wait
_zmq_proto_wait:                        ; @zmq_proto_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _ZMQ_POLLOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZMQ_POLLOUT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ZMQ_POLLIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ZMQ_POLLIN@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
	str	x1, [sp, #8]
	stp	wzr, wzr, [sp, #20]
	str	w20, [sp, #16]
Lloh4:
	adrp	x8, _POLLING_TIME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _POLLING_TIME@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w1, #1
	bl	_zmq_poll
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [sp, #20]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _ZMQ_STRERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ZMQ_STRERROR@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh15:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ZMQ_POLLOUT,4,2                ; @ZMQ_POLLOUT
	.comm	_ZMQ_POLLIN,4,2                 ; @ZMQ_POLLIN
	.comm	_POLLING_TIME,4,2               ; @POLLING_TIME
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error occured during zmq_poll(): %s\n"

	.comm	_ZMQ_STRERROR,4,2               ; @ZMQ_STRERROR
	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_zmq_proto_wait
.subsections_via_symbols
