	.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	%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	$0, -44(%rbp)
	movq	_RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	callq	_environ_cb
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpl	$0, -44(%rbp)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_update_variables
LBB0_3:
	xorl	%eax, %eax
	callq	_input_poll_cb
	movq	_PicoPad@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	$0, (%rax)
	movq	_RETRO_PICO_MAP_LEN@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_13
## %bb.4:
	xorl	%ebx, %ebx
	movq	_RETRO_DEVICE_JOYPAD@GOTPCREL(%rip), %r12
	movq	_retro_pico_map@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_input_state_cb
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %eax
	movq	(%r14), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_7
LBB0_8:
	testl	%eax, %eax
	jle	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movl	$1, %edi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_input_state_cb
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %eax
	movq	(%r14), %rcx
	orl	%eax, 4(%rcx)
	jmp	LBB0_12
LBB0_13:
	xorl	%eax, %eax
	callq	_PicoFrame
	movq	_vout_buf@GOTPCREL(%rip), %rax
	movq	_vout_offset@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdi
	addq	%rdi, %rdi
	addq	(%rax), %rdi
	movq	_vout_width@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_vout_height@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leal	(%rsi,%rsi), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_video_cb
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE,4,2 ## @RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE
	.comm	_PicoPad,8,3                    ## @PicoPad
	.comm	_RETRO_PICO_MAP_LEN,4,2         ## @RETRO_PICO_MAP_LEN
	.comm	_RETRO_DEVICE_JOYPAD,4,2        ## @RETRO_DEVICE_JOYPAD
	.comm	_retro_pico_map,8,3             ## @retro_pico_map
	.comm	_vout_buf,8,3                   ## @vout_buf
	.comm	_vout_offset,4,2                ## @vout_offset
	.comm	_vout_width,4,2                 ## @vout_width
	.comm	_vout_height,4,2                ## @vout_height
.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:
	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
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_environ_cb
	ldr	w8, [sp, #12]
	cmp	x0, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
	bl	_update_variables
LBB0_2:
	bl	_input_poll_cb
Lloh3:
	adrp	x20, _PicoPad@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PicoPad@GOTPAGEOFF]
	ldr	x8, [x20]
	str	xzr, [x8]
Lloh5:
	adrp	x21, _RETRO_PICO_MAP_LEN@GOTPAGE
Lloh6:
	ldr	x21, [x21, _RETRO_PICO_MAP_LEN@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.3:
	mov	x19, #0
Lloh7:
	adrp	x22, _RETRO_DEVICE_JOYPAD@GOTPAGE
Lloh8:
	ldr	x22, [x22, _RETRO_DEVICE_JOYPAD@GOTPAGEOFF]
Lloh9:
	adrp	x23, _retro_pico_map@GOTPAGE
Lloh10:
	ldr	x23, [x23, _retro_pico_map@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x21]
	cmp	x19, x8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	w0, #0
	mov	w2, #0
	mov	x3, x19
	bl	_input_state_cb
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	ldr	w8, [x8, x19, lsl #2]
	ldr	x9, [x20]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	b	LBB0_4
LBB0_7:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x19, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x21]
	cmp	x19, x8
	b.ge	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	w0, #1
	mov	w2, #0
	mov	x3, x19
	bl	_input_state_cb
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x23]
	ldr	w8, [x8, x19, lsl #2]
	ldr	x9, [x20]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
	b	LBB0_9
LBB0_12:
	bl	_PicoFrame
Lloh11:
	adrp	x8, _vout_buf@GOTPAGE
Lloh12:
	ldr	x8, [x8, _vout_buf@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _vout_offset@GOTPAGE
Lloh15:
	ldr	x9, [x9, _vout_offset@GOTPAGEOFF]
Lloh16:
	ldrsw	x9, [x9]
Lloh17:
	adrp	x10, _vout_width@GOTPAGE
Lloh18:
	ldr	x10, [x10, _vout_width@GOTPAGEOFF]
	add	x0, x8, x9, lsl #1
Lloh19:
	ldr	w1, [x10]
Lloh20:
	adrp	x8, _vout_height@GOTPAGE
Lloh21:
	ldr	x8, [x8, _vout_height@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	lsl	w3, w1, #1
	bl	_video_cb
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE,4,2 ; @RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE
	.comm	_PicoPad,8,3                    ; @PicoPad
	.comm	_RETRO_PICO_MAP_LEN,4,2         ; @RETRO_PICO_MAP_LEN
	.comm	_RETRO_DEVICE_JOYPAD,4,2        ; @RETRO_DEVICE_JOYPAD
	.comm	_retro_pico_map,8,3             ; @retro_pico_map
	.comm	_vout_buf,8,3                   ; @vout_buf
	.comm	_vout_offset,4,2                ; @vout_offset
	.comm	_vout_width,4,2                 ; @vout_width
	.comm	_vout_height,4,2                ; @vout_height
.subsections_via_symbols
