	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcm_init                       ## -- Begin function pcm_init
	.p2align	4, 0x90
_pcm_init:                              ## @pcm_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_snd@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_vdp_pal@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movl	$262, %ecx                      ## imm = 0x106
	movl	$313, %edx                      ## imm = 0x139
	cmovel	%ecx, %edx
	movq	_SCYCLES_PER_LINE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	imull	%edx, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_SCD_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movq	_blip@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdi, (%rcx)
	movq	(%rax), %rax
	movq	%rbx, 8(%rax)
	movq	_PCM_SCYCLES_RATIO@GOTPCREL(%rip), %r15
	divsd	(%r15), %xmm0
	movl	4(%r14), %esi
	callq	_blip_set_rates
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	divsd	(%r15), %xmm0
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_blip_set_rates                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_snd,8,2                        ## @snd
	.comm	_SCYCLES_PER_LINE,4,2           ## @SCYCLES_PER_LINE
	.comm	_vdp_pal,8,3                    ## @vdp_pal
	.comm	_SCD_CLOCK,4,2                  ## @SCD_CLOCK
	.comm	_blip,8,3                       ## @blip
	.comm	_PCM_SCYCLES_RATIO,8,3          ## @PCM_SCYCLES_RATIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcm_init                       ; -- Begin function pcm_init
	.p2align	2
_pcm_init:                              ; @pcm_init
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	mov	x19, x1
Lloh0:
	adrp	x20, _snd@GOTPAGE
Lloh1:
	ldr	x20, [x20, _snd@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, _SCYCLES_PER_LINE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SCYCLES_PER_LINE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _vdp_pal@GOTPAGE
Lloh6:
	ldr	x10, [x10, _vdp_pal@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x10, #0
	mov	w10, #313
	mov	w11, #262
	csel	w10, w11, w10, eq
	mul	w8, w9, w8
	mul	w8, w8, w10
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _SCD_CLOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCD_CLOCK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
LBB0_3:
	scvtf	d8, w8
Lloh11:
	adrp	x8, _blip@GOTPAGE
Lloh12:
	ldr	x8, [x8, _blip@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x0, [x9]
	ldr	x8, [x8]
	str	x19, [x8, #8]
Lloh13:
	adrp	x21, _PCM_SCYCLES_RATIO@GOTPAGE
Lloh14:
	ldr	x21, [x21, _PCM_SCYCLES_RATIO@GOTPAGEOFF]
	ldr	d0, [x21]
	fdiv	d0, d8, d0
	ldr	w1, [x20, #4]
	bl	_blip_set_rates
	ldr	d0, [x21]
	fdiv	d0, d8, d0
	ldr	w1, [x20, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_blip_set_rates
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_snd,8,2                        ; @snd
	.comm	_SCYCLES_PER_LINE,4,2           ; @SCYCLES_PER_LINE
	.comm	_vdp_pal,8,3                    ; @vdp_pal
	.comm	_SCD_CLOCK,4,2                  ; @SCD_CLOCK
	.comm	_blip,8,3                       ; @blip
	.comm	_PCM_SCYCLES_RATIO,8,3          ; @PCM_SCYCLES_RATIO
.subsections_via_symbols
