	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decimate_frame
_decimate_frame:                        ## @decimate_frame
	.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	%rdx, %r14
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rsi
	movq	(%rsi), %rdi
	testq	%rdi, %rdi
	jle	LBB0_2
## %bb.1:
	movslq	8(%rsi), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rdi
	jg	LBB0_4
	jmp	LBB0_15
LBB0_2:
	jns	LBB0_4
## %bb.3:
	movslq	8(%rsi), %rcx
	decq	%rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rdi
	jl	LBB0_15
LBB0_4:
	movq	16(%r14), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.5:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%r13,8), %r15
	testq	%r15, %r15
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	-1(%r13), %eax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, %r12d
	movl	$0, %esi
	cmpl	$1, %eax
	ja	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %r12d
	movl	16(%rax), %esi
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	16(%rcx), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax,%r13,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r14), %edi
	movl	%r12d, %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%r15, %r8
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_diff_planes
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r14), %rax
	movq	8(%rax,%r13,8), %rbx
	incq	%r13
	testq	%rbx, %rbx
	jne	LBB0_6
LBB0_13:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_14:
	xorl	%eax, %eax
	callq	_emms_c
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decimate_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decimate_frame
_decimate_frame:                        ; @decimate_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x28, [x0]
	ldr	x8, [x28]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	ldrsw	x9, [x28, #8]
	cmp	x8, x9
	b.gt	LBB0_5
LBB0_2:
	mov	w19, #0
	b	LBB0_16
LBB0_3:
	tbz	x8, #63, LBB0_5
; %bb.4:
	ldrsw	x9, [x28, #8]
	sub	x9, x9, #1
	cmp	x8, x9
	b.lt	LBB0_2
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x22, [x8]
	cbz	x22, LBB0_13
; %bb.6:
	mov	x21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x23, [x8, x21, lsl #3]
	cbz	x23, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w21, #1
	cmp	w8, #1
	b.hi	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	w24, w1, [x28, #12]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w24, #0
	mov	w1, #0
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	x8, x21, #3
	ldp	x10, x9, [x20, #8]
	ldr	x25, [x9, x8]
	ldr	x26, [x10, x8]
	ldr	w0, [x19, #4]
	bl	_AV_CEIL_RSHIFT
	mov	x27, x0
	ldr	w0, [x19]
	mov	x1, x24
	bl	_AV_CEIL_RSHIFT
	mov	x6, x0
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x25
	mov	x2, x26
	mov	x3, x22
	mov	x4, x23
	mov	x5, x27
	bl	_diff_planes
	cbnz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, x21, lsl #3
	add	x21, x21, #1
	ldr	x22, [x8, #8]
	cbnz	x22, LBB0_7
LBB0_13:
	mov	w19, #1
	b	LBB0_15
LBB0_14:
	mov	w19, #0
LBB0_15:
	bl	_emms_c
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decimate_frame
.subsections_via_symbols
