	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function forth_get_attr
_forth_get_attr:                        ## @forth_get_attr
	.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	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pop_str
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pop_image
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	(%rbx), %esi
	incl	%esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_free_stack
	movq	-32(%rbp), %rdi
	movq	-40(%rbp), %rsi
	callq	_GetImageAttribute
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movl	(%rax), %edi
	incl	%edi
	callq	_malloc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_assert
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_memcpy
	movslq	(%r14), %rax
	movb	$0, (%r15,%rax)
	movslq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movl	%ecx, (%rbx)
	leaq	4(,%rax,4), %rdi
	addq	8(%rbx), %rdi
	movq	%r15, %rsi
	jmp	LBB0_6
LBB0_1:
	movl	%r14d, (%rbx)
	movq	_FORTH_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_4:
	movslq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movl	%ecx, (%rbx)
	leaq	4(,%rax,4), %rdi
	addq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	xorl	%edx, %edx
	callq	_new_str
                                        ## implicit-def: $rax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getattr: 2nd isn't str"

	.comm	_FORTH_FAIL,8,3                 ## @FORTH_FAIL
L_.str.1:                               ## @.str.1
	.asciz	"getattr: 1st isn't image"

L_.str.2:                               ## @.str.2
	.asciz	"NULL"

	.comm	_NEXT,4,2                       ## @NEXT
	.no_dead_strip	_forth_get_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function forth_get_attr
_forth_get_attr:                        ; @forth_get_attr
	.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
	ldr	w20, [x1]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	bl	_pop_str
	cbz	w0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, sp
	mov	x0, x19
	bl	_pop_image
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	add	w1, w8, #1
	mov	x0, x19
	mov	x2, x20
	bl	_free_stack
	ldp	x0, x1, [sp]
	bl	_GetImageAttribute
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	ldr	w8, [x0]
	add	w0, w8, #1
	bl	_malloc
	mov	x21, x0
	bl	_assert
	ldp	w2, w1, [x20]
	mov	x0, x21
	bl	_memcpy
	ldrsw	x8, [x20]
	strb	wzr, [x21, x8]
	ldrsw	x8, [x19]
	add	x8, x8, #1
	str	w8, [x19]
	ldr	x9, [x19, #8]
	add	x0, x9, x8, lsl #2
	mov	x1, x21
	b	LBB0_6
LBB0_4:
	str	w20, [x19]
Lloh4:
	adrp	x8, _FORTH_FAIL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FORTH_FAIL@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
	b	LBB0_7
LBB0_5:
	ldrsw	x8, [x19]
	add	x8, x8, #1
	str	w8, [x19]
	ldr	x9, [x19, #8]
	add	x0, x9, x8, lsl #2
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	w2, #0
	bl	_new_str
                                        ; implicit-def: $x0
LBB0_7:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getattr: 2nd isn't str"

	.comm	_FORTH_FAIL,8,3                 ; @FORTH_FAIL
l_.str.1:                               ; @.str.1
	.asciz	"getattr: 1st isn't image"

l_.str.2:                               ; @.str.2
	.asciz	"NULL"

	.comm	_NEXT,4,2                       ; @NEXT
	.no_dead_strip	_forth_get_attr
.subsections_via_symbols
