	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sub2video_copy_rect
_sub2video_copy_rect:                   ## @sub2video_copy_rect
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %r11d
	movq	(%r8), %rax
	movq	_SUBTITLE_BITMAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.1:
	movl	%edx, %r10d
	movl	8(%r8), %ecx
	movl	12(%r8), %r9d
	testl	%ecx, %ecx
	js	LBB0_5
## %bb.2:
	leal	(%r9,%rcx), %eax
	cmpl	%r10d, %eax
	jg	LBB0_5
## %bb.3:
	movl	16(%r8), %r14d
	testl	%r14d, %r14d
	js	LBB0_5
## %bb.4:
	movl	20(%r8), %ebx
	leal	(%rbx,%r14), %eax
	cmpl	%r11d, %eax
	jle	LBB0_6
LBB0_5:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r8), %eax
	movl	20(%r8), %ebx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%eax, %r8d
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r10
	pushq	%rbx
	callq	_av_log
	addq	$32, %rsp
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_av_log                         ## TAILCALL
LBB0_6:
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.7:
	movq	32(%r8), %rdx
	movq	8(%rdx), %rax
	movq	(%rdx), %rdx
	imull	%esi, %r14d
	leal	(%r14,%rcx,4), %ecx
	movslq	%ecx, %rcx
	leaq	(%rdi,%rcx,4), %rcx
	movslq	%esi, %r11
	movq	24(%r8), %r10
	shlq	$2, %r11
	xorl	%edi, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movslq	(%r10), %rsi
	leaq	(%rdx,%rsi,4), %rdx
	incl	%edi
	addq	%r11, %rcx
	cmpl	%ebx, %edi
	jge	LBB0_13
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testl	%r9d, %r9d
	jle	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%rdx,%rbx,4), %rsi
	movl	(%rax,%rsi,4), %esi
	movl	%esi, (%rcx,%rbx,4)
	movl	12(%r8), %r9d
	incq	%rbx
	cmpl	%r9d, %ebx
	jl	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	20(%r8), %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_SUBTITLE_BITMAP,8,3            ## @SUBTITLE_BITMAP
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sub2video: non-bitmap subtitle\n"

L_.str.1:                               ## @.str.1
	.asciz	"sub2video: rectangle (%d %d %d %d) overflowing %d %d\n"

	.no_dead_strip	_sub2video_copy_rect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sub2video_copy_rect
_sub2video_copy_rect:                   ; @sub2video_copy_rect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w2 killed $w2 def $x2
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x4]
Lloh0:
	adrp	x9, _SUBTITLE_BITMAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUBTITLE_BITMAP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	ldp	w14, w8, [x4, #8]
	tbnz	w14, #31, LBB0_5
; %bb.2:
	add	w9, w8, w14
	cmp	w9, w2
	b.gt	LBB0_5
; %bb.3:
	ldr	w15, [x4, #16]
	tbnz	w15, #31, LBB0_5
; %bb.4:
	ldr	w10, [x4, #20]
	add	w9, w10, w15
	cmp	w9, w3
	b.le	LBB0_8
LBB0_5:
Lloh3:
	adrp	x9, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldp	w9, w10, [x4, #16]
	stp	x2, x3, [sp, #32]
	stp	x8, x10, [sp, #16]
	stp	x14, x9, [sp]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_av_log
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
Lloh8:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_av_log
LBB0_8:
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.9:
	mov	w9, #0
	ldp	x11, x13, [x4, #24]
	ldp	x13, x12, [x13]
	mul	w15, w15, w1
	add	w14, w15, w14, lsl #2
	add	x14, x0, w14, sxtw #2
	sbfiz	x15, x1, #2, #32
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldrsw	x16, [x11]
	add	x13, x13, x16, lsl #2
	add	w9, w9, #1
	add	x14, x14, x15
	cmp	w9, w10
	b.ge	LBB0_6
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x10, #0
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x8, x10, #2
	ldrsw	x16, [x13, x8]
	ldr	w16, [x12, x16, lsl #2]
	str	w16, [x14, x8]
	ldr	w8, [x4, #12]
	add	x10, x10, #1
	cmp	w10, w8
	b.lt	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w10, [x4, #20]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SUBTITLE_BITMAP,8,3            ; @SUBTITLE_BITMAP
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sub2video: non-bitmap subtitle\n"

l_.str.1:                               ; @.str.1
	.asciz	"sub2video: rectangle (%d %d %d %d) overflowing %d %d\n"

	.no_dead_strip	_sub2video_copy_rect
.subsections_via_symbols
