	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qsynth_reader_read
_qsynth_reader_read:                    ## @qsynth_reader_read
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	(%rax), %edi
	movl	(%r15), %esi
	subl	%esi, %edi
	movl	%edi, (%rbx)
	movq	$0, 4(%rbx)
	movq	$0, 32(%rbx)
	xorl	%ecx, %ecx
	testl	%esi, %esi
	jne	LBB0_5
## %bb.4:
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_5:
	movl	%ecx, 24(%rbx)
	movq	_VC_CONTAINER_READ_FLAG_SKIP@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_12
## %bb.6:
	movq	8(%rax), %rax
	movq	%rax, 16(%r15)
	movl	$0, (%r15)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r12
	jmp	LBB0_18
LBB0_1:
	movl	4(%r15), %eax
	cmpl	(%rdi), %eax
	jle	LBB0_7
## %bb.2:
	movq	_VC_CONTAINER_ERROR_EOS@GOTPCREL(%rip), %r12
	jmp	LBB0_18
LBB0_12:
	movq	_VC_CONTAINER_READ_FLAG_INFO@GOTPCREL(%rip), %rax
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r12
	testl	%edx, (%rax)
	jne	LBB0_18
## %bb.13:
	movl	12(%rbx), %esi
	callq	_MIN
	movl	%eax, %r14d
	movq	16(%rbx), %rdi
	movq	16(%r15), %rax
	movl	(%r15), %esi
	addl	4(%rax), %esi
	movl	%r14d, %edx
	callq	_memcpy
	movl	%r14d, (%rbx)
	addl	(%r15), %r14d
	movl	%r14d, (%r15)
	movq	16(%r15), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_18
## %bb.14:
	movq	8(%rax), %rax
	movq	%rax, 16(%r15)
	movl	$0, (%r15)
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
	jmp	LBB0_18
LBB0_7:
	movl	$5, (%rbx)
	movl	%eax, 8(%rbx)
	movl	%eax, 4(%rbx)
	movq	$0, 32(%rbx)
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	movq	_VC_CONTAINER_READ_FLAG_SKIP@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	$1, 8(%r15)
	addl	$40, %eax
	movl	%eax, 4(%r15)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r12
	jmp	LBB0_18
LBB0_9:
	movq	_VC_CONTAINER_READ_FLAG_INFO@GOTPCREL(%rip), %rcx
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r12
	testl	%edx, (%rcx)
	jne	LBB0_18
## %bb.10:
	cmpl	$5, 12(%rbx)
	jge	LBB0_15
## %bb.11:
	movq	_VC_CONTAINER_ERROR_BUFFER_TOO_SMALL@GOTPCREL(%rip), %r12
	jmp	LBB0_18
LBB0_15:
	cmpl	$0, 8(%r15)
	je	LBB0_17
## %bb.16:
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	16(%rbx), %rcx
	movb	$83, (%rcx)
	movl	%eax, %ecx
	shrl	$24, %ecx
	movq	16(%rbx), %rdx
	movb	%cl, 1(%rdx)
	movl	%eax, %ecx
	shrl	$16, %ecx
	movq	16(%rbx), %rdx
	movb	%cl, 2(%rdx)
	movq	16(%rbx), %rcx
	movb	%ah, 3(%rcx)
	movq	16(%rbx), %rcx
	movb	%al, 4(%rcx)
	movl	$0, 8(%r15)
	jmp	LBB0_18
LBB0_17:
	movq	16(%rbx), %rax
	movb	$80, (%rax)
	movq	16(%rbx), %rax
	movb	$0, 1(%rax)
	movq	16(%rbx), %rax
	movb	$0, 2(%rax)
	movq	16(%rbx), %rax
	movb	$0, 3(%rax)
	movq	16(%rbx), %rax
	movb	$40, 4(%rax)
	addl	$40000, 4(%r15)                 ## imm = 0x9C40
LBB0_18:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_START,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME_START
	.comm	_VC_CONTAINER_ERROR_EOS,4,2     ## @VC_CONTAINER_ERROR_EOS
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME
	.comm	_VC_CONTAINER_READ_FLAG_SKIP,4,2 ## @VC_CONTAINER_READ_FLAG_SKIP
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_READ_FLAG_INFO,4,2 ## @VC_CONTAINER_READ_FLAG_INFO
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_VC_CONTAINER_ERROR_BUFFER_TOO_SMALL,4,2 ## @VC_CONTAINER_ERROR_BUFFER_TOO_SMALL
	.no_dead_strip	_qsynth_reader_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qsynth_reader_read
_qsynth_reader_read:                    ; @qsynth_reader_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w9, [x8]
	ldr	w10, [x21]
	sub	w0, w9, w10
	stp	wzr, wzr, [x19, #4]
	str	w0, [x19]
	str	xzr, [x19, #32]
Lloh0:
	adrp	x9, _VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w10, #0
	csel	w9, w9, wzr, eq
	str	w9, [x19, #24]
Lloh3:
	adrp	x9, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w2
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x8, #8]
	str	x8, [x21, #16]
	str	wzr, [x21]
	b	LBB0_12
LBB0_3:
	ldr	w8, [x21, #4]
	ldr	w9, [x0]
	cmp	w8, w9
	b.le	LBB0_8
; %bb.4:
Lloh6:
	adrp	x8, _VC_CONTAINER_ERROR_EOS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_EOS@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
Lloh8:
	adrp	x8, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w2
	b.ne	LBB0_12
; %bb.6:
	ldr	w1, [x19, #12]
	bl	_MIN
	mov	x20, x0
	ldr	x0, [x19, #16]
	ldr	x8, [x21, #16]
	ldr	w8, [x8, #4]
	ldr	w9, [x21]
	add	w1, w9, w8
	mov	x2, x20
	bl	_memcpy
	str	w20, [x19]
	ldr	w9, [x21]
	ldr	x8, [x21, #16]
	ldr	w10, [x8]
	add	w9, w9, w20
	cmp	w9, w10
	str	w9, [x21]
	b.ne	LBB0_12
; %bb.7:
	ldr	x8, [x8, #8]
	str	x8, [x21, #16]
	str	wzr, [x21]
Lloh11:
	adrp	x8, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	b	LBB0_12
LBB0_8:
	mov	w9, #5
	stp	w8, w8, [x19, #4]
	str	w9, [x19]
	str	xzr, [x19, #32]
Lloh14:
	adrp	x9, _VC_CONTAINER_PACKET_FLAG_FRAME@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VC_CONTAINER_PACKET_FLAG_FRAME@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	str	w9, [x19, #24]
Lloh17:
	adrp	x9, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w2
	b.eq	LBB0_11
; %bb.9:
	mov	w9, #1
	add	w8, w8, #40
	str	w9, [x21, #8]
LBB0_10:
	str	w8, [x21, #4]
	b	LBB0_12
LBB0_11:
Lloh20:
	adrp	x9, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w2
	b.eq	LBB0_14
LBB0_12:
Lloh23:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldr	w9, [x19, #12]
	cmp	w9, #5
	b.ge	LBB0_16
; %bb.15:
Lloh25:
	adrp	x8, _VC_CONTAINER_ERROR_BUFFER_TOO_SMALL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_BUFFER_TOO_SMALL@GOTPAGEOFF]
	b	LBB0_13
LBB0_16:
	ldr	w9, [x21, #8]
	cbz	w9, LBB0_18
; %bb.17:
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	ldr	x9, [x19, #16]
	mov	w10, #83
	strb	w10, [x9]
	lsr	w9, w8, #24
	ldr	x10, [x19, #16]
	strb	w9, [x10, #1]
	lsr	w9, w8, #16
	ldr	x10, [x19, #16]
	strb	w9, [x10, #2]
	lsr	w9, w8, #8
	ldr	x10, [x19, #16]
	strb	w9, [x10, #3]
	ldr	x9, [x19, #16]
	strb	w8, [x9, #4]
	str	wzr, [x21, #8]
	b	LBB0_12
LBB0_18:
	ldr	x8, [x19, #16]
	mov	w9, #80
	strb	w9, [x8]
	ldr	x8, [x19, #16]
	strb	wzr, [x8, #1]
	ldr	x8, [x19, #16]
	strb	wzr, [x8, #2]
	ldr	x8, [x19, #16]
	strb	wzr, [x8, #3]
	ldr	x8, [x19, #16]
	mov	w9, #40
	strb	w9, [x8, #4]
	ldr	w8, [x21, #4]
	mov	w9, #40000
	add	w8, w8, w9
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_START,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME_START
	.comm	_VC_CONTAINER_ERROR_EOS,4,2     ; @VC_CONTAINER_ERROR_EOS
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME
	.comm	_VC_CONTAINER_READ_FLAG_SKIP,4,2 ; @VC_CONTAINER_READ_FLAG_SKIP
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_READ_FLAG_INFO,4,2 ; @VC_CONTAINER_READ_FLAG_INFO
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_VC_CONTAINER_ERROR_BUFFER_TOO_SMALL,4,2 ; @VC_CONTAINER_ERROR_BUFFER_TOO_SMALL
	.no_dead_strip	_qsynth_reader_read
.subsections_via_symbols
