	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function VideoWrite
_VideoWrite:                            ## @VideoWrite
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_Pico@GOTPCREL(%rip), %rcx
	movl	32(%rcx), %eax
	movl	36(%rcx), %edx
	cmpl	$5, %edx
	je	LBB0_6
## %bb.1:
	cmpl	$3, %edx
	je	LBB0_5
## %bb.2:
	cmpl	$1, %edx
	jne	LBB0_8
## %bb.3:
	movl	%edi, %edx
	shll	$8, %edx
	movl	%edi, %esi
	sarl	$8, %esi
	orl	%edx, %esi
	testb	$1, %al
	cmovel	%edi, %esi
	movq	(%rcx), %rdx
	movl	%eax, %edi
	andl	$65534, %edi                    ## imm = 0xFFFE
	movl	%esi, (%rdx,%rdi,2)
	movq	40(%rcx), %rcx
	movl	20(%rcx), %ecx
	shll	$9, %ecx
	movzwl	%cx, %ecx
	subl	%ecx, %eax
	cmpl	$1023, %eax                     ## imm = 0x3FF
	ja	LBB0_8
## %bb.4:
	movq	_PDRAW_DIRTY_SPRITES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_rendstatus@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_8
LBB0_6:
	movq	16(%rcx), %rcx
	jmp	LBB0_7
LBB0_5:
	movl	$1, 24(%rcx)
	movq	8(%rcx), %rcx
LBB0_7:
	andl	$126, %eax
	addl	%eax, %eax
	movl	%edi, (%rcx,%rax)
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_AutoIncrement                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico,48,3                      ## @Pico
	.comm	_PDRAW_DIRTY_SPRITES,4,2        ## @PDRAW_DIRTY_SPRITES
	.comm	_rendstatus,4,2                 ## @rendstatus
	.no_dead_strip	_VideoWrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function VideoWrite
_VideoWrite:                            ; @VideoWrite
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _Pico@GOTPAGE
Lloh1:
	ldr	x9, [x9, _Pico@GOTPAGEOFF]
	ldp	w8, w10, [x9, #32]
	cmp	w10, #5
	b.eq	LBB0_5
; %bb.1:
	cmp	w10, #3
	b.eq	LBB0_6
; %bb.2:
	cmp	w10, #1
	b.ne	LBB0_8
; %bb.3:
	lsl	w10, w0, #8
	orr	w10, w10, w0, asr #8
	tst	w8, #0x1
	csel	w10, w0, w10, eq
	ldr	x11, [x9]
	ubfx	x12, x8, #1, #15
	str	w10, [x11, x12, lsl #2]
	ldr	x9, [x9, #40]
	ldr	w9, [x9, #20]
	ubfiz	w9, w9, #9, #7
	sub	w8, w8, w9
	cmp	w8, #1023
	b.hi	LBB0_8
; %bb.4:
Lloh2:
	adrp	x8, _PDRAW_DIRTY_SPRITES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PDRAW_DIRTY_SPRITES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _rendstatus@GOTPAGE
Lloh6:
	ldr	x9, [x9, _rendstatus@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	b	_AutoIncrement
LBB0_5:
	ldr	x9, [x9, #16]
	b	LBB0_7
LBB0_6:
	mov	w10, #1
	str	w10, [x9, #24]
	ldr	x9, [x9, #8]
LBB0_7:
	ubfx	x8, x8, #1, #6
	str	w0, [x9, x8, lsl #2]
LBB0_8:
	b	_AutoIncrement
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico,48,3                      ; @Pico
	.comm	_PDRAW_DIRTY_SPRITES,4,2        ; @PDRAW_DIRTY_SPRITES
	.comm	_rendstatus,4,2                 ; @rendstatus
	.no_dead_strip	_VideoWrite
.subsections_via_symbols
