	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function horizontal_frame_pack
_horizontal_frame_pack:                 ## @horizontal_frame_pack
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %r12
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	8(%r12), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_18
## %bb.3:
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %edx
	movl	12(%rax), %eax
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	8(%r12), %rcx
	movslq	(%rcx), %rax
	cmpq	%rax, %rbx
	jge	LBB0_18
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	leal	-1(%rbx), %r13d
	cmpl	$1, %r13d
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movl	8(%r14), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movl	4(%rcx), %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movl	12(%r14), %edi
	movq	8(%r12), %rax
	movl	8(%rax), %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, -120(%rbp)                ## 4-byte Spill
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -120(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$2, %r13d
	setae	%cl
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdx
	movq	_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rdx,%rsi,8), %rsi
	movq	(%rsi), %rdi
	movq	8(%rsi), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	(%rdi,%rbx,8), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movq	_RIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rdx,%rsi,8), %rdx
	movq	(%rdx), %rsi
	movq	8(%rdx), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	(%rsi,%rbx,8), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdx
	movq	16(%rax), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	(%rdx,%rbx,8), %rax
	movl	-116(%rbp), %edx                ## 4-byte Reload
	addq	$4, %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=2
	incl	%r14d
	cmpl	-120(%rbp), %r14d               ## 4-byte Folded Reload
	je	LBB0_17
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	cmpl	$0, -116(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %r12
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%rbx,4), %esi
	imull	%r14d, %esi
	movslq	%esi, %rsi
	movq	-144(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rsi,4), %r8
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%rbx,4), %esi
	imull	%r14d, %esi
	movslq	%esi, %rsi
	movq	-160(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rsi,4), %r9
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%rbx,4), %esi
	imull	%r14d, %esi
	movslq	%esi, %rsi
	movq	-176(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rsi,4), %r10
	xorl	%r11d, %r11d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=3
	movl	(%r9,%r11,4), %eax
	addl	(%r10,%r11,4), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movl	%edi, -4(%r8,%rsi,4)
	movl	(%r9,%r11,4), %eax
	addl	(%r10,%r11,4), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movl	%esi, (%r8,%r11,8)
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=3
	incq	%r11
	cmpl	%r11d, %edx
	je	LBB0_16
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leaq	(%r11,%r11), %rsi
	cmpl	$0, 4(%r12)
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=3
	cmpl	$1, %r13d
	jbe	LBB0_14
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=3
	cmpl	$0, 8(%r12)
	sete	%r15b
	orb	%cl, %r15b
	je	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=3
	movl	(%r10,%r11,4), %eax
	movl	%eax, -4(%r8,%rsi,4)
	movl	(%r9,%r11,4), %eax
	movl	%eax, (%r8,%r11,8)
	jmp	LBB0_15
LBB0_1:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	(%rbx), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -112(%rbp)
	movq	16(%rax), %rax
	movq	%rax, -96(%rbp)
	movq	16(%rbx), %rsi
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movl	24(%rax), %r8d
	movl	16(%rax), %r9d
	movl	20(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-112(%rbp), %r14
	leaq	-80(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_av_image_copy
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	8(%rax), %rax
	movl	16(%rax), %edx
	movb	4(%rcx), %cl
	sarl	%cl, %edx
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movq	(%r12), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	(%r12), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	movq	8(%rcx), %rcx
	movslq	16(%rcx), %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	%rcx, -112(%rbp)
	movslq	%edx, %rcx
	shlq	$2, %rcx
	movq	8(%rax), %rdx
	addq	%rcx, %rdx
	movq	%rdx, -104(%rbp)
	addq	16(%rax), %rcx
	movq	%rcx, -96(%rbp)
	movq	16(%rbx), %rsi
	movq	(%r12), %rax
	movq	8(%rax), %rax
	movq	8(%rax), %rcx
	movl	24(%rax), %r8d
	movl	16(%rax), %r9d
	movl	20(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_av_image_copy
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LEFT,8,3                       ## @LEFT
	.comm	_RIGHT,8,3                      ## @RIGHT
	.no_dead_strip	_horizontal_frame_pack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function horizontal_frame_pack
_horizontal_frame_pack:                 ; @horizontal_frame_pack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	x8, [x0]
	ldr	x21, [x8]
	cbz	w2, LBB0_17
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.2:
	mov	x22, #0
	ldp	w9, w0, [x19, #8]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w20, w9, #1
Lloh3:
	adrp	x23, _LEFT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _LEFT@GOTPAGEOFF]
Lloh5:
	adrp	x24, _RIGHT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _RIGHT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	x8, [x21, #8]
	ldrsw	x9, [x8]
	cmp	x22, x9
	b.ge	LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	sub	w25, w22, #1
	cmp	w25, #1
	b.hi	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19, #8]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w0, w9, #1
	ldr	w1, [x8, #4]
	bl	_AV_CEIL_RSHIFT
	mov	x20, x0
	ldr	w0, [x19, #12]
	ldr	x8, [x21, #8]
	ldr	w1, [x8, #8]
	bl	_AV_CEIL_RSHIFT
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	cmp	w25, #1
	ldr	x11, [x21]
	ldr	x9, [x23]
	ldr	x9, [x11, x9, lsl #3]
	lsl	x14, x22, #3
	ldp	x10, x9, [x9]
	ldr	x10, [x10, x14]
	ldr	x12, [x24]
	ldr	x11, [x11, x12, lsl #3]
	ldp	x12, x11, [x11]
	ldr	x12, [x12, x14]
	cset	w13, hi
	ldr	x15, [x19]
	ldr	x15, [x15, x14]
	ldr	x14, [x19, #16]
	add	x15, x15, #4
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w8, w8, #1
	cmp	w8, w0
	b.eq	LBB0_3
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	lsl	x17, x22, #2
	ldr	w2, [x14, x17]
	ldr	w16, [x11, x17]
	mul	w16, w16, w8
	add	x16, x12, w16, sxtw #2
	ldr	w17, [x9, x17]
	mul	w17, w17, w8
	add	x17, x10, w17, sxtw #2
	ldr	x1, [x21, #8]
	mul	w2, w2, w8
	add	x2, x15, w2, sxtw #2
	mov	x3, x20
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	w4, [x17]
	ldr	w5, [x16]
	add	w4, w5, w4
	cmp	w4, #0
	cinc	w4, w4, lt
	asr	w4, w4, #1
	stur	w4, [x2, #-4]
	ldr	w4, [x17]
	ldr	w5, [x16]
	add	w4, w5, w4
	cmp	w4, #0
	cinc	w4, w4, lt
	asr	w4, w4, #1
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=3
	str	w4, [x2], #8
	add	x17, x17, #4
	add	x16, x16, #4
	subs	w3, w3, #1
	b.eq	LBB0_8
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w4, [x1, #4]
	cbz	w4, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	cmp	w25, #1
	b.ls	LBB0_11
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	w4, [x1, #8]
	cmp	w4, #0
	cset	w4, eq
	orr	w4, w4, w13
	tbz	w4, #0, LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	w4, [x17]
	stur	w4, [x2, #-4]
	ldr	w4, [x16]
	b	LBB0_12
LBB0_17:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	str	x8, [sp, #48]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	str	x8, [sp, #56]
	ldr	x8, [x19]
	ldp	x9, x10, [x8]
	stp	x9, x10, [sp, #8]
	ldr	x8, [x8, #16]
	str	x8, [sp, #24]
	ldr	x1, [x19, #16]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x3, [x8, #8]
	ldp	w6, w4, [x8, #20]
	ldr	w5, [x8, #16]
	add	x0, sp, #8
	add	x2, sp, #40
	bl	_av_image_copy
	ldp	x8, x9, [x21]
	ldr	x8, [x8, #8]
	ldr	w10, [x8, #16]
	ldr	w9, [x9, #4]
	asr	w9, w10, w9
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	str	x8, [sp, #48]
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	str	x8, [sp, #56]
	ldr	x8, [x19]
	ldr	x10, [x21]
	ldr	x10, [x10, #8]
	ldrsw	x10, [x10, #16]
	ldp	x11, x12, [x8]
	add	x10, x11, x10, lsl #2
	sbfiz	x9, x9, #2, #32
	add	x11, x12, x9
	stp	x10, x11, [sp, #8]
	ldr	x8, [x8, #16]
	add	x8, x8, x9
	str	x8, [sp, #24]
	ldr	x1, [x19, #16]
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x3, [x8, #8]
	ldp	w6, w4, [x8, #20]
	ldr	w5, [x8, #16]
	add	x0, sp, #8
	add	x2, sp, #40
	bl	_av_image_copy
LBB0_18:
	ldr	x8, [sp, #72]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	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
	add	sp, sp, #160
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LEFT,8,3                       ; @LEFT
	.comm	_RIGHT,8,3                      ; @RIGHT
	.no_dead_strip	_horizontal_frame_pack
.subsections_via_symbols
