	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avpriv_split_xiph_headers      ## -- Begin function avpriv_split_xiph_headers
	.p2align	4, 0x90
_avpriv_split_xiph_headers:             ## @avpriv_split_xiph_headers
	.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
	movq	%r8, %r15
	movq	%rcx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	cmpl	$6, %esi
	jl	LBB0_6
## %bb.1:
	movl	%edx, %r13d
	movq	%rbx, %rdi
	callq	_AV_RB16
	cmpl	%r13d, %eax
	jne	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	callq	_AV_RB16
	movl	%eax, %r13d
	movl	%eax, (%r15)
	addq	$8, %rbx
	movq	%rbx, (%r14)
	movl	%r12d, %eax
	subl	%r13d, %eax
	cmpl	$6, %eax
	jl	LBB0_5
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movslq	%r13d, %r14
	leaq	(%rbx,%r14,4), %rdi
	addl	$6, %r13d
	callq	_AV_RB16
	movl	%eax, 4(%r15)
	leaq	(%rbx,%r14,4), %rbx
	addq	$8, %rbx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, 8(%rdx)
	movl	%r12d, %ecx
	subl	%eax, %ecx
	cmpl	%ecx, %r13d
	jg	LBB0_5
## %bb.4:
	movslq	%eax, %r14
	leaq	(%rbx,%r14,4), %rdi
	addl	%eax, %r13d
	callq	_AV_RB16
	movl	%eax, 8(%r15)
	leaq	(%rbx,%r14,4), %rcx
	addq	$8, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, 16(%rdx)
	subl	%eax, %r12d
	xorl	%eax, %eax
	cmpl	%r12d, %r13d
	jle	LBB0_19
LBB0_5:
	movl	$-1, %eax
	jmp	LBB0_19
LBB0_6:
	movl	$-1, %eax
	cmpl	$3, %r12d
	jl	LBB0_19
LBB0_7:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	$-511, %ecx                     ## imm = 0xFE01
	addl	(%rax), %ecx
	movl	$-1, %eax
	cmpl	%r12d, %ecx
	jle	LBB0_19
## %bb.8:
	cmpl	$2, (%rbx)
	jne	LBB0_19
## %bb.9:
	addq	$4, %rbx
	movl	$0, (%r15)
	movl	$3, %ecx
	xorl	%edx, %edx
	cmpl	$4, %r12d
	jb	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$255, (%rbx)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	addl	$255, %edx
	movl	%edx, (%r15)
	addl	$256, %ecx                      ## imm = 0x100
	addq	$4, %rbx
	cmpl	%r12d, %ecx
	jl	LBB0_10
LBB0_12:
	movslq	(%rbx), %rsi
	movslq	%edx, %rdx
	addq	%rsi, %rdx
	movl	%edx, (%r15)
	addl	(%rbx), %ecx
	cmpl	%r12d, %ecx
	jg	LBB0_19
## %bb.13:
	addq	$4, %rbx
	movl	$0, 4(%r15)
	xorl	%esi, %esi
	cmpl	%r12d, %ecx
	jge	LBB0_17
## %bb.14:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$255, (%rbx)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	addl	$255, %esi
	movl	%esi, 4(%r15)
	addl	$256, %ecx                      ## imm = 0x100
	addq	$4, %rbx
	cmpl	%r12d, %ecx
	jl	LBB0_15
LBB0_17:
	movslq	(%rbx), %rdi
	movslq	%esi, %rsi
	addq	%rdi, %rsi
	movl	%esi, 4(%r15)
	addl	(%rbx), %ecx
	cmpl	%r12d, %ecx
	jg	LBB0_19
## %bb.18:
	leaq	4(%rbx), %rax
	subl	%ecx, %r12d
	movl	%r12d, 8(%r15)
	movq	%rax, (%r14)
	leaq	(%rbx,%rdx,4), %rax
	addq	$4, %rax
	movq	%rax, 8(%r14)
	leaq	(%rax,%rsi,4), %rax
	movq	%rax, 16(%r14)
	xorl	%eax, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avpriv_split_xiph_headers      ; -- Begin function avpriv_split_xiph_headers
	.p2align	2
_avpriv_split_xiph_headers:             ; @avpriv_split_xiph_headers
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x4
	mov	x19, x3
	mov	x21, x1
	mov	x22, x0
	cmp	w1, #6
	b.lt	LBB0_6
; %bb.1:
	mov	x23, x2
	mov	x0, x22
	bl	_AV_RB16
	cmp	w0, w23
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x22
	bl	_AV_RB16
	str	w0, [x20]
	add	x8, x22, #8
	str	x8, [x19]
	sub	w9, w21, w0
	cmp	w9, #6
	b.lt	LBB0_21
; %bb.3:
	add	x22, x8, w0, sxtw #2
	add	w23, w0, #6
	mov	x0, x22
	bl	_AV_RB16
	str	w0, [x20, #4]
	add	x8, x22, #8
	str	x8, [x19, #8]
	sub	w9, w21, w0
	cmp	w23, w9
	b.gt	LBB0_21
; %bb.4:
	add	x22, x8, w0, sxtw #2
	add	w23, w0, w23
	mov	x0, x22
	bl	_AV_RB16
	str	w0, [x20, #8]
	add	x8, x22, #8
	str	x8, [x19, #16]
	sub	w8, w21, w0
	cmp	w23, w8
	b.gt	LBB0_21
; %bb.5:
	mov	w0, #0
	b	LBB0_22
LBB0_6:
	cmp	w21, #3
	b.lt	LBB0_21
LBB0_7:
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #511
	cmp	w8, w21
	b.le	LBB0_21
; %bb.8:
	ldr	w8, [x22]
	cmp	w8, #2
	b.ne	LBB0_21
; %bb.9:
	add	x9, x22, #4
	str	wzr, [x20]
	cmp	w21, #4
	b.lo	LBB0_13
; %bb.10:
	mov	w8, #0
	mov	w10, #3
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	cmp	w11, #255
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w8, w8, #255
	str	w8, [x20]
	add	w10, w10, #256
	add	x9, x9, #4
	cmp	w10, w21
	b.lt	LBB0_11
	b	LBB0_14
LBB0_13:
	mov	w8, #0
	mov	w10, #3
LBB0_14:
	ldr	w11, [x9]
	add	w8, w8, w11
	str	w8, [x20]
	ldr	w11, [x9]
	add	w10, w11, w10
	cmp	w10, w21
	b.gt	LBB0_21
; %bb.15:
	add	x9, x9, #4
	str	wzr, [x20, #4]
	cmp	w10, w21
	b.ge	LBB0_19
; %bb.16:
	mov	w11, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9]
	cmp	w12, #255
	b.ne	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	w11, w11, #255
	str	w11, [x20, #4]
	add	w10, w10, #256
	add	x9, x9, #4
	cmp	w10, w21
	b.lt	LBB0_17
	b	LBB0_20
LBB0_19:
	mov	w11, #0
LBB0_20:
	ldr	w12, [x9]
	add	w11, w11, w12
	str	w11, [x20, #4]
	ldr	w12, [x9]
	add	w10, w12, w10
	cmp	w10, w21
	b.le	LBB0_23
LBB0_21:
	mov	w0, #-1
LBB0_22:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_23:
	mov	w0, #0
	add	x9, x9, #4
	sub	w10, w21, w10
	str	w10, [x20, #8]
	add	x8, x9, w8, sxtw #2
	stp	x9, x8, [x19]
	add	x8, x8, w11, sxtw #2
	str	x8, [x19, #16]
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
.subsections_via_symbols
