	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fbsd_thread_new_objfile
_fbsd_thread_new_objfile:               ## @fbsd_thread_new_objfile
	.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	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	_child_suppress_run@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.2:
	movq	_fbsd_thread_active@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_13
## %bb.3:
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GET_PID
	movq	_proc_handle@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	_thread_agent@GOTPCREL(%rip), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_td_ta_new_p
	cmpl	$129, %eax
	je	LBB0_13
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.5:
	movq	_fbsd_thread_present@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_fbsd_thread_core@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.6:
	cmpq	$0, (%r15)
	je	LBB0_11
## %bb.7:
	movq	_fbsd_thread_ops@GOTPCREL(%rip), %rdi
	callq	_push_target
	xorl	%eax, %eax
	callq	_fbsd_thread_activate
	jmp	LBB0_13
LBB0_8:
	movq	_fbsd_thread_active@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_13
## %bb.9:
	movq	_proc_handle@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_gdb_assert
LBB0_12:
	movq	$0, (%r14)
	jmp	LBB0_13
LBB0_10:
	movl	%eax, %edi
	callq	_thread_db_err_str
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warning
LBB0_13:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_target_new_objfile_chain       ## TAILCALL
LBB0_11:
	movq	(%r14), %rdi
	callq	_td_ta_delete_p
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_fbsd_thread_active,8,3         ## @fbsd_thread_active
	.comm	_proc_handle,8,3                ## @proc_handle
	.comm	_child_suppress_run,4,2         ## @child_suppress_run
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_thread_agent,8,3               ## @thread_agent
	.comm	_fbsd_thread_present,4,2        ## @fbsd_thread_present
	.comm	_fbsd_thread_core,4,2           ## @fbsd_thread_core
	.comm	_fbsd_thread_ops,4,2            ## @fbsd_thread_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot initialize thread debugging library: %s"

	.no_dead_strip	_fbsd_thread_new_objfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fbsd_thread_new_objfile
_fbsd_thread_new_objfile:               ; @fbsd_thread_new_objfile
	.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, x0
	cbz	x0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _child_suppress_run@GOTPAGE
Lloh1:
	ldr	x8, [x8, _child_suppress_run@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _fbsd_thread_active@GOTPAGE
Lloh4:
	ldr	x9, [x9, _fbsd_thread_active@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #0, ne
	b.ne	LBB0_10
; %bb.2:
Lloh6:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh7:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_GET_PID
Lloh9:
	adrp	x21, _proc_handle@GOTPAGE
Lloh10:
	ldr	x21, [x21, _proc_handle@GOTPAGEOFF]
	str	x0, [x21]
Lloh11:
	adrp	x20, _thread_agent@GOTPAGE
Lloh12:
	ldr	x20, [x20, _thread_agent@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	bl	_td_ta_new_p
	cmp	w0, #129
	b.eq	LBB0_10
; %bb.3:
	cmp	w0, #128
	b.ne	LBB0_8
; %bb.4:
Lloh13:
	adrp	x8, _fbsd_thread_present@GOTPAGE
Lloh14:
	ldr	x8, [x8, _fbsd_thread_present@GOTPAGEOFF]
	mov	w9, #1
Lloh15:
	str	w9, [x8]
Lloh16:
	adrp	x8, _fbsd_thread_core@GOTPAGE
Lloh17:
	ldr	x8, [x8, _fbsd_thread_core@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	x9, [x21]
	cmp	w8, #0
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_9
; %bb.5:
	ldr	x0, [x20]
	bl	_td_ta_delete_p
	str	xzr, [x20]
	b	LBB0_10
LBB0_6:
Lloh19:
	adrp	x20, _fbsd_thread_active@GOTPAGE
Lloh20:
	ldr	x20, [x20, _fbsd_thread_active@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.7:
Lloh21:
	adrp	x8, _proc_handle@GOTPAGE
Lloh22:
	ldr	x8, [x8, _proc_handle@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_gdb_assert
	str	xzr, [x20]
	b	LBB0_10
LBB0_8:
	bl	_thread_db_err_str
	mov	x1, x0
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warning
	b	LBB0_10
LBB0_9:
Lloh26:
	adrp	x0, _fbsd_thread_ops@GOTPAGE
Lloh27:
	ldr	x0, [x0, _fbsd_thread_ops@GOTPAGEOFF]
	bl	_push_target
	bl	_fbsd_thread_activate
LBB0_10:
	mov	x0, x19
	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	_target_new_objfile_chain
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_fbsd_thread_active,8,3         ; @fbsd_thread_active
	.comm	_proc_handle,8,3                ; @proc_handle
	.comm	_child_suppress_run,4,2         ; @child_suppress_run
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_thread_agent,8,3               ; @thread_agent
	.comm	_fbsd_thread_present,4,2        ; @fbsd_thread_present
	.comm	_fbsd_thread_core,4,2           ; @fbsd_thread_core
	.comm	_fbsd_thread_ops,4,2            ; @fbsd_thread_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot initialize thread debugging library: %s"

	.no_dead_strip	_fbsd_thread_new_objfile
.subsections_via_symbols
