	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function resize_image
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_resize_image:                          ## @resize_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	(%rsi), %r14d
	leaq	L_.str(%rip), %rdx
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pop_int
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdx
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pop_int
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	L_.str.2(%rip), %rdx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pop_image
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	callq	_GetExceptionInfo
	movq	-48(%rbp), %rdi
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	movq	_LanczosFilter@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movq	%r15, %r8
	callq	_ResizeImage
	movq	%rax, %r15
	movq	-32(%rbp), %rax
	movq	_UndefinedException@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.8:
	leaq	-32(%rbp), %rdi
	callq	_DestroyExceptionInfo
	movl	(%rbx), %esi
	incl	%esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_free_stack
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_push_image
                                        ## implicit-def: $rax
	jmp	LBB0_9
LBB0_1:
	movl	%r14d, (%rbx)
LBB0_7:
	movq	_FORTH_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r14d, (%rbx)
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_gm_catch_exception
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_DestroyImage
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resize_image 3rd"

	.comm	_FORTH_FAIL,8,3                 ## @FORTH_FAIL
L_.str.1:                               ## @.str.1
	.asciz	"resize_image 2nd"

L_.str.2:                               ## @.str.2
	.asciz	"resize_image 1st"

	.comm	_LanczosFilter,4,2              ## @LanczosFilter
	.comm	_UndefinedException,8,3         ## @UndefinedException
	.comm	_NEXT,4,2                       ## @NEXT
	.no_dead_strip	_resize_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resize_image
_resize_image:                          ; @resize_image
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	ldr	w20, [x1]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #16
	mov	x0, x19
	bl	_pop_int
	cbz	w0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x1, sp, #20
	mov	x0, x19
	bl	_pop_int
	cbz	w0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x1, sp, #24
	mov	x0, x19
	bl	_pop_image
	cbz	w0, LBB0_5
; %bb.3:
	add	x0, sp, #8
	bl	_GetExceptionInfo
	ldr	x0, [sp, #24]
	ldp	w2, w1, [sp, #16]
Lloh6:
	adrp	x8, _LanczosFilter@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LanczosFilter@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	fmov	d0, #1.00000000
	add	x4, sp, #8
	bl	_ResizeImage
	mov	x21, x0
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, _UndefinedException@GOTPAGE
Lloh10:
	ldr	x9, [x9, _UndefinedException@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	add	x0, sp, #8
	bl	_DestroyExceptionInfo
	ldr	w8, [x19]
	add	w1, w8, #1
	mov	x0, x19
	mov	x2, x20
	bl	_free_stack
	mov	x0, x19
	mov	x1, x21
	bl	_push_image
                                        ; implicit-def: $x0
	b	LBB0_7
LBB0_5:
	str	w20, [x19]
LBB0_6:
Lloh12:
	adrp	x8, _FORTH_FAIL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FORTH_FAIL@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	str	w20, [x19]
	add	x1, sp, #8
	mov	x0, x19
	bl	_gm_catch_exception
	cbz	x21, LBB0_6
; %bb.9:
	mov	x0, x21
	bl	_DestroyImage
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resize_image 3rd"

	.comm	_FORTH_FAIL,8,3                 ; @FORTH_FAIL
l_.str.1:                               ; @.str.1
	.asciz	"resize_image 2nd"

l_.str.2:                               ; @.str.2
	.asciz	"resize_image 1st"

	.comm	_LanczosFilter,4,2              ; @LanczosFilter
	.comm	_UndefinedException,8,3         ; @UndefinedException
	.comm	_NEXT,4,2                       ; @NEXT
	.no_dead_strip	_resize_image
.subsections_via_symbols
