	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_sws_context
_alloc_sws_context:                     ## @alloc_sws_context
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	8(%rdi), %esi
	movl	12(%rdi), %edi
	callq	_sws_getGaussianVec
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movl	4(%r12), %esi
	movq	%rax, %rdi
	callq	_sws_scaleVec
	movq	8(%rbx), %rax
	movl	(%rbx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %edx
	subl	4(%r12), %edx
	incl	%edx
	movl	%edx, (%rax,%rcx,4)
	movq	%rbx, -56(%rbp)
	movq	%rbx, -48(%rbp)
	movq	$0, -72(%rbp)
	movl	$0, -64(%rbp)
	movq	_AV_PIX_FMT_GRAY8@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rsp)
	leaq	-72(%rbp), %rax
	movq	%rax, 16(%rsp)
	movl	%r13d, 8(%rsp)
	movl	%ecx, (%rsp)
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_sws_getCachedContext
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	callq	_sws_freeVec
	cmpl	$0, (%r12)
	jne	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
LBB0_3:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_PIX_FMT_GRAY8,4,2           ## @AV_PIX_FMT_GRAY8
	.no_dead_strip	_alloc_sws_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_sws_context
_alloc_sws_context:                     ; @alloc_sws_context
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
	ldr	w1, [x19, #8]
	bl	_sws_getGaussianVec
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
	ldr	w1, [x19, #4]
	bl	_sws_scaleVec
	ldr	x8, [x23, #8]
	ldr	w9, [x23]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x8, x9]
	ldr	w11, [x19, #4]
	sub	w10, w10, w11
	add	w10, w10, #1
	str	w10, [x8, x9]
	stp	x23, x23, [sp, #48]
	str	xzr, [sp, #32]
	str	wzr, [sp, #40]
Lloh0:
	adrp	x8, _AV_PIX_FMT_GRAY8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_GRAY8@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	stp	xzr, xzr, [sp, #8]
	add	x8, sp, #32
	str	x8, [sp]
	mov	x0, #0
	mov	x1, x22
	mov	x2, x21
	mov	x4, x22
	mov	x5, x21
	mov	x6, x3
	mov	x7, x20
	bl	_sws_getCachedContext
	str	w0, [x19]
	mov	x0, x23
	bl	_sws_freeVec
	mov	w0, #0
	ldr	w8, [x19]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_3:
	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
	add	sp, sp, #128
	ret
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	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
	add	sp, sp, #128
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_PIX_FMT_GRAY8,4,2           ; @AV_PIX_FMT_GRAY8
	.no_dead_strip	_alloc_sws_context
.subsections_via_symbols
