	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function capture_screen
LCPI0_0:
	.quad	0x3f9999999999999a              ## double 0.025000000000000001
LCPI0_1:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
LCPI0_2:
	.quad	0x3fab4a2339c0ebee              ## double 0.0533
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_capture_screen:                        ## @capture_screen
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %r14
	movslq	(%rdi), %r12
	shlq	$5, %r12
	leaq	(%r14,%r12), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_CCFONT_REGULAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	addq	$8, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_av_bprint_clear
	leaq	(%r14,%r12), %rbx
	addq	$24, %rbx
	movq	24(%r14,%r12), %rdi
	xorl	%r13d, %r13d
	movq	_SCREEN_ROWS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rdi, %rdi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.1:
	testl	%eax, %eax
	jle	LBB0_13
## %bb.2:
	leaq	(%r14,%r12), %r15
	addq	$8, %r15
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	%r14d, %esi
	callq	_CHECK_FLAG
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rcx
	xorl	%eax, %eax
	cmpb	$32, (%rcx)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%r14,8), %rdx
	movq	_CCSET_BASIC_AMERICAN@GOTPCREL(%rip), %rax
	movb	(%rax), %bl
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	%bl, (%rdx,%rsi)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	leaq	1(%rsi), %rax
	cmpb	$32, 1(%rcx,%rsi)
	movq	%rax, %rsi
	je	LBB0_6
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, %rax
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r13d, %eax
	movl	%r13d, %ecx
	cmovll	%eax, %ecx
	testl	%r13d, %r13d
	cmovel	%eax, %ecx
	movl	%ecx, %r13d
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rdi
	movq	_SCREEN_ROWS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jl	LBB0_3
LBB0_13:
	testq	%rdi, %rdi
	je	LBB0_44
## %bb.14:
	testl	%eax, %eax
	jle	LBB0_44
## %bb.15:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %r14
	addq	$16, %r14
	movslq	%r13d, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_30 Depth 2
	movl	%r13d, %esi
	callq	_CHECK_FLAG
	testq	%rax, %rax
	je	LBB0_42
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %r12
	movq	-8(%r14), %rax
	movq	(%rax,%r13,8), %r15
	xorl	%ebx, %ebx
	cmpb	$32, (%r12)
	jne	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_CCSET_BASIC_AMERICAN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	xorl	%ecx, %ecx
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	%al, (%r15,%rcx)
	jne	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	cmpq	%rdx, %rcx
	jge	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=2
	leaq	1(%rcx), %rbx
	cmpb	$32, 1(%r12,%rcx)
	movq	%rbx, %rcx
	je	LBB0_19
	jmp	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%rcx, %rbx
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%r14), %rax
	movq	%r13, %rcx
	movq	(%rax,%r13,8), %r13
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	movq	_ASS_DEFAULT_PLAYRESX@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm0
	cvttsd2si	%xmm0, %edx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	mulsd	LCPI0_2(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movq	_ASS_DEFAULT_PLAYRESY@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm0
	cvttsd2si	%xmm0, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_av_bprintf
	movq	_SCREEN_COLUMNS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_38
## %bb.25:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%ebx, %ebx
	xorl	%r14d, %r14d
	movq	%r13, %rcx
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_30 Depth=2
	movq	_charset_overrides@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movsbq	(%r15,%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	movslq	%r8d, %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_34
## %bb.27:                              ##   in Loop: Header=BB0_30 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.8(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_av_bprintf
LBB0_28:                                ##   in Loop: Header=BB0_30 Depth=2
	movq	%r13, %rcx
	movl	$1, %r14d
LBB0_29:                                ##   in Loop: Header=BB0_30 Depth=2
	incq	%rbx
	movq	_SCREEN_COLUMNS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_40
LBB0_30:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movsbl	(%r12,%rbx), %r8d
	testl	%r8d, %r8d
	je	LBB0_39
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=2
	movsbl	(%rcx,%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %eax
	je	LBB0_26
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=2
	addl	$-128, %eax
	leaq	L_.str.1(%rip), %rdx
	cmpl	$2, %eax
	ja	LBB0_26
## %bb.33:                              ##   in Loop: Header=BB0_30 Depth=2
	cltq
	leaq	l_reltable.capture_screen(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdx
	addq	%rcx, %rdx
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_30 Depth=2
	testl	%r14d, %r14d
	jne	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_30 Depth=2
	cmpb	$32, %r8b
	jne	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_30 Depth=2
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.9(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	xorl	%eax, %eax
	callq	_av_bprintf
	movq	%r13, %rcx
	jmp	LBB0_29
LBB0_37:                                ##   in Loop: Header=BB0_30 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.10(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	xorl	%eax, %eax
	callq	_av_bprintf
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_41
LBB0_39:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
LBB0_40:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_41:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_av_bprintf
LBB0_42:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%r13
	movq	_SCREEN_ROWS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jl	LBB0_16
LBB0_44:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_bprint_is_complete
	testl	%eax, %eax
	je	LBB0_49
## %bb.45:
	cmpq	$0, (%rbx)
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_48
## %bb.46:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpl	$2, %eax
	jl	LBB0_48
## %bb.47:
	addl	$-2, %eax
	movl	%eax, 8(%rdx)
	movq	16(%rdx), %rcx
	movq	$0, (%rcx,%rax,8)
LBB0_48:
	movl	$1, 4(%rdx)
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_49:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CCFONT_REGULAR,4,2             ## @CCFONT_REGULAR
	.comm	_SCREEN_ROWS,4,2                ## @SCREEN_ROWS
	.comm	_CCSET_BASIC_AMERICAN,1,0       ## @CCSET_BASIC_AMERICAN
	.comm	_ASS_DEFAULT_PLAYRESX,8,3       ## @ASS_DEFAULT_PLAYRESX
	.comm	_ASS_DEFAULT_PLAYRESY,8,3       ## @ASS_DEFAULT_PLAYRESY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{\\an7}{\\pos(%d,%d)}"

	.comm	_SCREEN_COLUMNS,4,2             ## @SCREEN_COLUMNS
L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"{\\i0}"

L_.str.3:                               ## @.str.3
	.asciz	"{\\u0}"

L_.str.4:                               ## @.str.4
	.asciz	"{\\u0}{\\i0}"

	.comm	_charset_overrides,8,3          ## @charset_overrides
L_.str.8:                               ## @.str.8
	.asciz	"%s%s%s"

L_.str.9:                               ## @.str.9
	.asciz	"%s%s\\h"

L_.str.10:                              ## @.str.10
	.asciz	"%s%s%c"

L_.str.11:                              ## @.str.11
	.asciz	"\\N"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_capture_screen
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.capture_screen
l_reltable.capture_screen:
	.long	L_.str.4-l_reltable.capture_screen
	.long	L_.str.3-l_reltable.capture_screen
	.long	L_.str.2-l_reltable.capture_screen

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function capture_screen
_capture_screen:                        ; @capture_screen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	ldr	x22, [x0, #24]
	ldrsw	x23, [x0]
	add	x28, x22, x23, lsl #5
Lloh0:
	adrp	x8, _CCFONT_REGULAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCFONT_REGULAR@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	add	x20, x0, #8
	mov	x0, x20
	bl	_av_bprint_clear
	mov	x27, x28
	ldr	x0, [x27, #24]!
Lloh3:
	adrp	x8, _SCREEN_ROWS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCREEN_ROWS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_8
; %bb.1:
	mov	w24, #0
LBB0_2:
	cmp	x0, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_18
LBB0_3:
	mov	x0, x20
	bl	_av_bprint_is_complete
	cbz	w0, LBB0_43
; %bb.4:
	ldr	x8, [x27]
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w8, [x20]
	subs	w8, w8, #2
	b.lt	LBB0_7
; %bb.6:
	str	w8, [x10, #8]
	ldr	x9, [x10, #16]
	str	xzr, [x9, w8, uxtw #3]
LBB0_7:
	mov	w8, #1
	str	w8, [x10, #4]
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
	mov	x21, #0
	mov	w24, #0
	add	x25, x28, #8
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	mov	w11, #0
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w11, w24
	ccmp	w24, #0, #4, ge
	csel	w24, w11, w24, eq
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x21, #1
	ldr	x0, [x27]
Lloh6:
	adrp	x8, _SCREEN_ROWS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCREEN_ROWS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sxtw	x9, w8
	cmp	x0, #0
	ccmp	x21, x9, #0, ne
	b.ge	LBB0_2
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	mov	x1, x21
	bl	_CHECK_FLAG
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x28]
	lsl	x9, x21, #3
	ldr	x11, [x8, x9]
	ldrb	w8, [x11]
	cmp	w8, #32
	b.ne	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x8, #0
	ldr	x10, [x25]
	ldr	x9, [x10, x9]
Lloh9:
	adrp	x10, _CCSET_BASIC_AMERICAN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CCSET_BASIC_AMERICAN@GOTPAGEOFF]
	ldrb	w10, [x10]
	add	x12, x11, #1
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w11, [x9, x8]
	cmp	w11, w10
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x11, x8, #1
	ldrb	w13, [x12, x8]
	mov	x8, x11
	cmp	w13, #32
	b.eq	LBB0_15
	b	LBB0_10
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x11, x8
	b	LBB0_10
LBB0_18:
	mov	x21, #0
	add	x8, x22, x23, lsl #5
	add	x9, x8, #16
	add	x8, x8, #8
	stp	x8, x9, [sp, #48]               ; 16-byte Folded Spill
	sxtw	x24, w24
Lloh11:
	adrp	x26, _SCREEN_COLUMNS@GOTPAGE
Lloh12:
	ldr	x26, [x26, _SCREEN_COLUMNS@GOTPAGEOFF]
Lloh13:
	adrp	x23, l_.str.1@PAGE
Lloh14:
	add	x23, x23, l_.str.1@PAGEOFF
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	b	LBB0_22
LBB0_19:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	x19, x11
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	mov	x0, x20
Lloh15:
	adrp	x1, l_.str.11@PAGE
Lloh16:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_av_bprintf
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x21, x21, #1
	ldr	x0, [x27]
Lloh17:
	adrp	x8, _SCREEN_ROWS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SCREEN_ROWS@GOTPAGEOFF]
Lloh19:
	ldrsw	x8, [x8]
	cmp	x0, #0
	ccmp	x21, x8, #0, ne
	b.ge	LBB0_3
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
                                        ;     Child Loop BB0_35 Depth 2
	mov	x1, x21
	bl	_CHECK_FLAG
	cbz	x0, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x9, [x28]
	lsl	x8, x21, #3
	ldr	x28, [x9, x8]
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x9, [x9]
	ldr	x27, [x9, x8]
	ldrb	w9, [x28]
	cmp	w9, #32
	b.ne	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x10, #0
Lloh20:
	adrp	x9, _CCSET_BASIC_AMERICAN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CCSET_BASIC_AMERICAN@GOTPAGEOFF]
	ldrb	w9, [x9]
	add	x11, x28, #1
LBB0_25:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w12, [x27, x10]
	cmp	w12, w9
	ccmp	x10, x24, #0, eq
	b.ge	LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	add	x22, x10, #1
	ldrb	w12, [x11, x10]
	mov	x10, x22
	cmp	w12, #32
	b.eq	LBB0_25
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	w22, #0
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	x22, x10
LBB0_29:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x9, [x9]
	ldr	x25, [x9, x8]
Lloh22:
	adrp	x8, _ASS_DEFAULT_PLAYRESX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ASS_DEFAULT_PLAYRESX@GOTPAGEOFF]
Lloh24:
	ldr	d0, [x8]
	scvtf	d1, w22
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16313, lsl #48
	fmov	d2, x8
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16281, lsl #48
	fmov	d3, x8
	fmadd	d1, d1, d3, d2
	fmul	d0, d1, d0
	fcvtzs	w8, d0
	scvtf	d0, w21
Lloh25:
	adrp	x9, _ASS_DEFAULT_PLAYRESY@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ASS_DEFAULT_PLAYRESY@GOTPAGEOFF]
Lloh27:
	ldr	d1, [x9]
	mov	x9, #60398
	movk	x9, #14784, lsl #16
	movk	x9, #18979, lsl #32
	movk	x9, #16299, lsl #48
	fmov	d3, x9
	fmadd	d0, d0, d3, d2
	fmul	d0, d0, d1
	fcvtzs	w9, d0
	stp	x8, x9, [sp]
	mov	x0, x20
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	bl	_av_bprintf
	ldr	w8, [x26]
	cmp	w22, w8
	b.ge	LBB0_20
; %bb.30:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	w8, #0
	mov	w22, w22
	b	LBB0_35
LBB0_31:                                ;   in Loop: Header=BB0_35 Depth=2
Lloh30:
	adrp	x11, _charset_overrides@GOTPAGE
Lloh31:
	ldr	x11, [x11, _charset_overrides@GOTPAGEOFF]
Lloh32:
	ldr	x11, [x11]
	ldrsb	x12, [x27, x22]
	ldr	x11, [x11, x12, lsl #3]
	ldr	x11, [x11, w10, sxtw #3]
	cbz	x11, LBB0_39
; %bb.32:                               ;   in Loop: Header=BB0_35 Depth=2
	stp	x23, x11, [sp, #8]
	str	x9, [sp]
	mov	x0, x20
Lloh33:
	adrp	x1, l_.str.8@PAGE
Lloh34:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_33:                                ;   in Loop: Header=BB0_35 Depth=2
	bl	_av_bprintf
	mov	w8, #1
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=2
	add	x22, x22, #1
	ldr	w9, [x26]
	cmp	w9, w22
	b.le	LBB0_20
LBB0_35:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x11, x19
	ldrsb	w10, [x28, x22]
	cbz	w10, LBB0_19
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=2
	ldrsb	w19, [x25, x22]
	mov	x9, x23
	cmp	w11, w19
	b.eq	LBB0_31
; %bb.37:                               ;   in Loop: Header=BB0_35 Depth=2
	sub	w11, w11, #128
	mov	x9, x23
	cmp	w11, #2
	b.hi	LBB0_31
; %bb.38:                               ;   in Loop: Header=BB0_35 Depth=2
Lloh35:
	adrp	x9, l_switch.table.capture_screen@PAGE
Lloh36:
	add	x9, x9, l_switch.table.capture_screen@PAGEOFF
	ldr	x9, [x9, w11, sxtw #3]
	b	LBB0_31
LBB0_39:                                ;   in Loop: Header=BB0_35 Depth=2
	cbnz	w8, LBB0_42
; %bb.40:                               ;   in Loop: Header=BB0_35 Depth=2
	cmp	w10, #32
	b.ne	LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_35 Depth=2
	stp	x9, x23, [sp]
	mov	x0, x20
Lloh37:
	adrp	x1, l_.str.9@PAGE
Lloh38:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_av_bprintf
	mov	w8, #0
	b	LBB0_34
LBB0_42:                                ;   in Loop: Header=BB0_35 Depth=2
	stp	x23, x10, [sp, #8]
	str	x9, [sp]
	mov	x0, x20
Lloh39:
	adrp	x1, l_.str.10@PAGE
Lloh40:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_33
LBB0_43:
Lloh41:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_CCFONT_REGULAR,4,2             ; @CCFONT_REGULAR
	.comm	_SCREEN_ROWS,4,2                ; @SCREEN_ROWS
	.comm	_CCSET_BASIC_AMERICAN,1,0       ; @CCSET_BASIC_AMERICAN
	.comm	_ASS_DEFAULT_PLAYRESX,8,3       ; @ASS_DEFAULT_PLAYRESX
	.comm	_ASS_DEFAULT_PLAYRESY,8,3       ; @ASS_DEFAULT_PLAYRESY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{\\an7}{\\pos(%d,%d)}"

	.comm	_SCREEN_COLUMNS,4,2             ; @SCREEN_COLUMNS
l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"{\\i0}"

l_.str.3:                               ; @.str.3
	.asciz	"{\\u0}"

l_.str.4:                               ; @.str.4
	.asciz	"{\\u0}{\\i0}"

	.comm	_charset_overrides,8,3          ; @charset_overrides
l_.str.8:                               ; @.str.8
	.asciz	"%s%s%s"

l_.str.9:                               ; @.str.9
	.asciz	"%s%s\\h"

l_.str.10:                              ; @.str.10
	.asciz	"%s%s%c"

l_.str.11:                              ; @.str.11
	.asciz	"\\N"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_capture_screen
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.capture_screen
l_switch.table.capture_screen:
	.quad	l_.str.4
	.quad	l_.str.3
	.quad	l_.str.2

.subsections_via_symbols
