	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h264_mp4toannexb_filter
_h264_mp4toannexb_filter:               ## @h264_mp4toannexb_filter
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	leaq	-72(%rbp), %rsi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_ff_bsf_get_packet
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	cmpl	$0, 24(%rbx)
	movq	-72(%rbp), %rsi
	je	LBB0_46
## %bb.2:
	movq	%rbx, %rax
	movq	(%rsi), %rbx
	movslq	8(%rsi), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rcx,4), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %r12d
	jmp	LBB0_52
LBB0_4:                                 ##   in Loop: Header=BB0_8 Depth=1
	movslq	20(%rdi), %rax
	cmpq	$-1, %rax
	je	LBB0_45
## %bb.5:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rax, %rsi
	shlq	$2, %rsi
	addq	8(%rcx), %rsi
	movl	(%rcx), %edx
	subl	%eax, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rcx
	movl	%r15d, %r8d
	movl	$1, %r9d
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	callq	_alloc_and_copy
	movl	%eax, %r12d
	testl	%eax, %eax
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	js	LBB0_50
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%r14,%rcx,4), %rbx
	addl	%r15d, %r13d
	addl	(%rax), %r13d
	cmpl	-88(%rbp), %r13d                ## 4-byte Folded Reload
	jge	LBB0_47
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %r12d
	movslq	(%rdi), %rax
	leaq	(%rbx,%rax,4), %r14
	cmpq	-80(%rbp), %r14                 ## 8-byte Folded Reload
	ja	LBB0_48
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %edx
	testl	%edx, %edx
	jle	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ecx, %ecx
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	andl	$-4, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-16(%rbx,%rcx,4), %edx
	movl	-12(%rbx,%rcx,4), %r15d
	shll	$16, %edx
	shll	$8, %r15d
	orl	%edx, %r15d
	orl	-8(%rbx,%rcx,4), %r15d
	shll	$8, %r15d
	orl	-4(%rbx,%rcx,4), %r15d
	testq	%rax, %rax
	je	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%rbx,%rcx,4), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	shll	$8, %r15d
	orl	(%rcx,%rdx,4), %r15d
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%r15d, %r15d
	js	LBB0_48
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	%r15d, %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	subq	%r14, %rax
	sarq	$2, %rax
	cmpq	%rcx, %rax
	jl	LBB0_48
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	(%r14), %ebx
	andl	$31, %ebx
	movq	_H264_NAL_SPS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%rdi)
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_H264_NAL_PPS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_8 Depth=1
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%rdi)
	cmpl	$0, 4(%rdi)
	je	LBB0_37
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	8(%rdi), %ecx
	movq	_H264_NAL_IDR_SLICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %ecx
	jne	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%eax, %ebx
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_8 Depth=1
	testb	$-128, 4(%r14)
	je	LBB0_33
## %bb.27:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, 8(%rdi)
	movl	$1, %ecx
LBB0_28:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%ecx, %ecx
	je	LBB0_33
## %bb.29:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%eax, %ebx
	jne	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, 4(%rdi)
	movl	12(%rdi), %eax
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_8 Depth=1
	testl	%eax, %eax
	jne	LBB0_33
	jmp	LBB0_4
LBB0_32:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%eax, %eax
	je	LBB0_42
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_H264_NAL_SPS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	sete	%al
	movq	_H264_NAL_PPS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %r9d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movl	%r15d, %r8d
	callq	_alloc_and_copy
	testl	%eax, %eax
	js	LBB0_49
## %bb.34:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 8(%rax)
	jne	LBB0_7
## %bb.35:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_H264_NAL_SLICE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_7
## %bb.36:                              ##   in Loop: Header=BB0_8 Depth=1
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	movq	%rcx, 4(%rax)
	movl	$0, 12(%rax)
	jmp	LBB0_7
LBB0_37:                                ##   in Loop: Header=BB0_8 Depth=1
	movslq	16(%rdi), %rax
	cmpq	$-1, %rax
	je	LBB0_44
## %bb.38:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	leaq	(,%rax,4), %rsi
	addq	8(%rcx), %rsi
	movl	20(%rdi), %edx
	cmpl	$-1, %edx
	jne	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rcx), %edx
	subl	%eax, %edx
LBB0_40:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rcx
	movl	%r15d, %r8d
	movl	$1, %r9d
	callq	_alloc_and_copy
	testl	%eax, %eax
	js	LBB0_49
## %bb.41:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 4(%rax)
	jmp	LBB0_7
LBB0_42:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rcx
	movl	%r15d, %r8d
	movl	$1, %r9d
	callq	_alloc_and_copy
	testl	%eax, %eax
	js	LBB0_49
## %bb.43:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, 8(%rax)
	jmp	LBB0_7
LBB0_44:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_45:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	jmp	LBB0_6
LBB0_46:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_packet_move_ref
	xorl	%r12d, %r12d
	jmp	LBB0_51
LBB0_47:
	movq	-72(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_packet_copy_props
	movl	%eax, %r12d
LBB0_48:
	testl	%r12d, %r12d
	jns	LBB0_51
	jmp	LBB0_50
LBB0_49:
	movl	%eax, %r12d
LBB0_50:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_packet_unref
LBB0_51:
	leaq	-72(%rbp), %rdi
	callq	_av_packet_free
LBB0_52:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_H264_NAL_SPS,4,2               ## @H264_NAL_SPS
	.comm	_H264_NAL_PPS,4,2               ## @H264_NAL_PPS
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPS not present in the stream, nor in AVCC, stream may be unreadable\n"

	.comm	_H264_NAL_IDR_SLICE,4,2         ## @H264_NAL_IDR_SLICE
L_.str.1:                               ## @.str.1
	.asciz	"PPS not present in the stream, nor in AVCC, stream may be unreadable\n"

	.comm	_H264_NAL_SLICE,4,2             ## @H264_NAL_SLICE
	.no_dead_strip	_h264_mp4toannexb_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function h264_mp4toannexb_filter
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_h264_mp4toannexb_filter:               ; @h264_mp4toannexb_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x1
	mov	x20, x0
	ldr	x26, [x0, #8]
	add	x1, sp, #8
	bl	_ff_bsf_get_packet
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w8, [x26, #24]
	ldr	x1, [sp, #8]
	cbz	w8, LBB0_4
; %bb.2:
	mov	w27, #0
	ldr	x22, [x1]
	ldrsw	x28, [x1, #8]
	add	x21, x22, x28, lsl #2
	movi.2s	v8, #1
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d9, [x8, lCPI0_0@PAGEOFF]
	b	LBB0_7
LBB0_3:
	mov	x25, x0
	b	LBB0_46
LBB0_4:
	mov	x0, x19
	bl	_av_packet_move_ref
	mov	w25, #0
	b	LBB0_45
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh2:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	x3, x23
	mov	x4, x24
	mov	w5, #0
	bl	_alloc_and_copy
	tbnz	w0, #31, LBB0_41
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x23, x24, lsl #2
	ldr	w8, [x26]
	add	w9, w24, w27
	add	w27, w9, w8
	cmp	w27, w28
	b.ge	LBB0_42
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x25, x0
	ldrsw	x8, [x26]
	add	x23, x22, x8, lsl #2
	cmp	x23, x21
	b.hi	LBB0_43
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	and	x8, x8, #0xffffffff
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #0
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x22], #4
	orr	w9, w10, w9, lsl #8
	subs	x8, x8, #1
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	tbz	w9, #31, LBB0_13
	b	LBB0_43
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #0
	tbnz	w9, #31, LBB0_43
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x24, w9
	sub	x8, x21, x23
	asr	x8, x8, #2
	cmp	x8, x24
	b.lt	LBB0_43
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x23]
	and	w22, w8, #0x1f
Lloh10:
	adrp	x8, _H264_NAL_SPS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _H264_NAL_SPS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	stur	d8, [x26, #4]
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh13:
	adrp	x8, _H264_NAL_PPS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _H264_NAL_PPS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	str	d8, [x26, #8]
	ldr	w8, [x26, #4]
	cbz	w8, LBB0_33
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x26, #8]
Lloh16:
	adrp	x8, _H264_NAL_IDR_SLICE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _H264_NAL_IDR_SLICE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cbnz	w9, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w22, w8
	b.ne	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w9, [x23, #4]
	tbz	w9, #7, LBB0_29
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #1
	str	w9, [x26, #8]
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w9, LBB0_29
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w22, w8
	b.ne	LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x26, #4]
	ldr	w8, [x26, #12]
	cbz	w9, LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w8, LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x8, [x26, #20]
	cmn	w8, #1
	b.eq	LBB0_5
; %bb.27:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x20]
	ldr	x10, [x9, #8]
	add	x1, x10, x8, lsl #2
	ldr	w9, [x9]
	sub	w2, w9, w8
	mov	x0, x19
	mov	x3, x23
	mov	x4, x24
	mov	w5, #1
	bl	_alloc_and_copy
	tbz	w0, #31, LBB0_6
	b	LBB0_41
LBB0_28:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w8, LBB0_38
LBB0_29:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh19:
	adrp	x8, _H264_NAL_SPS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _H264_NAL_SPS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w22, w8
Lloh22:
	adrp	x8, _H264_NAL_PPS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _H264_NAL_PPS@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ccmp	w22, w8, #4, ne
	cset	w5, eq
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	x3, x23
	mov	x4, x24
	bl	_alloc_and_copy
	tbnz	w0, #31, LBB0_41
; %bb.30:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x26, #8]
	cbnz	w8, LBB0_6
; %bb.31:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh25:
	adrp	x8, _H264_NAL_SLICE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _H264_NAL_SLICE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_6
; %bb.32:                               ;   in Loop: Header=BB0_7 Depth=1
	stur	d9, [x26, #4]
	str	wzr, [x26, #12]
	b	LBB0_6
LBB0_33:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x8, [x26, #16]
	cmn	w8, #1
	b.eq	LBB0_40
; %bb.34:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x20]
	ldr	w2, [x26, #20]
	cmn	w2, #1
	b.ne	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x9]
	sub	w2, w10, w8
LBB0_36:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x9, #8]
	add	x1, x9, x8, lsl #2
	mov	x0, x19
	mov	x3, x23
	mov	x4, x24
	mov	w5, #1
	bl	_alloc_and_copy
	tbnz	w0, #31, LBB0_41
; %bb.37:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #1
	str	w8, [x26, #4]
	b	LBB0_6
LBB0_38:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	ldr	x1, [x8, #8]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x23
	mov	x4, x24
	mov	w5, #1
	bl	_alloc_and_copy
	tbnz	w0, #31, LBB0_41
; %bb.39:                               ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x26, #8]
	b	LBB0_6
LBB0_40:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh28:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
Lloh31:
	adrp	x2, l_.str@PAGE
Lloh32:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	b	LBB0_18
LBB0_41:
	mov	x25, x0
	b	LBB0_44
LBB0_42:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_av_packet_copy_props
	mov	x25, x0
LBB0_43:
	tbz	w25, #31, LBB0_45
LBB0_44:
	mov	x0, x19
	bl	_av_packet_unref
LBB0_45:
	add	x0, sp, #8
	bl	_av_packet_free
LBB0_46:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_H264_NAL_SPS,4,2               ; @H264_NAL_SPS
	.comm	_H264_NAL_PPS,4,2               ; @H264_NAL_PPS
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPS not present in the stream, nor in AVCC, stream may be unreadable\n"

	.comm	_H264_NAL_IDR_SLICE,4,2         ; @H264_NAL_IDR_SLICE
l_.str.1:                               ; @.str.1
	.asciz	"PPS not present in the stream, nor in AVCC, stream may be unreadable\n"

	.comm	_H264_NAL_SLICE,4,2             ; @H264_NAL_SLICE
	.no_dead_strip	_h264_mp4toannexb_filter
.subsections_via_symbols
