	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffmpeg_scale_input
_ffmpeg_scale_input:                    ## @ffmpeg_scale_input
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	32(%rdi), %r8
	movq	(%rsi), %r10
	movb	$1, %al
	cmpq	%r10, %r8
	jl	LBB0_2
## %bb.1:
	movq	40(%rbx), %rax
	cmpq	8(%r14), %rax
	setl	%al
LBB0_2:
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.3:
	movl	16(%r14), %ecx
	movl	%ecx, -20(%rbp)
	movq	8(%r14), %rdx
	movl	20(%rbx), %ecx
	movq	40(%rbx), %r9
	movl	12(%rbx), %edi
	movl	16(%rbx), %esi
	testb	%al, %al
	je	LBB0_4
## %bb.5:
	movq	_SWS_BILINEAR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movzbl	%al, %r11d
	leaq	8(%rbx), %rdi
	movq	(%rbx), %rcx
	movq	40(%rbx), %rbx
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	(%rcx), %esi
	movl	20(%r14), %edx
	movl	(%rax), %r9d
	movl	16(%r14), %eax
	movq	%r8, %rcx
	movq	%rbx, %r8
	pushq	%r11
	pushq	%rax
	pushq	8(%r14)
	pushq	%r10
	callq	_video_frame_record_scale
	addq	$48, %rsp
	jmp	LBB0_8
LBB0_4:
	movq	_SWS_POINT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	subq	$48, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movl	%eax, 8(%rsp)
	movl	%esi, (%rsp)
	movq	$0, 32(%rsp)
	movq	%r10, %rsi
	callq	_sws_getCachedContext
	addq	$48, %rsp
	movl	%eax, 12(%rbx)
	movq	8(%r14), %r8
	addq	$20, %r14
	movq	(%rbx), %rbx
	movq	8(%rbx), %r9
	subq	$8, %rsp
	leaq	-20(%rbp), %rdx
	movl	%eax, %edi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	pushq	(%rbx)
	callq	_sws_scale
	addq	$32, %rsp
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SWS_BILINEAR,4,2               ## @SWS_BILINEAR
	.comm	_SWS_POINT,4,2                  ## @SWS_POINT
	.no_dead_strip	_ffmpeg_scale_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffmpeg_scale_input
_ffmpeg_scale_input:                    ; @ffmpeg_scale_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x4, [x0, #32]
	ldr	x8, [x1]
	cmp	x4, x8
	b.ge	LBB0_3
; %bb.1:
	mov	w10, #1
	ldr	x9, [x20, #24]
	cbz	x9, LBB0_4
LBB0_2:
	ldr	w9, [x19, #16]
	stur	w9, [x29, #-20]
	ldr	x2, [x19, #8]
	ldp	w6, w3, [x20, #16]
	ldr	x5, [x20, #40]
Lloh0:
	adrp	x9, _SWS_BILINEAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SWS_BILINEAR@GOTPAGEOFF]
	ldr	w0, [x20, #12]
Lloh2:
	adrp	x11, _SWS_POINT@GOTPAGE
Lloh3:
	ldr	x11, [x11, _SWS_POINT@GOTPAGEOFF]
	cmp	w10, #0
	csel	x9, x9, x11, ne
	ldr	w7, [x9]
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
	mov	x1, x8
	bl	_sws_getCachedContext
	str	w0, [x20, #12]
	add	x1, x19, #20
	ldr	x4, [x19, #8]
	ldr	x8, [x20]
	ldp	x6, x5, [x8]
	sub	x2, x29, #20
	mov	w3, #0
	bl	_sws_scale
	b	LBB0_5
LBB0_3:
	ldr	x9, [x20, #40]
	ldr	x10, [x19, #8]
	cmp	x9, x10
	cset	w10, lt
	ldr	x9, [x20, #24]
	cbnz	x9, LBB0_2
LBB0_4:
	add	x0, x20, #8
	ldr	x9, [x20]
	ldp	x12, x11, [x9]
	ldr	w1, [x11]
	ldr	x9, [x20, #40]
	ldr	w5, [x12]
	ldr	x7, [x19, #8]
	ldp	w11, w2, [x19, #16]
	stp	w11, w10, [sp]
	mov	x3, x4
	mov	x4, x9
	mov	x6, x8
	bl	_video_frame_record_scale
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SWS_BILINEAR,4,2               ; @SWS_BILINEAR
	.comm	_SWS_POINT,4,2                  ; @SWS_POINT
	.no_dead_strip	_ffmpeg_scale_input
.subsections_via_symbols
