	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_blocks
_encode_blocks:                         ## @encode_blocks
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	(%rdi), %r13d
	movl	4(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %rax
	movq	_FF_ME_ITER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.2:
	cmpl	$0, 28(%r12)
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_iterative_me
LBB0_4:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_15
## %bb.5:
	leal	(%r13,%r13,2), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%r15d
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	je	LBB0_15
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	20(%r12), %eax
	subl	24(%r12), %eax
	movq	_MB_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	imull	%ecx, %edx
	imull	%ecx, %edx
	cmpl	%edx, %eax
	jl	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_encode_q_branch2
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	incl	%ebx
	cmpl	%ebx, %r13d
	je	LBB0_14
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_FF_ME_ITER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 8(%r12)
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_encode_q_branch
	jmp	LBB0_13
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	16(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_log                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_ME_ITER,8,3                 ## @FF_ME_ITER
	.comm	_MB_SIZE,4,2                    ## @MB_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encoded frame too large\n"

	.no_dead_strip	_encode_blocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_blocks
_encode_blocks:                         ; @encode_blocks
	.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
	mov	x20, x1
	mov	x19, x0
	ldp	w23, w24, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x25, _FF_ME_ITER@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FF_ME_ITER@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	cbz	w20, LBB0_4
; %bb.2:
	ldr	w8, [x19, #28]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_iterative_me
LBB0_4:
	cmp	w24, #1
	b.lt	LBB0_15
; %bb.5:
	mov	w21, #0
	add	w26, w23, w23, lsl #1
Lloh2:
	adrp	x27, _MB_SIZE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MB_SIZE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w21, w21, #1
	cmp	w21, w24
	b.eq	LBB0_15
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldp	w8, w9, [x19, #20]
	ldr	w10, [x27]
	mul	w11, w26, w10
	mul	w10, w11, w10
	sub	w8, w8, w9
	cmp	w8, w10
	b.lt	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w23, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w22, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	mov	x3, x21
	bl	_encode_q_branch2
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	w22, w22, #1
	cmp	w23, w22
	b.eq	LBB0_6
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w20, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	mov	x3, x21
	bl	_encode_q_branch
	b	LBB0_11
LBB0_15:
	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
LBB0_16:
	ldr	w0, [x19, #16]
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	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
	b	_av_log
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_ME_ITER,8,3                 ; @FF_ME_ITER
	.comm	_MB_SIZE,4,2                    ; @MB_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encoded frame too large\n"

	.no_dead_strip	_encode_blocks
.subsections_via_symbols
