	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_mp4toannexb_init
_hevc_mp4toannexb_init:                 ## @hevc_mp4toannexb_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_MIN_HEVCC_LENGTH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_3
## %bb.1:
	movq	8(%rbx), %r14
	movl	8(%rax), %edi
	callq	_AV_RB24
	cmpl	$1, %eax
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_AV_RB32
	cmpl	$1, %eax
	jne	LBB0_4
LBB0_3:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_hevc_extradata_to_annexb
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movl	%eax, (%r14)
	movl	$1, 4(%r14)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_HEVCC_LENGTH,8,3           ## @MIN_HEVCC_LENGTH
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The input looks like it is Annex B already\n"

	.no_dead_strip	_hevc_mp4toannexb_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hevc_mp4toannexb_init
_hevc_mp4toannexb_init:                 ; @hevc_mp4toannexb_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _MIN_HEVCC_LENGTH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MIN_HEVCC_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.lt	LBB0_3
; %bb.1:
	ldr	x20, [x19, #8]
	ldr	w0, [x8, #8]
	bl	_AV_RB24
	cmp	w0, #1
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_AV_RB32
	cmp	w0, #1
	b.ne	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_hevc_extradata_to_annexb
	tbnz	w0, #31, LBB0_5
; %bb.7:
	mov	w8, #1
	stp	w0, w8, [x20]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_HEVCC_LENGTH,8,3           ; @MIN_HEVCC_LENGTH
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The input looks like it is Annex B already\n"

	.no_dead_strip	_hevc_mp4toannexb_init
.subsections_via_symbols
