	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nppscale_init
_nppscale_init:                         ## @nppscale_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movl	24(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movl	24(%r15), %edi
	callq	_av_get_pix_fmt
	movq	%rax, (%r15)
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %r14
	jmp	LBB0_10
LBB0_1:
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_2:
	movq	16(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	16(%r15), %rdi
	movq	%rax, (%rdi,%rbx,8)
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %r14
LBB0_10:
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"same"

	.comm	_AV_PIX_FMT_NONE,8,3            ## @AV_PIX_FMT_NONE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Unrecognized pixel format: %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nppscale_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nppscale_init
_nppscale_init:                         ; @nppscale_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	w0, [x20, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x20, #24]
	bl	_av_get_pix_fmt
	str	x0, [x20]
Lloh2:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w3, [x20, #24]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh10:
	adrp	x19, _EINVAL@GOTPAGE
Lloh11:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
Lloh12:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_4:
	ldr	x0, [x20, #16]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x21, #0
Lloh15:
	adrp	x19, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x19, [x19, _ENOMEM@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_av_frame_alloc
	mov	x8, x0
	ldr	x0, [x20, #16]
	str	x8, [x0, x21, lsl #3]
	cbz	x8, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	bl	_FF_ARRAY_ELEMS
	cmp	x21, w0, sxtw
	b.lt	LBB0_6
LBB0_8:
	bl	_av_frame_alloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_10
; %bb.9:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh17:
	adrp	x19, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x19, [x19, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"same"

	.comm	_AV_PIX_FMT_NONE,8,3            ; @AV_PIX_FMT_NONE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Unrecognized pixel format: %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nppscale_init
.subsections_via_symbols
