	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pollux_video_flip
_pollux_video_flip:                     ## @pollux_video_flip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_fb_paddr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_fb_work_buf@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	(%rax,%rdx,4), %eax
	movq	_memregl@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%eax, 17516(%rsi)
	movl	%eax, 16492(%rsi)
	orb	$16, 16472(%rsi)
	orb	$16, 17496(%rsi)
	incq	%rdx
	movslq	%edi, %rax
	xorl	%esi, %esi
	cmpq	%rax, %rdx
	cmovbq	%rdx, %rsi
	movq	%rsi, (%rcx)
	movq	_gp2x_screens@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rsi,4), %eax
	movq	_g_screen_ptr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fb_paddr,8,3                   ## @fb_paddr
	.comm	_fb_work_buf,8,3                ## @fb_work_buf
	.comm	_memregl,8,3                    ## @memregl
	.comm	_gp2x_screens,8,3               ## @gp2x_screens
	.comm	_g_screen_ptr,4,2               ## @g_screen_ptr
	.no_dead_strip	_pollux_video_flip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pollux_video_flip
_pollux_video_flip:                     ; @pollux_video_flip
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _fb_paddr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fb_paddr@GOTPAGEOFF]
Lloh2:
	adrp	x9, _fb_work_buf@GOTPAGE
Lloh3:
	ldr	x9, [x9, _fb_work_buf@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x10, [x9]
	ldr	w8, [x8, x10, lsl #2]
Lloh5:
	adrp	x11, _memregl@GOTPAGE
Lloh6:
	ldr	x11, [x11, _memregl@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	mov	w12, #16472
	add	x11, x11, x12
	str	w8, [x11, #1044]
	str	w8, [x11, #20]
	ldr	w8, [x11]
	orr	w8, w8, #0x10
	str	w8, [x11]
	ldr	w8, [x11, #1024]
	orr	w8, w8, #0x10
	str	w8, [x11, #1024]
	add	x8, x10, #1
	cmp	x8, w0, sxtw
	csinc	x8, xzr, x10, hs
	str	x8, [x9]
Lloh8:
	adrp	x9, _gp2x_screens@GOTPAGE
Lloh9:
	ldr	x9, [x9, _gp2x_screens@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
Lloh11:
	adrp	x9, _g_screen_ptr@GOTPAGE
Lloh12:
	ldr	x9, [x9, _g_screen_ptr@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
	ret
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_fb_paddr,8,3                   ; @fb_paddr
	.comm	_fb_work_buf,8,3                ; @fb_work_buf
	.comm	_memregl,8,3                    ; @memregl
	.comm	_gp2x_screens,8,3               ; @gp2x_screens
	.comm	_g_screen_ptr,4,2               ; @g_screen_ptr
	.no_dead_strip	_pollux_video_flip
.subsections_via_symbols
