	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_scale_image                 ## -- Begin function ff_scale_image
	.p2align	4, 0x90
_ff_scale_image:                        ## @ff_scale_image
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	40(%rbp), %edx
	movl	32(%rbp), %esi
	movl	24(%rbp), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	movq	$0, 24(%rsp)
	movl	$0, (%rsp)
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	movl	%r15d, %r9d
	callq	_sws_getContext
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	$16, %r9d
	callq	_av_image_alloc
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movq	16(%rbp), %rdx
	movq	%r13, (%rsp)
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movl	32(%rbp), %r8d
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_sws_scale
	jmp	LBB0_5
LBB0_3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	40(%rbp), %edi
	callq	_av_get_pix_fmt_name
	movl	%eax, %r13d
	movl	%r15d, %edi
	callq	_av_get_pix_fmt_name
	movl	%ebx, 16(%rsp)
	movl	%r14d, 8(%rsp)
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	48(%rbp), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	24(%rbp), %r8d
	movl	32(%rbp), %r9d
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_4:
	movl	%eax, %ebx
LBB0_5:
	movq	%r12, %rdi
	callq	_sws_freeContext
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_scale_image                 ; -- Begin function ff_scale_image
	.p2align	2
_ff_scale_image:                        ; @ff_scale_image
	.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	x22, x7
	str	x6, [sp, #24]                   ; 8-byte Folded Spill
	mov	x27, x5
	mov	x25, x4
	mov	x23, x3
	mov	x21, x2
	mov	x26, x1
	mov	x28, x0
	ldp	w20, w24, [x29, #16]
	stp	xzr, xzr, [sp]
	mov	x0, x7
	mov	x1, x20
	mov	x2, x24
	mov	x3, x21
	mov	x4, x23
	mov	x5, x25
	mov	w6, #0
	mov	x7, #0
	bl	_sws_getContext
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x28
	mov	x1, x26
	mov	x2, x21
	mov	x3, x23
	mov	x4, x25
	mov	w5, #16
	bl	_av_image_alloc
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x27
	ldr	x2, [sp, #24]                   ; 8-byte Folded Reload
	mov	w3, #0
	mov	x4, x20
	mov	x5, x28
	mov	x6, x26
	bl	_sws_scale
	mov	w21, #0
	b	LBB0_5
LBB0_3:
	ldr	x26, [x29, #24]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
	mov	x0, x24
	bl	_av_get_pix_fmt_name
	mov	x24, x0
	mov	x0, x25
	bl	_av_get_pix_fmt_name
	mov	x6, x0
	str	w23, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x26
	mov	x1, x27
	mov	x3, x24
	mov	x4, x22
	mov	x5, x20
	mov	x7, x21
	bl	_av_log
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_4:
	mov	x21, x0
LBB0_5:
	mov	x0, x19
	bl	_sws_freeContext
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.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
.subsections_via_symbols
