	.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, -44(%rbp)
	movq	%rsi, -56(%rbp)
	testl	%edi, %edi
	je	LBB0_8
## %bb.1:
	movq	_macnum@GOTPCREL(%rip), %r15
	cmpl	$16, (%r15)
	jne	LBB0_3
## %bb.2:
	movq	_ttyout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_31
LBB0_3:
	cmpl	$1, %edi
	jg	LBB0_7
## %bb.4:
	leaq	L_.str.1(%rip), %rdx
	leaq	-44(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_another
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	cmpl	$3, -44(%rbp)
	jl	LBB0_9
LBB0_6:
	movq	-56(%rbp), %rsi
	jmp	LBB0_8
LBB0_7:
	cmpl	$2, %edi
	jne	LBB0_8
LBB0_9:
	movq	_interactive@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_ttyout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_fputs
LBB0_11:
	movq	_macros@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movslq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	16(%rax,%rcx,8), %edi
	movq	-56(%rbp), %rax
	movq	8(%rax), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movslq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	(%rbx), %rcx
	leaq	(%rax,%rax,2), %rdx
	movq	-16(%rcx,%rdx,8), %rsi
	incq	%rsi
	movq	%rsi, (%rcx,%rdx,8)
	jmp	LBB0_14
LBB0_8:
	movq	(%rsi), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_UPRINTF
	jmp	LBB0_32
LBB0_12:
	movq	_macbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
LBB0_14:
	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_25
## %bb.15:
	movq	_EOF@GOTPCREL(%rip), %r14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movq	(%r12), %rax
	addq	%r13, %rax
	cmpq	%rax, %rbx
	je	LBB0_25
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getchar
	movsbl	%al, %ecx
	cmpl	%ecx, (%r14)
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movb	%al, (%rbx)
	cmpb	$10, %al
	jne	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_16 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_20
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpb	$0, -1(%rbx)
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	movb	$0, (%rbx)
	jmp	LBB0_24
LBB0_25:
	movq	_EOF@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getchar
	movsbl	%al, %eax
	movl	(%rbx), %ecx
	cmpb	$10, %al
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	cmpl	%eax, %ecx
	jne	LBB0_26
LBB0_28:                                ##   in Loop: Header=BB0_26 Depth=1
	cmpl	%eax, %ecx
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=1
	xorl	%eax, %eax
	callq	_getchar
	cmpb	$10, %al
	jne	LBB0_26
LBB0_30:
	movq	_ttyout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_31
LBB0_17:
	movq	_ttyout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
LBB0_31:
	callq	_fputs
LBB0_32:
	movl	$-1, %eax
LBB0_33:
	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_22:
	decq	%rbx
LBB0_20:
	incl	%edx
	movl	%edx, (%r15)
	movq	%rbx, 8(%rax,%rcx,8)
	xorl	%eax, %eax
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_macnum,4,2                     ## @macnum
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Limit of 16 macros have already been defined.\n"

	.comm	_ttyout,4,2                     ## @ttyout
	.comm	_code,4,2                       ## @code
L_.str.1:                               ## @.str.1
	.asciz	"macro name"

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

	.comm	_interactive,8,3                ## @interactive
L_.str.3:                               ## @.str.3
	.asciz	"Enter macro line by line, terminating it with a null line.\n"

	.comm	_macros,8,3                     ## @macros
	.comm	_macbuf,8,3                     ## @macbuf
	.comm	_EOF,4,2                        ## @EOF
L_.str.4:                               ## @.str.4
	.asciz	"macdef: end of file encountered.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Macro not defined - 4K buffer exceeded.\n"

.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	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	str	w0, [sp, #12]
	str	x1, [sp]
	cbz	w0, LBB0_12
; %bb.1:
Lloh0:
	adrp	x19, _macnum@GOTPAGE
Lloh1:
	ldr	x19, [x19, _macnum@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #16
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _ttyout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ttyout@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_28
LBB0_3:
	cmp	w0, #1
	b.gt	LBB0_7
; %bb.4:
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #12
	mov	x1, sp
	bl	_another
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w8, [sp, #12]
	cmp	w8, #3
	b.lt	LBB0_8
LBB0_6:
	ldr	x1, [sp]
	b	LBB0_12
LBB0_7:
	cmp	w0, #2
	b.ne	LBB0_12
LBB0_8:
Lloh9:
	adrp	x8, _interactive@GOTPAGE
Lloh10:
	ldr	x8, [x8, _interactive@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x20, _ttyout@GOTPAGE
Lloh13:
	ldr	x20, [x20, _ttyout@GOTPAGEOFF]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w1, [x20]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_fputs
LBB0_10:
Lloh16:
	adrp	x21, _macros@GOTPAGE
Lloh17:
	ldr	x21, [x21, _macros@GOTPAGEOFF]
	ldr	x8, [x21]
	ldrsw	x9, [x19]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	w0, [x8, #16]
	ldr	x8, [sp]
	ldr	x1, [x8, #8]
	mov	w2, #4
	bl	_strlcpy
	ldrsw	x8, [x19]
Lloh18:
	adrp	x22, _macbuf@GOTPAGE
Lloh19:
	ldr	x22, [x22, _macbuf@GOTPAGEOFF]
	cbz	w8, LBB0_13
; %bb.11:
	ldr	x9, [x21]
	mov	w10, #24
	madd	x9, x8, x10, x9
	ldur	x10, [x9, #-16]
	add	x10, x10, #1
	str	x10, [x9]
	b	LBB0_14
LBB0_12:
	ldr	x1, [x1]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_UPRINTF
	b	LBB0_29
LBB0_13:
	mov	x8, #0
	ldr	x9, [x22]
	ldr	x10, [x21]
	str	x9, [x10]
LBB0_14:
	ldr	x9, [x21]
	mov	w10, #24
	mul	x8, x8, x10
	ldr	x24, [x9, x8]
	ldr	x8, [x22]
	add	x8, x8, #1, lsl #12             ; =4096
Lloh22:
	adrp	x23, _EOF@GOTPAGE
Lloh23:
	ldr	x23, [x23, _EOF@GOTPAGEOFF]
	cmp	x24, x8
	b.eq	LBB0_23
; %bb.15:
	mov	w25, #24
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x24, x24, #1
	ldr	x8, [x22]
	add	x8, x8, #1, lsl #12             ; =4096
	cmp	x24, x8
	b.eq	LBB0_23
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	bl	_getchar
	ldr	w8, [x23]
	cmp	w8, w0
	b.eq	LBB0_27
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	strb	w0, [x24]
	cmp	w0, #10
	b.ne	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x9, [x21]
	ldrsw	x10, [x19]
	mul	x8, x10, x25
	ldr	x8, [x9, x8]
	cmp	x24, x8
	b.eq	LBB0_31
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	ldurb	w8, [x24, #-1]
	cbz	w8, LBB0_32
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=1
	strb	wzr, [x24]
	b	LBB0_16
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	bl	_getchar
	cmp	w0, #10
	b.eq	LBB0_26
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	bl	_getchar
	ldr	w8, [x23]
	cmp	w0, #10
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w8, w0
	b.ne	LBB0_23
LBB0_25:                                ;   in Loop: Header=BB0_23 Depth=1
	cmp	w8, w0
	b.ne	LBB0_22
LBB0_26:
	ldr	w1, [x20]
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_28
LBB0_27:
	ldr	w1, [x20]
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_28:
	bl	_fputs
LBB0_29:
	mov	w8, #-1
LBB0_30:
Lloh28:
	adrp	x9, _code@GOTPAGE
Lloh29:
	ldr	x9, [x9, _code@GOTPAGEOFF]
Lloh30:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_31:
	mov	w8, #0
	add	w11, w10, #1
	str	w11, [x19]
	mov	w11, #24
	madd	x9, x10, x11, x9
	str	x24, [x9, #8]
	b	LBB0_30
LBB0_32:
	sub	x11, x24, #1
	add	w12, w10, #1
	str	w12, [x19]
	mov	w12, #24
	madd	x9, x10, x12, x9
	str	x11, [x9, #8]
	b	LBB0_30
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_macnum,4,2                     ; @macnum
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Limit of 16 macros have already been defined.\n"

	.comm	_ttyout,4,2                     ; @ttyout
	.comm	_code,4,2                       ; @code
l_.str.1:                               ; @.str.1
	.asciz	"macro name"

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

	.comm	_interactive,8,3                ; @interactive
l_.str.3:                               ; @.str.3
	.asciz	"Enter macro line by line, terminating it with a null line.\n"

	.comm	_macros,8,3                     ; @macros
	.comm	_macbuf,8,3                     ; @macbuf
	.comm	_EOF,4,2                        ; @EOF
l_.str.4:                               ; @.str.4
	.asciz	"macdef: end of file encountered.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Macro not defined - 4K buffer exceeded.\n"

.subsections_via_symbols
