	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_parse
_hevc_parse:                            ## @hevc_parse
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%r8, -56(%rbp)
	movl	%r9d, -44(%rbp)
	movq	8(%rdi), %r12
	movq	8(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	cmpl	$0, (%r12)
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %eax
	movl	4(%rbx), %esi
	leaq	16(%r12), %rdx
	leaq	12(%r12), %rcx
	leaq	8(%r12), %r8
	movl	%r9d, %r15d
	leaq	4(%r12), %r9
	subq	$8, %rsp
	pushq	%rbx
	pushq	$1
	pushq	%rax
	callq	_ff_hevc_decode_extradata
	movl	%r15d, %r9d
	addq	$32, %rsp
	movl	$1, (%r12)
LBB0_3:
	movq	_PARSER_FLAG_COMPLETE_FRAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-44(%rbp), %r15d
	testl	%eax, (%r13)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rsi
	testl	%r9d, %r9d
	je	LBB0_8
	jmp	LBB0_9
LBB0_5:
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	addq	$20, %r12
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_hevc_find_frame_end
	movl	%eax, %r15d
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ff_combine_frame
	testq	%rax, %rax
	js	LBB0_12
## %bb.6:
	movq	-56(%rbp), %rsi
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	testl	%r9d, %r9d
	jne	LBB0_9
LBB0_8:
	cmpq	%r14, %rsi
	je	LBB0_10
LBB0_9:
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movq	%rbx, %rcx
	callq	_parse_nal_units
	movq	-56(%rbp), %r14
LBB0_10:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movl	-44(%rbp), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_11:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	-44(%rbp), %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_PARSER_FLAG_COMPLETE_FRAMES,4,2 ## @PARSER_FLAG_COMPLETE_FRAMES
	.no_dead_strip	_hevc_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hevc_parse
_hevc_parse:                            ; @hevc_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x24, x5
	mov	x21, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	str	x4, [sp, #24]
	str	w5, [sp, #20]
	ldr	x26, [x0, #8]
	ldr	x0, [x1, #8]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x26]
	cbnz	w8, LBB0_3
; %bb.2:
	add	x2, x26, #16
	add	x3, x26, #12
	add	x4, x26, #8
	add	x5, x26, #4
	ldp	w6, w1, [x22]
	str	x22, [sp]
	mov	w25, #1
	mov	w7, #1
	bl	_ff_hevc_decode_extradata
	str	w25, [x26]
LBB0_3:
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _PARSER_FLAG_COMPLETE_FRAMES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PARSER_FLAG_COMPLETE_FRAMES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w25, [sp, #20]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x1, x21
	cbz	w24, LBB0_7
	b	LBB0_8
LBB0_5:
	add	x26, x26, #20
	mov	x0, x23
	mov	x1, x21
	mov	x2, x25
	bl	_hevc_find_frame_end
	mov	x25, x0
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x26
	mov	x1, x25
	bl	_ff_combine_frame
	tbnz	x0, #63, LBB0_11
; %bb.6:
	ldr	x1, [sp, #24]
	cbnz	w24, LBB0_8
LBB0_7:
	cmp	x1, x21
	b.eq	LBB0_9
LBB0_8:
	ldr	w2, [sp, #20]
	mov	x0, x23
	mov	x3, x22
	bl	_parse_nal_units
	ldr	x21, [sp, #24]
LBB0_9:
	str	x21, [x20]
	ldr	w8, [sp, #20]
	str	w8, [x19]
LBB0_10:
	mov	x0, x25
	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
	add	sp, sp, #112
	ret
LBB0_11:
	str	xzr, [x20]
	str	wzr, [x19]
	ldr	w25, [sp, #20]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PARSER_FLAG_COMPLETE_FRAMES,4,2 ; @PARSER_FLAG_COMPLETE_FRAMES
	.no_dead_strip	_hevc_parse
.subsections_via_symbols
