	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sound_Update                   ## -- Begin function Sound_Update
	.p2align	4, 0x90
_Sound_Update:                          ## @Sound_Update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_Atari800_tv_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Atari800_TV_NTSC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$735, %eax                      ## imm = 0x2DF
	movl	$882, %ebx                      ## imm = 0x372
	cmovel	%eax, %ebx
	leaq	_Sound_Update.buffer(%rip), %r14
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_POKEYSND_Process
	movl	%ebx, %edi
	callq	_audsrv_wait_audio
	movq	%r14, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_audsrv_play_audio              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_Sound_Update.buffer,882,4 ## @Sound_Update.buffer
	.comm	_Atari800_tv_mode,8,3           ## @Atari800_tv_mode
	.comm	_Atari800_TV_NTSC,8,3           ## @Atari800_TV_NTSC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sound_Update                   ; -- Begin function Sound_Update
	.p2align	2
_Sound_Update:                          ; @Sound_Update
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _Atari800_tv_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Atari800_tv_mode@GOTPAGEOFF]
Lloh2:
	adrp	x9, _Atari800_TV_NTSC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _Atari800_TV_NTSC@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #882
	mov	w9, #735
	csel	w19, w9, w8, eq
Lloh6:
	adrp	x20, _Sound_Update.buffer@PAGE
Lloh7:
	add	x20, x20, _Sound_Update.buffer@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_POKEYSND_Process
	mov	x0, x19
	bl	_audsrv_wait_audio
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_audsrv_play_audio
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_Sound_Update.buffer,882,0 ; @Sound_Update.buffer
	.comm	_Atari800_tv_mode,8,3           ; @Atari800_tv_mode
	.comm	_Atari800_TV_NTSC,8,3           ; @Atari800_TV_NTSC
.subsections_via_symbols
