	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fbsd_lwp_store_registers
_fbsd_lwp_store_registers:              ## @fbsd_lwp_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_inferior_ptid@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_IS_LWP
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movl	(%rbx), %edi
	callq	_GET_LWP
	movl	%eax, %r14d
	cmpl	$-1, %r15d
	je	LBB0_4
## %bb.2:
	movq	_PT_GETREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rdx
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_safe_strerror
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_error
LBB0_4:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_fill_gregset
	movq	_PT_SETREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_safe_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_error
LBB0_6:
	cmpl	$-1, %r15d
	je	LBB0_9
## %bb.7:
	movq	_PT_GETFPREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-28(%rbp), %rdx
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_safe_strerror
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_error
LBB0_9:
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_fill_fpregset
	movq	_PT_SETFPREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_safe_strerror
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_error
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_child_ops@GOTPCREL(%rip), %rax
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_child_ops,8,3                  ## @child_ops
	.comm	_PT_GETREGS,4,2                 ## @PT_GETREGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot get lwp %d registers: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_PT_SETREGS,4,2                 ## @PT_SETREGS
L_.str.1:                               ## @.str.1
	.asciz	"Cannot set lwp %d registers: %s\n"

	.comm	_PT_GETFPREGS,4,2               ## @PT_GETFPREGS
L_.str.2:                               ## @.str.2
	.asciz	"Cannot get lwp %d float registers: %s\n"

	.comm	_PT_SETFPREGS,4,2               ## @PT_SETFPREGS
L_.str.3:                               ## @.str.3
	.asciz	"Cannot set lwp %d float registers: %s\n"

	.comm	_PT_GETXMMREGS,4,2              ## @PT_GETXMMREGS
	.comm	_PT_SETXMMREGS,4,2              ## @PT_SETXMMREGS
	.no_dead_strip	_fbsd_lwp_store_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fbsd_lwp_store_registers
_fbsd_lwp_store_registers:              ; @fbsd_lwp_store_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x19, _inferior_ptid@GOTPAGE
Lloh1:
	ldr	x19, [x19, _inferior_ptid@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_IS_LWP
	cbz	w0, LBB0_12
; %bb.1:
	ldr	w0, [x19]
	bl	_GET_LWP
	mov	x19, x0
	cmn	w20, #1
	b.eq	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _PT_GETREGS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PT_GETREGS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x2, sp, #12
	mov	x1, x19
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_safe_strerror
	mov	x2, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_error
LBB0_4:
	add	x0, sp, #12
	mov	x1, x20
	bl	_fill_gregset
Lloh10:
	adrp	x8, _PT_SETREGS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PT_SETREGS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x2, sp, #12
	mov	x1, x19
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_safe_strerror
	mov	x2, x0
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_error
LBB0_6:
	cmn	w20, #1
	b.eq	LBB0_9
; %bb.7:
Lloh18:
	adrp	x8, _PT_GETFPREGS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PT_GETFPREGS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x19
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_safe_strerror
	mov	x2, x0
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_error
LBB0_9:
	add	x0, sp, #8
	mov	x1, x20
	bl	_fill_fpregset
Lloh26:
	adrp	x8, _PT_SETFPREGS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PT_SETFPREGS@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x19
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.10:
Lloh29:
	adrp	x8, _errno@GOTPAGE
Lloh30:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_safe_strerror
	mov	x2, x0
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_error
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_12:
Lloh34:
	adrp	x8, _child_ops@GOTPAGE
Lloh35:
	ldr	x8, [x8, _child_ops@GOTPAGEOFF]
Lloh36:
	ldr	x1, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	br	x1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_child_ops,8,3                  ; @child_ops
	.comm	_PT_GETREGS,4,2                 ; @PT_GETREGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot get lwp %d registers: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_PT_SETREGS,4,2                 ; @PT_SETREGS
l_.str.1:                               ; @.str.1
	.asciz	"Cannot set lwp %d registers: %s\n"

	.comm	_PT_GETFPREGS,4,2               ; @PT_GETFPREGS
l_.str.2:                               ; @.str.2
	.asciz	"Cannot get lwp %d float registers: %s\n"

	.comm	_PT_SETFPREGS,4,2               ; @PT_SETFPREGS
l_.str.3:                               ; @.str.3
	.asciz	"Cannot set lwp %d float registers: %s\n"

	.comm	_PT_GETXMMREGS,4,2              ; @PT_GETXMMREGS
	.comm	_PT_SETXMMREGS,4,2              ; @PT_SETXMMREGS
	.no_dead_strip	_fbsd_lwp_store_registers
.subsections_via_symbols
