	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sol_thread_fetch_registers
_sol_thread_fetch_registers:            ## @sol_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	_inferior_ptid@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_is_thread
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movl	(%rbx), %edi
	callq	_GET_THREAD
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_7:
	movq	_main_ta@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_p_td_ta_map_id2thr
	movq	_TD_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %rdi
	callq	_td_err_string
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_error
LBB0_9:
	leaq	-20(%rbp), %rdi
	callq	_p_td_thr_getgregs
	cmpq	(%rbx), %rax
	je	LBB0_12
## %bb.10:
	movq	_TD_PARTIALREG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %rdi
	callq	_td_err_string
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_error
LBB0_12:
	leaq	-20(%rbp), %rdi
	leaq	-24(%rbp), %rsi
	callq	_p_td_thr_getfpregs
	cmpq	(%rbx), %rax
	je	LBB0_15
## %bb.13:
	movq	_TD_NOFPREGS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:
	movq	%rax, %rdi
	callq	_td_err_string
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_error
LBB0_15:
	leaq	-28(%rbp), %rdi
	callq	_supply_gregset
	leaq	-24(%rbp), %rdi
	callq	_supply_fpregset
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_target_has_execution@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_procfs_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_orig_core_ops@GOTPCREL(%rip), %rax
LBB0_3:
	movl	%r14d, %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_target_has_execution,8,3       ## @target_has_execution
	.comm	_procfs_ops,8,3                 ## @procfs_ops
	.comm	_orig_core_ops,8,3              ## @orig_core_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sol_thread_fetch_registers:  thread == 0"

	.comm	_main_ta,4,2                    ## @main_ta
	.comm	_TD_OK,8,3                      ## @TD_OK
L_.str.1:                               ## @.str.1
	.asciz	"sol_thread_fetch_registers: td_ta_map_id2thr: %s"

	.comm	_TD_PARTIALREG,8,3              ## @TD_PARTIALREG
L_.str.2:                               ## @.str.2
	.asciz	"sol_thread_fetch_registers: td_thr_getgregs %s"

	.comm	_TD_NOFPREGS,8,3                ## @TD_NOFPREGS
L_.str.3:                               ## @.str.3
	.asciz	"sol_thread_fetch_registers: td_thr_getfpregs %s"

	.comm	_TD_NOXREGS,8,3                 ## @TD_NOXREGS
	.no_dead_strip	_sol_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 sol_thread_fetch_registers
_sol_thread_fetch_registers:            ; @sol_thread_fetch_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x20, _inferior_ptid@GOTPAGE
Lloh1:
	ldr	x20, [x20, _inferior_ptid@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_is_thread
	cbz	w0, LBB0_10
; %bb.1:
	ldr	w0, [x20]
	bl	_GET_THREAD
	mov	x19, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_3:
Lloh4:
	adrp	x8, _main_ta@GOTPAGE
Lloh5:
	ldr	x8, [x8, _main_ta@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	sub	x2, x29, #20
	mov	x1, x19
	bl	_p_td_ta_map_id2thr
Lloh7:
	adrp	x19, _TD_OK@GOTPAGE
Lloh8:
	ldr	x19, [x19, _TD_OK@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	bl	_td_err_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_5:
	sub	x0, x29, #20
	bl	_p_td_thr_getgregs
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _TD_PARTIALREG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TD_PARTIALREG@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_7
; %bb.6:
	bl	_td_err_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_7:
	sub	x0, x29, #20
	add	x1, sp, #20
	bl	_p_td_thr_getfpregs
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _TD_NOFPREGS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TD_NOFPREGS@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_9
; %bb.8:
	bl	_td_err_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
LBB0_9:
	add	x0, sp, #24
	bl	_supply_gregset
	add	x0, sp, #20
	bl	_supply_fpregset
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
Lloh21:
	adrp	x8, _target_has_execution@GOTPAGE
Lloh22:
	ldr	x8, [x8, _target_has_execution@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
Lloh24:
	adrp	x8, _procfs_ops@GOTPAGE
Lloh25:
	ldr	x8, [x8, _procfs_ops@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh26:
	adrp	x8, _orig_core_ops@GOTPAGE
Lloh27:
	ldr	x8, [x8, _orig_core_ops@GOTPAGEOFF]
LBB0_13:
	ldr	x1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	br	x1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_target_has_execution,8,3       ; @target_has_execution
	.comm	_procfs_ops,8,3                 ; @procfs_ops
	.comm	_orig_core_ops,8,3              ; @orig_core_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sol_thread_fetch_registers:  thread == 0"

	.comm	_main_ta,4,2                    ; @main_ta
	.comm	_TD_OK,8,3                      ; @TD_OK
l_.str.1:                               ; @.str.1
	.asciz	"sol_thread_fetch_registers: td_ta_map_id2thr: %s"

	.comm	_TD_PARTIALREG,8,3              ; @TD_PARTIALREG
l_.str.2:                               ; @.str.2
	.asciz	"sol_thread_fetch_registers: td_thr_getgregs %s"

	.comm	_TD_NOFPREGS,8,3                ; @TD_NOFPREGS
l_.str.3:                               ; @.str.3
	.asciz	"sol_thread_fetch_registers: td_thr_getfpregs %s"

	.comm	_TD_NOXREGS,8,3                 ; @TD_NOXREGS
	.no_dead_strip	_sol_thread_fetch_registers
.subsections_via_symbols
