	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_decode_result
_check_decode_result:                   ## @check_decode_result
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testl	%edx, %edx
	js	LBB0_2
## %bb.1:
	cmpl	$0, (%rbx)
	je	LBB0_3
LBB0_2:
	movq	_decode_error_stat@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edx, %ecx
	shrl	$31, %ecx
	incl	(%rax,%rcx,4)
LBB0_3:
	movq	_exit_on_error@GOTPCREL(%rip), %r15
	testl	%edx, %edx
	jns	LBB0_6
## %bb.4:
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.5:
	movl	$1, %edi
	callq	_exit_program
LBB0_6:
	testq	%r14, %r14
	je	LBB0_14
## %bb.7:
	cmpl	$0, (%rbx)
	je	LBB0_14
## %bb.8:
	movq	16(%r14), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_10
## %bb.9:
	movq	_AV_FRAME_FLAG_CORRUPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
LBB0_10:
	cmpq	$0, (%r15)
	jne	LBB0_11
## %bb.12:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_AV_LOG_FATAL@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	movq	_input_files@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	(%rdx), %r8d
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	cmpq	$0, (%r15)
	je	LBB0_14
## %bb.15:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_exit_program                   ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_decode_error_stat,8,3          ## @decode_error_stat
	.comm	_exit_on_error,8,3              ## @exit_on_error
	.comm	_AV_FRAME_FLAG_CORRUPT,4,2      ## @AV_FRAME_FLAG_CORRUPT
	.comm	_AV_LOG_FATAL,4,2               ## @AV_LOG_FATAL
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: corrupt decoded frame in stream %d\n"

	.comm	_input_files,8,3                ## @input_files
	.no_dead_strip	_check_decode_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_decode_result
_check_decode_result:                   ; @check_decode_result
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	tbnz	w2, #31, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _decode_error_stat@GOTPAGE
Lloh1:
	ldr	x8, [x8, _decode_error_stat@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsr	w9, w2, #31
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
LBB0_3:
Lloh3:
	adrp	x21, _exit_on_error@GOTPAGE
Lloh4:
	ldr	x21, [x21, _exit_on_error@GOTPAGEOFF]
	tbz	w2, #31, LBB0_6
; %bb.4:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w0, #1
	bl	_exit_program
LBB0_6:
	cbz	x19, LBB0_12
; %bb.7:
	ldr	w8, [x20]
	cbz	w8, LBB0_12
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_10
; %bb.9:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AV_FRAME_FLAG_CORRUPT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_FRAME_FLAG_CORRUPT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_10:
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _AV_LOG_FATAL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_LOG_FATAL@GOTPAGEOFF]
Lloh10:
	adrp	x10, _AV_LOG_WARNING@GOTPAGE
Lloh11:
	ldr	x10, [x10, _AV_LOG_WARNING@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _input_files@GOTPAGE
Lloh13:
	ldr	x8, [x8, _input_files@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldp	x9, x10, [x19]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	ldr	w3, [x8]
	ldr	w4, [x10]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
	ldr	x8, [x21]
	cbz	x8, LBB0_12
; %bb.11:
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_exit_program
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_decode_error_stat,8,3          ; @decode_error_stat
	.comm	_exit_on_error,8,3              ; @exit_on_error
	.comm	_AV_FRAME_FLAG_CORRUPT,4,2      ; @AV_FRAME_FLAG_CORRUPT
	.comm	_AV_LOG_FATAL,4,2               ; @AV_LOG_FATAL
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: corrupt decoded frame in stream %d\n"

	.comm	_input_files,8,3                ; @input_files
	.no_dead_strip	_check_decode_result
.subsections_via_symbols
