	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_macdef                         ## -- Begin function macdef
	.p2align	4, 0x90
_macdef:                                ## @macdef
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -52(%rbp)
	movq	%rsi, -48(%rbp)
	movq	_macnum@GOTPCREL(%rip), %r15
	cmpl	$16, (%r15)
	jne	LBB0_2
## %bb.1:
	leaq	L_str.8(%rip), %rdi
	jmp	LBB0_27
LBB0_2:
	cmpl	$1, %edi
	jg	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdx
	leaq	-52(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_another
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	_interactive@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_str.7(%rip), %rdi
	callq	_puts
LBB0_7:
	movq	_macros@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movslq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	16(%rax,%rcx,8), %edi
	movq	-48(%rbp), %rax
	movq	8(%rax), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movslq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	(%rbx), %rcx
	leaq	(%rax,%rax,2), %rdx
	movq	-16(%rcx,%rdx,8), %rsi
	incq	%rsi
	movq	%rsi, (%rcx,%rdx,8)
	jmp	LBB0_10
LBB0_8:
	movq	_macbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
LBB0_10:
	movq	(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	movq	(%rcx,%rax,8), %rbx
	movq	_macbuf@GOTPCREL(%rip), %r12
	movl	$4096, %r13d                    ## imm = 0x1000
	movq	(%r12), %rax
	addq	%r13, %rax
	cmpq	%rax, %rbx
	je	LBB0_21
## %bb.11:
	movq	_EOF@GOTPCREL(%rip), %r14
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movq	(%r12), %rax
	addq	%r13, %rax
	cmpq	%rax, %rbx
	je	LBB0_21
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getchar
	movsbl	%al, %ecx
	cmpl	%ecx, (%r14)
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movb	%al, (%rbx)
	cmpb	$10, %al
	jne	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_macros@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r15), %rdx
	leaq	(%rdx,%rdx,2), %rcx
	cmpq	(%rax,%rcx,8), %rbx
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpb	$0, -1(%rbx)
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movb	$0, (%rbx)
	jmp	LBB0_20
LBB0_21:
	movq	_EOF@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getchar
	movsbl	%al, %eax
	movl	(%rbx), %ecx
	cmpb	$10, %al
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpl	%eax, %ecx
	jne	LBB0_22
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	cmpl	%eax, %ecx
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	xorl	%eax, %eax
	callq	_getchar
	cmpb	$10, %al
	jne	LBB0_22
LBB0_26:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_27
LBB0_4:
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_28
LBB0_13:
	leaq	L_str.6(%rip), %rdi
LBB0_27:
	callq	_puts
LBB0_28:
	movl	$-1, %eax
LBB0_29:
	movq	_code@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	decq	%rbx
LBB0_16:
	incl	%edx
	movl	%edx, (%r15)
	movq	%rbx, 8(%rax,%rcx,8)
	xorl	%eax, %eax
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_macnum,4,2                     ## @macnum
	.comm	_code,4,2                       ## @code
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"macro name"

L_.str.2:                               ## @.str.2
	.asciz	"Usage: %s macro_name\n"

	.comm	_interactive,8,3                ## @interactive
	.comm	_macros,8,3                     ## @macros
	.comm	_macbuf,8,3                     ## @macbuf
	.comm	_EOF,4,2                        ## @EOF
L_str:                                  ## @str
	.asciz	"Macro not defined - 4k buffer exceeded"

L_str.6:                                ## @str.6
	.asciz	"macdef:end of file encountered"

L_str.7:                                ## @str.7
	.asciz	"Enter macro line by line, terminating it with a null line"

L_str.8:                                ## @str.8
	.asciz	"Limit of 16 macros have already been defined"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_macdef                         ; -- Begin function macdef
	.p2align	2
_macdef:                                ; @macdef
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	str	w0, [sp, #28]
	str	x1, [sp, #16]
Lloh0:
	adrp	x19, _macnum@GOTPAGE
Lloh1:
	ldr	x19, [x19, _macnum@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #16
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_str.8@PAGE
Lloh3:
	add	x0, x0, l_str.8@PAGEOFF
	b	LBB0_24
LBB0_2:
	cmp	w0, #1
	b.gt	LBB0_4
; %bb.3:
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #28
	add	x1, sp, #16
	bl	_another
	cbz	w0, LBB0_22
LBB0_4:
Lloh6:
	adrp	x8, _interactive@GOTPAGE
Lloh7:
	ldr	x8, [x8, _interactive@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_str.7@PAGE
Lloh10:
	add	x0, x0, l_str.7@PAGEOFF
	bl	_puts
LBB0_6:
Lloh11:
	adrp	x20, _macros@GOTPAGE
Lloh12:
	ldr	x20, [x20, _macros@GOTPAGEOFF]
	ldr	x8, [x20]
	ldrsw	x9, [x19]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	w0, [x8, #16]
	ldr	x8, [sp, #16]
	ldr	x1, [x8, #8]
	mov	w2, #4
	bl	_strlcpy
	ldrsw	x8, [x19]
Lloh13:
	adrp	x21, _macbuf@GOTPAGE
Lloh14:
	ldr	x21, [x21, _macbuf@GOTPAGEOFF]
	cbz	w8, LBB0_8
; %bb.7:
	ldr	x9, [x20]
	mov	w10, #24
	madd	x9, x8, x10, x9
	ldur	x10, [x9, #-16]
	add	x10, x10, #1
	str	x10, [x9]
	b	LBB0_9
LBB0_8:
	mov	x8, #0
	ldr	x9, [x21]
	ldr	x10, [x20]
	str	x9, [x10]
LBB0_9:
	ldr	x9, [x20]
	mov	w10, #24
	mul	x8, x8, x10
	ldr	x23, [x9, x8]
	ldr	x8, [x21]
	add	x8, x8, #1, lsl #12             ; =4096
Lloh15:
	adrp	x22, _EOF@GOTPAGE
Lloh16:
	ldr	x22, [x22, _EOF@GOTPAGEOFF]
	cmp	x23, x8
	b.eq	LBB0_18
; %bb.10:
	mov	w24, #24
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	ldr	x8, [x21]
	add	x8, x8, #1, lsl #12             ; =4096
	cmp	x23, x8
	b.eq	LBB0_18
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	bl	_getchar
	ldr	w8, [x22]
	cmp	w8, w0
	b.eq	LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	strb	w0, [x23]
	cmp	w0, #10
	b.ne	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x20]
	ldrsw	x10, [x19]
	mul	x8, x10, x24
	ldr	x8, [x9, x8]
	cmp	x23, x8
	b.eq	LBB0_27
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldurb	w8, [x23, #-1]
	cbz	w8, LBB0_28
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	strb	wzr, [x23]
	b	LBB0_11
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	bl	_getchar
	cmp	w0, #10
	b.eq	LBB0_21
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	bl	_getchar
	ldr	w8, [x22]
	cmp	w0, #10
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	w8, w0
	b.ne	LBB0_18
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=1
	cmp	w8, w0
	b.ne	LBB0_17
LBB0_21:
Lloh17:
	adrp	x0, l_str@PAGE
Lloh18:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_24
LBB0_22:
	ldr	x8, [sp, #16]
	ldr	x8, [x8]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	b	LBB0_25
LBB0_23:
Lloh21:
	adrp	x0, l_str.6@PAGE
Lloh22:
	add	x0, x0, l_str.6@PAGEOFF
LBB0_24:
	bl	_puts
LBB0_25:
	mov	w8, #-1
LBB0_26:
Lloh23:
	adrp	x9, _code@GOTPAGE
Lloh24:
	ldr	x9, [x9, _code@GOTPAGEOFF]
Lloh25:
	str	w8, [x9]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_27:
	mov	w8, #0
	add	w11, w10, #1
	str	w11, [x19]
	mov	w11, #24
	madd	x9, x10, x11, x9
	str	x23, [x9, #8]
	b	LBB0_26
LBB0_28:
	sub	x11, x23, #1
	add	w12, w10, #1
	str	w12, [x19]
	mov	w12, #24
	madd	x9, x10, x12, x9
	str	x11, [x9, #8]
	b	LBB0_26
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_macnum,4,2                     ; @macnum
	.comm	_code,4,2                       ; @code
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"macro name"

l_.str.2:                               ; @.str.2
	.asciz	"Usage: %s macro_name\n"

	.comm	_interactive,8,3                ; @interactive
	.comm	_macros,8,3                     ; @macros
	.comm	_macbuf,8,3                     ; @macbuf
	.comm	_EOF,4,2                        ; @EOF
l_str:                                  ; @str
	.asciz	"Macro not defined - 4k buffer exceeded"

l_str.6:                                ; @str.6
	.asciz	"macdef:end of file encountered"

l_str.7:                                ; @str.7
	.asciz	"Enter macro line by line, terminating it with a null line"

l_str.8:                                ; @str.8
	.asciz	"Limit of 16 macros have already been defined"

.subsections_via_symbols
