	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rdt_parse_header            ## -- Begin function ff_rdt_parse_header
	.p2align	4, 0x90
_ff_rdt_parse_header:                   ## @ff_rdt_parse_header
	.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
	movl	$-1, %ebx
	cmpl	$5, %esi
	jl	LBB0_25
## %bb.1:
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$255, 4(%r15)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$-128, (%r15)
	je	LBB0_25
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	12(%r15), %rdi
	callq	_AV_RB16
	cltq
	leaq	(%r15,%rax,4), %r15
	subl	%eax, %r14d
	addl	%eax, %r12d
	cmpl	$4, %r14d
	jg	LBB0_2
	jmp	LBB0_25
LBB0_5:
	cmpl	$16, %r14d
	jb	LBB0_25
## %bb.6:
	shll	$3, %r14d
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_init_get_bits
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_skip_bits
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	leaq	-48(%rbp), %rdi
	movl	$16, %esi
	callq	_skip_bits
LBB0_8:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_skip_bits
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_get_bits1
	xorl	%r15d, %r15d
	testl	%eax, %eax
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_get_bits_long
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	cmpl	$31, -52(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.9:
	leaq	-48(%rbp), %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
LBB0_10:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	movq	16(%rbp), %rbx
	je	LBB0_12
## %bb.11:
	leaq	-48(%rbp), %rdi
	movl	$16, %esi
	callq	_skip_bits
LBB0_12:
	cmpl	$31, %r14d
	jne	LBB0_14
## %bb.13:
	leaq	-48(%rbp), %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	%eax, %r14d
LBB0_14:
	testq	%r13, %r13
	je	LBB0_16
## %bb.15:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13)
LBB0_16:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_18:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	%r14d, (%rax)
LBB0_20:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %r15b
	movl	%r15d, (%rax)
LBB0_22:
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.23:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
LBB0_24:
	leaq	-48(%rbp), %rdi
	callq	_get_bits_count
	movl	%eax, %ebx
	sarl	$3, %ebx
	addl	%r12d, %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rdt_parse_header            ; -- Begin function ff_rdt_parse_header
	.p2align	2
_ff_rdt_parse_header:                   ; @ff_rdt_parse_header
	.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
	cmp	w1, #5
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x25, x1
	mov	x24, x0
	mov	w26, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24, #4]
	cmp	w8, #255
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x24]
	tbz	w8, #7, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x24, #12
	bl	_AV_RB16
	add	x24, x24, w0, sxtw #2
	sub	w25, w25, w0
	add	w26, w0, w26
	cmp	w25, #4
	b.gt	LBB0_2
	b	LBB0_6
LBB0_5:
	cmp	w25, #16
	b.hs	LBB0_8
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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
LBB0_8:
	lsl	w2, w25, #3
	add	x0, sp, #12
	mov	x1, x24
	bl	_init_get_bits
	add	x0, sp, #12
	bl	_get_bits1
	mov	x27, x0
	add	x0, sp, #12
	bl	_get_bits1
	mov	x24, x0
	add	x0, sp, #12
	mov	w1, #5
	bl	_get_bits
	mov	x25, x0
	add	x0, sp, #12
	mov	w1, #1
	bl	_skip_bits
	add	x0, sp, #12
	mov	w1, #16
	bl	_get_bits
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	cbz	w27, LBB0_10
; %bb.9:
	add	x0, sp, #12
	mov	w1, #16
	bl	_skip_bits
LBB0_10:
	add	x0, sp, #12
	mov	w1, #2
	bl	_skip_bits
	add	x0, sp, #12
	mov	w1, #5
	bl	_get_bits
	mov	x28, x0
	add	x0, sp, #12
	bl	_get_bits1
	cmp	w0, #0
	cset	w8, eq
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	add	x0, sp, #12
	mov	w1, #32
	bl	_get_bits_long
	mov	x27, x0
	cmp	w25, #31
	b.ne	LBB0_12
; %bb.11:
	add	x0, sp, #12
	mov	w1, #16
	bl	_get_bits
	mov	x25, x0
LBB0_12:
	cbz	w24, LBB0_14
; %bb.13:
	add	x0, sp, #12
	mov	w1, #16
	bl	_skip_bits
LBB0_14:
	cmp	w28, #31
	b.ne	LBB0_16
; %bb.15:
	add	x0, sp, #12
	mov	w1, #16
	bl	_get_bits
	mov	x28, x0
LBB0_16:
	cbz	x23, LBB0_18
; %bb.17:
	str	w25, [x23]
LBB0_18:
	cbz	x22, LBB0_20
; %bb.19:
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	str	w8, [x22]
LBB0_20:
	cbz	x21, LBB0_22
; %bb.21:
	str	w28, [x21]
LBB0_22:
	cbz	x20, LBB0_24
; %bb.23:
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	str	w8, [x20]
LBB0_24:
	cbz	x19, LBB0_26
; %bb.25:
	str	w27, [x19]
LBB0_26:
	add	x0, sp, #12
	bl	_get_bits_count
	add	w0, w26, w0, asr #3
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
