	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_tid
_read_tid:                              ## @read_tid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	leaq	-20(%rbp), %rsi
	callq	_id
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpl	$0, -20(%rbp)
	setne	%dil
	callq	_assert
	cmpb	$61, (%rbx)
	jne	LBB0_7
## %bb.1:
	incq	%rbx
	movl	-20(%rbp), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_tdefdecl
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	-32(%rbp), %rdi
	movl	(%rdi), %eax
	movl	-20(%rbp), %esi
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	cmpl	%esi, %eax
	je	LBB0_6
## %bb.5:
	movl	$24, %edi
	callq	_xcalloc
	movq	%rax, %rdi
	movq	_TYPEDEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	-32(%rbp), %rax
	movq	%rax, 8(%rdi)
	movq	%rdi, -32(%rbp)
	movl	-20(%rbp), %esi
LBB0_6:
	callq	_addhash
	movq	-32(%rbp), %rax
	jmp	LBB0_9
LBB0_7:
	movl	-20(%rbp), %edi
	callq	_lookup
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movl	-20(%rbp), %edi
	callq	_unres_new
LBB0_9:
	movq	%rax, (%r14)
LBB0_10:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPEDEF,4,2                    ## @TYPEDEF
	.no_dead_strip	_read_tid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_tid
_read_tid:                              ; @read_tid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	add	x1, sp, #4
	bl	_id
	mov	x20, x0
	ldr	w8, [sp, #4]
	cmp	w8, #0
	cset	w0, ne
	bl	_assert
	ldrb	w8, [x20]
	cmp	w8, #61
	b.ne	LBB0_5
; %bb.1:
	add	x0, x20, #1
	ldr	w1, [sp, #4]
	add	x2, sp, #8
	bl	_tdefdecl
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.2:
	ldr	x0, [sp, #8]
	ldr	w8, [x0]
	ldr	w1, [sp, #4]
	cmp	w8, #0
	ccmp	w8, w1, #4, ne
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #24
	bl	_xcalloc
Lloh0:
	adrp	x8, _TYPEDEF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPEDEF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	ldr	x8, [sp, #8]
	str	x8, [x0, #8]
	str	x0, [sp, #8]
	ldr	w1, [sp, #4]
LBB0_4:
	bl	_addhash
	ldr	x0, [sp, #8]
	b	LBB0_7
LBB0_5:
	ldr	w0, [sp, #4]
	bl	_lookup
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	w0, [sp, #4]
	bl	_unres_new
LBB0_7:
	str	x0, [x19]
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPEDEF,4,2                    ; @TYPEDEF
	.no_dead_strip	_read_tid
.subsections_via_symbols
