	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drawtext
_drawtext:                              ## @drawtext
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movb	(%rcx), %al
	testb	%al, %al
	je	LBB0_22
## %bb.1:
	movl	%r8d, %ebx
	movq	_avpriv_cga_font@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	(%rcx), %ecx
	xorl	%esi, %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	movl	%esi, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax), %r14
	movb	(%rdx,%rax), %al
	testb	%al, %al
	je	LBB0_22
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	imull	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	movslq	%ecx, %rcx
	shlq	$2, %rcx
	addq	(%rdx), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	leal	(%rdx,%rsi,8), %edx
	shll	$2, %edx
	movslq	%edx, %rdx
	leaq	(%rcx,%rdx,4), %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %eax
	shll	$3, %eax
	cltq
	addq	%r13, %rax
	testb	$-128, (%r12,%rax,4)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	testb	$64, (%r12,%rax,4)
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	testb	$32, (%r12,%rax,4)
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	testb	$16, (%r12,%rax,4)
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	testb	$8, (%r12,%rax,4)
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	testb	$4, (%r12,%rax,4)
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=2
	testb	$2, (%r12,%rax,4)
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=2
	testb	$1, (%r12,%rax,4)
	je	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=2
	leaq	112(%r15), %rdi
	movl	%ebx, %esi
	callq	_AV_WL32
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %ecx
	cmpl	$7, %r13d
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=2
	movslq	%ecx, %rax
	leaq	(%r15,%rax,4), %r15
	movzbl	(%r14), %eax
	incq	%r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_AV_WL32
	movsbl	(%r14), %eax
	leal	(%r13,%rax,8), %eax
	cltq
	testb	$64, (%r12,%rax,4)
	je	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	leaq	16(%r15), %rdi
	movl	%ebx, %esi
	callq	_AV_WL32
	movsbl	(%r14), %eax
	leal	(%r13,%rax,8), %eax
	cltq
	testb	$32, (%r12,%rax,4)
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	leaq	32(%r15), %rdi
	movl	%ebx, %esi
	callq	_AV_WL32
	movsbl	(%r14), %eax
	leal	(%r13,%rax,8), %eax
	cltq
	testb	$16, (%r12,%rax,4)
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	leaq	48(%r15), %rdi
	movl	%ebx, %esi
	callq	_AV_WL32
	movsbl	(%r14), %eax
	leal	(%r13,%rax,8), %eax
	cltq
	testb	$8, (%r12,%rax,4)
	je	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=2
	leaq	64(%r15), %rdi
	movl	%ebx, %esi
	callq	_AV_WL32
	movsbl	(%r14), %eax
	leal	(%r13,%rax,8), %eax
	cltq
	testb	$4, (%r12,%rax,4)
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=2
	leaq	80(%r15), %rdi
	movl	%ebx, %esi
	callq	_AV_WL32
	movsbl	(%r14), %eax
	leal	(%r13,%rax,8), %eax
	cltq
	testb	$2, (%r12,%rax,4)
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=2
	leaq	96(%r15), %rdi
	movl	%ebx, %esi
	callq	_AV_WL32
	movsbl	(%r14), %eax
	leal	(%r13,%rax,8), %eax
	cltq
	testb	$1, (%r12,%rax,4)
	jne	LBB0_18
	jmp	LBB0_19
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_avpriv_cga_font,8,3            ## @avpriv_cga_font
	.no_dead_strip	_drawtext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drawtext
_drawtext:                              ; @drawtext
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldrb	w8, [x3]
	cbz	w8, LBB0_22
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x25, #0
Lloh0:
	adrp	x9, _avpriv_cga_font@GOTPAGE
Lloh1:
	ldr	x9, [x9, _avpriv_cga_font@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x9]
	ldr	x9, [x0, #8]
	ldr	w9, [x9]
	mov	x27, x3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	add	x27, x20, w25, uxtw
	ldrb	w8, [x27]
	cbz	w8, LBB0_22
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x28, #0
	ldr	x10, [x23]
	ldr	x10, [x10]
	mul	w9, w9, w21
	add	x9, x10, w9, sxtw #2
	add	w10, w22, w25, lsl #3
	lsl	w10, w10, #2
	add	x24, x9, w10, sxtw #2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sbfiz	w8, w8, #3, #8
	add	x8, x28, w8, sxtw
	ldr	w9, [x26, x8, lsl #2]
	tbnz	w9, #7, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w9, [x26, x8, lsl #2]
	tbnz	w9, #6, LBB0_16
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w9, [x26, x8, lsl #2]
	tbnz	w9, #5, LBB0_17
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w9, [x26, x8, lsl #2]
	tbnz	w9, #4, LBB0_18
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w9, [x26, x8, lsl #2]
	tbnz	w9, #3, LBB0_19
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w9, [x26, x8, lsl #2]
	tbnz	w9, #2, LBB0_20
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w9, [x26, x8, lsl #2]
	tbnz	w9, #1, LBB0_21
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x26, x8, lsl #2]
	tbz	w8, #0, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x0, x24, #112
	mov	x1, x19
	bl	_AV_WL32
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [x23, #8]
	ldr	w9, [x8]
	cmp	w28, #7
	b.eq	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=2
	sub	w8, w9, #32
	add	x8, x24, w8, sxtw #2
	add	x24, x8, #128
	ldrb	w8, [x27]
	add	x28, x28, #1
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x24
	mov	x1, x19
	bl	_AV_WL32
	ldrsb	w8, [x27]
	add	w8, w28, w8, lsl #3
	sxtw	x8, w8
	ldr	w9, [x26, x8, lsl #2]
	tbz	w9, #6, LBB0_6
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x0, x24, #16
	mov	x1, x19
	bl	_AV_WL32
	ldrsb	w8, [x27]
	add	w8, w28, w8, lsl #3
	sxtw	x8, w8
	ldr	w9, [x26, x8, lsl #2]
	tbz	w9, #5, LBB0_7
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x0, x24, #32
	mov	x1, x19
	bl	_AV_WL32
	ldrsb	w8, [x27]
	add	w8, w28, w8, lsl #3
	sxtw	x8, w8
	ldr	w9, [x26, x8, lsl #2]
	tbz	w9, #4, LBB0_8
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x0, x24, #48
	mov	x1, x19
	bl	_AV_WL32
	ldrsb	w8, [x27]
	add	w8, w28, w8, lsl #3
	sxtw	x8, w8
	ldr	w9, [x26, x8, lsl #2]
	tbz	w9, #3, LBB0_9
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x0, x24, #64
	mov	x1, x19
	bl	_AV_WL32
	ldrsb	w8, [x27]
	add	w8, w28, w8, lsl #3
	sxtw	x8, w8
	ldr	w9, [x26, x8, lsl #2]
	tbz	w9, #2, LBB0_10
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x0, x24, #80
	mov	x1, x19
	bl	_AV_WL32
	ldrsb	w8, [x27]
	add	w8, w28, w8, lsl #3
	sxtw	x8, w8
	ldr	w9, [x26, x8, lsl #2]
	tbz	w9, #1, LBB0_11
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x0, x24, #96
	mov	x1, x19
	bl	_AV_WL32
	ldrsb	w8, [x27]
	add	w8, w28, w8, lsl #3
	sxtw	x8, w8
	ldr	w8, [x26, x8, lsl #2]
	tbnz	w8, #0, LBB0_12
	b	LBB0_13
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_avpriv_cga_font,8,3            ; @avpriv_cga_font
	.no_dead_strip	_drawtext
.subsections_via_symbols
