	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fbsd_core_open
_fbsd_core_open:                        ## @fbsd_core_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_fbsd_thread_core@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_orig_core_ops@GOTPCREL(%rip), %rax
	callq	*(%rax)
	movq	_fbsd_thread_present@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_proc_handle@GOTPCREL(%rip), %rbx
	movq	_thread_agent@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_td_ta_new_p
	movq	_TD_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.4:
	movq	_core_bfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_elf_tdata
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_fbsd_thread_activate           ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	%eax, %edi
	callq	_thread_db_err_str
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fbsd_thread_core,4,2           ## @fbsd_thread_core
	.comm	_orig_core_ops,8,3              ## @orig_core_ops
	.comm	_fbsd_thread_present,8,3        ## @fbsd_thread_present
	.comm	_proc_handle,4,2                ## @proc_handle
	.comm	_thread_agent,4,2               ## @thread_agent
	.comm	_TD_OK,4,2                      ## @TD_OK
	.comm	_core_bfd,4,2                   ## @core_bfd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fbsd_core_open: td_ta_new: %s"

	.no_dead_strip	_fbsd_core_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fbsd_core_open
_fbsd_core_open:                        ; @fbsd_core_open
	.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
Lloh0:
	adrp	x8, _fbsd_thread_core@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fbsd_thread_core@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
Lloh3:
	adrp	x8, _orig_core_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _orig_core_ops@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	blr	x8
Lloh6:
	adrp	x8, _fbsd_thread_present@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fbsd_thread_present@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh9:
	adrp	x19, _proc_handle@GOTPAGE
Lloh10:
	ldr	x19, [x19, _proc_handle@GOTPAGEOFF]
Lloh11:
	adrp	x1, _thread_agent@GOTPAGE
Lloh12:
	ldr	x1, [x1, _thread_agent@GOTPAGEOFF]
	mov	x0, x19
	bl	_td_ta_new_p
Lloh13:
	adrp	x8, _TD_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TD_OK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
Lloh16:
	adrp	x8, _core_bfd@GOTPAGE
Lloh17:
	ldr	x8, [x8, _core_bfd@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_elf_tdata
	ldr	w8, [x0]
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fbsd_thread_activate
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	_thread_db_err_str
	mov	x1, x0
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_error
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_fbsd_thread_core,4,2           ; @fbsd_thread_core
	.comm	_orig_core_ops,8,3              ; @orig_core_ops
	.comm	_fbsd_thread_present,8,3        ; @fbsd_thread_present
	.comm	_proc_handle,4,2                ; @proc_handle
	.comm	_thread_agent,4,2               ; @thread_agent
	.comm	_TD_OK,4,2                      ; @TD_OK
	.comm	_core_bfd,4,2                   ; @core_bfd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fbsd_core_open: td_ta_new: %s"

	.no_dead_strip	_fbsd_core_open
.subsections_via_symbols
