	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vid_mmsp2_finish               ## -- Begin function vid_mmsp2_finish
	.p2align	4, 0x90
_vid_mmsp2_finish:                      ## @vid_mmsp2_finish
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%edi, %edi
	movl	$320, %esi                      ## imm = 0x140
	movl	$240, %edx
	callq	_gp2x_video_RGB_setscaling_
	movl	$16, %edi
	xorl	%esi, %esi
	callq	_gp2x_video_changemode_ll_
	movq	_gp2x_screenaddr_old@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	_memregs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, 21020(%rdx)
	movl	4(%rax), %ecx
	movl	%ecx, 21024(%rdx)
	movl	8(%rax), %ecx
	movl	%ecx, 21028(%rdx)
	movl	12(%rax), %eax
	movl	%eax, 21032(%rdx)
	movq	_gp2x_screens@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_FRAMEBUFF_WHOLESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_munmap                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gp2x_screenaddr_old,8,3        ## @gp2x_screenaddr_old
	.comm	_memregs,8,3                    ## @memregs
	.comm	_gp2x_screens,8,3               ## @gp2x_screens
	.comm	_FRAMEBUFF_WHOLESIZE,4,2        ## @FRAMEBUFF_WHOLESIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vid_mmsp2_finish               ; -- Begin function vid_mmsp2_finish
	.p2align	2
_vid_mmsp2_finish:                      ; @vid_mmsp2_finish
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w0, #0
	mov	w1, #320
	mov	w2, #240
	bl	_gp2x_video_RGB_setscaling_
	mov	w0, #16
	mov	w1, #0
	bl	_gp2x_video_changemode_ll_
Lloh0:
	adrp	x8, _gp2x_screenaddr_old@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gp2x_screenaddr_old@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
Lloh3:
	adrp	x10, _memregs@GOTPAGE
Lloh4:
	ldr	x10, [x10, _memregs@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	mov	w11, #21020
	add	x10, x10, x11
	str	w9, [x10]
	ldr	w9, [x8, #4]
	str	w9, [x10, #4]
	ldr	w9, [x8, #8]
	str	w9, [x10, #8]
	ldr	w8, [x8, #12]
	str	w8, [x10, #12]
Lloh6:
	adrp	x8, _gp2x_screens@GOTPAGE
Lloh7:
	ldr	x8, [x8, _gp2x_screens@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _FRAMEBUFF_WHOLESIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FRAMEBUFF_WHOLESIZE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_munmap
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_gp2x_screenaddr_old,8,3        ; @gp2x_screenaddr_old
	.comm	_memregs,8,3                    ; @memregs
	.comm	_gp2x_screens,8,3               ; @gp2x_screens
	.comm	_FRAMEBUFF_WHOLESIZE,4,2        ; @FRAMEBUFF_WHOLESIZE
.subsections_via_symbols
