	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audio_read_packet
_audio_read_packet:                     ## @audio_read_packet
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rbx
	movq	$0, -172(%rbp)
	cmpl	$0, (%rbx)
	je	LBB0_1
LBB0_3:
	xorl	%eax, %eax
	callq	_av_gettime
	cltq
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	sarq	$50, %rcx
	shrq	$63, %rax
	addl	%ecx, %eax
	addl	$2, %eax
	movl	%eax, -176(%rbp)
	leaq	28(%rbx), %rdi
	leaq	-176(%rbp), %rsi
	callq	_sem_timedwait
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_8
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	cmpl	$0, 24(%rbx)
	jne	LBB0_11
	jmp	LBB0_10
LBB0_1:
	movl	24(%rbx), %edi
	callq	_jack_activate
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_EIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_19
## %bb.7:
	addq	$152, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_12:
	cmpq	$0, 16(%rbx)
	je	LBB0_14
## %bb.13:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	$0, 16(%rbx)
LBB0_14:
	cmpq	$0, 8(%rbx)
	je	LBB0_16
## %bb.15:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	$0, 8(%rbx)
LBB0_16:
	movl	4(%rbx), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_read
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_supply_new_packets
	jmp	LBB0_17
LBB0_8:
	callq	_AVERROR
	leaq	-160(%rbp), %r15
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	$128, %edx
	callq	_av_strerror
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_av_log
	cmpl	$0, 24(%rbx)
	jne	LBB0_11
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_11:
	movq	_EIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_AVERROR
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	addq	$152, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$1, (%rbx)
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%rbx), %r8d
	movl	36(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_3
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"JACK client registered and activated (rate=%dHz, buffer_size=%d frames)\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Unable to activate JACK client\n"

	.comm	_EIO,8,3                        ## @EIO
	.comm	_errno,8,3                      ## @errno
	.comm	_ETIMEDOUT,8,3                  ## @ETIMEDOUT
L_.str.2:                               ## @.str.2
	.asciz	"Input error: timed out when waiting for JACK process callback output\n"

L_.str.3:                               ## @.str.3
	.asciz	"Error while waiting for audio packet: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"Input error: JACK server is gone\n"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.5:                               ## @.str.5
	.asciz	"Audio packet xrun\n"

L_.str.6:                               ## @.str.6
	.asciz	"JACK xrun\n"

	.no_dead_strip	_audio_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audio_read_packet
_audio_read_packet:                     ; @audio_read_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x20, [x0]
	stur	xzr, [sp, #28]
	ldr	w8, [x20]
	cbz	w8, LBB0_4
LBB0_1:
	bl	_av_gettime
	mov	w8, #56963
	movk	w8, #17179, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w9
	add	w8, w8, #2
	str	w8, [sp, #24]
	add	x0, x20, #28
	add	x1, sp, #24
	bl	_sem_timedwait
	cbz	x0, LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
Lloh6:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.3:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_4:
	ldr	w0, [x20, #24]
	bl	_jack_activate
	cbz	w0, LBB0_18
; %bb.5:
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.6:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #224
	b	_AVERROR
LBB0_7:
	ldr	x8, [x20, #16]
Lloh25:
	adrp	x22, _AV_LOG_WARNING@GOTPAGE
Lloh26:
	ldr	x22, [x22, _AV_LOG_WARNING@GOTPAGEOFF]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w1, [x22]
Lloh27:
	adrp	x2, l_.str.5@PAGE
Lloh28:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_av_log
	str	xzr, [x20, #16]
LBB0_9:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w1, [x22]
Lloh29:
	adrp	x2, l_.str.6@PAGE
Lloh30:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_av_log
	str	xzr, [x20, #8]
LBB0_11:
	ldr	w0, [x20, #4]
	mov	x1, x21
	mov	w2, #4
	mov	x3, #0
	bl	_av_fifo_generic_read
	mov	x0, x20
	mov	x1, x19
	bl	_supply_new_packets
	b	LBB0_16
LBB0_12:
	bl	_AVERROR
	add	x21, sp, #40
	add	x1, sp, #40
	mov	w2, #128
	bl	_av_strerror
Lloh31:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	str	x21, [sp]
Lloh34:
	adrp	x2, l_.str.3@PAGE
Lloh35:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_av_log
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_15
; %bb.14:
Lloh36:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x2, l_.str.4@PAGE
Lloh40:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_15:
Lloh41:
	adrp	x8, _EIO@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh43:
	ldr	x0, [x8]
	bl	_AVERROR
LBB0_16:
	ldur	x8, [x29, #-40]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.17:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_18:
	mov	w8, #1
	str	w8, [x20]
Lloh47:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	ldp	w9, w8, [x20, #32]
	stp	x8, x9, [sp]
Lloh50:
	adrp	x2, l_.str@PAGE
Lloh51:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_1
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"JACK client registered and activated (rate=%dHz, buffer_size=%d frames)\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Unable to activate JACK client\n"

	.comm	_EIO,8,3                        ; @EIO
	.comm	_errno,8,3                      ; @errno
	.comm	_ETIMEDOUT,8,3                  ; @ETIMEDOUT
l_.str.2:                               ; @.str.2
	.asciz	"Input error: timed out when waiting for JACK process callback output\n"

l_.str.3:                               ; @.str.3
	.asciz	"Error while waiting for audio packet: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"Input error: JACK server is gone\n"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.5:                               ; @.str.5
	.asciz	"Audio packet xrun\n"

l_.str.6:                               ; @.str.6
	.asciz	"JACK xrun\n"

	.no_dead_strip	_audio_read_packet
.subsections_via_symbols
