	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_glyph
_draw_glyph:                            ## @draw_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movl	%edx, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -24(%rbp)
	movl	%ecx, -32(%rbp)
	movl	%r8d, -28(%rbp)
	movq	_NGLYPHS@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jle	LBB0_1
## %bb.2:
	cmpl	$8, %r9d
	jne	LBB0_4
## %bb.3:
	cltq
	shlq	$3, %rax
	addq	8(%rdi), %rax
	jmp	LBB0_6
LBB0_1:
	movl	16(%rdi), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_4:
	testl	%r9d, %r9d
	jle	LBB0_15
## %bb.5:
	cltq
	shlq	$3, %rax
	addq	(%rdi), %rax
LBB0_6:
	movl	16(%rbp), %ecx
	subl	%r9d, %ecx
	movq	(%rax), %rax
	movslq	%ecx, %r8
	leal	-1(%r9), %r10d
	movl	%r9d, %r11d
	andl	$3, %r11d
	movl	%r9d, %ecx
	andl	$-4, %ecx
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	leaq	(%rsi,%r8,4), %rsi
	cmpl	%r9d, %r14d
	je	LBB0_15
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	cmpl	$3, %r10d
	jb	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%rax,%rbx,4), %rdx
	movl	-32(%rbp,%rdx,4), %edx
	movl	%edx, (%rsi,%rbx,4)
	movslq	4(%rax,%rbx,4), %rdx
	movl	-32(%rbp,%rdx,4), %edx
	movl	%edx, 4(%rsi,%rbx,4)
	movslq	8(%rax,%rbx,4), %rdx
	movl	-32(%rbp,%rdx,4), %edx
	movl	%edx, 8(%rsi,%rbx,4)
	movslq	12(%rax,%rbx,4), %rdx
	movl	-32(%rbp,%rdx,4), %edx
	movl	%edx, 12(%rsi,%rbx,4)
	addq	$-16, %rdi
	addq	$4, %rbx
	cmpl	%ebx, %ecx
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	subq	%rdi, %rax
	subq	%rdi, %rsi
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%r11d, %r11d
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r11d, %edi
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%rax), %rdx
	addq	$4, %rax
	movl	-32(%rbp,%rdx,4), %edx
	movl	%edx, (%rsi)
	addq	$4, %rsi
	decl	%edi
	jne	LBB0_13
	jmp	LBB0_14
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NGLYPHS,4,2                    ## @NGLYPHS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ignoring nonexistent glyph #%u.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_draw_glyph
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_glyph
_draw_glyph:                            ; @draw_glyph
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
                                        ; kill: def $w5 killed $w5 def $x5
	mov	x8, x2
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [sp, #8]
	stp	w3, w4, [sp]
Lloh3:
	adrp	x9, _NGLYPHS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NGLYPHS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w2
	b.le	LBB0_3
; %bb.1:
	cmp	w5, #8
	b.ne	LBB0_4
; %bb.2:
	ldr	x9, [x0, #8]
	b	LBB0_6
LBB0_3:
	ldr	w0, [x0, #16]
Lloh6:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x8
	bl	_av_log
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_4:
	cmp	w5, #1
	b.lt	LBB0_10
; %bb.5:
	ldr	x9, [x0]
LBB0_6:
	add	x10, x9, w8, sxtw #3
	mov	w8, #0
	mov	w9, w5
	ldr	x10, [x10]
	sbfiz	x12, x5, #2, #32
	mov	x11, sp
	sub	x12, x12, w6, sxtw #2
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x13, #0
	mov	x14, x12
LBB0_8:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x15, [x10], #4
	ldr	w15, [x11, x15, lsl #2]
	str	w15, [x1, x13, lsl #2]
	add	x13, x13, #1
	sub	x14, x14, #4
	cmp	w9, w13
	b.ne	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w8, w8, #1
	sub	x1, x1, x14
	cmp	w8, w9
	b.ne	LBB0_7
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldr	x8, [sp, #8]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NGLYPHS,4,2                    ; @NGLYPHS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ignoring nonexistent glyph #%u.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_draw_glyph
.subsections_via_symbols
