	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl_raster_font_setup_viewport
_gl_raster_font_setup_viewport:         ## @gl_raster_font_setup_viewport
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movl	%ecx, %edx
	xorl	%ecx, %ecx
	callq	_video_driver_set_viewport
	movq	_GL_BLEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glEnable
	movq	_GL_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_ONE_MINUS_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glBlendFunc
	movq	_GL_FUNC_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glBlendEquation
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_glBindTexture
	movq	(%rbx), %rdi
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%rdi), %esi
	movq	_VIDEO_SHADER_STOCK_BLEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_BLEND,4,2                   ## @GL_BLEND
	.comm	_GL_SRC_ALPHA,4,2               ## @GL_SRC_ALPHA
	.comm	_GL_ONE_MINUS_SRC_ALPHA,4,2     ## @GL_ONE_MINUS_SRC_ALPHA
	.comm	_GL_FUNC_ADD,4,2                ## @GL_FUNC_ADD
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_VIDEO_SHADER_STOCK_BLEND,4,2   ## @VIDEO_SHADER_STOCK_BLEND
	.no_dead_strip	_gl_raster_font_setup_viewport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl_raster_font_setup_viewport
_gl_raster_font_setup_viewport:         ; @gl_raster_font_setup_viewport
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x2, x3
	mov	w3, #0
	bl	_video_driver_set_viewport
Lloh0:
	adrp	x8, _GL_BLEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_BLEND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_glEnable
Lloh3:
	adrp	x8, _GL_SRC_ALPHA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_SRC_ALPHA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _GL_ONE_MINUS_SRC_ALPHA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_ONE_MINUS_SRC_ALPHA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_glBlendFunc
Lloh9:
	adrp	x8, _GL_FUNC_ADD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_FUNC_ADD@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_glBlendEquation
Lloh12:
	adrp	x8, _GL_TEXTURE_2D@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_glBindTexture
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x4, [x8]
	cbz	x4, LBB0_3
; %bb.2:
Lloh15:
	adrp	x8, _VIDEO_SHADER_STOCK_BLEND@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VIDEO_SHADER_STOCK_BLEND@GOTPAGEOFF]
	ldr	w1, [x0]
Lloh17:
	ldr	w2, [x8]
	mov	w3, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_BLEND,4,2                   ; @GL_BLEND
	.comm	_GL_SRC_ALPHA,4,2               ; @GL_SRC_ALPHA
	.comm	_GL_ONE_MINUS_SRC_ALPHA,4,2     ; @GL_ONE_MINUS_SRC_ALPHA
	.comm	_GL_FUNC_ADD,4,2                ; @GL_FUNC_ADD
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_VIDEO_SHADER_STOCK_BLEND,4,2   ; @VIDEO_SHADER_STOCK_BLEND
	.no_dead_strip	_gl_raster_font_setup_viewport
.subsections_via_symbols
