	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_glyph
_load_glyph:                            ## @load_glyph
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movq	$0, -48(%rbp)
	movq	8(%r15), %rdi
	movl	36(%r15), %edx
	movl	%ebx, %esi
	callq	_FT_Load_Char
	testq	%rax, %rax
	je	LBB0_1
## %bb.19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_1:
	movl	$56, %edi
	callq	_av_mallocz
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	%rax, %r12
	movl	%ebx, 52(%rax)
	movl	32(%r15), %eax
	movl	%eax, 48(%r12)
	movq	8(%r15), %rax
	movq	(%rax), %rdi
	leaq	8(%r12), %rbx
	movq	%rbx, %rsi
	callq	_FT_Get_Glyph
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
	jmp	LBB0_9
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
	jmp	LBB0_17
LBB0_5:
	cmpq	$0, 24(%r15)
	je	LBB0_11
## %bb.6:
	movq	8(%r12), %rax
	leaq	40(%r12), %r13
	movq	%rax, 40(%r12)
	movl	16(%r15), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_FT_Glyph_StrokeBorder
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_FT_RENDER_MODE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_FT_Glyph_To_Bitmap
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:
	movq	40(%r12), %rax
	movl	8(%rax), %eax
	movl	%eax, 32(%r12)
LBB0_11:
	movq	_FT_RENDER_MODE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_FT_Glyph_To_Bitmap
	testq	%rax, %rax
	je	LBB0_12
LBB0_8:
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_9:
	movq	%rbx, %rdi
	callq	_av_freep
LBB0_17:
	leaq	-56(%rbp), %rdi
	callq	_av_freep
	leaq	-48(%rbp), %rdi
	callq	_av_freep
LBB0_18:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	8(%r12), %rdi
	movl	8(%rdi), %eax
	movl	%eax, 28(%r12)
	movl	4(%rdi), %eax
	movl	%eax, 24(%r12)
	movl	(%rdi), %eax
	movl	%eax, 20(%r12)
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	sarl	$6, %eax
	movl	%eax, (%r12)
	movq	_ft_glyph_bbox_pixels@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	addq	$16, %rdx
	callq	_FT_Glyph_Get_CBox
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_av_tree_node_alloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	_glyph_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_av_tree_insert
	testq	%r14, %r14
	je	LBB0_18
## %bb.15:
	movq	%r12, (%r14)
	jmp	LBB0_18
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FT_RENDER_MODE_NORMAL,4,2      ## @FT_RENDER_MODE_NORMAL
	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_ft_glyph_bbox_pixels,4,2       ## @ft_glyph_bbox_pixels
	.comm	_glyph_cmp,4,2                  ## @glyph_cmp
	.no_dead_strip	_load_glyph
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_glyph
_load_glyph:                            ; @load_glyph
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	ldr	x20, [x0]
	str	xzr, [sp]
	ldr	x0, [x20, #8]
	ldr	w2, [x20, #36]
	mov	x1, x21
	bl	_FT_Load_Char
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
LBB0_2:
	mov	w0, #56
	bl	_av_mallocz
	str	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.3:
	mov	x22, x0
	str	w21, [x0, #52]
	ldr	w8, [x20, #32]
	str	w8, [x0, #48]
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	add	x21, x22, #8
	mov	x1, x21
	bl	_FT_Get_Glyph
	cbz	x0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	b	LBB0_13
LBB0_6:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	b	LBB0_14
LBB0_7:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	x8, [x22, #8]
	mov	x23, x22
	str	x8, [x23, #40]!
	ldr	w1, [x20, #16]
	mov	x0, x23
	mov	w2, #0
	mov	w3, #0
	bl	_FT_Glyph_StrokeBorder
	cbnz	x0, LBB0_12
; %bb.9:
Lloh8:
	adrp	x8, _FT_RENDER_MODE_NORMAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FT_RENDER_MODE_NORMAL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #0
	mov	w3, #1
	bl	_FT_Glyph_To_Bitmap
	cbnz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x22, #40]
	ldr	w8, [x8, #8]
	str	w8, [x22, #32]
LBB0_11:
Lloh11:
	adrp	x8, _FT_RENDER_MODE_NORMAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FT_RENDER_MODE_NORMAL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #1
	bl	_FT_Glyph_To_Bitmap
	cbz	x0, LBB0_16
LBB0_12:
Lloh14:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
LBB0_13:
	mov	x0, x21
	bl	_av_freep
LBB0_14:
	add	x0, sp, #8
	bl	_av_freep
	mov	x0, sp
	bl	_av_freep
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
	ldr	x0, [x22, #8]
	ldr	w8, [x0, #8]
	str	w8, [x22, #28]
	ldr	d0, [x0]
	stur	d0, [x22, #20]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	asr	w8, w8, #6
	str	w8, [x22]
Lloh17:
	adrp	x8, _ft_glyph_bbox_pixels@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ft_glyph_bbox_pixels@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, x22, #16
	bl	_FT_Glyph_Get_CBox
	bl	_av_tree_node_alloc
	str	x0, [sp]
	cbz	x0, LBB0_19
; %bb.17:
Lloh20:
	adrp	x8, _glyph_cmp@GOTPAGE
Lloh21:
	ldr	x8, [x8, _glyph_cmp@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x20
	mov	x1, x22
	bl	_av_tree_insert
	mov	w20, #0
	cbz	x19, LBB0_15
; %bb.18:
	str	x22, [x19]
	b	LBB0_15
LBB0_19:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FT_RENDER_MODE_NORMAL,4,2      ; @FT_RENDER_MODE_NORMAL
	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_ft_glyph_bbox_pixels,4,2       ; @ft_glyph_bbox_pixels
	.comm	_glyph_cmp,4,2                  ; @glyph_cmp
	.no_dead_strip	_load_glyph
.subsections_via_symbols
