	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function RB_SetGL2D
LCPI0_0:
	.quad	0x3f50624dd2f1a9fc              ## double 0.001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_RB_SetGL2D
	.p2align	4, 0x90
_RB_SetGL2D:                            ## @RB_SetGL2D
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_backEnd@GOTPCREL(%rip), %r15
	cmpq	$0, 32(%r15)
	je	LBB0_1
## %bb.2:
	movq	_glState@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 24(%r15)
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movq	_glState@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	movl	16(%r15), %ecx
	movl	%ecx, 40(%r15)
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%r15)
	movq	%rax, 24(%r15)
	leaq	4(%rax), %rcx
	movq	_glConfig@GOTPCREL(%rip), %rdx
	leaq	4(%rdx), %rsi
	testq	%rax, %rax
	cmovneq	%rax, %rdx
	cmoveq	%rsi, %rcx
	movl	(%rcx), %r14d
	movl	(%rdx), %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_qglViewport
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_qglScissor
	xorl	%edi, %edi
	movl	%ebx, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_Mat4Ortho
	callq	_GL_SetProjectionMatrix
	callq	_Mat4Identity
	callq	_GL_SetModelviewMatrix
	movq	_GLS_DEPTHTEST_DISABLE@GOTPCREL(%rip), %rax
	movq	_GLS_SRCBLEND_SRC_ALPHA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_GL_State
	movq	_CT_TWO_SIDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GL_Cull
	movq	_ri@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	movsd	%xmm0, (%r15)
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, 8(%r15)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_backEnd,48,3                   ## @backEnd
	.comm	_glState,8,3                    ## @glState
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_glConfig,8,2                   ## @glConfig
	.comm	_GLS_DEPTHTEST_DISABLE,4,2      ## @GLS_DEPTHTEST_DISABLE
	.comm	_GLS_SRCBLEND_SRC_ALPHA,4,2     ## @GLS_SRCBLEND_SRC_ALPHA
	.comm	_GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA,4,2 ## @GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA
	.comm	_CT_TWO_SIDED,4,2               ## @CT_TWO_SIDED
	.comm	_ri,8,3                         ## @ri
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_SetGL2D                     ; -- Begin function RB_SetGL2D
	.p2align	2
_RB_SetGL2D:                            ; @RB_SetGL2D
	.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
Lloh0:
	adrp	x21, _backEnd@GOTPAGE
Lloh1:
	ldr	x21, [x21, _backEnd@GOTPAGEOFF]
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x21, #24]
Lloh2:
	adrp	x8, _glState@GOTPAGE
Lloh3:
	ldr	x8, [x8, _glState@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_3
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _glState@GOTPAGE
Lloh6:
	ldr	x8, [x8, _glState@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
LBB0_3:
	ldr	w9, [x21, #16]
	str	w9, [x21, #40]
Lloh8:
	adrp	x9, _qtrue@GOTPAGE
Lloh9:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	stp	x8, x9, [x21, #24]
	add	x9, x8, #4
Lloh11:
	adrp	x10, _glConfig@GOTPAGE
Lloh12:
	ldr	x10, [x10, _glConfig@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x8, eq
	add	x10, x10, #4
	csel	x9, x10, x9, eq
	ldr	w19, [x9]
	ldr	w20, [x8]
	mov	w0, #0
	mov	w1, #0
	mov	x2, x20
	mov	x3, x19
	bl	_qglViewport
	mov	w0, #0
	mov	w1, #0
	mov	x2, x20
	mov	x3, x19
	bl	_qglScissor
	mov	w0, #0
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	mov	w4, #0
	mov	w5, #1
	bl	_Mat4Ortho
	bl	_GL_SetProjectionMatrix
	bl	_Mat4Identity
	bl	_GL_SetModelviewMatrix
Lloh13:
	adrp	x8, _GLS_DEPTHTEST_DISABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GLS_DEPTHTEST_DISABLE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _GLS_SRCBLEND_SRC_ALPHA@GOTPAGE
Lloh17:
	ldr	x9, [x9, _GLS_SRCBLEND_SRC_ALPHA@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_GL_State
Lloh22:
	adrp	x8, _CT_TWO_SIDED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CT_TWO_SIDED@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_GL_Cull
Lloh25:
	adrp	x8, _ri@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	blr	x8
	str	d0, [x21]
	mov	x8, #43516
	movk	x8, #54001, lsl #16
	movk	x8, #25165, lsl #32
	movk	x8, #16208, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	str	d0, [x21, #8]
LBB0_4:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_backEnd,48,3                   ; @backEnd
	.comm	_glState,8,3                    ; @glState
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_glConfig,8,2                   ; @glConfig
	.comm	_GLS_DEPTHTEST_DISABLE,4,2      ; @GLS_DEPTHTEST_DISABLE
	.comm	_GLS_SRCBLEND_SRC_ALPHA,4,2     ; @GLS_SRCBLEND_SRC_ALPHA
	.comm	_GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA,4,2 ; @GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA
	.comm	_CT_TWO_SIDED,4,2               ; @CT_TWO_SIDED
	.comm	_ri,8,3                         ; @ri
.subsections_via_symbols
