	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function codeview_get_type
_codeview_get_type:                     ## @codeview_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_FIRST_DEFINABLE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	jbe	LBB0_3
## %bb.1:
	movq	_MAX_BUILTIN_TYPES@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jbe	LBB0_5
## %bb.2:
	movq	_cv_basic_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	jmp	LBB0_11
LBB0_3:
	movl	%ebx, %esi
	shrl	$24, %esi
	cmpl	$16777216, %ebx                 ## imm = 0x1000000
	jae	LBB0_6
## %bb.4:
	movq	_cv_current_module@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_cv_zmodules@GOTPCREL(%rip), %rdx
	leaq	(%rsi,%rsi,2), %rcx
	shlq	$3, %rcx
	addq	(%rdx), %rcx
LBB0_7:
	movq	_CV_MAX_MODULES@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %esi
	jae	LBB0_12
## %bb.8:
	cmpl	$0, 16(%rcx)
	je	LBB0_12
## %bb.9:
	movl	%ebx, %edx
	andl	$16777215, %edx                 ## imm = 0xFFFFFF
	subl	%eax, %edx
	cmpl	(%rcx), %edx
	jae	LBB0_5
## %bb.10:
	movq	8(%rcx), %rax
	movl	%edx, %ecx
LBB0_11:
	movq	(%rax,%rcx,8), %r15
	testl	%ebx, %ebx
	jne	LBB0_13
	jmp	LBB0_16
LBB0_12:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_FIXME
	testl	%ebx, %ebx
	jne	LBB0_13
	jmp	LBB0_16
LBB0_5:
	xorl	%r15d, %r15d
	testl	%ebx, %ebx
	je	LBB0_16
LBB0_13:
	testl	%r14d, %r14d
	jne	LBB0_16
## %bb.14:
	testq	%r15, %r15
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_16:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIRST_DEFINABLE_TYPE,4,2       ## @FIRST_DEFINABLE_TYPE
	.comm	_MAX_BUILTIN_TYPES,4,2          ## @MAX_BUILTIN_TYPES
	.comm	_cv_basic_types,8,3             ## @cv_basic_types
	.comm	_cv_current_module,8,3          ## @cv_current_module
	.comm	_cv_zmodules,8,3                ## @cv_zmodules
	.comm	_CV_MAX_MODULES,4,2             ## @CV_MAX_MODULES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Module of index %d isn't loaded yet (%x)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Returning NULL symt for type-id %x\n"

	.no_dead_strip	_codeview_get_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function codeview_get_type
_codeview_get_type:                     ; @codeview_get_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FIRST_DEFINABLE_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIRST_DEFINABLE_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ls	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _MAX_BUILTIN_TYPES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_BUILTIN_TYPES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ls	LBB0_8
; %bb.2:
Lloh6:
	adrp	x8, _cv_basic_types@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cv_basic_types@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x21, [x8, w19, uxtw #3]
	cbnz	w19, LBB0_9
	b	LBB0_12
LBB0_3:
	lsr	w1, w19, #24
Lloh9:
	adrp	x9, _cv_current_module@GOTPAGE
Lloh10:
	ldr	x9, [x9, _cv_current_module@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _cv_zmodules@GOTPAGE
Lloh13:
	ldr	x10, [x10, _cv_zmodules@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	mov	w11, #24
	umaddl	x10, w1, w11, x10
	cmp	w1, #0
	csel	x9, x9, x10, eq
Lloh15:
	adrp	x10, _CV_MAX_MODULES@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CV_MAX_MODULES@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w1, w10
	b.hs	LBB0_7
; %bb.4:
	ldr	w10, [x9, #16]
	cbz	w10, LBB0_7
; %bb.5:
	and	w10, w19, #0xffffff
	ldr	w11, [x9]
	sub	w8, w10, w8
	cmp	w8, w11
	b.hs	LBB0_8
; %bb.6:
	ldr	x9, [x9, #8]
	ldr	x21, [x9, w8, uxtw #3]
	cbnz	w19, LBB0_9
	b	LBB0_12
LBB0_7:
	str	x19, [sp]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
LBB0_8:
	mov	x21, #0
	cbz	w19, LBB0_12
LBB0_9:
	cbnz	w20, LBB0_12
; %bb.10:
	cbnz	x21, LBB0_12
; %bb.11:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_FIXME
LBB0_12:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FIRST_DEFINABLE_TYPE,4,2       ; @FIRST_DEFINABLE_TYPE
	.comm	_MAX_BUILTIN_TYPES,4,2          ; @MAX_BUILTIN_TYPES
	.comm	_cv_basic_types,8,3             ; @cv_basic_types
	.comm	_cv_current_module,8,3          ; @cv_current_module
	.comm	_cv_zmodules,8,3                ; @cv_zmodules
	.comm	_CV_MAX_MODULES,4,2             ; @CV_MAX_MODULES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Module of index %d isn't loaded yet (%x)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Returning NULL symt for type-id %x\n"

	.no_dead_strip	_codeview_get_type
.subsections_via_symbols
