	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_exception                  ## -- Begin function add_exception
	.p2align	4, 0x90
_add_exception:                         ## @add_exception
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	callq	_conv_uid
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r14
	movslq	(%r15), %rbx
	movq	_LEV_MAGUS_ADD_EXCEPTION@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	subq	%rax, %rbx
	leal	-1(%rbx), %eax
	xorl	%edi, %edi
	cmpl	$255, %eax
	setb	%dil
	callq	_assert
	movq	_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_2
## %bb.3:
	movq	_sim_header@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rbx,%rbx,2), %rcx
	xorl	%edi, %edi
	cmpl	$0, 8(%rax,%rcx,4)
	sete	%dil
	jmp	LBB0_4
LBB0_2:
	xorl	%edi, %edi
LBB0_4:
	callq	_assert
	movq	_sim_header@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rbx,%rbx,2), %r13
	leaq	(%rax,%r13,4), %rdi
	addq	$4, %rdi
	movl	4(%r15), %esi
	callq	_map_int_int_get
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	_index_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_sim_header@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	(%r14,%r13,4), %rdi
	addq	$4, %rdi
	movl	4(%r15), %esi
	callq	_map_int_int_add
	movq	%rax, %r12
	movl	(%r14,%r13,4), %eax
	movl	%eax, (%r12)
	incl	(%r14,%r13,4)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_8:
	testq	%r12, %r12
	je	LBB0_9
LBB0_7:
	xorl	%edi, %edi
	cmpl	$8388608, (%r12)                ## imm = 0x800000
	setb	%dil
	callq	_assert
	shll	$23, %ebx
	addl	(%r12), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_hset_int_add
	movl	$1, %eax
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LEV_MAGUS_ADD_EXCEPTION,4,2    ## @LEV_MAGUS_ADD_EXCEPTION
	.comm	_types,8,3                      ## @types
	.comm	_sim_header,8,3                 ## @sim_header
	.comm	_index_mode,8,3                 ## @index_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_exception                  ; -- Begin function add_exception
	.p2align	2
_add_exception:                         ; @add_exception
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_conv_uid
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _LEV_MAGUS_ADD_EXCEPTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEV_MAGUS_ADD_EXCEPTION@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh2:
	ldr	w8, [x8]
	sub	w21, w9, w8
	sub	w8, w21, #1
	cmp	w8, #255
	cset	w0, lo
	bl	_assert
Lloh3:
	adrp	x8, _types@GOTPAGE
Lloh4:
	ldr	x8, [x8, _types@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sxtw	x22, w21
	ldr	x8, [x8, w21, sxtw #3]
Lloh6:
	adrp	x23, _sim_header@GOTPAGE
Lloh7:
	ldr	x23, [x23, _sim_header@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x23]
	mov	w9, #12
	madd	x8, x22, x9, x8
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	bl	_assert
	ldr	x8, [x23]
	mov	w9, #12
	madd	x8, x22, x9, x8
	add	x0, x8, #4
	ldr	w1, [x20, #4]
	bl	_map_int_int_get
Lloh8:
	adrp	x8, _index_mode@GOTPAGE
Lloh9:
	ldr	x8, [x8, _index_mode@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_7
; %bb.5:
	mov	x21, x0
	cbnz	x0, LBB0_8
; %bb.6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	ldr	x8, [x23]
	mov	w9, #12
	madd	x23, x22, x9, x8
	add	x0, x23, #4
	ldr	w1, [x20, #4]
	bl	_map_int_int_add
	mov	x21, x0
	ldr	w8, [x23]
	str	w8, [x0]
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
LBB0_8:
	ldr	w8, [x21]
	cmp	w8, #2048, lsl #12              ; =8388608
	cset	w0, lo
	bl	_assert
	ldr	w8, [x21]
	add	w1, w8, w22, lsl #23
	mov	x0, x19
	bl	_hset_int_add
	mov	w0, #1
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LEV_MAGUS_ADD_EXCEPTION,4,2    ; @LEV_MAGUS_ADD_EXCEPTION
	.comm	_types,8,3                      ; @types
	.comm	_sim_header,8,3                 ; @sim_header
	.comm	_index_mode,8,3                 ; @index_mode
.subsections_via_symbols
