	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$3, %edi
	jne	LBB0_1
## %bb.2:
	movq	_AV_PIX_FMT_YUV420P@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_AV_PIX_FMT_RGB24@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	8(%rsi), %r15
	movq	16(%rsi), %rbx
	leaq	-152(%rbp), %rdi
	leaq	-148(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_av_parse_video_size
	testq	%rax, %rax
	js	LBB0_3
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movl	-152(%rbp), %ecx
	movl	-148(%rbp), %r8d
	movq	_SWS_BILINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	movl	%eax, (%rsp)
	movq	$0, 24(%rsp)
	movl	$320, %edi                      ## imm = 0x140
	movl	$240, %esi
	movl	%r14d, %edx
	movl	%r13d, %r9d
	callq	_sws_getContext
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	%r13d, -156(%rbp)               ## 4-byte Spill
	leaq	-80(%rbp), %rdi
	leaq	-128(%rbp), %rsi
	movl	$320, %edx                      ## imm = 0x140
	movl	$240, %ecx
	movl	%r14d, %r8d
	movl	$16, %r9d
	callq	_av_image_alloc
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movl	-152(%rbp), %edx
	movl	-148(%rbp), %ecx
	leaq	-112(%rbp), %rdi
	leaq	-144(%rbp), %rsi
	movl	-156(%rbp), %r8d                ## 4-byte Reload
	movl	$1, %r9d
	callq	_av_image_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.12:
	movq	%r15, -184(%rbp)                ## 8-byte Spill
	movq	%r12, -176(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	%ebx, %r15d
	leaq	-80(%rbp), %r14
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	leaq	-128(%rbp), %r13
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$320, %edx                      ## imm = 0x140
	movl	$240, %ecx
	movl	%r12d, %r8d
	callq	_fill_yuv_image
	leaq	-144(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	movl	$240, %r8d
	leaq	-112(%rbp), %r9
	callq	_sws_scale
	movq	-112(%rbp), %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	movq	-176(%rbp), %rcx                ## 8-byte Reload
	callq	_fwrite
	incl	%r12d
	cmpl	$100, %r12d
	jne	LBB0_13
## %bb.14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-156(%rbp), %edi                ## 4-byte Reload
	callq	_av_get_pix_fmt_name
	movl	-152(%rbp), %ecx
	movl	-148(%rbp), %r8d
	leaq	L_.str.7(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	movq	-184(%rbp), %r9                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
	movq	-176(%rbp), %r12                ## 8-byte Reload
	movq	%rbx, %r14
	movl	%r15d, %ebx
	jmp	LBB0_18
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_av_get_pix_fmt_name
	movq	%rax, %r14
	movl	%r13d, %edi
	callq	_av_get_pix_fmt_name
	movl	-152(%rbp), %ecx
	movl	-148(%rbp), %edx
	movl	%edx, 8(%rsp)
	movl	%ecx, (%rsp)
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	movl	$320, %ecx                      ## imm = 0x140
	movl	$240, %r8d
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_10:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_16
LBB0_15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
LBB0_16:
	xorl	%eax, %eax
	callq	_fprintf
LBB0_17:
	movq	-168(%rbp), %r14                ## 8-byte Reload
LBB0_18:
	movq	%r12, %rdi
	callq	_fclose
	leaq	-80(%rbp), %rdi
	callq	_av_freep
	leaq	-112(%rbp), %rdi
	callq	_av_freep
	movq	%r14, %rdi
	callq	_sws_freeContext
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	shrl	$31, %ebx
	movl	%ebx, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rsi), %rdx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	jmp	LBB0_4
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
LBB0_4:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_YUV420P,4,2         ## @AV_PIX_FMT_YUV420P
	.comm	_AV_PIX_FMT_RGB24,4,2           ## @AV_PIX_FMT_RGB24
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: %s output_file output_size\nAPI example program to show how to scale an image with libswscale.\nThis program generates a series of pictures, rescales them to the given output_size and saves them to an output file named output_file\n.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid size '%s', must be in the form WxH or a valid size abbreviation\n"

L_.str.2:                               ## @.str.2
	.asciz	"wb"

L_.str.3:                               ## @.str.3
	.asciz	"Could not open destination file %s\n"

	.comm	_SWS_BILINEAR,4,2               ## @SWS_BILINEAR
L_.str.4:                               ## @.str.4
	.asciz	"Impossible to create scale context for the conversion fmt:%s s:%dx%d -> fmt:%s s:%dx%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.5:                               ## @.str.5
	.asciz	"Could not allocate source image\n"

L_.str.6:                               ## @.str.6
	.asciz	"Could not allocate destination image\n"

L_.str.7:                               ## @.str.7
	.asciz	"Scaling succeeded. Play the output file with the command:\nffplay -f rawvideo -pix_fmt %s -video_size %dx%d %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cmp	w0, #3
	b.ne	LBB0_15
; %bb.1:
Lloh3:
	adrp	x8, _AV_PIX_FMT_YUV420P@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PIX_FMT_YUV420P@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _AV_PIX_FMT_RGB24@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_PIX_FMT_RGB24@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	ldp	x21, x19, [x1, #8]
	add	x0, sp, #52
	add	x1, sp, #48
	mov	x2, x19
	bl	_av_parse_video_size
	tbnz	x0, #63, LBB0_16
; %bb.2:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_fopen
	cbz	x0, LBB0_17
; %bb.3:
	mov	x19, x0
	ldp	w4, w3, [sp, #48]
Lloh11:
	adrp	x8, _SWS_BILINEAR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SWS_BILINEAR@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
	stp	xzr, xzr, [sp]
	mov	w0, #320
	mov	w1, #240
	mov	x2, x23
	mov	x5, x22
	mov	x7, #0
	bl	_sws_getContext
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.4:
	sub	x0, x29, #88
	add	x1, sp, #72
	mov	w2, #320
	mov	w3, #240
	mov	x4, x23
	mov	w5, #16
	bl	_av_image_alloc
	tbnz	w0, #31, LBB0_10
; %bb.5:
	ldp	w3, w2, [sp, #48]
	add	x0, sp, #88
	add	x1, sp, #56
	mov	x4, x22
	mov	w5, #1
	bl	_av_image_alloc
	mov	x23, x0
	tbnz	w0, #31, LBB0_11
; %bb.6:
	mov	w24, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #88
	add	x1, sp, #72
	mov	w2, #320
	mov	w3, #240
	mov	x4, x24
	bl	_fill_yuv_image
	sub	x1, x29, #88
	add	x2, sp, #72
	add	x5, sp, #88
	add	x6, sp, #56
	mov	x0, x20
	mov	w3, #0
	mov	w4, #240
	bl	_sws_scale
	ldr	x0, [sp, #88]
	mov	w1, #1
	mov	x2, x23
	mov	x3, x19
	bl	_fwrite
	add	w24, w24, #1
	cmp	w24, #100
	b.ne	LBB0_7
; %bb.8:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w24, [x8]
	mov	x0, x22
	bl	_av_get_pix_fmt_name
	ldp	w9, w8, [sp, #48]
	stp	x9, x21, [sp, #16]
	stp	x0, x8, [sp]
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x24
	b	LBB0_12
LBB0_9:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w21, [x8]
	mov	x0, x23
	bl	_av_get_pix_fmt_name
	mov	x23, x0
	mov	x0, x22
	bl	_av_get_pix_fmt_name
	ldp	w9, w8, [sp, #48]
	stp	x8, x9, [sp, #32]
	mov	w8, #240
	stp	x8, x0, [sp, #16]
	mov	w8, #320
	stp	x23, x8, [sp]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_fprintf
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x23, x0
	b	LBB0_13
LBB0_10:
	mov	x23, x0
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh32:
	adrp	x8, _stderr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_12:
	bl	_fprintf
LBB0_13:
	mov	x0, x19
	bl	_fclose
	sub	x0, x29, #88
	bl	_av_freep
	add	x0, sp, #88
	bl	_av_freep
	mov	x0, x20
	bl	_sws_freeContext
	ldur	x8, [x29, #-56]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.14:
	lsr	w0, w23, #31
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_15:
Lloh40:
	adrp	x8, _stderr@GOTPAGE
Lloh41:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	ldr	x8, [x1]
	str	x8, [sp]
Lloh43:
	adrp	x1, l_.str@PAGE
Lloh44:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh45:
	adrp	x8, _stderr@GOTPAGE
Lloh46:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh48:
	adrp	x1, l_.str.1@PAGE
Lloh49:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh50:
	adrp	x8, _stderr@GOTPAGE
Lloh51:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh53:
	adrp	x1, l_.str.3@PAGE
Lloh54:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_18:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_YUV420P,4,2         ; @AV_PIX_FMT_YUV420P
	.comm	_AV_PIX_FMT_RGB24,4,2           ; @AV_PIX_FMT_RGB24
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: %s output_file output_size\nAPI example program to show how to scale an image with libswscale.\nThis program generates a series of pictures, rescales them to the given output_size and saves them to an output file named output_file\n.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid size '%s', must be in the form WxH or a valid size abbreviation\n"

l_.str.2:                               ; @.str.2
	.asciz	"wb"

l_.str.3:                               ; @.str.3
	.asciz	"Could not open destination file %s\n"

	.comm	_SWS_BILINEAR,4,2               ; @SWS_BILINEAR
l_.str.4:                               ; @.str.4
	.asciz	"Impossible to create scale context for the conversion fmt:%s s:%dx%d -> fmt:%s s:%dx%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.5:                               ; @.str.5
	.asciz	"Could not allocate source image\n"

l_.str.6:                               ; @.str.6
	.asciz	"Could not allocate destination image\n"

l_.str.7:                               ; @.str.7
	.asciz	"Scaling succeeded. Play the output file with the command:\nffplay -f rawvideo -pix_fmt %s -video_size %dx%d %s\n"

.subsections_via_symbols
