	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_stack
_show_stack:                            ## @show_stack
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CPU_regS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	$254, %ebx
	jg	LBB0_7
## %bb.1:
	addl	$257, %ebx                      ## imm = 0x101
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_MEMORY_dGetByte
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %eax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %ebx
	cmpl	$512, %ebx                      ## imm = 0x200
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$511, %ebx                      ## imm = 0x1FF
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_MEMORY_dGetWord
	movl	%eax, %r13d
	leal	-2(%r13), %r12d
	movl	%r12d, %edi
	callq	_MEMORY_dGetByte
	cmpl	$32, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_MEMORY_dGetByte
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	1(%rbx), %edi
	callq	_MEMORY_dGetByte
	movl	%eax, %r14d
	decl	%r13d
	movl	%r13d, %edi
	callq	_MEMORY_dGetWord
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_printf
	movl	$2, %eax
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPU_regS,4,2                   ## @CPU_regS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%04X: %02X %02X  %04X: JSR %04X\n"

L_.str.1:                               ## @.str.1
	.asciz	"%04X: %02X\n"

	.no_dead_strip	_show_stack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_stack
_show_stack:                            ; @show_stack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _CPU_regS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPU_regS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #254
	b.gt	LBB0_7
; %bb.1:
	add	w19, w8, #257
Lloh3:
	adrp	x20, l_.str.1@PAGE
Lloh4:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh5:
	adrp	x21, l_.str@PAGE
Lloh6:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_MEMORY_dGetByte
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_printf
	mov	w8, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, w8
	cmp	w19, #512
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w19, #511
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_MEMORY_dGetWord
	mov	x23, x0
	sub	w22, w0, #2
	mov	x0, x22
	bl	_MEMORY_dGetByte
	cmp	w0, #32
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_MEMORY_dGetByte
	mov	x24, x0
	add	w0, w19, #1
	bl	_MEMORY_dGetByte
	mov	x25, x0
	sub	w0, w23, #1
	bl	_MEMORY_dGetWord
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #8]
	str	x25, [sp]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_printf
	mov	w8, #2
	b	LBB0_3
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CPU_regS,4,2                   ; @CPU_regS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%04X: %02X %02X  %04X: JSR %04X\n"

l_.str.1:                               ; @.str.1
	.asciz	"%04X: %02X\n"

	.no_dead_strip	_show_stack
.subsections_via_symbols
