	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h264_decode_frame
_h264_decode_frame:                     ## @h264_decode_frame
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	(%rcx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rcx), %r15d
	movq	24(%rdi), %r12
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movl	20(%rdi), %eax
	movl	%eax, 96(%r12)
	leaq	24(%r12), %rsi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%r12)
	movq	%r12, %rdi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	callq	_ff_h264_unref_picture
	testl	%r15d, %r15d
	je	LBB0_34
## %bb.1:
	movl	%r15d, %eax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	64(%r12), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %r15
	cmpq	$0, 64(%r12)
	movl	%eax, %r14d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_5
## %bb.2:
	movq	_AV_PKT_DATA_NEW_EXTRADATA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_av_packet_get_side_data
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%rbx), %esi
	leaq	-52(%rbp), %rdx
	movq	%r13, %rdi
	callq	_av_packet_get_side_data
	movq	%rax, %r13
	movl	-52(%rbp), %esi
	movq	%rax, %rdi
	callq	_is_extra
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	-52(%rbp), %esi
	leaq	72(%r15), %rdx
	leaq	56(%r15), %r8
	movl	16(%r12), %r9d
	movq	%r12, (%rsp)
	movq	%r13, %rdi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_ff_h264_decode_extradata
LBB0_5:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.6:
	cmpl	$9, %r14d
	jl	LBB0_12
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$1, (%rax)
	jne	LBB0_12
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 8(%rax)
	jne	LBB0_12
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %eax
	notl	%eax
	testb	$-4, %al
	jne	LBB0_12
## %bb.10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_is_extra
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	72(%r15), %rdx
	addq	$56, %r15
	movl	16(%r12), %r9d
	movq	%r12, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, %r8
	callq	_ff_h264_decode_extradata
	jmp	LBB0_32
LBB0_12:
	movq	%r15, %rbx
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_decode_nal_units
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movl	%eax, %r13d
	cmpl	$0, 52(%rbx)
	je	LBB0_15
## %bb.17:
	movq	_AV_CODEC_FLAG2_CHUNKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_24
## %bb.18:
	cmpl	$0, 48(%rbx)
	jne	LBB0_26
	jmp	LBB0_19
LBB0_34:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_next_delayed_frame        ## TAILCALL
LBB0_15:
	movq	(%rbx), %rax
	movq	_H264_NAL_END_SEQUENCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.16:
	xorl	%edi, %edi
	cmpl	%r14d, %r13d
	setle	%dil
	callq	_av_assert0
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_send_next_delayed_frame
	jmp	LBB0_32
LBB0_23:
	movq	_AV_CODEC_FLAG2_CHUNKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_19
LBB0_24:
	movq	16(%rbx), %rax
	cmpq	%rax, 8(%rbx)
	jl	LBB0_29
## %bb.25:
	testq	%rax, %rax
	je	LBB0_29
LBB0_26:
	movq	40(%rbx), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ff_h264_field_end
	testl	%eax, %eax
	js	LBB0_32
## %bb.27:
	movq	32(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_29
## %bb.28:
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_finalize_frame
	testl	%eax, %eax
	js	LBB0_32
LBB0_29:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	$1, %edi
	cmpq	$0, (%rax)
	jne	LBB0_31
## %bb.30:
	xorl	%edi, %edi
	cmpl	$0, (%r15)
	sete	%dil
LBB0_31:
	callq	_av_assert0
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_h264_unref_picture
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_get_consumed_bytes
LBB0_32:
	movl	%eax, %r14d
	jmp	LBB0_33
LBB0_19:
	movq	8(%r12), %rax
	movq	_AVDISCARD_NONREF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_33
## %bb.20:
	cmpl	$4, %r14d
	jl	LBB0_22
## %bb.21:
	leaq	L_.str(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_33
LBB0_22:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
LBB0_13:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_33:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_DATA_NEW_EXTRADATA,4,2  ## @AV_PKT_DATA_NEW_EXTRADATA
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_H264_NAL_END_SEQUENCE,8,3      ## @H264_NAL_END_SEQUENCE
	.comm	_AV_CODEC_FLAG2_CHUNKS,4,2      ## @AV_CODEC_FLAG2_CHUNKS
	.comm	_AVDISCARD_NONREF,8,3           ## @AVDISCARD_NONREF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Q264"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"no frame!\n"

	.no_dead_strip	_h264_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h264_decode_frame
_h264_decode_frame:                     ; @h264_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x25, [x3]
	ldr	w19, [x3, #8]
	ldr	x20, [x0, #24]
	ldr	w8, [x0, #20]
	str	w8, [x20, #96]
	add	x22, x20, #24
	stp	xzr, xzr, [x20, #80]
	mov	x0, x20
	mov	x1, x22
	bl	_ff_h264_unref_picture
	cbz	w19, LBB0_15
; %bb.1:
	mov	x26, x20
	ldr	x8, [x26, #64]!
	cbz	x8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x28, _AV_PKT_DATA_NEW_EXTRADATA@GOTPAGE
Lloh1:
	ldr	x28, [x28, _AV_PKT_DATA_NEW_EXTRADATA@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x27
	mov	x2, #0
	bl	_av_packet_get_side_data
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w1, [x28]
	add	x2, sp, #12
	mov	x0, x27
	bl	_av_packet_get_side_data
	mov	x27, x0
	ldr	w1, [sp, #12]
	bl	_is_extra
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w1, [sp, #12]
	add	x2, x20, #72
	add	x4, x20, #56
	ldr	w5, [x24, #16]
	mov	x0, x27
	mov	x3, x26
	mov	x6, x24
	bl	_ff_h264_decode_extradata
LBB0_5:
	ldr	x8, [x26]
	cmp	x8, #0
	ccmp	w19, #9, #8, ne
	b.lt	LBB0_11
; %bb.6:
	ldr	w8, [x25]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.7:
	ldr	w8, [x25, #8]
	cbnz	w8, LBB0_11
; %bb.8:
	ldr	w8, [x25, #16]
	mvn	w8, w8
	tst	w8, #0xfc
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x25
	mov	x1, x19
	bl	_is_extra
	cbz	x0, LBB0_11
; %bb.10:
	add	x2, x20, #72
	add	x4, x20, #56
	ldr	w5, [x24, #16]
	mov	x0, x25
	mov	x1, x19
	mov	x3, x26
	mov	x6, x24
	bl	_ff_h264_decode_extradata
	b	LBB0_27
LBB0_11:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x19
	bl	_decode_nal_units
	tbnz	w0, #31, LBB0_32
; %bb.12:
	mov	x26, x0
	ldr	w8, [x20, #52]
	cbz	w8, LBB0_16
; %bb.13:
	ldr	w8, [x24]
Lloh2:
	adrp	x9, _AV_CODEC_FLAG2_CHUNKS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AV_CODEC_FLAG2_CHUNKS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.14:
	ldr	w8, [x20, #48]
	cbnz	w8, LBB0_20
	b	LBB0_28
LBB0_15:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	w3, #0
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_send_next_delayed_frame
LBB0_16:
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _H264_NAL_END_SEQUENCE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _H264_NAL_END_SEQUENCE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
	cmp	w26, w19
	cset	w0, le
	bl	_av_assert0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	x3, x26
	bl	_send_next_delayed_frame
	b	LBB0_27
LBB0_18:
	ldr	w8, [x24]
Lloh8:
	adrp	x9, _AV_CODEC_FLAG2_CHUNKS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_CODEC_FLAG2_CHUNKS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
LBB0_19:
	ldp	x8, x9, [x20, #8]
	cmp	x8, x9
	ccmp	x9, #0, #4, ge
	b.eq	LBB0_23
LBB0_20:
	ldr	x1, [x20, #40]
	mov	x0, x20
	mov	w2, #0
	bl	_ff_h264_field_end
	tbnz	w0, #31, LBB0_27
; %bb.21:
	ldr	x2, [x20, #32]
	cbz	x2, LBB0_23
; %bb.22:
	mov	x0, x20
	mov	x1, x23
	mov	x3, x21
	bl	_finalize_frame
	tbnz	w0, #31, LBB0_27
LBB0_23:
	ldr	x8, [x23]
	ldr	x8, [x8]
	cbz	x8, LBB0_25
; %bb.24:
	mov	w0, #1
	b	LBB0_26
LBB0_25:
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w0, eq
LBB0_26:
	bl	_av_assert0
	mov	x0, x20
	mov	x1, x22
	bl	_ff_h264_unref_picture
	mov	x0, x26
	mov	x1, x19
	bl	_get_consumed_bytes
LBB0_27:
	mov	x19, x0
	b	LBB0_33
LBB0_28:
	ldr	x8, [x24, #8]
Lloh11:
	adrp	x9, _AVDISCARD_NONREF@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AVDISCARD_NONREF@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_33
; %bb.29:
	cmp	w19, #4
	b.lt	LBB0_31
; %bb.30:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_33
LBB0_31:
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_av_log
LBB0_32:
Lloh21:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
LBB0_33:
	mov	x0, x19
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_DATA_NEW_EXTRADATA,4,2  ; @AV_PKT_DATA_NEW_EXTRADATA
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_H264_NAL_END_SEQUENCE,8,3      ; @H264_NAL_END_SEQUENCE
	.comm	_AV_CODEC_FLAG2_CHUNKS,4,2      ; @AV_CODEC_FLAG2_CHUNKS
	.comm	_AVDISCARD_NONREF,8,3           ; @AVDISCARD_NONREF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Q264"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"no frame!\n"

	.no_dead_strip	_h264_decode_frame
.subsections_via_symbols
