	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function codeview_add_type
_codeview_add_type:                     ## @codeview_add_type
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_FIRST_DEFINABLE_TYPE@GOTPCREL(%rip), %r15
	cmpl	%edi, (%r15)
	jbe	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_2:
	movq	_cv_current_module@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	cmpl	$16777216, %ebx                 ## imm = 0x1000000
	jb	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_FIXME
	movq	(%r12), %rax
LBB0_5:
	movl	%ebx, %esi
	subl	(%r15), %esi
	movl	(%rax), %edi
	movq	8(%rax), %rax
	cmpl	%edi, %esi
	jb	LBB0_12
## %bb.6:
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	addl	%edi, %edi
	incl	%esi
	callq	_max
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%r12), %rcx
	movq	8(%rcx), %rdx
	movl	(%rcx), %ecx
	shll	$3, %ecx
	movl	%eax, %edi
	callq	_HeapReAlloc
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_FIXME
	jmp	LBB0_16
LBB0_9:
	incl	%esi
	movl	$256, %edi                      ## imm = 0x100
	callq	_max
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%r12), %rcx
	movl	(%rcx), %edx
	shll	$3, %edx
	movl	%eax, %edi
	callq	_HeapAlloc
LBB0_10:
	movq	(%r12), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movl	%ebx, %esi
	subl	(%r15), %esi
LBB0_12:
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.13:
	cmpq	%r14, %rdx
	je	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_FIXME
	movq	(%r12), %rax
	movq	8(%rax), %rax
	subl	(%r15), %ebx
	movq	%rbx, %rcx
LBB0_15:
	movq	%r14, (%rax,%rcx,8)
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIRST_DEFINABLE_TYPE,4,2       ## @FIRST_DEFINABLE_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"What the heck\n"

	.comm	_cv_current_module,8,3          ## @cv_current_module
L_.str.1:                               ## @.str.1
	.asciz	"Adding %x to non allowed module\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.2:                               ## @.str.2
	.asciz	"No module index while inserting type-id assumption is wrong %x\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
L_.str.3:                               ## @.str.3
	.asciz	"Overwriting at %x\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_codeview_add_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function codeview_add_type
_codeview_add_type:                     ; @codeview_add_type
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _FIRST_DEFINABLE_TYPE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FIRST_DEFINABLE_TYPE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w0
	b.ls	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
LBB0_2:
Lloh4:
	adrp	x22, _cv_current_module@GOTPAGE
Lloh5:
	ldr	x22, [x22, _cv_current_module@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.3:
	lsr	w9, w20, #24
	cbz	w9, LBB0_5
; %bb.4:
	mov	x8, x20
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
	ldr	x8, [x22]
LBB0_5:
	ldr	w10, [x21]
	ldr	w9, [x8]
	ldr	x0, [x8, #8]
	sub	w8, w20, w10
	cmp	w8, w9
	b.lo	LBB0_12
; %bb.6:
	cbz	x0, LBB0_9
; %bb.7:
	lsl	w0, w9, #1
	add	w1, w8, #1
	bl	_max
	ldr	x8, [x22]
	str	w0, [x8]
	bl	_GetProcessHeap
Lloh8:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x8, [x22]
	ldr	x2, [x8, #8]
	ldr	w8, [x8]
	lsl	w3, w8, #3
	bl	_HeapReAlloc
	b	LBB0_10
LBB0_8:
	str	x20, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
	b	LBB0_14
LBB0_9:
	add	w1, w8, #1
	mov	w0, #256
	bl	_max
	ldr	x8, [x22]
	str	w0, [x8]
	bl	_GetProcessHeap
Lloh13:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	x8, [x22]
	ldr	w8, [x8]
	lsl	w2, w8, #3
	bl	_HeapAlloc
LBB0_10:
	ldr	x8, [x22]
	str	x0, [x8, #8]
	cbz	x0, LBB0_14
; %bb.11:
	ldr	w8, [x21]
	sub	w8, w20, w8
LBB0_12:
	ldr	x9, [x0, w8, uxtw #3]
	cmp	x9, #0
	ccmp	x9, x19, #4, ne
	b.ne	LBB0_15
; %bb.13:
	mov	w8, w8
	b	LBB0_16
LBB0_14:
Lloh16:
	adrp	x8, _FALSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
	mov	x8, x20
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_FIXME
	ldr	x8, [x22]
	ldr	x0, [x8, #8]
	ldr	w8, [x21]
	sub	w8, w20, w8
LBB0_16:
	str	x19, [x0, x8, lsl #3]
Lloh20:
	adrp	x8, _TRUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FIRST_DEFINABLE_TYPE,4,2       ; @FIRST_DEFINABLE_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"What the heck\n"

	.comm	_cv_current_module,8,3          ; @cv_current_module
l_.str.1:                               ; @.str.1
	.asciz	"Adding %x to non allowed module\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"No module index while inserting type-id assumption is wrong %x\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
l_.str.3:                               ; @.str.3
	.asciz	"Overwriting at %x\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_codeview_add_type
.subsections_via_symbols
