	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thread_db_store_registers
_thread_db_store_registers:             ## @thread_db_store_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_inferior_ptid@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_is_thread
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	(%r12), %edi
	callq	_find_thread_pid
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_thread_db_map_id2thr
	cmpl	$-1, %ebx
	je	LBB0_5
## %bb.4:
	movq	%rsp, %r13
	movq	_MAX_REGISTER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_deprecated_read_register_gen
	movl	$-1, %edi
	callq	_thread_db_fetch_registers
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_supply_register
	movq	%r13, %rsp
LBB0_5:
	movl	$-1, %esi
	callq	_fill_gregset
	leaq	-52(%rbp), %rdi
	movl	$-1, %esi
	callq	_fill_fpregset
	movq	(%r14), %rdi
	callq	_td_thr_setgregs_p
	movq	_TD_OK@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_GET_THREAD
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_thread_db_err_str
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_error
LBB0_7:
	movq	(%r14), %rdi
	leaq	-52(%rbp), %rsi
	callq	_td_thr_setfpregs_p
	cmpq	(%r13), %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_GET_THREAD
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_thread_db_err_str
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_error
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_target_beneath@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.2:
	movl	%ebx, %edi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_target_beneath,8,3             ## @target_beneath
	.comm	_MAX_REGISTER_SIZE,4,2          ## @MAX_REGISTER_SIZE
	.comm	_TD_OK,8,3                      ## @TD_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot store general-purpose registers for thread %ld: %s"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot store floating-point registers  for thread %ld: %s"

	.no_dead_strip	_thread_db_store_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thread_db_store_registers
_thread_db_store_registers:             ; @thread_db_store_registers
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _inferior_ptid@GOTPAGE
Lloh4:
	ldr	x22, [x22, _inferior_ptid@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_is_thread
	cbz	w0, LBB0_9
; %bb.1:
	ldr	w0, [x22]
	bl	_find_thread_pid
	mov	x19, x0
	mov	w1, #1
	bl	_thread_db_map_id2thr
	cmn	w20, #1
	b.eq	LBB0_3
; %bb.2:
	mov	x23, sp
Lloh5:
	adrp	x8, _MAX_REGISTER_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_REGISTER_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	x0, x20
	mov	x1, x21
	bl	_deprecated_read_register_gen
	mov	w0, #-1
	bl	_thread_db_fetch_registers
	mov	x0, x20
	mov	x1, x21
	bl	_supply_register
	mov	sp, x23
LBB0_3:
	mov	w1, #-1
	bl	_fill_gregset
	sub	x0, x29, #60
	mov	w1, #-1
	bl	_fill_fpregset
	ldr	x0, [x19]
	bl	_td_thr_setgregs_p
Lloh10:
	adrp	x23, _TD_OK@GOTPAGE
Lloh11:
	ldr	x23, [x23, _TD_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	mov	x20, x0
	ldr	w0, [x22]
	bl	_GET_THREAD
	mov	x21, x0
	mov	x0, x20
	bl	_thread_db_err_str
	mov	x2, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_error
LBB0_5:
	ldr	x0, [x19]
	sub	x1, x29, #60
	bl	_td_thr_setfpregs_p
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	mov	x19, x0
	ldr	w0, [x22]
	bl	_GET_THREAD
	mov	x20, x0
	mov	x0, x19
	bl	_thread_db_err_str
	mov	x2, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_error
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.8:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh19:
	adrp	x8, _target_beneath@GOTPAGE
Lloh20:
	ldr	x8, [x8, _target_beneath@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x1, [x8]
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x1
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_target_beneath,8,3             ; @target_beneath
	.comm	_MAX_REGISTER_SIZE,4,2          ; @MAX_REGISTER_SIZE
	.comm	_TD_OK,8,3                      ; @TD_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot store general-purpose registers for thread %ld: %s"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot store floating-point registers  for thread %ld: %s"

	.no_dead_strip	_thread_db_store_registers
.subsections_via_symbols
