	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl_core_raster_font_upload_atlas
_gl_core_raster_font_upload_atlas:      ## @gl_core_raster_font_upload_atlas
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_glDeleteTextures
LBB0_2:
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_glGenTextures
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	8(%rbx), %rsi
	callq	_glBindTexture
	movq	_GL_UNPACK_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_glPixelStorei
	movq	_GL_UNPACK_ROW_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_glPixelStorei
	movq	_GL_PIXEL_UNPACK_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_glBindBuffer
	movl	(%r14), %edi
	movq	_GL_R8@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%rbx), %rax
	movl	4(%rax), %r8d
	movl	8(%rax), %ecx
	movl	$1, %esi
	callq	_glTexStorage2D
	movl	(%r14), %edi
	movq	(%rbx), %rax
	movl	8(%rax), %r8d
	movl	(%rax), %ebx
	movl	4(%rax), %r9d
	movq	_GL_RED@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	callq	_glTexSubImage2D
	addq	$32, %rsp
	movl	(%r14), %edi
	movq	_GL_TEXTURE_MAG_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_LINEAR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_glTexParameteri
	movl	(%r14), %edi
	movq	_GL_TEXTURE_MIN_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	callq	_glTexParameteri
	movl	(%r14), %edi
	movq	_GL_TEXTURE_WRAP_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_CLAMP_TO_EDGE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_glTexParameteri
	movl	(%r14), %edi
	movq	_GL_TEXTURE_WRAP_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	callq	_glTexParameteri
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_glBindTexture
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_UNPACK_ALIGNMENT,4,2        ## @GL_UNPACK_ALIGNMENT
	.comm	_GL_UNPACK_ROW_LENGTH,4,2       ## @GL_UNPACK_ROW_LENGTH
	.comm	_GL_PIXEL_UNPACK_BUFFER,4,2     ## @GL_PIXEL_UNPACK_BUFFER
	.comm	_GL_R8,4,2                      ## @GL_R8
	.comm	_GL_RED,4,2                     ## @GL_RED
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.comm	_GL_TEXTURE_MAG_FILTER,4,2      ## @GL_TEXTURE_MAG_FILTER
	.comm	_GL_LINEAR,4,2                  ## @GL_LINEAR
	.comm	_GL_TEXTURE_MIN_FILTER,4,2      ## @GL_TEXTURE_MIN_FILTER
	.comm	_GL_TEXTURE_WRAP_S,4,2          ## @GL_TEXTURE_WRAP_S
	.comm	_GL_CLAMP_TO_EDGE,4,2           ## @GL_CLAMP_TO_EDGE
	.comm	_GL_TEXTURE_WRAP_T,4,2          ## @GL_TEXTURE_WRAP_T
	.no_dead_strip	_gl_core_raster_font_upload_atlas
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl_core_raster_font_upload_atlas
_gl_core_raster_font_upload_atlas:      ; @gl_core_raster_font_upload_atlas
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	mov	x1, x20
	bl	_glDeleteTextures
LBB0_2:
	mov	w0, #1
	mov	x1, x20
	bl	_glGenTextures
Lloh0:
	adrp	x20, _GL_TEXTURE_2D@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GL_TEXTURE_2D@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	x1, [x19, #8]
	bl	_glBindTexture
Lloh2:
	adrp	x8, _GL_UNPACK_ALIGNMENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_UNPACK_ALIGNMENT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_glPixelStorei
Lloh5:
	adrp	x8, _GL_UNPACK_ROW_LENGTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_UNPACK_ROW_LENGTH@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_glPixelStorei
Lloh8:
	adrp	x8, _GL_PIXEL_UNPACK_BUFFER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_PIXEL_UNPACK_BUFFER@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_glBindBuffer
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _GL_R8@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_R8@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	x8, [x19]
	ldp	w4, w3, [x8, #4]
	mov	w1, #1
	bl	_glTexStorage2D
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldp	w5, w4, [x8, #4]
Lloh14:
	adrp	x9, _GL_RED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _GL_RED@GOTPAGEOFF]
Lloh16:
	ldr	w6, [x9]
Lloh17:
	adrp	x9, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh19:
	ldr	w7, [x9]
	ldr	w8, [x8]
	str	w8, [sp]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_glTexSubImage2D
	ldr	w0, [x20]
Lloh20:
	adrp	x8, _GL_TEXTURE_MAG_FILTER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GL_TEXTURE_MAG_FILTER@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x19, _GL_LINEAR@GOTPAGE
Lloh24:
	ldr	x19, [x19, _GL_LINEAR@GOTPAGEOFF]
	ldr	w2, [x19]
	bl	_glTexParameteri
	ldr	w0, [x20]
Lloh25:
	adrp	x8, _GL_TEXTURE_MIN_FILTER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GL_TEXTURE_MIN_FILTER@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x19]
	bl	_glTexParameteri
	ldr	w0, [x20]
Lloh28:
	adrp	x8, _GL_TEXTURE_WRAP_S@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GL_TEXTURE_WRAP_S@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x19, _GL_CLAMP_TO_EDGE@GOTPAGE
Lloh32:
	ldr	x19, [x19, _GL_CLAMP_TO_EDGE@GOTPAGEOFF]
	ldr	w2, [x19]
	bl	_glTexParameteri
	ldr	w0, [x20]
Lloh33:
	adrp	x8, _GL_TEXTURE_WRAP_T@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GL_TEXTURE_WRAP_T@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	w2, [x19]
	bl	_glTexParameteri
	ldr	w0, [x20]
	mov	x1, #0
	bl	_glBindTexture
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_UNPACK_ALIGNMENT,4,2        ; @GL_UNPACK_ALIGNMENT
	.comm	_GL_UNPACK_ROW_LENGTH,4,2       ; @GL_UNPACK_ROW_LENGTH
	.comm	_GL_PIXEL_UNPACK_BUFFER,4,2     ; @GL_PIXEL_UNPACK_BUFFER
	.comm	_GL_R8,4,2                      ; @GL_R8
	.comm	_GL_RED,4,2                     ; @GL_RED
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.comm	_GL_TEXTURE_MAG_FILTER,4,2      ; @GL_TEXTURE_MAG_FILTER
	.comm	_GL_LINEAR,4,2                  ; @GL_LINEAR
	.comm	_GL_TEXTURE_MIN_FILTER,4,2      ; @GL_TEXTURE_MIN_FILTER
	.comm	_GL_TEXTURE_WRAP_S,4,2          ; @GL_TEXTURE_WRAP_S
	.comm	_GL_CLAMP_TO_EDGE,4,2           ; @GL_CLAMP_TO_EDGE
	.comm	_GL_TEXTURE_WRAP_T,4,2          ; @GL_TEXTURE_WRAP_T
	.no_dead_strip	_gl_core_raster_font_upload_atlas
.subsections_via_symbols
