	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_register
_fetch_register:                        ## @fetch_register
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	%rsp, -200(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_REGISTER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	%ebx, %edi
	callq	_CANNOT_FETCH_REGISTER
	testq	%rax, %rax
	movq	%r14, -192(%rbp)                ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_DEPRECATED_REGISTER_RAW_SIZE
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
LBB0_9:
	movl	%ebx, %edi
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	callq	_supply_register
	movq	-200(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_inferior_ptid@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_TIDGET
	movl	%eax, -180(%rbp)                ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	callq	_PIDGET
	movl	%eax, -180(%rbp)                ## 4-byte Spill
LBB0_4:
	movq	_U_REGS_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_register_addr
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_DEPRECATED_REGISTER_RAW_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:
	xorl	%r13d, %r13d
	movq	_errno@GOTPCREL(%rip), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	addl	$4, %r13d
	movl	%ebx, %edi
	callq	_DEPRECATED_REGISTER_RAW_SIZE
	cmpl	%eax, %r13d
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%r14)
	movq	_PT_READ_U@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	(%r12,%r13), %edx
	movl	-180(%rbp), %esi                ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_ptrace
	movslq	%r13d, %rcx
	movq	-192(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, (%rdx,%rcx)
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_REGISTER_NAME
	leaq	-176(%rbp), %r15
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	callq	_sprintf
	movq	%r15, %rdi
	callq	_perror_with_name
	jmp	LBB0_8
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_REGISTER_SIZE,4,2          ## @MAX_REGISTER_SIZE
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_U_REGS_OFFSET,4,2              ## @U_REGS_OFFSET
	.comm	_errno,8,3                      ## @errno
	.comm	_PT_READ_U,4,2                  ## @PT_READ_U
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reading register %s (#%d)"

	.no_dead_strip	_fetch_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_register
_fetch_register:                        ; @fetch_register
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #144
	mov	x19, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_REGISTER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_REGISTER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	bl	_CANNOT_FETCH_REGISTER
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_DEPRECATED_REGISTER_RAW_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_memset
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_supply_register
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.3:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh11:
	adrp	x22, _inferior_ptid@GOTPAGE
Lloh12:
	ldr	x22, [x22, _inferior_ptid@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_TIDGET
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x22]
	bl	_PIDGET
	mov	x21, x0
LBB0_6:
Lloh13:
	adrp	x8, _U_REGS_OFFSET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _U_REGS_OFFSET@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_register_addr
	mov	x22, x0
	mov	x0, x19
	bl	_DEPRECATED_REGISTER_RAW_SIZE
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.7:
	mov	w25, #0
Lloh16:
	adrp	x26, _errno@GOTPAGE
Lloh17:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh18:
	adrp	x27, _PT_READ_U@GOTPAGE
Lloh19:
	ldr	x27, [x27, _PT_READ_U@GOTPAGEOFF]
Lloh20:
	adrp	x23, l_.str@PAGE
Lloh21:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w25, w25, #4
	mov	x0, x19
	bl	_DEPRECATED_REGISTER_RAW_SIZE
	cmp	w25, w0
	b.ge	LBB0_2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x26]
	ldr	w0, [x27]
	add	w2, w22, w25
	mov	x1, x21
	mov	w3, #0
	bl	_ptrace
	str	w0, [x20, w25, sxtw]
	ldr	x8, [x26]
	cbz	x8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_REGISTER_NAME
	mov	x2, x0
	sub	x0, x29, #216
	mov	x1, x23
	mov	x3, x19
	bl	_sprintf
	sub	x0, x29, #216
	bl	_perror_with_name
	b	LBB0_8
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_REGISTER_SIZE,4,2          ; @MAX_REGISTER_SIZE
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_U_REGS_OFFSET,4,2              ; @U_REGS_OFFSET
	.comm	_errno,8,3                      ; @errno
	.comm	_PT_READ_U,4,2                  ; @PT_READ_U
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reading register %s (#%d)"

	.no_dead_strip	_fetch_register
.subsections_via_symbols
