	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl1_raster_font_upload_atlas
_gl1_raster_font_upload_atlas:          ## @gl1_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	%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, %r12
	movq	_GL_LUMINANCE_ALPHA@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	8(%rdi), %edi
	movq	(%r12), %rsi
	addq	%rsi, %rsi
	callq	_calloc
	movq	%rax, %r15
	movq	16(%r12), %rax
	movl	(%rax), %r10d
	testl	%r10d, %r10d
	je	LBB0_1
## %bb.2:
	movq	8(%rax), %r8
	movq	(%r12), %rcx
	movl	4(%rax), %edx
	leaq	(,%rcx,8), %r9
	xorl	%r11d, %r11d
	movq	%r15, %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r11
	movl	%r10d, %edi
	addq	%r9, %rbx
	movl	%esi, %edx
	cmpq	%rdi, %r11
	jae	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	$0, %esi
	testl	%edx, %edx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	imull	%r11d, %edx
	leaq	(%r8,%rdx,4), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$255, (%rbx,%rdi,8)
	movl	(%rdx,%rdi,4), %esi
	movl	%esi, 4(%rbx,%rdi,8)
	movl	4(%rax), %esi
	incq	%rdi
	cmpl	%esi, %edi
	jb	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %r10d
	jmp	LBB0_7
LBB0_1:
	movq	(%r12), %rcx
LBB0_8:
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %r8d
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	movq	%r14, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%r9d, %r9d
	pushq	%r15
	pushq	%rax
	pushq	%r14
	callq	_glTexImage2D
	addq	$32, %rsp
	movq	%r15, %rdi
	callq	_free
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_LUMINANCE_ALPHA,8,3         ## @GL_LUMINANCE_ALPHA
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.no_dead_strip	_gl1_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 gl1_raster_font_upload_atlas
_gl1_raster_font_upload_atlas:          ; @gl1_raster_font_upload_atlas
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
Lloh0:
	adrp	x8, _GL_LUMINANCE_ALPHA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_LUMINANCE_ALPHA@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	w0, [x0, #8]
	ldr	x8, [x21]
	lsl	x1, x8, #1
	bl	_calloc
	mov	x20, x0
	ldr	x8, [x21, #16]
	ldr	w13, [x8]
	cbz	w13, LBB0_7
; %bb.1:
	mov	x9, #0
	ldr	x10, [x8, #8]
	ldr	x3, [x21]
	mov	w11, #255
	ldr	w12, [x8, #4]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, w13, uxtw
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cbz	w12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x13, #0
	mul	x14, x9, x3
	add	x14, x20, x14, lsl #3
	mul	w12, w12, w9
	add	x15, x10, w12, uxtw #2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w11, [x14]
	ldr	w12, [x15, x13, lsl #2]
	str	w12, [x14, #4]
	ldr	w12, [x8, #4]
	add	x13, x13, #1
	add	x14, x14, #8
	cmp	w13, w12
	b.lo	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w13, [x8]
	b	LBB0_2
LBB0_7:
	ldr	x3, [x21]
LBB0_8:
Lloh3:
	adrp	x8, _GL_TEXTURE_2D@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w4, [x21, #8]
Lloh6:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh8:
	ldr	w7, [x8]
	str	x20, [sp]
	mov	w1, #0
	mov	x2, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	w5, #0
	mov	x6, x19
	bl	_glTexImage2D
	mov	x0, x20
	bl	_free
	mov	w0, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_LUMINANCE_ALPHA,8,3         ; @GL_LUMINANCE_ALPHA
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.no_dead_strip	_gl1_raster_font_upload_atlas
.subsections_via_symbols
