	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$2, %edi
	jl	LBB0_3
## %bb.1:
	leaq	l___const.main.buf(%rip), %rsi
	leaq	-336(%rbp), %r14
	movl	$256, %edx                      ## imm = 0x100
	movq	%r14, %rdi
	callq	_memcpy
	movl	$255, %r13d
	leaq	-80(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_dcpu16_disasm
	movl	%eax, %r12d
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_printf
	movslq	%ebx, %rax
	leaq	(%r14,%rax,4), %r14
	subl	%r12d, %r13d
	jg	LBB0_2
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-336(%rbp), %rdi
	callq	_dcpu16_assemble
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.4:
	movl	%ebx, %r15d
	leaq	L_.str.3(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-336(%rbp,%rbx), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_5
LBB0_6:
	movl	$10, %edi
	callq	_putchar
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.main.buf
l___const.main.buf:
	.long	1                               ## 0x1
	.long	124                             ## 0x7c
	.long	48                              ## 0x30
	.long	0                               ## 0x0
	.long	225                             ## 0xe1
	.long	125                             ## 0x7d
	.long	0                               ## 0x0
	.long	16                              ## 0x10
	.long	32                              ## 0x20
	.long	0                               ## 0x0
	.long	3                               ## 0x3
	.long	120                             ## 0x78
	.long	0                               ## 0x0
	.long	16                              ## 0x10
	.long	13                              ## 0xd
	.long	192                             ## 0xc0
	.long	193                             ## 0xc1
	.long	125                             ## 0x7d
	.long	26                              ## 0x1a
	.long	0                               ## 0x0
	.long	97                              ## 0x61
	.long	168                             ## 0xa8
	.long	1                               ## 0x1
	.long	124                             ## 0x7c
	.long	0                               ## 0x0
	.long	32                              ## 0x20
	.long	97                              ## 0x61
	.long	33                              ## 0x21
	.long	0                               ## 0x0
	.long	32                              ## 0x20
	.long	99                              ## 0x63
	.long	132                             ## 0x84
	.long	109                             ## 0x6d
	.long	128                             ## 0x80
	.long	193                             ## 0xc1
	.long	125                             ## 0x7d
	.long	13                              ## 0xd
	.long	0                               ## 0x0
	.long	49                              ## 0x31
	.long	144                             ## 0x90
	.long	16                              ## 0x10
	.long	124                             ## 0x7c
	.long	24                              ## 0x18
	.long	0                               ## 0x0
	.long	193                             ## 0xc1
	.long	125                             ## 0x7d
	.long	26                              ## 0x1a
	.long	0                               ## 0x0
	.long	55                              ## 0x37
	.long	144                             ## 0x90
	.long	193                             ## 0xc1
	.long	97                              ## 0x61
	.long	193                             ## 0xc1
	.long	125                             ## 0x7d
	.long	26                              ## 0x1a
	.long	0                               ## 0x0
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" %d  %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"set a, 0x30"

L_.str.2:                               ## @.str.2
	.asciz	"len=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"%02x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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 w27, -56
	.cfi_offset w28, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cmp	w0, #1
	b.le	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, l___const.main.buf@PAGE
Lloh4:
	add	x8, x8, l___const.main.buf@PAGEOFF
	ldp	q0, q1, [x8, #192]
	stp	q0, q1, [sp, #208]
	ldp	q0, q1, [x8, #224]
	stp	q0, q1, [sp, #240]
	ldp	q0, q1, [x8, #128]
	stp	q0, q1, [sp, #144]
	ldp	q0, q1, [x8, #160]
	stp	q0, q1, [sp, #176]
	ldp	q0, q1, [x8, #64]
	stp	q0, q1, [sp, #80]
	ldp	q0, q1, [x8, #96]
	stp	q0, q1, [sp, #112]
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
	ldp	q0, q1, [x8, #32]
	mov	w19, #255
	add	x20, sp, #16
	sub	x22, x29, #88
Lloh5:
	adrp	x21, l_.str@PAGE
Lloh6:
	add	x21, x21, l_.str@PAGEOFF
	stp	q0, q1, [sp, #48]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #88
	mov	x1, x20
	mov	x2, x19
	mov	x3, #0
	bl	_dcpu16_disasm
                                        ; kill: def $w0 killed $w0 def $x0
	sub	w19, w19, w0
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	add	x20, x20, w8, sxtw #2
	stp	x0, x22, [sp]
	mov	x0, x21
	bl	_printf
	cmp	w19, #0
	b.gt	LBB0_2
	b	LBB0_7
LBB0_3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #16
	bl	_dcpu16_assemble
	mov	x19, x0
	str	x19, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w20, w19
	add	x21, sp, #16
Lloh11:
	adrp	x19, l_.str.3@PAGE
Lloh12:
	add	x19, x19, l_.str.3@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21], #1
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	subs	x20, x20, #1
	b.ne	LBB0_5
LBB0_6:
	mov	w0, #10
	bl	_putchar
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #320]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.main.buf
l___const.main.buf:
	.long	1                               ; 0x1
	.long	124                             ; 0x7c
	.long	48                              ; 0x30
	.long	0                               ; 0x0
	.long	225                             ; 0xe1
	.long	125                             ; 0x7d
	.long	0                               ; 0x0
	.long	16                              ; 0x10
	.long	32                              ; 0x20
	.long	0                               ; 0x0
	.long	3                               ; 0x3
	.long	120                             ; 0x78
	.long	0                               ; 0x0
	.long	16                              ; 0x10
	.long	13                              ; 0xd
	.long	192                             ; 0xc0
	.long	193                             ; 0xc1
	.long	125                             ; 0x7d
	.long	26                              ; 0x1a
	.long	0                               ; 0x0
	.long	97                              ; 0x61
	.long	168                             ; 0xa8
	.long	1                               ; 0x1
	.long	124                             ; 0x7c
	.long	0                               ; 0x0
	.long	32                              ; 0x20
	.long	97                              ; 0x61
	.long	33                              ; 0x21
	.long	0                               ; 0x0
	.long	32                              ; 0x20
	.long	99                              ; 0x63
	.long	132                             ; 0x84
	.long	109                             ; 0x6d
	.long	128                             ; 0x80
	.long	193                             ; 0xc1
	.long	125                             ; 0x7d
	.long	13                              ; 0xd
	.long	0                               ; 0x0
	.long	49                              ; 0x31
	.long	144                             ; 0x90
	.long	16                              ; 0x10
	.long	124                             ; 0x7c
	.long	24                              ; 0x18
	.long	0                               ; 0x0
	.long	193                             ; 0xc1
	.long	125                             ; 0x7d
	.long	26                              ; 0x1a
	.long	0                               ; 0x0
	.long	55                              ; 0x37
	.long	144                             ; 0x90
	.long	193                             ; 0xc1
	.long	97                              ; 0x61
	.long	193                             ; 0xc1
	.long	125                             ; 0x7d
	.long	26                              ; 0x1a
	.long	0                               ; 0x0
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" %d  %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"set a, 0x30"

l_.str.2:                               ; @.str.2
	.asciz	"len=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"%02x"

.subsections_via_symbols
