	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fbsd_lwp_fetch_registers
_fbsd_lwp_fetch_registers:              ## @fbsd_lwp_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_target_has_execution@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GET_PID
	movl	%eax, %ebx
	movq	_PT_GETREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-16(%rbp), %rdx
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_safe_strerror
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_error
LBB0_3:
	leaq	-16(%rbp), %rdi
	callq	_supply_gregset
	movq	_PT_GETFPREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-12(%rbp), %rdx
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_safe_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_error
LBB0_5:
	leaq	-12(%rbp), %rdi
	callq	_supply_fpregset
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	_orig_core_ops@GOTPCREL(%rip), %rax
	movl	$-1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_target_has_execution,4,2       ## @target_has_execution
	.comm	_orig_core_ops,8,3              ## @orig_core_ops
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.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_GETFPREGS,4,2               ## @PT_GETFPREGS
L_.str.1:                               ## @.str.1
	.asciz	"Cannot get lwp %d registers: %s\n "

	.comm	_PT_GETXMMREGS,4,2              ## @PT_GETXMMREGS
	.comm	_current_regcache,4,2           ## @current_regcache
	.no_dead_strip	_fbsd_lwp_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_lwp_fetch_registers
_fbsd_lwp_fetch_registers:              ; @fbsd_lwp_fetch_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
Lloh0:
	adrp	x8, _target_has_execution@GOTPAGE
Lloh1:
	ldr	x8, [x8, _target_has_execution@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh4:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_GET_PID
	mov	x19, x0
Lloh6:
	adrp	x8, _PT_GETREGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PT_GETREGS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x2, sp, #12
	mov	x1, x19
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_safe_strerror
	mov	x2, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_error
LBB0_3:
	add	x0, sp, #12
	bl	_supply_gregset
Lloh14:
	adrp	x8, _PT_GETFPREGS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PT_GETFPREGS@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x19
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_safe_strerror
	mov	x2, x0
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_error
LBB0_5:
	add	x0, sp, #8
	bl	_supply_fpregset
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
Lloh22:
	adrp	x8, _orig_core_ops@GOTPAGE
Lloh23:
	ldr	x8, [x8, _orig_core_ops@GOTPAGEOFF]
Lloh24:
	ldr	x1, [x8]
	mov	w0, #-1
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_target_has_execution,4,2       ; @target_has_execution
	.comm	_orig_core_ops,8,3              ; @orig_core_ops
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.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_GETFPREGS,4,2               ; @PT_GETFPREGS
l_.str.1:                               ; @.str.1
	.asciz	"Cannot get lwp %d registers: %s\n "

	.comm	_PT_GETXMMREGS,4,2              ; @PT_GETXMMREGS
	.comm	_current_regcache,4,2           ; @current_regcache
	.no_dead_strip	_fbsd_lwp_fetch_registers
.subsections_via_symbols
