	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linux_ptrace_getregset_prstatus
_linux_ptrace_getregset_prstatus:       ## @linux_ptrace_getregset_prstatus
	.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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	leaq	-80(%rbp), %rsi
	movq	%rdx, %rdi
	movl	$32, %edx
	callq	_copyin
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_14:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_linux_msg
	jmp	LBB0_15
LBB0_2:
	movq	_PT_GETREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%r8d, %r8d
	callq	_kern_ptrace
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_15:
	movl	%ebx, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r15), %rbx
	movq	_curthread@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_update_pcb_bases
LBB0_5:
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	leaq	-40(%rbp), %rdi
	leaq	-112(%rbp), %rcx
	callq	_map_regs_to_linux_regset
	movq	_PT_LWPINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	$4, %r8d
	callq	_kern_ptrace
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
LBB0_7:
	movq	_PL_FLAG_SCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_9
## %bb.8:
	movl	$-38, -112(%rbp)
	movl	-88(%rbp), %eax
	movl	%eax, -84(%rbp)
LBB0_9:
	movq	-72(%rbp), %rdi
	movl	$32, %esi
	callq	_MIN
	movq	%rax, %r12
	movq	-64(%rbp), %rsi
	leaq	-112(%rbp), %rdi
	movl	%r12d, %edx
	callq	_copyout
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_14
LBB0_11:
	subq	%r12, -72(%rbp)
	leaq	-80(%rbp), %rdi
	movq	%r14, %rsi
	movl	$32, %edx
	callq	_copyout
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_14
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"copyin error %d"

	.comm	_PT_GETREGS,4,2                 ## @PT_GETREGS
	.comm	_curthread,8,3                  ## @curthread
	.comm	_PT_LWPINFO,4,2                 ## @PT_LWPINFO
L_.str.1:                               ## @.str.1
	.asciz	"PT_LWPINFO failed with error %d"

	.comm	_PL_FLAG_SCE,4,2                ## @PL_FLAG_SCE
L_.str.2:                               ## @.str.2
	.asciz	"copyout error %d"

L_.str.3:                               ## @.str.3
	.asciz	"iov copyout error %d"

	.no_dead_strip	_linux_ptrace_getregset_prstatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linux_ptrace_getregset_prstatus
_linux_ptrace_getregset_prstatus:       ; @linux_ptrace_getregset_prstatus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x1, sp
	mov	x0, x2
	mov	w2, #32
	bl	_copyin
	cbz	w0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	mov	x2, x22
	bl	_linux_msg
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _PT_GETREGS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PT_GETREGS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	sub	x3, x29, #48
	mov	x0, x19
	mov	x2, x21
	mov	w4, #0
	bl	_kern_ptrace
	mov	x22, x0
	cbz	w0, LBB0_5
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	ldr	x22, [x19]
Lloh5:
	adrp	x8, _curthread@GOTPAGE
Lloh6:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_update_pcb_bases
LBB0_7:
	ldp	x1, x2, [x22]
	sub	x0, x29, #48
	add	x3, sp, #32
	bl	_map_regs_to_linux_regset
Lloh8:
	adrp	x8, _PT_LWPINFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PT_LWPINFO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	sub	x3, x29, #40
	mov	x0, x19
	mov	x2, x21
	mov	w4, #4
	bl	_kern_ptrace
	cbz	w0, LBB0_9
; %bb.8:
	mov	x22, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_9:
	ldur	w8, [x29, #-40]
Lloh13:
	adrp	x9, _PL_FLAG_SCE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PL_FLAG_SCE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	mov	w8, #-38
	ldr	w9, [sp, #56]
	str	w8, [sp, #32]
	str	w9, [sp, #60]
LBB0_11:
	ldr	x0, [sp, #8]
	mov	w1, #32
	bl	_MIN
	mov	x21, x0
	ldr	x1, [sp, #16]
	add	x0, sp, #32
	mov	x2, x21
	bl	_copyout
	cbz	w0, LBB0_13
; %bb.12:
	mov	x22, x0
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_13:
	ldr	x8, [sp, #8]
	sub	x8, x8, x21
	str	x8, [sp, #8]
	mov	x0, sp
	mov	x1, x20
	mov	w2, #32
	bl	_copyout
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.14:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"copyin error %d"

	.comm	_PT_GETREGS,4,2                 ; @PT_GETREGS
	.comm	_curthread,8,3                  ; @curthread
	.comm	_PT_LWPINFO,4,2                 ; @PT_LWPINFO
l_.str.1:                               ; @.str.1
	.asciz	"PT_LWPINFO failed with error %d"

	.comm	_PL_FLAG_SCE,4,2                ; @PL_FLAG_SCE
l_.str.2:                               ; @.str.2
	.asciz	"copyout error %d"

l_.str.3:                               ; @.str.3
	.asciz	"iov copyout error %d"

	.no_dead_strip	_linux_ptrace_getregset_prstatus
.subsections_via_symbols
