	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sol_thread_attach
_sol_thread_attach:                     ## @sol_thread_attach
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	_procfs_ops@GOTPCREL(%rip), %rax
	callq	*(%rax)
	movq	_auto_solib_add@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_SOLIB_ADD
	movq	_sol_thread_active@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_printf_filtered
	movq	_inferior_ptid@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_main_ph@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	movq	_sol_thread_ops@GOTPCREL(%rip), %rdi
	callq	_push_target
	movl	(%rbx), %edi
	callq	_lwp_to_thread
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_PIDGET
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.4:
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_add_thread                     ## TAILCALL
LBB0_2:
	movl	(%r14), %eax
	movl	%eax, (%rbx)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_procfs_ops,8,3                 ## @procfs_ops
	.comm	_auto_solib_add,4,2             ## @auto_solib_add
	.comm	_sol_thread_active,8,3          ## @sol_thread_active
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sol-thread active.\n"

	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_main_ph,4,2                    ## @main_ph
	.comm	_sol_thread_ops,4,2             ## @sol_thread_ops
	.no_dead_strip	_sol_thread_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sol_thread_attach
_sol_thread_attach:                     ; @sol_thread_attach
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _procfs_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _procfs_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	blr	x8
Lloh3:
	adrp	x8, _auto_solib_add@GOTPAGE
Lloh4:
	ldr	x8, [x8, _auto_solib_add@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x19
	mov	x2, #0
	bl	_SOLIB_ADD
Lloh6:
	adrp	x8, _sol_thread_active@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sol_thread_active@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf_filtered
Lloh11:
	adrp	x19, _inferior_ptid@GOTPAGE
Lloh12:
	ldr	x19, [x19, _inferior_ptid@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh13:
	adrp	x20, _main_ph@GOTPAGE
Lloh14:
	ldr	x20, [x20, _main_ph@GOTPAGEOFF]
	str	w8, [x20]
Lloh15:
	adrp	x0, _sol_thread_ops@GOTPAGE
Lloh16:
	ldr	x0, [x0, _sol_thread_ops@GOTPAGEOFF]
	bl	_push_target
	ldr	w0, [x19]
	bl	_lwp_to_thread
	str	w0, [x19]
	bl	_PIDGET
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_add_thread
LBB0_3:
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_procfs_ops,8,3                 ; @procfs_ops
	.comm	_auto_solib_add,4,2             ; @auto_solib_add
	.comm	_sol_thread_active,8,3          ; @sol_thread_active
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sol-thread active.\n"

	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_main_ph,4,2                    ; @main_ph
	.comm	_sol_thread_ops,4,2             ; @sol_thread_ops
	.no_dead_strip	_sol_thread_attach
.subsections_via_symbols
