	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcm_run                        ## -- Begin function pcm_run
	.p2align	4, 0x90
_pcm_run:                               ## @pcm_run
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_pcm@GOTPCREL(%rip), %r10
	cmpq	$0, 32(%r10)
	je	LBB0_15
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.2:
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	movl	%r15d, %ebx
	cmpl	%r15d, %r14d
	je	LBB0_19
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%ebx, %r15d
	movl	4(%r10), %r9d
	movq	8(%r10), %r8
	movq	24(%r10), %rdx
	xorl	%esi, %esi
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	addl	16(%rdx), %ebx
	movl	%ebx, (%rdx)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, %ecx
	andl	$127, %ecx
	movl	%ecx, %edi
	negl	%edi
	testb	$-128, %al
	cmovnel	%ecx, %edi
	movswl	%di, %eax
	movswl	4(%rdx), %ecx
	imull	%eax, %ecx
	movl	8(%rdx), %eax
	movl	%eax, %edi
	andl	$15, %edi
	imull	%ecx, %edi
	sarl	$5, %edi
	addl	%edi, %r13d
	sarl	$4, %eax
	imull	%ecx, %eax
	sarl	$5, %eax
	addl	%eax, %r12d
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rsi
	addq	$32, %rdx
	cmpq	$8, %rsi
	je	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	btl	%esi, %r9d
	jae	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rdx), %ebx
	movq	%rbx, %rdi
	shrq	$10, %rdi
	andl	$131070, %edi                   ## imm = 0x1FFFE
	movzwl	(%r8,%rdi), %eax
	cmpl	$255, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movslq	24(%rdx), %rdi
	movl	%edi, %ebx
	shll	$11, %ebx
	movl	%ebx, (%rdx)
	movzwl	(%r8,%rdi,2), %eax
	cmpl	$255, %eax
	jne	LBB0_8
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$32767, %r13d                   ## imm = 0x7FFF
	movl	$32767, %eax                    ## imm = 0x7FFF
	cmovgel	%eax, %r13d
	cmpl	$-32767, %r13d                  ## imm = 0x8001
	movl	$-32768, %ecx                   ## imm = 0x8000
	cmovll	%ecx, %r13d
	cmpl	$32767, %r12d                   ## imm = 0x7FFF
	cmovgel	%eax, %r12d
	cmpl	$-32767, %r12d                  ## imm = 0x8001
	cmovll	%ecx, %r12d
	movq	16(%r10), %rax
	movl	%r13d, %edx
	subl	(%rax), %edx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_blip@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_blip_add_delta_fast
	movq	_pcm@GOTPCREL(%rip), %r10
	movq	16(%r10), %rax
	movl	%r13d, (%rax)
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %edx
	subl	4(%rax), %edx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_blip@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	movl	%r14d, %esi
	callq	_blip_add_delta_fast
	movq	_pcm@GOTPCREL(%rip), %r10
	movq	16(%r10), %rax
	movl	%r12d, 4(%rax)
	jmp	LBB0_14
LBB0_15:
	movq	16(%r10), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	je	LBB0_17
## %bb.16:
	movq	_blip@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	negl	%edx
	xorl	%esi, %esi
	callq	_blip_add_delta_fast
	movq	_pcm@GOTPCREL(%rip), %r10
	movq	16(%r10), %rax
	movl	$0, (%rax)
LBB0_17:
	movl	4(%rax), %edx
	testl	%edx, %edx
	je	LBB0_19
## %bb.18:
	movq	_blip@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	negl	%edx
	xorl	%esi, %esi
	callq	_blip_add_delta_fast
	movq	_pcm@GOTPCREL(%rip), %r10
	movq	16(%r10), %rax
	movl	$0, 4(%rax)
LBB0_19:
	movq	_blip@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movq	%r10, %r15
	callq	_blip_end_frame
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movl	%ebx, %esi
	callq	_blip_end_frame
	movq	_PCM_SCYCLES_RATIO@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	addl	%ebx, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pcm,40,3                       ## @pcm
	.comm	_blip,8,3                       ## @blip
	.comm	_PCM_SCYCLES_RATIO,4,2          ## @PCM_SCYCLES_RATIO
	.comm	_s68k,8,3                       ## @s68k
	.comm	_v_counter,4,2                  ## @v_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcm_run                        ; -- Begin function pcm_run
	.p2align	2
_pcm_run:                               ; @pcm_run
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x21, _pcm@GOTPAGE
Lloh1:
	ldr	x21, [x21, _pcm@GOTPAGEOFF]
	ldr	x8, [x21, #32]
Lloh2:
	adrp	x22, _blip@GOTPAGE
Lloh3:
	ldr	x22, [x22, _blip@GOTPAGEOFF]
	cbz	x8, LBB0_15
; %bb.1:
	cbz	w19, LBB0_19
; %bb.2:
	mov	w20, #0
	mov	w23, #32767
	mov	w24, #-32768
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	cmp	w20, w19
	b.eq	LBB0_19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x10, #0
	mov	w8, #0
	mov	w9, #0
	ldr	w11, [x21, #4]
	ldr	x12, [x21, #8]
	ldr	x13, [x21, #24]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w16, [x13, #16]
	add	w15, w15, w16
	str	w15, [x13]
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	and	w15, w14, #0x7f
	tst	w14, #0x80
	cneg	w14, w15, eq
	ldrsh	w15, [x13, #4]
	mul	w14, w14, w15
	ldr	w15, [x13, #8]
	and	w16, w15, #0xf
	mul	w16, w14, w16
	add	w9, w9, w16, asr #5
	asr	w15, w15, #4
	mul	w14, w14, w15
	add	w8, w8, w14, asr #5
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x10, x10, #1
	add	x13, x13, #32
	cmp	x10, #8
	b.eq	LBB0_11
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	w14, w11, w10
	tbz	w14, #0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w15, [x13]
	ubfx	x14, x15, #11, #16
	ldrh	w14, [x12, x14, lsl #1]
	cmp	w14, #255
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldrsw	x14, [x13, #24]
	lsl	w15, w14, #11
	str	w15, [x13]
	ldrh	w14, [x12, x14, lsl #1]
	cmp	w14, #255
	b.ne	LBB0_6
	b	LBB0_7
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, w23
	csel	w9, w9, w23, lt
	cmn	w9, #8, lsl #12                 ; =32768
	csel	w26, w9, w24, gt
	cmp	w8, w23
	csel	w8, w8, w23, lt
	cmn	w8, #8, lsl #12                 ; =32768
	csel	w25, w8, w24, gt
	ldr	x8, [x21, #16]
	ldr	w9, [x8]
	subs	w2, w26, w9
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_blip_add_delta_fast
	ldr	x8, [x21, #16]
	str	w26, [x8]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x8, #4]
	subs	w2, w25, w8
	b.eq	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8, #4]
	mov	x1, x20
	bl	_blip_add_delta_fast
	ldr	x8, [x21, #16]
	str	w25, [x8, #4]
	b	LBB0_3
LBB0_15:
	ldr	x8, [x21, #16]
	ldr	w9, [x8]
	cbz	w9, LBB0_17
; %bb.16:
	ldr	x8, [x22]
	ldr	w0, [x8]
	neg	w2, w9
	mov	w1, #0
	bl	_blip_add_delta_fast
	ldr	x8, [x21, #16]
	str	wzr, [x8]
LBB0_17:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_19
; %bb.18:
	ldr	x9, [x22]
	ldr	w0, [x9, #4]
	neg	w2, w8
	mov	w1, #0
	bl	_blip_add_delta_fast
	ldr	x8, [x21, #16]
	str	wzr, [x8, #4]
LBB0_19:
	ldr	x8, [x22]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_blip_end_frame
	ldr	x8, [x22]
	ldr	w0, [x8, #4]
	mov	x1, x19
	bl	_blip_end_frame
Lloh4:
	adrp	x8, _PCM_SCYCLES_RATIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PCM_SCYCLES_RATIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x21]
	madd	w8, w8, w19, w9
	str	w8, [x21]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_pcm,40,3                       ; @pcm
	.comm	_blip,8,3                       ; @blip
	.comm	_PCM_SCYCLES_RATIO,4,2          ; @PCM_SCYCLES_RATIO
	.comm	_s68k,8,3                       ; @s68k
	.comm	_v_counter,4,2                  ; @v_counter
.subsections_via_symbols
