	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CropSubtitle
_CropSubtitle:                          ## @CropSubtitle
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rbx
	movslq	4(%rbx), %rax
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jle	LBB0_8
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movslq	(%rbx), %rcx
	imulq	%rcx, %rax
	leaq	(%rsi,%rax,4), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_LineIsTransparent
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r12d
	cmpl	4(%rbx), %r12d
	jge	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%rbx), %rax
	movslq	%r12d, %rcx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rsi
	movq	%r15, %rdi
	callq	_LineIsTransparent
	testl	%eax, %eax
	jne	LBB0_3
LBB0_5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %r15d
	movl	$-1, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	decl	%r15d
	movslq	(%rbx), %rax
	movslq	%r15d, %rcx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_LineIsTransparent
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_9:
	movl	$-1, %r15d
LBB0_10:
	movl	(%rbx), %eax
	testl	%eax, %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_17
## %bb.11:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ColumnIsTransparent
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_12
## %bb.14:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_16:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	movl	%r14d, %r13d
LBB0_17:
	movl	%eax, %r14d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	jle	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	decq	%r14
	movl	%r14d, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ColumnIsTransparent
	testl	%eax, %eax
	jne	LBB0_18
	jmp	LBB0_21
LBB0_20:
	movl	$-1, %r14d
LBB0_21:
	subl	%r13d, %r14d
	incl	%r14d
	subl	%r12d, %r15d
	leal	1(%r15), %edx
	movq	_AV_PIX_FMT_YUVA420P@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, %esi
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	callq	_hb_frame_buffer_init
	movq	_HB_FRAME_SUBTITLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rax)
	movl	32(%rbx), %ecx
	movl	%ecx, 40(%rax)
	movl	28(%rbx), %ecx
	movl	%ecx, 36(%rax)
	movl	24(%rbx), %ecx
	movl	%ecx, 32(%rax)
	movslq	%r13d, %rdi
	movq	16(%rbx), %rcx
	addq	%rdi, %rcx
	movq	%rcx, 24(%rax)
	movl	%r12d, %ecx
	addq	8(%rbx), %rcx
	movq	%rcx, 16(%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	4(%rcx), %edx
	movl	%edx, 12(%rax)
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	testl	%r15d, %r15d
	js	LBB0_27
## %bb.22:
	movslq	(%rbx), %rcx
	movslq	%r12d, %rdx
	imulq	%rcx, %rdx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rdx,4), %rdx
	leaq	(%rdx,%rdi,4), %r15
	movslq	4(%rbx), %rdx
	imulq	%rcx, %rdx
	leaq	(%r15,%rdx,4), %rbx
	leaq	(%rbx,%rdx,4), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rdx,4), %r12
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	72(%rax), %rdi
	imulq	-80(%rbp), %rdi                 ## 8-byte Folded Reload
	shlq	$2, %rdi
	addq	80(%rax), %rdi
	movq	%rbx, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	leaq	(%r15,%rax,4), %r15
	leaq	(%rbx,%rax,4), %rbx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rax,4), %r12
	incl	%r14d
	cmpl	%r14d, -84(%rbp)                ## 4-byte Folded Reload
	je	LBB0_26
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	(%rax), %rdi
	movslq	%r14d, %r13
	imulq	%r13, %rdi
	shlq	$2, %rdi
	addq	8(%rax), %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	testb	$1, %r13b
	jne	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	24(%rax), %rdi
	movl	%r14d, %r13d
	shrl	%r13d
	imulq	%r13, %rdi
	shlq	$2, %rdi
	addq	32(%rax), %rdi
	movl	40(%rax), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_resample
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	48(%rax), %rdi
	imulq	%r13, %rdi
	shlq	$2, %rdi
	addq	56(%rax), %rdi
	movl	64(%rax), %edx
	movq	%r12, %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_resample
	jmp	LBB0_23
LBB0_26:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_27:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_YUVA420P,4,2        ## @AV_PIX_FMT_YUVA420P
	.comm	_HB_FRAME_SUBTITLE,4,2          ## @HB_FRAME_SUBTITLE
	.no_dead_strip	_CropSubtitle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CropSubtitle
_CropSubtitle:                          ; @CropSubtitle
	.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
	ldr	x26, [x0, #8]
	ldr	w8, [x26, #4]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w9, [x26]
	mul	w8, w8, w9
	add	x21, x1, w8, sxtw #2
	mov	x1, x21
	bl	_LineIsTransparent
	mov	w24, #0
	cbz	w0, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w24, w24, #1
	ldr	w8, [x26, #4]
	cmp	w24, w8
	b.ge	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x26]
	mul	w8, w8, w24
	add	x1, x21, w8, sxtw #2
	mov	x0, x20
	bl	_LineIsTransparent
	cbnz	w0, LBB0_2
LBB0_4:
	ldr	w23, [x26, #4]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	subs	w23, w23, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26]
	mul	w8, w8, w23
	add	x1, x21, w8, sxtw #2
	mov	x0, x20
	bl	_LineIsTransparent
	cbnz	w0, LBB0_5
	b	LBB0_9
LBB0_7:
	mov	x22, #0
	b	LBB0_24
LBB0_8:
	mov	w23, #-1
LBB0_9:
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x25, #0
	mov	x22, x21
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_ColumnIsTransparent
	cbz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x26]
	add	x22, x22, #4
	cmp	x25, x8
	b.lt	LBB0_11
LBB0_13:
	mov	w25, #-1
	b	LBB0_15
LBB0_14:
	ldr	w8, [x26]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
LBB0_15:
	mov	w22, w8
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	cmp	w22, #1
	b.lt	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	x22, x22, #1
	add	x1, x21, w22, uxtw #2
	mov	x0, x20
	bl	_ColumnIsTransparent
	cbnz	w0, LBB0_16
	b	LBB0_19
LBB0_18:
	mov	w22, #-1
LBB0_19:
	sub	w8, w22, w25
	add	w21, w8, #1
	sub	w27, w23, w24
	add	w23, w27, #1
Lloh0:
	adrp	x8, _AV_PIX_FMT_YUVA420P@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_YUVA420P@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x23
	bl	_hb_frame_buffer_init
	mov	x22, x0
Lloh3:
	adrp	x8, _HB_FRAME_SUBTITLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HB_FRAME_SUBTITLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x26, #32]
	stp	w9, w8, [x0, #40]
	ldr	d0, [x26, #24]
	str	d0, [x0, #32]
	sxtw	x8, w25
	ldp	x10, x9, [x26, #8]
	add	x9, x9, x8
	add	x10, x10, w24, uxtw
	stp	x10, x9, [x0, #16]
	ldr	x9, [x20]
	ldr	d0, [x9]
	str	d0, [x0, #8]
	tbnz	w27, #31, LBB0_24
; %bb.20:
	mov	w27, #0
	ldp	w9, w10, [x26]
	mul	w11, w9, w24
	add	x11, x19, w11, sxtw #2
	add	x19, x11, x8, lsl #2
	mul	w8, w10, w9
	sbfiz	x8, x8, #2, #32
	add	x20, x19, x8
	add	x24, x20, x8
	add	x25, x24, x8
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x8, #80]
	ldr	w8, [x8, #72]
	mul	w8, w8, w27
	add	x0, x9, w8, sxtw #2
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldrsw	x8, [x26]
	lsl	x8, x8, #2
	add	x19, x19, x8
	add	x20, x20, x8
	add	x24, x24, x8
	add	x25, x25, x8
	add	w27, w27, #1
	cmp	w23, w27
	b.eq	LBB0_24
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x8, #8]
	ldr	w8, [x8]
	mul	w8, w8, w27
	add	x0, x9, w8, sxtw #2
	mov	x1, x19
	mov	x2, x21
	bl	_memcpy
	tbnz	w27, #0, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x8, #32]
	ldr	w10, [x8, #24]
	lsr	w28, w27, #1
	mul	w10, w10, w28
	add	x0, x9, w10, sxtw #2
	ldr	w2, [x8, #40]
	mov	x1, x24
	mov	x3, x21
	bl	_resample
	ldr	x8, [x22]
	ldr	x9, [x8, #56]
	ldr	w10, [x8, #48]
	mul	w10, w10, w28
	add	x0, x9, w10, sxtw #2
	ldr	w2, [x8, #64]
	mov	x1, x25
	mov	x3, x21
	bl	_resample
	b	LBB0_21
LBB0_24:
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_YUVA420P,4,2        ; @AV_PIX_FMT_YUVA420P
	.comm	_HB_FRAME_SUBTITLE,4,2          ; @HB_FRAME_SUBTITLE
	.no_dead_strip	_CropSubtitle
.subsections_via_symbols
