	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_tdesc
_add_tdesc:                             ## @add_tdesc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	%esi, -56(%rbp)
	movq	8(%rdx), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_hash_find
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movq	8(%rbx), %r13
	movq	%rbx, %rdi
	callq	_tdesc_name
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movq	%r13, %rdx
	movl	%eax, %ecx
	movl	%r8d, %r9d
	xorl	%eax, %eax
	pushq	%r12
	pushq	%r12
	callq	_debug
	addq	$16, %rsp
	movq	_tdesc_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	*(%rax,%rcx,8)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edi
	xorl	%eax, %eax
	callq	_debug
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movq	%rbx, %rsi
	callq	_hash_add
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_hash_add
	movl	$1, %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trying to conjure %d %s (%d, <%x>) as %d, <%x>\n"

	.comm	_tdesc_ops,8,3                  ## @tdesc_ops
L_.str.1:                               ## @.str.1
	.asciz	"succeeded\n"

	.no_dead_strip	_add_tdesc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_tdesc
_add_tdesc:                             ; @add_tdesc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x20, x1
	mov	x21, x0
	str	w1, [sp, #48]
	ldr	x8, [x2, #8]
	ldr	w0, [x8]
	add	x1, sp, #48
	mov	x2, #0
	bl	_hash_find
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	x22, [x21, #8]
	mov	x0, x21
	bl	_tdesc_name
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x21]
	stp	x20, x20, [sp, #32]
	stp	x8, x8, [sp, #16]
	stp	x22, x0, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_debug
Lloh2:
	adrp	x8, _tdesc_ops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tdesc_ops@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	ldr	x8, [x8, x9, lsl #3]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	bl	_debug
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	mov	x1, x20
	bl	_hash_add
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_hash_add
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trying to conjure %d %s (%d, <%x>) as %d, <%x>\n"

	.comm	_tdesc_ops,8,3                  ; @tdesc_ops
l_.str.1:                               ; @.str.1
	.asciz	"succeeded\n"

	.no_dead_strip	_add_tdesc
.subsections_via_symbols
