	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emu_video_mode_change          ## -- Begin function emu_video_mode_change
	.p2align	4, 0x90
_emu_video_mode_change:                 ## @emu_video_mode_change
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_vout_buf@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	xorl	%esi, %esi
	movl	$153600, %edx                   ## imm = 0x25800
	callq	_memset
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	shll	$6, %eax
	leal	256(%rax), %ecx
	movq	_vout_width@GOTPCREL(%rip), %r15
	movl	%ecx, (%r15)
	movl	(%r12), %edi
	leal	(%rax,%rax), %esi
	addl	$512, %esi                      ## imm = 0x200
	callq	_PicoDrawSetOutBuf
	movq	_vout_height@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	imull	(%r15), %ebx
	movq	_vout_offset@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vout_buf,4,2                   ## @vout_buf
	.comm	_vout_width,4,2                 ## @vout_width
	.comm	_vout_height,4,2                ## @vout_height
	.comm	_vout_offset,4,2                ## @vout_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emu_video_mode_change          ; -- Begin function emu_video_mode_change
	.p2align	2
_emu_video_mode_change:                 ; @emu_video_mode_change
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _vout_buf@GOTPAGE
Lloh1:
	ldr	x22, [x22, _vout_buf@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #0
	mov	w2, #22528
	movk	w2, #2, lsl #16
	bl	_memset
	mov	w8, #256
	mov	w9, #320
	cmp	w19, #0
	csel	w8, w9, w8, eq
Lloh2:
	adrp	x19, _vout_width@GOTPAGE
Lloh3:
	ldr	x19, [x19, _vout_width@GOTPAGEOFF]
	str	w8, [x19]
	ldr	w0, [x22]
	lsl	w1, w8, #1
	bl	_PicoDrawSetOutBuf
Lloh4:
	adrp	x8, _vout_height@GOTPAGE
Lloh5:
	ldr	x8, [x8, _vout_height@GOTPAGEOFF]
Lloh6:
	str	w20, [x8]
	ldr	w8, [x19]
	mul	w8, w8, w21
Lloh7:
	adrp	x9, _vout_offset@GOTPAGE
Lloh8:
	ldr	x9, [x9, _vout_offset@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_vout_buf,4,2                   ; @vout_buf
	.comm	_vout_width,4,2                 ; @vout_width
	.comm	_vout_height,4,2                ; @vout_height
	.comm	_vout_offset,4,2                ; @vout_offset
.subsections_via_symbols
