	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_define_macro                   ## -- Begin function define_macro
	.p2align	4, 0x90
_define_macro:                          ## @define_macro
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%r8, %rbx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movl	$64, %edi
	callq	_xmalloc
	movq	%rax, %r13
	leaq	24(%rax), %r14
	movq	%r14, %rdi
	callq	_sb_new
	leaq	-56(%rbp), %rdi
	callq	_sb_new
	movq	%rbx, (%r13)
	movl	%r15d, 8(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r13)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_hash_new
	movl	%eax, 40(%r13)
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	callq	_sb_skip_white
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_buffer_and_nest
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%rax, %r15
LBB0_2:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.3:
	cmpq	$0, (%rsi)
	je	LBB0_12
## %bb.4:
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	callq	_sb_add_sb
	movq	%r14, %rdi
	callq	_sb_terminate
	movq	%rax, 16(%r13)
	movslq	%ebx, %rax
	cmpq	%rax, (%r12)
	jle	LBB0_11
## %bb.5:
	movq	8(%r12), %rcx
	cmpb	$40, (%rcx,%rax)
	jne	LBB0_11
## %bb.6:
	incl	%ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_do_formals
	movl	%eax, %ebx
	cltq
	cmpq	%rax, (%r12)
	jle	LBB0_9
## %bb.7:
	movq	8(%r12), %rcx
	cmpb	$41, (%rcx,%rax)
	jne	LBB0_9
## %bb.8:
	incl	%ebx
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_sb_skip_white
	jmp	LBB0_18
LBB0_12:
	leaq	-56(%rbp), %r14
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_get_token
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_sb_terminate
	movq	%rax, 16(%r13)
	cmpq	$0, -56(%rbp)
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	%rax, %r15
LBB0_14:
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_sb_skip_white
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_sb_skip_comma
	cmpl	%ebx, %eax
	je	LBB0_16
## %bb.15:
	movslq	%eax, %rcx
	cmpq	%rcx, (%r12)
	jle	LBB0_19
LBB0_16:
	movq	%r13, %rdi
	movl	%eax, %esi
	jmp	LBB0_17
LBB0_11:
	movq	%r13, %rdi
	movl	%ebx, %esi
LBB0_17:
	movq	%r12, %rdx
	callq	_do_formals
LBB0_18:
	movl	%eax, %ebx
LBB0_19:
	testq	%r15, %r15
	jne	LBB0_23
LBB0_20:
	movslq	%ebx, %rax
	cmpq	%rax, (%r12)
	jle	LBB0_21
## %bb.22:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movq	%rax, %r15
	jmp	LBB0_23
LBB0_21:
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_9:
	testq	%r15, %r15
	jne	LBB0_23
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	%rax, %r15
	testq	%r15, %r15
	je	LBB0_20
LBB0_23:
	cmpq	$0, -56(%rbp)
	jle	LBB0_26
## %bb.24:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movsbl	(%rax,%rbx), %edi
	callq	_TOLOWER
	movq	-48(%rbp), %rcx
	movb	%al, (%rcx,%rbx)
	incq	%rbx
	cmpq	%rbx, -56(%rbp)
	jg	LBB0_25
LBB0_26:
	movq	_macro_hash@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	16(%r13), %rsi
	callq	_hash_find
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	%rax, %r15
LBB0_28:
	movq	16(%rbp), %rbx
	testq	%r15, %r15
	jne	LBB0_30
## %bb.29:
	movl	(%r14), %edi
	movq	16(%r13), %rsi
	movl	%r13d, %edx
	callq	_hash_jam
	movq	%rax, %r15
LBB0_30:
	testq	%rbx, %rbx
	je	LBB0_32
## %bb.31:
	movq	16(%r13), %rax
	movq	%rax, (%rbx)
LBB0_32:
	testq	%r15, %r15
	je	LBB0_33
## %bb.34:
	movq	%r13, %rdi
	callq	_free_macro
	jmp	LBB0_35
LBB0_33:
	movq	_macro_defined@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_35:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MACRO"

L_.str.1:                               ## @.str.1
	.asciz	"ENDM"

L_.str.2:                               ## @.str.2
	.asciz	"unexpected end of file in macro `%s' definition"

L_.str.3:                               ## @.str.3
	.asciz	"missing `)' after formals in macro definition `%s'"

L_.str.4:                               ## @.str.4
	.asciz	"Missing macro name"

L_.str.5:                               ## @.str.5
	.asciz	"Bad parameter list for macro `%s'"

	.comm	_macro_hash,4,2                 ## @macro_hash
L_.str.6:                               ## @.str.6
	.asciz	"Macro `%s' was already defined"

	.comm	_macro_defined,4,2              ## @macro_defined
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_define_macro                   ; -- Begin function define_macro
	.p2align	2
_define_macro:                          ; @define_macro
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x21, x5
	mov	x24, x4
	mov	x25, x3
	mov	x23, x2
	mov	x22, x1
	mov	x26, x0
	mov	w0, #64
	bl	_xmalloc
	mov	x20, x0
	add	x27, x0, #24
	mov	x0, x27
	bl	_sb_new
	mov	x0, sp
	bl	_sb_new
	str	x24, [x20]
	str	w21, [x20, #8]
	stp	xzr, xzr, [x20, #48]
	bl	_hash_new
	str	w0, [x20, #40]
	mov	x0, x26
	mov	x1, x22
	bl	_sb_skip_white
	mov	x24, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x27
	mov	x3, x25
	bl	_buffer_and_nest
	mov	x21, #0
	cbz	w0, LBB0_2
; %bb.1:
	cbnz	x23, LBB0_3
	b	LBB0_9
LBB0_2:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x21, x0
	cbz	x23, LBB0_9
LBB0_3:
	ldr	x8, [x23]
	cbz	x8, LBB0_9
; %bb.4:
	mov	x0, sp
	mov	x1, x23
	bl	_sb_add_sb
	mov	x0, sp
	bl	_sb_terminate
	str	x0, [x20, #16]
	sxtw	x8, w24
	ldr	x9, [x22]
	cmp	x9, x8
	b.le	LBB0_14
; %bb.5:
	ldr	x9, [x22, #8]
	ldrb	w8, [x9, x8]
	cmp	w8, #40
	b.ne	LBB0_14
; %bb.6:
	add	w1, w24, #1
	mov	x0, x20
	mov	x2, x22
	bl	_do_formals
	mov	x23, x0
	sxtw	x8, w23
	ldr	x9, [x22]
	cmp	x9, x8
	b.le	LBB0_21
; %bb.7:
	ldr	x9, [x22, #8]
	ldrb	w8, [x9, x8]
	cmp	w8, #41
	b.ne	LBB0_21
; %bb.8:
	add	w0, w23, #1
	mov	x1, x22
	bl	_sb_skip_white
	b	LBB0_16
LBB0_9:
	mov	x2, sp
	mov	x0, x24
	mov	x1, x22
	bl	_get_token
	mov	x23, x0
	mov	x0, sp
	bl	_sb_terminate
	str	x0, [x20, #16]
	ldr	x8, [sp]
	cbnz	x8, LBB0_11
; %bb.10:
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x21, x0
LBB0_11:
	mov	x0, x23
	mov	x1, x22
	bl	_sb_skip_white
	mov	x23, x0
	mov	x1, x22
	bl	_sb_skip_comma
	mov	x1, x0
	cmp	w0, w23
	b.eq	LBB0_13
; %bb.12:
	ldr	x8, [x22]
	cmp	x8, w1, sxtw
	b.le	LBB0_17
LBB0_13:
	mov	x0, x20
	b	LBB0_15
LBB0_14:
	mov	x0, x20
	mov	x1, x24
LBB0_15:
	mov	x2, x22
	bl	_do_formals
LBB0_16:
	mov	x23, x0
LBB0_17:
	cbnz	x21, LBB0_23
LBB0_18:
	ldr	x8, [x22]
	cmp	x8, w23, sxtw
	b.le	LBB0_20
; %bb.19:
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x21, x0
	b	LBB0_23
LBB0_20:
	mov	x21, #0
	b	LBB0_23
LBB0_21:
	cbnz	x21, LBB0_23
; %bb.22:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x21, x0
	cbz	x21, LBB0_18
LBB0_23:
	ldr	x8, [sp]
	cmp	x8, #1
	b.lt	LBB0_26
; %bb.24:
	mov	x22, #0
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldrsb	w0, [x8, x22]
	bl	_TOLOWER
	ldr	x8, [sp, #8]
	strb	w0, [x8, x22]
	add	x22, x22, #1
	ldr	x8, [sp]
	cmp	x8, x22
	b.gt	LBB0_25
LBB0_26:
Lloh12:
	adrp	x22, _macro_hash@GOTPAGE
Lloh13:
	ldr	x22, [x22, _macro_hash@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x1, [x20, #16]
	bl	_hash_find
	cbz	x0, LBB0_28
; %bb.27:
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x21, x0
LBB0_28:
	cbnz	x21, LBB0_30
; %bb.29:
	ldr	w0, [x22]
	ldr	x1, [x20, #16]
	mov	x2, x20
	bl	_hash_jam
	mov	x21, x0
LBB0_30:
	cbz	x19, LBB0_32
; %bb.31:
	ldr	x8, [x20, #16]
	str	x8, [x19]
LBB0_32:
	cbz	x21, LBB0_34
; %bb.33:
	mov	x0, x20
	bl	_free_macro
	b	LBB0_35
LBB0_34:
Lloh16:
	adrp	x8, _macro_defined@GOTPAGE
Lloh17:
	ldr	x8, [x8, _macro_defined@GOTPAGEOFF]
	mov	w9, #1
Lloh18:
	str	w9, [x8]
LBB0_35:
	mov	x0, x21
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MACRO"

l_.str.1:                               ; @.str.1
	.asciz	"ENDM"

l_.str.2:                               ; @.str.2
	.asciz	"unexpected end of file in macro `%s' definition"

l_.str.3:                               ; @.str.3
	.asciz	"missing `)' after formals in macro definition `%s'"

l_.str.4:                               ; @.str.4
	.asciz	"Missing macro name"

l_.str.5:                               ; @.str.5
	.asciz	"Bad parameter list for macro `%s'"

	.comm	_macro_hash,4,2                 ; @macro_hash
l_.str.6:                               ; @.str.6
	.asciz	"Macro `%s' was already defined"

	.comm	_macro_defined,4,2              ; @macro_defined
.subsections_via_symbols
