	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prores_encode_picture
_prores_encode_picture:                 ## @prores_encode_picture
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rdx, %r12
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	16(%rdi), %rax
	movl	(%rdi), %edx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	addl	$15, %edx
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	cmpl	$0, (%rax)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r9, -128(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movl	4(%rdi), %eax
	cmpl	$1, %r9d
	sbbl	$-1, %eax
	movl	%eax, %r15d
	shrl	$31, %r15d
	addl	%eax, %r15d
	sarl	%r15d
	jmp	LBB0_3
LBB0_1:
	movl	4(%rdi), %r15d
LBB0_3:
	sarl	$4, %edx
	movl	%edx, %ebx
	leal	15(%r15), %r13d
	sarl	$4, %r13d
	movq	_DEFAULT_SLICE_MB_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_av_log2
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	%eax, %r10d
	leal	1(%r10), %r9d
	movl	%r9d, %r8d
	andl	$3, %r8d
	cmpl	$3, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %r11d
	jae	LBB0_7
## %bb.6:
	xorl	%r14d, %r14d
	movl	%r11d, %esi
	jmp	LBB0_9
LBB0_4:
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %r11d
	jmp	LBB0_11
LBB0_7:
	andl	$-4, %r9d
	xorl	%r14d, %r14d
	movl	%r11d, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %ebx
	movl	%r10d, %ecx
	sarl	%cl, %ebx
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	andl	%esi, %edx
	leal	-1(%r10), %ecx
	movl	%edx, %eax
	sarl	%cl, %eax
	movl	$-1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	addl	%r14d, %ebx
	addl	%ebx, %eax
	notl	%esi
	andl	%edx, %esi
	leal	-2(%r10), %ecx
	movl	%esi, %edx
	sarl	%cl, %edx
	movl	$-1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	addl	%eax, %edx
	notl	%ebx
	andl	%esi, %ebx
	leal	-3(%r10), %ecx
	movl	%ebx, %r14d
	sarl	%cl, %r14d
	addl	%edx, %r14d
	movl	$-1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	notl	%esi
	andl	%ebx, %esi
	addl	$-4, %r10d
	addl	$-4, %r9d
	jne	LBB0_8
LBB0_9:
	testl	%r8d, %r8d
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, %edx
	movl	%r10d, %ecx
	sarl	%cl, %edx
	addl	%edx, %r14d
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	andl	%edx, %esi
	decl	%r10d
	decl	%r8d
	jne	LBB0_10
LBB0_11:
	movq	_qp_start_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rdi), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -76(%rbp)
	leaq	32(%r12), %rax
	movq	%rax, -136(%rbp)
	imull	%r13d, %r14d
	leal	(%r14,%r14), %eax
	cltq
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rax,4), %r9
	addq	$32, %r9
	testl	%r15d, %r15d
	jle	LBB0_20
## %bb.12:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	addl	$-8, %r12d
	cmpl	$2, %r13d
	movl	$1, %eax
	cmovgel	%r13d, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	leal	-1(%r13), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_20
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##       Child Loop BB0_16 Depth 3
	cmpl	$0, -104(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_DEFAULT_SLICE_MB_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_16 Depth 3
	movl	%r11d, %eax
	subl	%edx, %eax
	movl	%r13d, %ecx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_13 Depth=1
                                        ##     Parent Loop BB0_15 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%ecx, %r13d
	sarl	%ecx
	cmpl	%r13d, %eax
	jl	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	-72(%rbp), %ecx                 ## 4-byte Folded Reload
	sete	%al
	testb	$15, 4(%rdi)
	setne	%bl
	andb	%al, %bl
	testb	$15, (%rdi)
	setne	%sil
	leal	(%rdx,%r13), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	cmpl	%r11d, %eax
	sete	%al
	andb	%sil, %al
	orb	%bl, %al
	movzbl	%al, %r10d
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	-120(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r13d, %r8d
	movq	%r9, %rbx
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	pushq	%rax
	leaq	-76(%rbp), %rax
	pushq	%rax
	pushq	%r10
	pushq	%r12
	movl	%r11d, %r14d
	callq	_encode_slice
	addq	$48, %rsp
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=2
	leaq	-136(%rbp), %rdi
	movl	%r15d, %esi
	callq	_bytestream_put_be16
	movl	%r15d, %eax
	leaq	(%rbx,%rax,4), %r9
	subl	%r15d, %r12d
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %edx
	cmpl	%eax, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %r11d
	jg	LBB0_15
	jmp	LBB0_19
LBB0_20:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	$64, (%rbx)
	leaq	4(%rbx), %rdi
	subq	%rbx, %r9
	shrq	$2, %r9
	movl	%r9d, %esi
	movq	%r9, %r15
	callq	_AV_WB32
	leaq	20(%rbx), %rdi
	movl	%r14d, %esi
	callq	_AV_WB16
	movq	_DEFAULT_SLICE_MB_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_av_log2
	shll	$4, %eax
	movl	%eax, 28(%rbx)
                                        ## kill: def $r15d killed $r15d killed $r15
LBB0_21:
	movl	%r15d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_SLICE_MB_WIDTH,4,2     ## @DEFAULT_SLICE_MB_WIDTH
	.comm	_qp_start_table,8,3             ## @qp_start_table
	.no_dead_strip	_prores_encode_picture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prores_encode_picture
_prores_encode_picture:                 ; @prores_encode_picture
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x28, x5
	mov	x26, x3
	mov	x20, x2
	mov	x22, x0
	ldr	x9, [x0, #16]
	ldr	w8, [x0]
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	add	w8, w8, #15
	stp	x9, x1, [sp, #48]               ; 16-byte Folded Spill
	ldr	w9, [x9]
	cbz	w9, LBB0_2
; %bb.1:
	cmp	w28, #0
	ldr	w9, [x22, #4]
	cinc	w9, w9, ne
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w21, w9, #1
	b	LBB0_3
LBB0_2:
	ldr	w21, [x22, #4]
LBB0_3:
	asr	w19, w8, #4
	add	w8, w21, #15
	asr	w27, w8, #4
Lloh0:
	adrp	x8, _DEFAULT_SLICE_MB_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_SLICE_MB_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_av_log2
	mov	w8, #0
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	w9, #-1
	mov	x10, x19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	asr	w11, w10, w0
	add	w8, w11, w8
	lsl	w11, w9, w0
	bic	w10, w10, w11
	sub	w0, w0, #1
	cmn	w0, #1
	b.ne	LBB0_5
LBB0_6:
Lloh3:
	adrp	x9, _qp_start_table@GOTPAGE
Lloh4:
	ldr	x9, [x9, _qp_start_table@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x10, [x22, #8]
	ldr	w9, [x9, x10, lsl #2]
	str	w9, [sp, #76]
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	add	x9, x20, #32
	str	x9, [sp, #64]
	mul	w8, w8, w27
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	lsl	w8, w8, #1
	add	x24, x9, w8, sxtw #2
	cmp	w21, #1
	b.lt	LBB0_15
; %bb.7:
	mov	w25, #0
	sub	w26, w26, #8
	subs	w21, w27, #1
	csinc	w8, w27, wzr, gt
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w25, w25, #1
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	cmp	w25, w8
	b.eq	LBB0_15
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w2, #0
Lloh6:
	adrp	x8, _DEFAULT_SLICE_MB_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEFAULT_SLICE_MB_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	sub	w8, w19, w2
	mov	x9, x27
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x27, x9
	asr	w9, w9, #1
	cmp	w8, w27
	b.lt	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	ldp	w9, w8, [x22]
	tst	w8, #0xf
	ccmp	w25, w21, #0, ne
	cset	w8, eq
	tst	w9, #0xf
	add	w20, w27, w2
	ccmp	w20, w19, #0, ne
	cset	w9, eq
	orr	w7, w8, w9
	ldp	x8, x1, [sp, #48]               ; 16-byte Folded Reload
	ldr	w8, [x8]
	mov	x23, x28
	stp	w8, w28, [sp, #8]
	add	x8, sp, #76
	str	x8, [sp]
	mov	x0, x22
	mov	x3, x25
	mov	x4, x27
	mov	x5, x24
	mov	x6, x26
	bl	_encode_slice
	mov	x28, x0
	tbnz	w0, #31, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x0, sp, #64
	mov	x1, x28
	bl	_bytestream_put_be16
	add	x24, x24, w28, uxtw #2
	sub	w26, w26, w28
	mov	x2, x20
	cmp	w19, w20
	mov	x28, x23
	b.gt	LBB0_11
	b	LBB0_8
LBB0_15:
	mov	w8, #64
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	str	w8, [x19]
	add	x0, x19, #4
	sub	x8, x24, x19
	lsr	x28, x8, #2
	mov	x1, x28
	bl	_AV_WB32
	add	x0, x19, #20
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	bl	_AV_WB16
Lloh9:
	adrp	x8, _DEFAULT_SLICE_MB_WIDTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEFAULT_SLICE_MB_WIDTH@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_av_log2
	lsl	w8, w0, #4
	str	w8, [x19, #28]
LBB0_16:
	mov	x0, x28
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_SLICE_MB_WIDTH,4,2     ; @DEFAULT_SLICE_MB_WIDTH
	.comm	_qp_start_table,8,3             ; @qp_start_table
	.no_dead_strip	_prores_encode_picture
.subsections_via_symbols
