	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_rectype_def
_read_rectype_def:                      ## @read_rectype_def
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_read_rectype_tag
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	_tags@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%rax, %rsi
	callq	_map_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_KIND_ENUM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	cmpl	%r14d, 8(%rbx)
	je	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_error
	jmp	LBB0_7
LBB0_6:
	movl	%r14d, %edi
	callq	_make_rectype
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_5:
	movl	%r14d, %edi
	callq	_make_rectype
	movq	%rax, %rbx
	movl	(%r12), %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_map_put
LBB0_7:
	movl	$0, -40(%rbp)
	movl	$1, -36(%rbp)
	leaq	-40(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	movl	%r14d, %edx
	callq	_read_rectype_fields
	movl	-36(%rbp), %ecx
	movl	%ecx, 12(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, 24(%rbx)
	movl	-40(%rbp), %eax
	movl	%eax, 16(%rbx)
LBB0_9:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tags,4,2                       ## @tags
	.comm	_KIND_ENUM,8,3                  ## @KIND_ENUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"declarations of %s does not match"

	.no_dead_strip	_read_rectype_def
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_rectype_def
_read_rectype_def:                      ; @read_rectype_def
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	bl	_read_rectype_tag
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x22, _tags@GOTPAGE
Lloh1:
	ldr	x22, [x22, _tags@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x21
	bl	_map_get
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _KIND_ENUM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _KIND_ENUM@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x20, #8]
	cmp	w8, w19
	b.eq	LBB0_7
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_error
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_make_rectype
	mov	x20, x0
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_make_rectype
	mov	x20, x0
	ldr	w0, [x22]
	mov	x1, x21
	mov	x2, x20
	bl	_map_put
LBB0_7:
	mov	w8, #1
	stp	w8, wzr, [sp, #8]
	add	x0, sp, #12
	add	x1, sp, #8
	mov	x2, x19
	bl	_read_rectype_fields
	ldr	w8, [sp, #8]
	str	w8, [x20, #12]
	cbz	x0, LBB0_9
; %bb.8:
	str	x0, [x20, #24]
	ldr	w8, [sp, #12]
	str	w8, [x20, #16]
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_tags,4,2                       ; @tags
	.comm	_KIND_ENUM,8,3                  ; @KIND_ENUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"declarations of %s does not match"

	.no_dead_strip	_read_rectype_def
.subsections_via_symbols
