	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_image
_load_image:                            ## @load_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_vkprintf
	movl	(%rbx), %r14d
	leaq	L_.str.1(%rip), %rdx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pop_str
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_gm_read_image
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	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_4
LBB0_1:
	movl	%r14d, (%rbx)
	movq	_FORTH_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"load_image\n"

L_.str.1:                               ## @.str.1
	.asciz	"read_image 1st"

	.comm	_FORTH_FAIL,8,3                 ## @FORTH_FAIL
	.comm	_NEXT,4,2                       ## @NEXT
	.no_dead_strip	_load_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_image
_load_image:                            ; @load_image
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
	ldr	w20, [x19]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	bl	_pop_str
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_gm_read_image
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
	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_4
LBB0_3:
	str	w20, [x19]
Lloh4:
	adrp	x8, _FORTH_FAIL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FORTH_FAIL@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"load_image\n"

l_.str.1:                               ; @.str.1
	.asciz	"read_image 1st"

	.comm	_FORTH_FAIL,8,3                 ; @FORTH_FAIL
	.comm	_NEXT,4,2                       ; @NEXT
	.no_dead_strip	_load_image
.subsections_via_symbols
