	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_regset                    ## -- Begin function proc_regset
	.p2align	4, 0x90
_proc_regset:                           ## @proc_regset
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_PS_DEAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_PS_UNDEAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_PS_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	_PT_GETREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_proc_getpid
	leaq	-136(%rbp), %r12
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	movl	$-1, %ebx
	testq	%rax, %rax
	js	LBB0_11
## %bb.5:
	cmpl	$128, %r15d
	je	LBB0_9
## %bb.6:
	cmpl	$129, %r15d
	jne	LBB0_8
## %bb.7:
	leaq	-128(%rbp), %rax
	jmp	LBB0_10
LBB0_3:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %ebx
	jmp	LBB0_11
LBB0_9:
	leaq	-72(%rbp), %rax
LBB0_10:
	movq	%r14, (%rax)
	movq	_PT_SETREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_proc_getpid
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	movq	%rax, %rbx
	sarq	$63, %rbx
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_DPRINTFX
LBB0_11:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_DEAD,8,3                    ## @PS_DEAD
	.comm	_PS_UNDEAD,8,3                  ## @PS_UNDEAD
	.comm	_PS_IDLE,8,3                    ## @PS_IDLE
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_errno,4,2                      ## @errno
	.comm	_PT_GETREGS,4,2                 ## @PT_GETREGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: no support for reg number %d"

	.comm	_PT_SETREGS,4,2                 ## @PT_SETREGS
	.comm	_PC,8,3                         ## @PC
	.comm	_SP,8,3                         ## @SP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_regset                    ; -- Begin function proc_regset
	.p2align	2
_proc_regset:                           ; @proc_regset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PS_DEAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PS_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PS_UNDEAD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PS_UNDEAD@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _PS_IDLE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PS_IDLE@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _errno@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
	b	LBB0_9
LBB0_2:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh15:
	adrp	x8, _PT_GETREGS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PT_GETREGS@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	bl	_proc_getpid
	mov	x1, x0
	mov	x2, sp
	mov	x0, x22
	mov	w3, #0
	bl	_ptrace
	tbnz	x0, #63, LBB0_9
; %bb.3:
	cmp	w20, #128
	b.eq	LBB0_6
; %bb.4:
	cmp	w20, #129
	b.ne	LBB0_8
; %bb.5:
	str	x21, [sp]
	b	LBB0_7
LBB0_6:
	str	x21, [sp, #56]
LBB0_7:
Lloh18:
	adrp	x8, _PT_SETREGS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PT_SETREGS@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_proc_getpid
	mov	x1, x0
	mov	x2, sp
	mov	x0, x20
	mov	w3, #0
	bl	_ptrace
	asr	x0, x0, #63
	b	LBB0_10
LBB0_8:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DPRINTFX
LBB0_9:
	mov	w0, #-1
LBB0_10:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_DEAD,8,3                    ; @PS_DEAD
	.comm	_PS_UNDEAD,8,3                  ; @PS_UNDEAD
	.comm	_PS_IDLE,8,3                    ; @PS_IDLE
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_errno,4,2                      ; @errno
	.comm	_PT_GETREGS,4,2                 ; @PT_GETREGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: no support for reg number %d"

	.comm	_PT_SETREGS,4,2                 ; @PT_SETREGS
	.comm	_PC,8,3                         ; @PC
	.comm	_SP,8,3                         ; @SP
.subsections_via_symbols
