	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_newstruct                      ## -- Begin function newstruct
	.p2align	4, 0x90
_newstruct:                             ## @newstruct
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	%rsi, %rdi
	callq	_assert
	cmpb	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	_types@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lookup
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	(%rax), %rdx
	movq	_level@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	je	LBB0_6
## %bb.4:
	movq	_PARAM@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_9
## %bb.5:
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_9
LBB0_6:
	movq	16(%rax), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_8
## %bb.7:
	cmpl	$0, 28(%rax)
	je	LBB0_12
LBB0_8:
	movl	24(%rax), %esi
	addq	$8, %rax
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rdx
	callq	_error
	jmp	LBB0_9
LBB0_1:
	movl	$1, %edi
	callq	_genlabel
	movl	%eax, %edi
	callq	_stringd
	movq	%rax, %rbx
LBB0_9:
	movq	_level@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_PERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_types@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_install
	movq	%rax, %rbx
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rax, %r8
	callq	_type
	movq	%rax, %rcx
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rax
	movq	_maxlevel@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jle	LBB0_11
## %bb.10:
	movq	%rax, (%rdx)
LBB0_11:
	movq	_src@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, 8(%rbx)
LBB0_12:
	movq	%rcx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_types,4,2                      ## @types
	.comm	_level,8,3                      ## @level
	.comm	_PARAM,8,3                      ## @PARAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"redefinition of `%s' previously defined at %w\n"

	.comm	_PERM,4,2                       ## @PERM
	.comm	_maxlevel,8,3                   ## @maxlevel
	.comm	_src,1,0                        ## @src
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_newstruct                      ; -- Begin function newstruct
	.p2align	2
_newstruct:                             ; @newstruct
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_assert
	ldrb	w8, [x20]
Lloh0:
	adrp	x21, _level@GOTPAGE
Lloh1:
	ldr	x21, [x21, _level@GOTPAGEOFF]
	cbz	w8, LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _types@GOTPAGE
Lloh3:
	ldr	x8, [x8, _types@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lookup
	cbz	x0, LBB0_8
; %bb.2:
	mov	x8, x0
	ldr	x9, [x0]
	ldr	x10, [x21]
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.3:
Lloh5:
	adrp	x11, _PARAM@GOTPAGE
Lloh6:
	ldr	x11, [x11, _PARAM@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	add	x12, x11, #1
	cmp	x9, x11
	ccmp	x10, x12, #0, eq
	b.ne	LBB0_8
LBB0_4:
	ldr	x0, [x8, #16]
	ldr	w9, [x0]
	cmp	w9, w19
	b.ne	LBB0_6
; %bb.5:
	ldr	w9, [x8, #28]
	cbz	w9, LBB0_11
LBB0_6:
	ldr	w1, [x8, #24]
	add	x2, x8, #8
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	b	LBB0_8
LBB0_7:
	mov	w0, #1
	bl	_genlabel
	bl	_stringd
	mov	x20, x0
LBB0_8:
	ldr	x2, [x21]
Lloh10:
	adrp	x8, _PERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PERM@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x1, _types@GOTPAGE
Lloh14:
	ldr	x1, [x1, _types@GOTPAGEOFF]
	mov	x0, x20
	bl	_install
	mov	x20, x0
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	mov	x4, x20
	bl	_type
	str	x0, [x20, #16]
	ldr	x8, [x20]
Lloh15:
	adrp	x9, _maxlevel@GOTPAGE
Lloh16:
	ldr	x9, [x9, _maxlevel@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x8, x10
	b.le	LBB0_10
; %bb.9:
	str	x8, [x9]
LBB0_10:
Lloh17:
	adrp	x8, _src@GOTPAGE
Lloh18:
	ldr	x8, [x8, _src@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x20, #8]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_types,4,2                      ; @types
	.comm	_level,8,3                      ; @level
	.comm	_PARAM,8,3                      ; @PARAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"redefinition of `%s' previously defined at %w\n"

	.comm	_PERM,4,2                       ; @PERM
	.comm	_maxlevel,8,3                   ; @maxlevel
	.comm	_src,1,0                        ; @src
.subsections_via_symbols
