	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_V_DrawPatchFlipped             ## -- Begin function V_DrawPatchFlipped
	.p2align	4, 0x90
_V_DrawPatchFlipped:                    ## @V_DrawPatchFlipped
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %ebx
	movl	20(%rcx), %edi
	callq	_SHORT
	subl	%eax, %r12d
	movl	16(%r13), %edi
	callq	_SHORT
	subl	%eax, %ebx
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.1:
	movl	8(%r13), %edi
	callq	_SHORT
	movl	%eax, %r15d
	movl	12(%r13), %edi
	callq	_SHORT
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_V_MarkRect
LBB0_2:
	movq	_screens@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_SCREENWIDTH@GOTPCREL(%rip), %r14
	movslq	(%r14), %r15
	movl	8(%r13), %edi
	callq	_SHORT
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_19
## %bb.3:
	movslq	%r12d, %rax
	imulq	%rax, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,4), %rax
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,4), %r15
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	addq	$4, %r15
	cmpq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_19
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_11 Depth 3
                                        ##       Child Loop BB0_15 Depth 3
	movq	(%r13), %rax
	movl	%r12d, %ecx
	notl	%ecx
	addl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_LONG
	movslq	%eax, %rcx
	movl	(%r13,%rcx,4), %eax
	cmpl	$255, %eax
	je	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(,%rcx,4), %r9
	addq	%r13, %r9
	movl	(%r14), %edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	4(%r9), %eax
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=2
	movslq	%eax, %rcx
	movl	16(%r9,%rcx,4), %eax
	leaq	(%r9,%rcx,4), %r9
	addq	$16, %r9
	cmpl	$255, %eax
	je	LBB0_18
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_11 Depth 3
                                        ##       Child Loop BB0_15 Depth 3
	movl	4(%r9), %r10d
	testq	%r10, %r10
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	imull	%eax, %edx
	movslq	%edx, %rax
	leaq	(%r15,%rax,4), %rsi
	leaq	12(%r9), %rcx
	leal	-1(%r10), %r8d
	testb	$3, %r10b
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	%r10d, %edi
	andl	$3, %edi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rcx), %edx
	addq	$4, %rcx
	movl	%edx, (%rsi)
	movslq	(%r14), %rdx
	leaq	(%rsi,%rdx,4), %rsi
	incq	%rax
	cmpl	%eax, %edi
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	subl	%eax, %r10d
	cmpl	$3, %r8d
	jb	LBB0_16
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=2
	xorl	%eax, %eax
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
                                        ## implicit-def: $edx
	cmpl	$3, %r8d
	jb	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	%r10d, %r8d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rcx,%rax,4), %edx
	movl	%edx, (%rsi)
	movslq	(%r14), %rdx
	leaq	(%rsi,%rdx,4), %rbx
	movl	4(%rcx,%rax,4), %edi
	movl	%edi, (%rsi,%rdx,4)
	movslq	(%r14), %rdx
	leaq	(%rbx,%rdx,4), %rsi
	movl	8(%rcx,%rax,4), %edi
	movl	%edi, (%rbx,%rdx,4)
	movslq	(%r14), %rdx
	leaq	(%rsi,%rdx,4), %rdi
	movl	12(%rcx,%rax,4), %ebx
	movl	%ebx, (%rsi,%rdx,4)
	movslq	(%r14), %rdx
	leaq	(%rdi,%rdx,4), %rsi
	addq	$4, %rax
	cmpl	%eax, %r8d
	jne	LBB0_15
	jmp	LBB0_16
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_screens,8,3                    ## @screens
	.comm	_SCREENWIDTH,4,2                ## @SCREENWIDTH
	.comm	_SCREENHEIGHT,4,2               ## @SCREENHEIGHT
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_V_DrawPatchFlipped             ; -- Begin function V_DrawPatchFlipped
	.p2align	2
_V_DrawPatchFlipped:                    ; @V_DrawPatchFlipped
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x3, #20]
	bl	_SHORT
	sub	w21, w21, w0
	ldr	w0, [x19, #16]
	bl	_SHORT
	sub	w22, w22, w0
	cbnz	w20, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_SHORT
	mov	x23, x0
	ldr	w0, [x19, #12]
	bl	_SHORT
	mov	x3, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_V_MarkRect
LBB0_2:
Lloh0:
	adrp	x8, _screens@GOTPAGE
Lloh1:
	ldr	x8, [x8, _screens@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x25, [x8, w20, sxtw #3]
Lloh3:
	adrp	x23, _SCREENWIDTH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SCREENWIDTH@GOTPAGEOFF]
	ldr	w26, [x23]
	ldr	w0, [x19, #8]
	bl	_SHORT
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.3:
	mov	x20, x0
	mov	x24, #0
	mul	w8, w26, w21
	add	x8, x25, w8, sxtw #2
	add	x21, x8, w22, sxtw #2
	mov	w22, w0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	add	x21, x21, #4
	cmp	x24, x22
	b.eq	LBB0_12
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	x8, [x19]
	mvn	w9, w24
	add	w9, w20, w9
	ldr	w0, [x8, w9, sxtw #2]
	bl	_LONG
	add	x8, x19, w0, sxtw #2
	ldr	w11, [x8]
	cmp	w11, #255
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x23]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x8, x8, w10, sxtw #2
	ldr	w11, [x8, #16]!
	cmp	w11, #255
	b.eq	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	w10, [x8, #4]
	cbz	w10, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mul	w9, w9, w11
	add	x11, x21, w9, sxtw #2
	add	x12, x8, #12
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w9, [x12], #4
	str	w9, [x11]
	ldrsw	x9, [x23]
	add	x11, x11, x9, lsl #2
	subs	w10, w10, #1
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w10, [x8, #4]
	b	LBB0_7
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_screens,8,3                    ; @screens
	.comm	_SCREENWIDTH,4,2                ; @SCREENWIDTH
	.comm	_SCREENHEIGHT,4,2               ; @SCREENHEIGHT
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
