	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_StretchPic                  ## -- Begin function RB_StretchPic
	.p2align	4, 0x90
_RB_StretchPic:                         ## @RB_StretchPic
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_glRefConfig@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_backEnd@GOTPCREL(%rip), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_2
## %bb.3:
	movq	_tr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_4
LBB0_2:
	xorl	%edi, %edi
LBB0_4:
	callq	_FBO_Bind
LBB0_5:
	xorl	%eax, %eax
	callq	_RB_SetGL2D
	movq	56(%r15), %r14
	movq	_tess@GOTPCREL(%rip), %r12
	cmpq	40(%r12), %r14
	je	LBB0_9
## %bb.6:
	cmpl	$0, (%r12)
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_RB_EndSurface
LBB0_8:
	movq	_backEnd@GOTPCREL(%rip), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, 8(%rax)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_RB_BeginSurface
LBB0_9:
	movl	$4, %edi
	movl	$6, %esi
	callq	_RB_CHECKOVERFLOW
	movslq	4(%r12), %rbx
	movslq	(%r12), %rax
	leal	4(%rbx), %ecx
	movl	%ecx, 4(%r12)
	leal	6(%rax), %ecx
	movl	%ecx, (%r12)
	leaq	3(%rbx), %rcx
	movq	8(%r12), %rdx
	movl	%ecx, (%rdx,%rax,4)
	movl	%ebx, 4(%rdx,%rax,4)
	leaq	2(%rbx), %rcx
	movl	%ecx, 8(%rdx,%rax,4)
	movl	%ecx, 12(%rdx,%rax,4)
	movl	%ebx, 16(%rdx,%rax,4)
	leaq	1(%rbx), %rcx
	movl	%ecx, 20(%rdx,%rax,4)
	movq	_backEnd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %r14
	movl	$257, %esi                      ## imm = 0x101
	movq	%r14, %rdx
	callq	_VectorScale4
	movq	32(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_VectorCopy4
	movq	32(%r12), %rax
	movl	4(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_VectorCopy4
	movq	32(%r12), %rax
	movl	8(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_VectorCopy4
	movq	32(%r12), %rax
	movl	12(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_VectorCopy4
	movq	24(%r15), %rax
	movq	24(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	%rax, (%rdx)
	movq	16(%r15), %rax
	movq	%rax, 8(%rdx)
	movq	$0, 16(%rdx)
	movl	4(%r15), %edx
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movl	%edx, (%rsi)
	movl	48(%r15), %edx
	movl	%edx, 4(%rsi)
	movq	40(%r15), %rdx
	addq	24(%r15), %rdx
	movq	8(%rcx,%rbx,8), %rsi
	movq	%rdx, (%rsi)
	movq	16(%r15), %rdx
	movq	%rdx, 8(%rsi)
	movq	$0, 16(%rsi)
	movl	32(%r15), %edx
	movq	8(%rax,%rbx,8), %rsi
	movl	%edx, (%rsi)
	movl	48(%r15), %edx
	movl	%edx, 4(%rsi)
	movq	40(%r15), %rdx
	addq	24(%r15), %rdx
	movq	16(%rcx,%rbx,8), %rsi
	movq	%rdx, (%rsi)
	movq	8(%r15), %rdx
	addq	16(%r15), %rdx
	movq	%rdx, 8(%rsi)
	movq	$0, 16(%rsi)
	movl	32(%r15), %edx
	movq	16(%rax,%rbx,8), %rsi
	movl	%edx, (%rsi)
	movl	(%r15), %edx
	movl	%edx, 4(%rsi)
	movq	24(%r15), %rdx
	movq	24(%rcx,%rbx,8), %rcx
	movq	%rdx, (%rcx)
	movq	8(%r15), %rdx
	addq	16(%r15), %rdx
	movq	%rdx, 8(%rcx)
	movq	$0, 16(%rcx)
	movl	4(%r15), %ecx
	movq	24(%rax,%rbx,8), %rax
	movl	%ecx, (%rax)
	movl	(%r15), %ecx
	movl	%ecx, 4(%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$64, %r15
	movq	%r15, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_glRefConfig,8,3                ## @glRefConfig
	.comm	_backEnd,24,3                   ## @backEnd
	.comm	_tr,8,3                         ## @tr
	.comm	_tess,48,3                      ## @tess
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_StretchPic                  ; -- Begin function RB_StretchPic
	.p2align	2
_RB_StretchPic:                         ; @RB_StretchPic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _glRefConfig@GOTPAGE
Lloh4:
	ldr	x8, [x8, _glRefConfig@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x23, _backEnd@GOTPAGE
Lloh7:
	ldr	x23, [x23, _backEnd@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x23, #16]
Lloh8:
	adrp	x9, _tr@GOTPAGE
Lloh9:
	ldr	x9, [x9, _tr@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x0, x9, xzr, eq
	bl	_FBO_Bind
LBB0_2:
	bl	_RB_SetGL2D
	ldr	x20, [x19, #56]
Lloh11:
	adrp	x21, _tess@GOTPAGE
Lloh12:
	ldr	x21, [x21, _tess@GOTPAGEOFF]
	ldr	x8, [x21, #40]
	cmp	x20, x8
	b.eq	LBB0_6
; %bb.3:
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.4:
	bl	_RB_EndSurface
LBB0_5:
	add	x8, x23, #4
	str	x8, [x23, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_RB_BeginSurface
LBB0_6:
	mov	w0, #4
	mov	w1, #6
	bl	_RB_CHECKOVERFLOW
	ldpsw	x8, x24, [x21]
	add	w9, w24, #4
	add	w10, w8, #6
	stp	w10, w9, [x21]
	add	w20, w24, #3
	ldr	x9, [x21, #8]
	str	w20, [x9, x8, lsl #2]
	add	w10, w8, #1
	str	w24, [x9, w10, sxtw #2]
	add	w22, w24, #2
	add	w10, w8, #2
	str	w22, [x9, w10, sxtw #2]
	add	w10, w8, #3
	str	w22, [x9, w10, sxtw #2]
	add	w10, w8, #4
	str	w24, [x9, w10, sxtw #2]
	add	w25, w24, #1
	add	w8, w8, #5
	str	w25, [x9, w8, sxtw #2]
	ldr	w0, [x23]
	add	x2, sp, #8
	mov	w1, #257
	bl	_VectorScale4
	ldr	x8, [x21, #32]
	ldr	w1, [x8, x24, lsl #2]
	add	x0, sp, #8
	bl	_VectorCopy4
	ldr	x8, [x21, #32]
	ldr	w1, [x8, w25, sxtw #2]
	add	x0, sp, #8
	bl	_VectorCopy4
	ldr	x8, [x21, #32]
	ldr	w1, [x8, w22, sxtw #2]
	add	x0, sp, #8
	bl	_VectorCopy4
	ldr	x8, [x21, #32]
	ldr	w1, [x8, w20, sxtw #2]
	add	x0, sp, #8
	bl	_VectorCopy4
	ldr	x8, [x19, #24]
	ldr	x9, [x21, #24]
	lsl	x10, x24, #3
	ldr	x11, [x9, x10]
	str	x8, [x11]
	ldr	x8, [x19, #16]
	stp	x8, xzr, [x11, #8]
	ldr	w8, [x19, #4]
	ldr	x11, [x21, #16]
	ldr	x10, [x11, x10]
	str	w8, [x10]
	ldr	w8, [x19, #48]
	str	w8, [x10, #4]
	ldr	x8, [x19, #24]
	ldr	x10, [x19, #40]
	sbfiz	x12, x25, #3, #32
	ldr	x13, [x9, x12]
	add	x8, x10, x8
	str	x8, [x13]
	ldr	x8, [x19, #16]
	stp	x8, xzr, [x13, #8]
	ldr	w8, [x19, #32]
	ldr	x10, [x11, x12]
	str	w8, [x10]
	ldr	w8, [x19, #48]
	str	w8, [x10, #4]
	ldr	x8, [x19, #24]
	ldr	x10, [x19, #40]
	add	x8, x10, x8
	sbfiz	x10, x22, #3, #32
	ldr	x12, [x9, x10]
	str	x8, [x12]
	ldp	x13, x8, [x19, #8]
	add	x8, x13, x8
	stp	x8, xzr, [x12, #8]
	ldr	w8, [x19, #32]
	ldr	x10, [x11, x10]
	str	w8, [x10]
	ldr	w8, [x19]
	str	w8, [x10, #4]
	ldr	x8, [x19, #24]
	sbfiz	x10, x20, #3, #32
	ldr	x9, [x9, x10]
	str	x8, [x9]
	ldp	x12, x8, [x19, #8]
	add	x8, x12, x8
	stp	x8, xzr, [x9, #8]
	ldr	w8, [x19, #4]
	ldr	x9, [x11, x10]
	str	w8, [x9]
	ldr	w8, [x19]
	str	w8, [x9, #4]
	ldr	x8, [sp, #24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	add	x0, x19, #64
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_glRefConfig,8,3                ; @glRefConfig
	.comm	_backEnd,24,3                   ; @backEnd
	.comm	_tr,8,3                         ; @tr
	.comm	_tess,48,3                      ; @tess
.subsections_via_symbols
