	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetch_inferior_registers       ## -- Begin function fetch_inferior_registers
	.p2align	4, 0x90
_fetch_inferior_registers:              ## @fetch_inferior_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, %ebx
	cmpl	$-1, %edi
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_GREG_SUPPLIES
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	_PT_GETREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIDGET
	leaq	-32(%rbp), %r14
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_perror_with_name
LBB0_4:
	leaq	-32(%rbp), %rdi
	callq	_supply_gregset
	cmpl	$-1, %ebx
	je	LBB0_7
LBB0_5:
	movl	%ebx, %edi
	callq	_FPREG_SUPPLIES
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	leaq	-32(%rbp), %r14
LBB0_7:
	movq	_PT_GETFPREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIDGET
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror_with_name
LBB0_9:
	leaq	-32(%rbp), %rdi
	callq	_supply_fpregset
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_GETREGS,4,2                 ## @PT_GETREGS
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't get registers"

	.comm	_PT_GETFPREGS,4,2               ## @PT_GETFPREGS
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't get FP registers"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetch_inferior_registers       ; -- Begin function fetch_inferior_registers
	.p2align	2
_fetch_inferior_registers:              ; @fetch_inferior_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x22, _inferior_ptid@GOTPAGE
Lloh1:
	ldr	x22, [x22, _inferior_ptid@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_GREG_SUPPLIES
	cbz	x0, LBB0_5
LBB0_2:
Lloh2:
	adrp	x8, _PT_GETREGS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PT_GETREGS@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	ldr	w0, [x22]
	bl	_PIDGET
	mov	x1, x0
	add	x20, sp, #8
	add	x2, sp, #8
	mov	x0, x21
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror_with_name
LBB0_4:
	add	x0, sp, #8
	bl	_supply_gregset
	cmn	w19, #1
	b.eq	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_FPREG_SUPPLIES
	cbz	x0, LBB0_10
; %bb.6:
	add	x20, sp, #8
LBB0_7:
Lloh7:
	adrp	x8, _PT_GETFPREGS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PT_GETFPREGS@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
	ldr	w0, [x22]
	bl	_PIDGET
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror_with_name
LBB0_9:
	add	x0, sp, #8
	bl	_supply_fpregset
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_GETREGS,4,2                 ; @PT_GETREGS
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't get registers"

	.comm	_PT_GETFPREGS,4,2               ; @PT_GETFPREGS
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't get FP registers"

.subsections_via_symbols
