	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qsynth_read_event
_qsynth_read_event:                     ## @qsynth_read_event
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, %r15
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%rcx, %rsi
	callq	_qsynth_read_variable
	movl	%eax, %r12d
	movslq	%eax, %rcx
	movl	(%rbx,%rcx,4), %eax
	cmpl	$240, %eax
	je	LBB0_18
## %bb.1:
	cmpl	$247, %eax
	je	LBB0_18
## %bb.2:
	cmpl	$255, %eax
	jne	LBB0_10
## %bb.3:
	movl	4(%rbx,%rcx,4), %r14d
	leaq	(%rbx,%rcx,4), %rdi
	addq	$8, %rdi
	leaq	-44(%rbp), %rsi
	callq	_qsynth_read_variable
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %r12d
	addl	$2, %r12d
	cmpl	$47, %r14d
	je	LBB0_6
## %bb.4:
	cmpl	$81, %r14d
	jne	LBB0_5
## %bb.8:
	cmpl	$3, -44(%rbp)
	jne	LBB0_17
## %bb.9:
	movslq	%r12d, %r12
	movl	(%rbx,%r12,4), %eax
	movl	4(%rbx,%r12,4), %ecx
	shll	$16, %eax
	shll	$8, %ecx
	orl	%eax, %ecx
	orl	8(%rbx,%r12,4), %ecx
	movl	%ecx, (%r15)
	movl	$3, %eax
	addl	%eax, %r12d
	jmp	LBB0_19
LBB0_18:
	leaq	(%rbx,%rcx,4), %rdi
	addq	$4, %rdi
	leaq	-48(%rbp), %rsi
	callq	_qsynth_read_variable
	addl	%eax, %r12d
	movl	-48(%rbp), %eax
	addl	%eax, %r12d
	incl	%r12d
	jmp	LBB0_19
LBB0_10:
	cmpl	$127, %eax
	jg	LBB0_12
## %bb.11:
	movl	(%r14), %eax
	jmp	LBB0_13
LBB0_12:
	shrl	$4, %eax
	movl	%eax, (%r14)
	incl	%r12d
LBB0_13:
	cmpl	$14, %eax
	ja	LBB0_17
## %bb.14:
	movl	$20224, %ecx                    ## imm = 0x4F00
	btl	%eax, %ecx
	jae	LBB0_15
## %bb.21:
	addl	$2, %r12d
	jmp	LBB0_19
LBB0_6:
	cmpl	$0, -44(%rbp)
	jne	LBB0_17
## %bb.7:
	movl	$1, (%r13)
	xorl	%eax, %eax
	addl	%eax, %r12d
	jmp	LBB0_19
LBB0_5:
	addl	-44(%rbp), %r12d
	jmp	LBB0_19
LBB0_15:
	movl	$12288, %ecx                    ## imm = 0x3000
	btl	%eax, %ecx
	jae	LBB0_17
## %bb.16:
	incl	%r12d
LBB0_19:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,4,2 ## @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.no_dead_strip	_qsynth_read_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qsynth_read_event
_qsynth_read_event:                     ; @qsynth_read_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x5
	mov	x20, x4
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	mov	x1, x3
	bl	_qsynth_read_variable
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	w9, [x21, w0, sxtw #2]
	cmp	w9, #240
	b.eq	LBB0_7
; %bb.1:
	cmp	w9, #247
	b.eq	LBB0_7
; %bb.2:
	cmp	w9, #255
	b.ne	LBB0_11
; %bb.3:
	add	x9, x21, x8, lsl #2
	ldr	w23, [x9, #4]
	add	x24, x8, #2
	add	x0, x21, x24, lsl #2
	add	x1, sp, #12
	bl	_qsynth_read_variable
	add	w8, w0, w24
	cmp	w23, #47
	b.eq	LBB0_17
; %bb.4:
	cmp	w23, #81
	b.ne	LBB0_19
; %bb.5:
	ldr	w9, [sp, #12]
	cmp	w9, #3
	b.ne	LBB0_22
; %bb.6:
	add	x9, x21, w8, sxtw #2
	ldp	w10, w11, [x9]
	lsl	w11, w11, #8
	orr	w10, w11, w10, lsl #16
	ldr	w9, [x9, #8]
	orr	w9, w10, w9
	str	w9, [x20]
	mov	w9, #3
	b	LBB0_8
LBB0_7:
	add	x20, x8, #1
	add	x0, x21, x20, lsl #2
	add	x1, sp, #8
	bl	_qsynth_read_variable
	ldr	w8, [sp, #8]
	add	w9, w0, w20
LBB0_8:
	add	w8, w9, w8
LBB0_9:
	str	w8, [x19]
Lloh0:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	cmp	w9, #127
	b.gt	LBB0_13
; %bb.12:
	ldr	w8, [x23]
	b	LBB0_14
LBB0_13:
	lsr	w8, w9, #4
	str	w8, [x23]
	add	w0, w0, #1
LBB0_14:
	cmp	w8, #14
	b.hi	LBB0_22
; %bb.15:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #20224
	tst	w8, w9
	b.eq	LBB0_20
; %bb.16:
	add	w8, w0, #2
	b	LBB0_9
LBB0_17:
	ldr	w9, [sp, #12]
	cbnz	w9, LBB0_22
; %bb.18:
	mov	w10, #1
	str	w10, [x22]
	b	LBB0_8
LBB0_19:
	ldr	w9, [sp, #12]
	b	LBB0_8
LBB0_20:
	tst	w8, #0x3000
	b.eq	LBB0_22
; %bb.21:
	add	w8, w0, #1
	b	LBB0_9
LBB0_22:
Lloh2:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,4,2 ; @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_qsynth_read_event
.subsections_via_symbols
