	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gp2x_video_changemode_ll_
_gp2x_video_changemode_ll_:             ## @gp2x_video_changemode_ll_
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	leal	1(%rdi), %eax
	addl	$8, %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$3, %edi
	movl	%edi, %eax
	shll	$9, %eax
	orl	$171, %eax
	movq	_memregs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 20916(%rcx)
	shll	$6, %edi
	leal	(%rdi,%rdi,4), %eax
	movl	%eax, 21016(%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_memregs,8,3                    ## @memregs
	.no_dead_strip	_gp2x_video_changemode_ll_
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gp2x_video_changemode_ll_
_gp2x_video_changemode_ll_:             ; @gp2x_video_changemode_ll_
	.cfi_startproc
; %bb.0:
	add	w8, w0, #1
	add	w9, w0, #8
	cmp	w8, #0
	csinc	w8, w9, w0, lt
	asr	w8, w8, #3
	mov	w9, #171
	bfi	w9, w8, #9, #23
Lloh0:
	adrp	x10, _memregs@GOTPAGE
Lloh1:
	ldr	x10, [x10, _memregs@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	mov	w11, #20916
	add	x10, x10, x11
	str	w9, [x10]
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #6
	str	w8, [x10, #100]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_memregs,8,3                    ; @memregs
	.no_dead_strip	_gp2x_video_changemode_ll_
.subsections_via_symbols
