	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_retro_run                      ## -- Begin function retro_run
	.p2align	4, 0x90
_retro_run:                             ## @retro_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_system_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SYSTEM_MCD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_system_frame_scd
	jmp	LBB0_5
LBB0_2:
	movq	_SYSTEM_PBC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_SYSTEM_MD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	callq	_system_frame_gen
	jmp	LBB0_5
LBB0_4:
	xorl	%edi, %edi
	callq	_system_frame_sms
LBB0_5:
	movq	_bitmap@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	32(%rax), %edi
	movslq	8(%rax), %rsi
	addq	%rsi, %rsi
	addq	24(%rax), %rsi
	movslq	12(%rax), %rdx
	addq	%rdx, %rdx
	addq	16(%rax), %rdx
	callq	_video_cb
	movq	_soundbuffer@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_audio_update
                                        ## kill: def $eax killed $eax def $rax
	movl	(%rbx), %edi
	leal	(%rax,%rax), %esi
	sarl	%esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_audio_batch_cb                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_system_hw,4,2                  ## @system_hw
	.comm	_SYSTEM_MCD,4,2                 ## @SYSTEM_MCD
	.comm	_SYSTEM_PBC,4,2                 ## @SYSTEM_PBC
	.comm	_SYSTEM_MD,4,2                  ## @SYSTEM_MD
	.comm	_bitmap,40,3                    ## @bitmap
	.comm	_soundbuffer,4,2                ## @soundbuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_retro_run                      ; -- Begin function retro_run
	.p2align	2
_retro_run:                             ; @retro_run
	.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, _system_hw@GOTPAGE
Lloh1:
	ldr	x8, [x8, _system_hw@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SYSTEM_MCD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SYSTEM_MCD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_system_frame_scd
	b	LBB0_5
LBB0_2:
Lloh6:
	adrp	x9, _SYSTEM_PBC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SYSTEM_PBC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh9:
	adrp	x9, _SYSTEM_MD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SYSTEM_MD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	bl	_system_frame_gen
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	bl	_system_frame_sms
LBB0_5:
Lloh12:
	adrp	x8, _bitmap@GOTPAGE
Lloh13:
	ldr	x8, [x8, _bitmap@GOTPAGEOFF]
	ldr	w0, [x8, #32]
	ldp	x10, x9, [x8, #16]
	ldpsw	x11, x12, [x8, #8]
	add	x1, x9, x11, lsl #1
	add	x2, x10, x12, lsl #1
	ldr	w3, [x8]
	bl	_video_cb
Lloh14:
	adrp	x19, _soundbuffer@GOTPAGE
Lloh15:
	ldr	x19, [x19, _soundbuffer@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_audio_update
	ldr	w8, [x19]
	sbfx	w1, w0, #0, #31
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_audio_batch_cb
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_system_hw,4,2                  ; @system_hw
	.comm	_SYSTEM_MCD,4,2                 ; @SYSTEM_MCD
	.comm	_SYSTEM_PBC,4,2                 ; @SYSTEM_PBC
	.comm	_SYSTEM_MD,4,2                  ; @SYSTEM_MD
	.comm	_bitmap,40,3                    ; @bitmap
	.comm	_soundbuffer,4,2                ; @soundbuffer
.subsections_via_symbols
