	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_thread                     ## -- Begin function add_thread
	.p2align	4, 0x90
_add_thread:                            ## @add_thread
	.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
	movq	%rsi, %r14
	movl	%edi, %r15d
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	%r15d, 8(%rbx)
	movq	%rbx, %rsi
	addq	$8, %rsi
	movq	_all_threads@GOTPCREL(%rip), %rdi
	callq	_add_inferior_to_list
	movq	_current_inferior@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, (%rax)
LBB0_2:
	movq	%r14, (%rbx)
	xorl	%eax, %eax
	callq	_new_register_cache
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_inferior_regcache_data     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_all_threads,4,2                ## @all_threads
	.comm	_current_inferior,8,3           ## @current_inferior
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_thread                     ; -- Begin function add_thread
	.p2align	2
_add_thread:                            ; @add_thread
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x21, x0
	mov	w0, #16
	bl	_malloc
	mov	x20, x0
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x1, x20
	str	w21, [x1, #8]!
Lloh0:
	adrp	x0, _all_threads@GOTPAGE
Lloh1:
	ldr	x0, [x0, _all_threads@GOTPAGEOFF]
	bl	_add_inferior_to_list
Lloh2:
	adrp	x8, _current_inferior@GOTPAGE
Lloh3:
	ldr	x8, [x8, _current_inferior@GOTPAGEOFF]
	ldr	x9, [x8]
	cbnz	x9, LBB0_2
; %bb.1:
	str	x20, [x8]
LBB0_2:
	str	x19, [x20]
	bl	_new_register_cache
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_set_inferior_regcache_data
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_all_threads,4,2                ; @all_threads
	.comm	_current_inferior,8,3           ; @current_inferior
.subsections_via_symbols
