	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function _cx18_process_idx_data
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
__cx18_process_idx_data:                ## @_cx18_process_idx_data
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, -80(%rbp)
	movq	_V4L2_ENC_IDX_FRAME_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_V4L2_ENC_IDX_FRAME_P@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	$-1, -68(%rbp)
	movq	_V4L2_ENC_IDX_FRAME_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	$-1, -60(%rbp)
	movl	$-1, -52(%rbp)
	movl	(%rdi), %r13d
	movl	4(%rdi), %edx
	subl	%edx, %r13d
	xorl	%eax, %eax
	cmpl	$24, %r13d
	jb	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movslq	%edx, %rcx
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rdx
	movq	(%rsi), %rax
	leaq	(%rax,%rax,2), %r15
	shlq	$3, %r15
	addq	8(%rsi), %r15
	leaq	(%rdx,%rcx,4), %r14
	addq	$20, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_V4L2_ENC_IDX_ENTRIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14,%rbx), %edi
	callq	_le32_to_cpu
	movl	-4(%r14,%rbx), %edi
	callq	_le32_to_cpu
	movl	-8(%r14,%rbx), %edi
	callq	_le32_to_cpu
	movl	-12(%r14,%rbx), %edi
	callq	_le32_to_cpu
	movl	-16(%r14,%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, 8(%r15)
	movl	-20(%r14,%rbx), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	andl	$7, %eax
	movl	-80(%rbp,%rax,4), %eax
	movl	%eax, 12(%r15)
	movq	16(%r15), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	(%r12), %rax
	incq	%rax
	movq	%rax, (%r12)
	leaq	(%rax,%rax,2), %r15
	shlq	$3, %r15
	addq	8(%r12), %r15
	addl	$-24, %r13d
	addq	$24, %rbx
	cmpl	$23, %r13d
	ja	LBB0_3
LBB0_5:
	xorl	%eax, %eax
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	4(%rdi), %edx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	leal	-1(%r13), %ecx
	cmpl	$23, %ecx
	cmovbl	%r13d, %eax
	addl	%ebx, %eax
	addl	%eax, %edx
	movl	%edx, 4(%rdi)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_ENC_IDX_FRAME_I,4,2       ## @V4L2_ENC_IDX_FRAME_I
	.comm	_V4L2_ENC_IDX_FRAME_P,4,2       ## @V4L2_ENC_IDX_FRAME_P
	.comm	_V4L2_ENC_IDX_FRAME_B,4,2       ## @V4L2_ENC_IDX_FRAME_B
	.comm	_V4L2_ENC_IDX_ENTRIES,8,3       ## @V4L2_ENC_IDX_ENTRIES
	.no_dead_strip	__cx18_process_idx_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _cx18_process_idx_data
__cx18_process_idx_data:                ; @_cx18_process_idx_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	mov	w8, #-1
Lloh3:
	adrp	x9, _V4L2_ENC_IDX_FRAME_I@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_ENC_IDX_FRAME_I@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh6:
	adrp	x9, _V4L2_ENC_IDX_FRAME_P@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_ENC_IDX_FRAME_P@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
Lloh9:
	adrp	x9, _V4L2_ENC_IDX_FRAME_B@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_ENC_IDX_FRAME_B@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [sp, #24]
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [sp, #28]
	str	w8, [sp, #36]
	ldp	w9, w8, [x0]
	sub	w21, w9, w8
	cmp	w21, #24
	b.lo	LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x22, #0
	sxtw	x8, w8
	ldr	x9, [x19, #8]
	add	x23, x9, x8, lsl #2
	ldp	x8, x9, [x1]
	mov	w24, #24
	madd	x27, x8, x24, x9
Lloh12:
	adrp	x25, _V4L2_ENC_IDX_ENTRIES@GOTPAGE
Lloh13:
	ldr	x25, [x25, _V4L2_ENC_IDX_ENTRIES@GOTPAGEOFF]
	add	x26, sp, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x28, x23, x22
	ldr	w0, [x28, #20]
	bl	_le32_to_cpu
	ldr	w0, [x28, #16]
	bl	_le32_to_cpu
	ldr	w0, [x28, #12]
	bl	_le32_to_cpu
	ldr	w0, [x28, #8]
	bl	_le32_to_cpu
	ldr	w0, [x28, #4]
	bl	_le32_to_cpu
	str	w0, [x27, #8]
	ldr	w0, [x28]
	bl	_le32_to_cpu
	and	w8, w0, #0x7
	ldr	w8, [x26, w8, uxtw #2]
	str	w8, [x27, #12]
	ldr	x8, [x27, #16]
	stp	xzr, xzr, [x8]
	ldp	x8, x9, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	madd	x27, x8, x24, x9
	sub	w21, w21, #24
	add	x22, x22, #24
	cmp	w21, #23
	b.hi	LBB0_2
LBB0_4:
	ldr	w8, [x19, #4]
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	sub	w9, w21, #1
	cmp	w9, #23
	csel	w9, w21, wzr, lo
	add	w0, w9, w22
	add	w8, w8, w0
	str	w8, [x19, #4]
	ldr	x8, [sp, #40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_ENC_IDX_FRAME_I,4,2       ; @V4L2_ENC_IDX_FRAME_I
	.comm	_V4L2_ENC_IDX_FRAME_P,4,2       ; @V4L2_ENC_IDX_FRAME_P
	.comm	_V4L2_ENC_IDX_FRAME_B,4,2       ; @V4L2_ENC_IDX_FRAME_B
	.comm	_V4L2_ENC_IDX_ENTRIES,8,3       ; @V4L2_ENC_IDX_ENTRIES
	.no_dead_strip	__cx18_process_idx_data
.subsections_via_symbols
