	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_write
_decode_write:                          ## @decode_write
	.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	%rdi, %r12
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -72(%rbp)
	callq	_avcodec_send_packet
	testl	%eax, %eax
	js	LBB0_25
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %rbx
	movq	_ENOMEM@GOTPCREL(%rip), %r15
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_fprintf
	movl	(%r15), %edi
	callq	_AVERROR
	movl	%eax, %r14d
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	leaq	-72(%rbp), %rdi
	callq	_av_freep
	testl	%r14d, %r14d
	js	LBB0_24
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_avcodec_receive_frame
	movl	%eax, %r14d
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %r14d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx
	movq	(%rbx), %rdi
	movq	_hw_pix_fmt@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_av_hwframe_transfer_data
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rbx
	movq	(%rbx), %rdi
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movl	$1, %ecx
	callq	_av_image_get_buffer_size
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_av_malloc
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rdx
	movq	16(%rbx), %rcx
	movq	(%rbx), %r8
	movl	12(%rbx), %r9d
	movl	8(%rbx), %ebx
	movq	%rax, %rdi
	movl	%r12d, %esi
	pushq	$1
	pushq	%rbx
	callq	_av_image_copy_to_buffer
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi
	movq	_output_file@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_fwrite
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_20
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_23
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_fprintf
	movl	(%r15), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	jmp	LBB0_21
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_22
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	movl	(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_fprintf
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_23
LBB0_25:
	movl	%eax, %r14d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_24
LBB0_7:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	xorl	%r14d, %r14d
LBB0_24:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error during decoding\n"

L_.str.1:                               ## @.str.1
	.asciz	"Can not alloc frame\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
L_.str.2:                               ## @.str.2
	.asciz	"Error while decoding\n"

	.comm	_hw_pix_fmt,8,3                 ## @hw_pix_fmt
L_.str.3:                               ## @.str.3
	.asciz	"Error transferring the data to system memory\n"

L_.str.4:                               ## @.str.4
	.asciz	"Can not alloc buffer\n"

L_.str.5:                               ## @.str.5
	.asciz	"Can not copy image to buffer\n"

	.comm	_output_file,4,2                ## @output_file
L_.str.6:                               ## @.str.6
	.asciz	"Failed to dump raw data.\n"

	.no_dead_strip	_decode_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_write
_decode_write:                          ; @decode_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
	bl	_avcodec_send_packet
	tbnz	w0, #31, LBB0_21
; %bb.1:
Lloh0:
	adrp	x28, _stderr@GOTPAGE
Lloh1:
	ldr	x28, [x28, _stderr@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh4:
	adrp	x25, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ENOMEM@GOTPAGEOFF]
Lloh6:
	adrp	x22, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _EAGAIN@GOTPAGEOFF]
Lloh8:
	adrp	x24, _AVERROR_EOF@GOTPAGE
Lloh9:
	ldr	x24, [x24, _AVERROR_EOF@GOTPAGEOFF]
Lloh10:
	adrp	x21, l_.str.2@PAGE
Lloh11:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh12:
	adrp	x23, _hw_pix_fmt@GOTPAGE
Lloh13:
	ldr	x23, [x23, _hw_pix_fmt@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x28]
	mov	x1, x21
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_fprintf
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	bl	_av_frame_free
	add	x0, sp, #16
	bl	_av_frame_free
	add	x0, sp, #8
	bl	_av_freep
	tbnz	w26, #31, LBB0_23
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_av_frame_alloc
	str	x0, [sp, #24]
	cbz	x0, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_av_frame_alloc
	str	x0, [sp, #16]
	cbz	x0, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #24]
	mov	x0, x19
	bl	_avcodec_receive_frame
	mov	x26, x0
	ldr	w0, [x22]
	bl	_AVERROR
	ldr	w8, [x24]
	cmp	w26, w0
	ccmp	w26, w8, #4, ne
	b.eq	LBB0_22
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	tbnz	w26, #31, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x26, [sp, #24]
	ldr	x0, [x26]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #16]
	mov	x1, x26
	mov	w2, #0
	bl	_av_hwframe_transfer_data
	tbnz	w0, #31, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x26, [sp, #16]
	ldr	x0, [x26]
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w2, w1, [x26, #8]
	mov	w3, #1
	bl	_av_image_get_buffer_size
	mov	x27, x0
	bl	_av_malloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	x3, x2, [x26, #16]
	ldr	x4, [x26]
	ldp	w6, w5, [x26, #8]
	mov	x1, x27
	mov	w7, #1
	bl	_av_image_copy_to_buffer
	tbnz	w0, #31, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #8]
Lloh14:
	adrp	x8, _output_file@GOTPAGE
Lloh15:
	ldr	x8, [x8, _output_file@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	w1, #1
	mov	x2, x27
	bl	_fwrite
	mov	x26, x0
	tbz	w0, #31, LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x28]
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x28]
	mov	x1, x20
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_fprintf
	ldr	w0, [x25]
	bl	_AVERROR
	mov	x26, x0
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x28]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x0
	ldr	w0, [x28]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x0
	ldr	w0, [x28]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_21:
	mov	x26, x0
Lloh25:
	adrp	x8, _stderr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	b	LBB0_23
LBB0_22:
	add	x0, sp, #24
	bl	_av_frame_free
	add	x0, sp, #16
	bl	_av_frame_free
	mov	w26, #0
LBB0_23:
	mov	x0, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error during decoding\n"

l_.str.1:                               ; @.str.1
	.asciz	"Can not alloc frame\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
l_.str.2:                               ; @.str.2
	.asciz	"Error while decoding\n"

	.comm	_hw_pix_fmt,8,3                 ; @hw_pix_fmt
l_.str.3:                               ; @.str.3
	.asciz	"Error transferring the data to system memory\n"

l_.str.4:                               ; @.str.4
	.asciz	"Can not alloc buffer\n"

l_.str.5:                               ; @.str.5
	.asciz	"Can not copy image to buffer\n"

	.comm	_output_file,4,2                ; @output_file
l_.str.6:                               ; @.str.6
	.asciz	"Failed to dump raw data.\n"

	.no_dead_strip	_decode_write
.subsections_via_symbols
