	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_backEnd@GOTPCREL(%rip), %r12
	cmpl	$0, 24(%r12)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_RB_SetGL2D
LBB0_2:
	movq	56(%rbx), %r14
	movq	_tess@GOTPCREL(%rip), %r15
	cmpq	40(%r15), %r14
	je	LBB0_6
## %bb.3:
	cmpl	$0, (%r15)
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_RB_EndSurface
LBB0_5:
	leaq	8(%r12), %rax
	movq	%rax, 16(%r12)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_RB_BeginSurface
LBB0_6:
	movl	$4, %edi
	movl	$6, %esi
	callq	_RB_CHECKOVERFLOW
	movslq	4(%r15), %rax
	movslq	(%r15), %rcx
	leal	4(%rax), %edx
	movl	%edx, 4(%r15)
	leal	6(%rcx), %edx
	movl	%edx, (%r15)
	leaq	3(%rax), %rdx
	movq	8(%r15), %rsi
	movl	%edx, (%rsi,%rcx,4)
	movl	%eax, 4(%rsi,%rcx,4)
	leaq	2(%rax), %rdx
	movl	%edx, 8(%rsi,%rcx,4)
	movl	%edx, 12(%rsi,%rcx,4)
	movl	%eax, 16(%rsi,%rcx,4)
	leaq	1(%rax), %rdx
	movl	%edx, 20(%rsi,%rcx,4)
	movq	(%r12), %rcx
	movl	(%rcx), %ecx
	movq	32(%r15), %rdx
	movq	24(%rdx,%rax,8), %rsi
	movl	%ecx, (%rsi)
	movq	16(%rdx,%rax,8), %rsi
	movl	%ecx, (%rsi)
	movq	8(%rdx,%rax,8), %rsi
	movl	%ecx, (%rsi)
	movq	(%rdx,%rax,8), %rdx
	movl	%ecx, (%rdx)
	movq	24(%rbx), %rcx
	movq	24(%r15), %rdx
	movq	(%rdx,%rax,8), %rsi
	movq	%rcx, (%rsi)
	movq	16(%rbx), %rcx
	movq	%rcx, 8(%rsi)
	movq	$0, 16(%rsi)
	movl	4(%rbx), %esi
	movq	16(%r15), %rcx
	movq	(%rcx,%rax,8), %rdi
	movq	(%rdi), %rdi
	movl	%esi, (%rdi)
	movl	48(%rbx), %esi
	movl	%esi, 4(%rdi)
	movq	40(%rbx), %rsi
	addq	24(%rbx), %rsi
	movq	8(%rdx,%rax,8), %rdi
	movq	%rsi, (%rdi)
	movq	16(%rbx), %rsi
	movq	%rsi, 8(%rdi)
	movq	$0, 16(%rdi)
	movl	32(%rbx), %esi
	movq	8(%rcx,%rax,8), %rdi
	movq	(%rdi), %rdi
	movl	%esi, (%rdi)
	movl	48(%rbx), %esi
	movl	%esi, 4(%rdi)
	movq	40(%rbx), %rsi
	addq	24(%rbx), %rsi
	movq	16(%rdx,%rax,8), %rdi
	movq	%rsi, (%rdi)
	movq	8(%rbx), %rsi
	addq	16(%rbx), %rsi
	movq	%rsi, 8(%rdi)
	movq	$0, 16(%rdi)
	movl	32(%rbx), %esi
	movq	16(%rcx,%rax,8), %rdi
	movq	(%rdi), %rdi
	movl	%esi, (%rdi)
	movl	(%rbx), %esi
	movl	%esi, 4(%rdi)
	movq	24(%rbx), %rsi
	movq	24(%rdx,%rax,8), %rdx
	movq	%rsi, (%rdx)
	movq	8(%rbx), %rsi
	addq	16(%rbx), %rsi
	movq	%rsi, 8(%rdx)
	movq	$0, 16(%rdx)
	movl	4(%rbx), %edx
	movq	24(%rcx,%rax,8), %rax
	movq	(%rax), %rax
	movl	%edx, (%rax)
	movl	(%rbx), %ecx
	movl	%ecx, 4(%rax)
	addq	$64, %rbx
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_backEnd,32,3                   ## @backEnd
	.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _backEnd@GOTPAGE
Lloh1:
	ldr	x21, [x21, _backEnd@GOTPAGEOFF]
	ldr	w8, [x21, #24]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	_RB_SetGL2D
LBB0_2:
	ldr	x20, [x19, #56]
Lloh2:
	adrp	x22, _tess@GOTPAGE
Lloh3:
	ldr	x22, [x22, _tess@GOTPAGEOFF]
	ldr	x8, [x22, #40]
	cmp	x20, x8
	b.eq	LBB0_6
; %bb.3:
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.4:
	bl	_RB_EndSurface
LBB0_5:
	add	x8, x21, #8
	str	x8, [x21, #16]
	mov	x0, x20
	mov	w1, #0
	bl	_RB_BeginSurface
LBB0_6:
	mov	w0, #4
	mov	w1, #6
	bl	_RB_CHECKOVERFLOW
	ldpsw	x9, x8, [x22]
	add	w10, w8, #4
	add	w11, w9, #6
	stp	w11, w10, [x22]
	add	w10, w8, #3
	ldp	x11, x12, [x22, #8]
	str	w10, [x11, x9, lsl #2]
	add	w13, w9, #1
	str	w8, [x11, w13, sxtw #2]
	add	w13, w8, #2
	add	w14, w9, #2
	str	w13, [x11, w14, sxtw #2]
	add	w14, w9, #3
	str	w13, [x11, w14, sxtw #2]
	add	w14, w9, #4
	str	w8, [x11, w14, sxtw #2]
	add	w14, w8, #1
	add	w9, w9, #5
	str	w14, [x11, w9, sxtw #2]
	ldr	x9, [x21]
	ldr	w9, [x9]
	sbfiz	x10, x10, #3, #32
	ldp	x15, x11, [x22, #24]
	ldr	x16, [x11, x10]
	str	w9, [x16]
	sbfiz	x13, x13, #3, #32
	ldr	x16, [x11, x13]
	sbfiz	x14, x14, #3, #32
	ldr	x17, [x11, x14]
	str	w9, [x16]
	str	w9, [x17]
	lsl	x8, x8, #3
	ldr	x11, [x11, x8]
	str	w9, [x11]
	ldr	x9, [x19, #24]
	ldr	x11, [x15, x8]
	str	x9, [x11]
	ldr	x9, [x19, #16]
	stp	x9, xzr, [x11, #8]
	ldr	w9, [x19, #4]
	ldr	x8, [x12, x8]
	ldr	x8, [x8]
	str	w9, [x8]
	ldr	w9, [x19, #48]
	str	w9, [x8, #4]
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #40]
	ldr	x11, [x15, x14]
	add	x8, x9, x8
	str	x8, [x11]
	ldr	x8, [x19, #16]
	stp	x8, xzr, [x11, #8]
	ldr	w8, [x19, #32]
	ldr	x9, [x12, x14]
	ldr	x9, [x9]
	str	w8, [x9]
	ldr	w8, [x19, #48]
	str	w8, [x9, #4]
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #40]
	add	x8, x9, x8
	ldr	x9, [x15, x13]
	str	x8, [x9]
	ldp	x11, x8, [x19, #8]
	add	x8, x11, x8
	stp	x8, xzr, [x9, #8]
	ldr	w8, [x19, #32]
	ldr	x9, [x12, x13]
	ldr	x9, [x9]
	str	w8, [x9]
	ldr	w8, [x19]
	str	w8, [x9, #4]
	ldr	x8, [x19, #24]
	ldr	x9, [x15, x10]
	str	x8, [x9]
	ldp	x11, x8, [x19, #8]
	add	x8, x11, x8
	stp	x8, xzr, [x9, #8]
	ldr	w8, [x19, #4]
	ldr	x9, [x12, x10]
	ldr	x9, [x9]
	str	w8, [x9]
	ldr	w8, [x19]
	str	w8, [x9, #4]
	add	x0, x19, #64
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_backEnd,32,3                   ; @backEnd
	.comm	_tess,48,3                      ; @tess
.subsections_via_symbols
