	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_macnum@GOTPCREL(%rip), %r14
	cmpl	$16, (%r14)
	jne	LBB0_2
## %bb.1:
	leaq	L_str.9(%rip), %rdi
	jmp	LBB0_28
LBB0_2:
	movq	%rsi, %rbx
	cmpl	$1, %edi
	jg	LBB0_4
## %bb.3:
	movq	_line@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcat
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	leaq	(%rbx,%rax,4), %rdi
	callq	_gets
	xorl	%eax, %eax
	callq	_makeargv
	movq	_margc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_margv@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_4:
	cmpl	$2, %edi
	jne	LBB0_5
## %bb.6:
	movq	_interactive@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	leaq	L_str.8(%rip), %rdi
	callq	_puts
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
LBB0_8:
	movq	_macros@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	(%r14), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	16(%rax,%rcx,8), %edi
	movq	8(%rbx), %rsi
	movl	$8, %edx
	callq	_strncpy
	movslq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	(%r15), %rcx
	leaq	(%rax,%rax,2), %rdx
	movq	-16(%rcx,%rdx,8), %rsi
	incq	%rsi
	movq	%rsi, (%rcx,%rdx,8)
	jmp	LBB0_11
LBB0_5:
	movq	(%rbx), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_29
LBB0_9:
	movq	_macbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
LBB0_11:
	movq	(%r15), %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_22
## %bb.12:
	movq	_EOF@GOTPCREL(%rip), %r15
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movq	(%r12), %rax
	addq	%r13, %rax
	cmpq	%rax, %rbx
	je	LBB0_22
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getchar
	movsbl	%al, %ecx
	cmpl	%ecx, (%r15)
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movb	%al, (%rbx)
	cmpb	$10, %al
	jne	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_macros@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r14), %rdx
	leaq	(%rdx,%rdx,2), %rcx
	cmpq	(%rax,%rcx,8), %rbx
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$0, -1(%rbx)
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	movb	$0, (%rbx)
	jmp	LBB0_21
LBB0_22:
	movq	_EOF@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getchar
	movsbl	%al, %eax
	movl	(%rbx), %ecx
	cmpb	$10, %al
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	cmpl	%eax, %ecx
	jne	LBB0_23
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	cmpl	%eax, %ecx
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	xorl	%eax, %eax
	callq	_getchar
	cmpb	$10, %al
	jne	LBB0_23
LBB0_27:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_28
LBB0_14:
	leaq	L_str.7(%rip), %rdi
LBB0_28:
	callq	_puts
LBB0_29:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movl	$-1, %eax
LBB0_30:
	movq	_code@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	decq	%rbx
LBB0_17:
	incl	%edx
	movl	%edx, (%r14)
	movq	%rbx, 8(%rax,%rcx,8)
	xorl	%eax, %eax
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_macnum,4,2                     ## @macnum
	.comm	_stdout,4,2                     ## @stdout
	.comm	_code,4,2                       ## @code
	.comm	_line,8,3                       ## @line
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	" "

L_.str.2:                               ## @.str.2
	.asciz	"(macro name) "

	.comm	_margc,4,2                      ## @margc
	.comm	_margv,8,3                      ## @margv
L_.str.3:                               ## @.str.3
	.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.7:                                ## @str.7
	.asciz	"macdef:end of file encountered"

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

L_str.9:                                ## @str.9
	.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x20, _macnum@GOTPAGE
Lloh1:
	ldr	x20, [x20, _macnum@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #16
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_str.9@PAGE
Lloh3:
	add	x0, x0, l_str.9@PAGEOFF
	b	LBB0_25
LBB0_2:
	mov	x19, x1
	cmp	w0, #1
	b.gt	LBB0_4
; %bb.3:
Lloh4:
	adrp	x19, _line@GOTPAGE
Lloh5:
	ldr	x19, [x19, _line@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcat
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
Lloh10:
	adrp	x8, _stdout@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_fflush
	ldr	x19, [x19]
	mov	x0, x19
	bl	_strlen
	add	x0, x19, x0, lsl #2
	bl	_gets
	bl	_makeargv
Lloh13:
	adrp	x8, _margc@GOTPAGE
Lloh14:
	ldr	x8, [x8, _margc@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _margv@GOTPAGE
Lloh17:
	ldr	x8, [x8, _margv@GOTPAGEOFF]
Lloh18:
	ldr	x19, [x8]
LBB0_4:
	cmp	w0, #2
	b.ne	LBB0_9
; %bb.5:
Lloh19:
	adrp	x8, _interactive@GOTPAGE
Lloh20:
	ldr	x8, [x8, _interactive@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh22:
	adrp	x0, l_str.8@PAGE
Lloh23:
	add	x0, x0, l_str.8@PAGEOFF
	bl	_puts
Lloh24:
	adrp	x8, _stdout@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_fflush
LBB0_7:
Lloh27:
	adrp	x21, _macros@GOTPAGE
Lloh28:
	ldr	x21, [x21, _macros@GOTPAGEOFF]
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	w0, [x8, #16]
	ldr	x1, [x19, #8]
	mov	w2, #8
	bl	_strncpy
	ldrsw	x8, [x20]
Lloh29:
	adrp	x19, _macbuf@GOTPAGE
Lloh30:
	ldr	x19, [x19, _macbuf@GOTPAGEOFF]
	cbz	w8, LBB0_10
; %bb.8:
	ldr	x9, [x21]
	mov	w10, #24
	madd	x9, x8, x10, x9
	ldur	x10, [x9, #-16]
	add	x10, x10, #1
	str	x10, [x9]
	b	LBB0_11
LBB0_9:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	b	LBB0_26
LBB0_10:
	mov	x8, #0
	ldr	x9, [x19]
	ldr	x10, [x21]
	str	x9, [x10]
LBB0_11:
	ldr	x9, [x21]
	mov	w10, #24
	mul	x8, x8, x10
	ldr	x23, [x9, x8]
	ldr	x8, [x19]
	add	x8, x8, #1, lsl #12             ; =4096
Lloh33:
	adrp	x22, _EOF@GOTPAGE
Lloh34:
	ldr	x22, [x22, _EOF@GOTPAGEOFF]
	cmp	x23, x8
	b.eq	LBB0_20
; %bb.12:
	mov	w24, #24
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x23, x23, #1
	ldr	x8, [x19]
	add	x8, x8, #1, lsl #12             ; =4096
	cmp	x23, x8
	b.eq	LBB0_20
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	bl	_getchar
	ldr	w8, [x22]
	cmp	w8, w0
	b.eq	LBB0_24
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	strb	w0, [x23]
	cmp	w0, #10
	b.ne	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [x21]
	ldrsw	x10, [x20]
	mul	x8, x10, x24
	ldr	x8, [x9, x8]
	cmp	x23, x8
	b.eq	LBB0_28
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldurb	w8, [x23, #-1]
	cbz	w8, LBB0_29
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	strb	wzr, [x23]
	b	LBB0_13
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	bl	_getchar
	cmp	w0, #10
	b.eq	LBB0_23
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	bl	_getchar
	ldr	w8, [x22]
	cmp	w0, #10
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	cmp	w8, w0
	b.ne	LBB0_20
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
	cmp	w8, w0
	b.ne	LBB0_19
LBB0_23:
Lloh35:
	adrp	x0, l_str@PAGE
Lloh36:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh37:
	adrp	x0, l_str.7@PAGE
Lloh38:
	add	x0, x0, l_str.7@PAGEOFF
LBB0_25:
	bl	_puts
LBB0_26:
Lloh39:
	adrp	x8, _stdout@GOTPAGE
Lloh40:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_fflush
	mov	w8, #-1
LBB0_27:
Lloh42:
	adrp	x9, _code@GOTPAGE
Lloh43:
	ldr	x9, [x9, _code@GOTPAGEOFF]
Lloh44:
	str	w8, [x9]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_28:
	mov	w8, #0
	add	w11, w10, #1
	str	w11, [x20]
	mov	w11, #24
	madd	x9, x10, x11, x9
	str	x23, [x9, #8]
	b	LBB0_27
LBB0_29:
	sub	x11, x23, #1
	add	w12, w10, #1
	str	w12, [x20]
	mov	w12, #24
	madd	x9, x10, x12, x9
	str	x11, [x9, #8]
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_macnum,4,2                     ; @macnum
	.comm	_stdout,4,2                     ; @stdout
	.comm	_code,4,2                       ; @code
	.comm	_line,8,3                       ; @line
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	" "

l_.str.2:                               ; @.str.2
	.asciz	"(macro name) "

	.comm	_margc,4,2                      ; @margc
	.comm	_margv,8,3                      ; @margv
l_.str.3:                               ; @.str.3
	.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.7:                                ; @str.7
	.asciz	"macdef:end of file encountered"

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

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

.subsections_via_symbols
