	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_parser_change               ## -- Begin function av_parser_change
	.p2align	4, 0x90
_av_parser_change:                      ## @av_parser_change
	.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
	movl	%r9d, %r12d
	movq	%r8, %r14
	movq	%rsi, %rbx
	movl	16(%rbp), %r15d
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_AV_CODEC_FLAG_GLOBAL_HEADER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_AV_CODEC_FLAG2_LOCAL_HEADER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, 4(%rbx)
	je	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edx
	movq	%r14, %r13
	movq	%rcx, %r14
	callq	*%rax
	movq	%r14, %rcx
	movq	%r13, %r14
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cltq
	leaq	(,%rax,4), %r14
	addq	%r13, %r14
	subl	%eax, %r12d
LBB0_5:
	movq	%r14, (%rdx)
	movl	%r12d, (%rcx)
	xorl	%eax, %eax
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.6:
	cmpq	$0, 16(%rbx)
	je	LBB0_10
## %bb.7:
	movq	_AV_CODEC_FLAG2_LOCAL_HEADER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, 4(%rbx)
	je	LBB0_10
## %bb.8:
	movl	8(%rbx), %edi
	addl	%r12d, %edi
	movl	%edi, (%rcx)
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %r15
	addl	(%r15), %edi
	movq	%rdx, %r13
	callq	_av_malloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	16(%rbx), %rsi
	movl	8(%rbx), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movslq	8(%rbx), %rdi
	shlq	$2, %rdi
	addq	(%r13), %rdi
	addl	(%r15), %r12d
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_FLAG_GLOBAL_HEADER,4,2 ## @AV_CODEC_FLAG_GLOBAL_HEADER
	.comm	_AV_CODEC_FLAG2_LOCAL_HEADER,4,2 ## @AV_CODEC_FLAG2_LOCAL_HEADER
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_parser_change               ; -- Begin function av_parser_change
	.p2align	2
_av_parser_change:                      ; @av_parser_change
	.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	x24, x6
	mov	x20, x5
	mov	x19, x4
	mov	x23, x3
	mov	x22, x2
	mov	x21, x1
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w9, [x21]
Lloh0:
	adrp	x10, _AV_CODEC_FLAG_GLOBAL_HEADER@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AV_CODEC_FLAG_GLOBAL_HEADER@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [x21, #4]
Lloh3:
	adrp	x10, _AV_CODEC_FLAG2_LOCAL_HEADER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_CODEC_FLAG2_LOCAL_HEADER@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	blr	x8
	add	x19, x19, w0, sxtw #2
	sub	w20, w20, w0
LBB0_5:
	mov	w0, #0
	str	x19, [x22]
	str	w20, [x23]
	cbz	w24, LBB0_11
; %bb.6:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_11
; %bb.7:
	ldr	w8, [x21, #4]
Lloh6:
	adrp	x9, _AV_CODEC_FLAG2_LOCAL_HEADER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_CODEC_FLAG2_LOCAL_HEADER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
	ldr	w8, [x21, #8]
	add	w8, w8, w20
	str	w8, [x23]
Lloh9:
	adrp	x23, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	ldr	w9, [x23]
	add	w0, w9, w8
	bl	_av_malloc
	str	x0, [x22]
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x1, [x21, #16]
	ldr	w2, [x21, #8]
	bl	_memcpy
	ldr	x8, [x22]
	ldrsw	x9, [x21, #8]
	add	x0, x8, x9, lsl #2
	ldr	w8, [x23]
	add	w2, w8, w20
	mov	x1, x19
	bl	_memcpy
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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_12:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_FLAG_GLOBAL_HEADER,4,2 ; @AV_CODEC_FLAG_GLOBAL_HEADER
	.comm	_AV_CODEC_FLAG2_LOCAL_HEADER,4,2 ; @AV_CODEC_FLAG2_LOCAL_HEADER
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
