	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fbsd_thread_fetch_registers
_fbsd_thread_fetch_registers:           ## @fbsd_thread_fetch_registers
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_inferior_ptid@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_IS_THREAD
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	_thread_agent@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r12), %edi
	callq	_GET_THREAD
	leaq	-44(%rbp), %rdx
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_td_ta_map_id2thr_p
	movq	_TD_OK@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_pid_to_thread_id
	movl	%eax, %r14d
	movl	(%r12), %edi
	callq	_GET_THREAD
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_thread_db_err_str
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_error
LBB0_3:
	leaq	-44(%rbp), %rdi
	callq	_td_thr_getgregs_p
	cmpq	(%r13), %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_pid_to_thread_id
	movl	%eax, %r14d
	movl	(%r12), %edi
	callq	_GET_THREAD
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_thread_db_err_str
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_error
LBB0_5:
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_td_thr_getfpregs_p
	cmpq	(%r13), %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_pid_to_thread_id
	movl	%eax, %r14d
	movl	(%r12), %edi
	callq	_GET_THREAD
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_thread_db_err_str
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_error
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_supply_fpregset
	callq	_supply_gregset
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fbsd_lwp_fetch_registers       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_thread_agent,4,2               ## @thread_agent
	.comm	_TD_OK,8,3                      ## @TD_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot find thread %d: Thread ID=%ld, %s"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot fetch general-purpose registers for thread %d: Thread ID=%ld, %s"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot get floating-point registers for thread %d: Thread ID=%ld, %s"

	.comm	_current_regcache,4,2           ## @current_regcache
	.no_dead_strip	_fbsd_thread_fetch_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fbsd_thread_fetch_registers
_fbsd_thread_fetch_registers:           ; @fbsd_thread_fetch_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x22, _inferior_ptid@GOTPAGE
Lloh1:
	ldr	x22, [x22, _inferior_ptid@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_IS_THREAD
	cbz	w0, LBB0_8
; %bb.1:
Lloh2:
	adrp	x8, _thread_agent@GOTPAGE
Lloh3:
	ldr	x8, [x8, _thread_agent@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	ldr	w0, [x22]
	bl	_GET_THREAD
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x19
	bl	_td_ta_map_id2thr_p
Lloh5:
	adrp	x23, _TD_OK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _TD_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x19, x0
	ldr	w0, [x22]
	bl	_pid_to_thread_id
	mov	x20, x0
	ldr	w0, [x22]
	bl	_GET_THREAD
	mov	x21, x0
	mov	x0, x19
	bl	_thread_db_err_str
	mov	x3, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_error
LBB0_3:
	add	x0, sp, #8
	bl	_td_thr_getgregs_p
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	mov	x19, x0
	ldr	w0, [x22]
	bl	_pid_to_thread_id
	mov	x20, x0
	ldr	w0, [x22]
	bl	_GET_THREAD
	mov	x21, x0
	mov	x0, x19
	bl	_thread_db_err_str
	mov	x3, x0
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_error
LBB0_5:
	add	x0, sp, #8
	add	x1, sp, #12
	bl	_td_thr_getfpregs_p
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	mov	x19, x0
	ldr	w0, [x22]
	bl	_pid_to_thread_id
	mov	x20, x0
	ldr	w0, [x22]
	bl	_GET_THREAD
	mov	x21, x0
	mov	x0, x19
	bl	_thread_db_err_str
	mov	x3, x0
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_error
LBB0_7:
	add	x0, sp, #12
	bl	_supply_fpregset
	bl	_supply_gregset
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_fbsd_lwp_fetch_registers
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_thread_agent,4,2               ; @thread_agent
	.comm	_TD_OK,8,3                      ; @TD_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot find thread %d: Thread ID=%ld, %s"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot fetch general-purpose registers for thread %d: Thread ID=%ld, %s"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot get floating-point registers for thread %d: Thread ID=%ld, %s"

	.comm	_current_regcache,4,2           ; @current_regcache
	.no_dead_strip	_fbsd_thread_fetch_registers
.subsections_via_symbols
