	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_REGISTER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_errno@GOTPCREL(%rip), %r13
	movq	$0, (%r13)
	leaq	-52(%rbp), %rsi
	movl	%r15d, %edi
	callq	_regmap
	movl	%eax, %r12d
	cmpl	$0, -52(%rbp)
	je	LBB0_2
## %bb.1:
	movq	_PT_READ_FPR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIDGET
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	callq	_rs6000_ptrace32
	cmpq	$0, (%r13)
	jne	LBB0_13
	jmp	LBB0_12
LBB0_2:
	testl	%r12d, %r12d
	js	LBB0_3
## %bb.5:
	xorl	%eax, %eax
	callq	_ARCH64
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	_PT_READ_GPR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIDGET
	leaq	-64(%rbp), %r8
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_rs6000_ptrace64
	movl	%r15d, %edi
	callq	_DEPRECATED_REGISTER_RAW_SIZE
	cmpl	$8, %eax
	jne	LBB0_9
## %bb.8:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_memcpy
	cmpq	$0, (%r13)
	jne	LBB0_13
LBB0_12:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_supply_register
	jmp	LBB0_14
LBB0_3:
	movq	_NUM_REGS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jg	LBB0_14
## %bb.4:
	movq	_gdb_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_fprintf_unfiltered
	jmp	LBB0_14
LBB0_6:
	movq	_PT_READ_GPR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIDGET
	movl	%r12d, %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_rs6000_ptrace32
	jmp	LBB0_10
LBB0_9:
	movl	-64(%rbp), %eax
LBB0_10:
	movl	%eax, (%r14)
	cmpq	$0, (%r13)
	je	LBB0_12
LBB0_13:
	movq	$0, (%r13)
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_REGISTER_SIZE,4,2          ## @MAX_REGISTER_SIZE
	.comm	_errno,8,3                      ## @errno
	.comm	_PT_READ_FPR,4,2                ## @PT_READ_FPR
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_NUM_REGS,4,2                   ## @NUM_REGS
	.comm	_gdb_stderr,4,2                 ## @gdb_stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gdb error: register no %d not implemented.\n"

	.comm	_PT_READ_GPR,4,2                ## @PT_READ_GPR
	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAX_REGISTER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_REGISTER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	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, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x23, _errno@GOTPAGE
Lloh9:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	str	xzr, [x23]
	sub	x1, x29, #60
	bl	_regmap
	mov	x21, x0
	ldur	w8, [x29, #-60]
	cbz	w8, LBB0_4
; %bb.1:
Lloh10:
	adrp	x8, _PT_READ_FPR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PT_READ_FPR@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
Lloh13:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh14:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_PIDGET
	mov	x1, x0
	mov	x0, x22
	mov	x2, x20
	mov	x3, x21
	mov	w4, #0
	bl	_rs6000_ptrace32
LBB0_2:
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.3:
	str	xzr, [x23]
	b	LBB0_9
LBB0_4:
	tbnz	w21, #31, LBB0_11
; %bb.5:
	bl	_ARCH64
Lloh16:
	adrp	x8, _PT_READ_GPR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PT_READ_GPR@GOTPAGEOFF]
	cbz	w0, LBB0_13
; %bb.6:
	ldr	w22, [x8]
Lloh18:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh19:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_PIDGET
	mov	x1, x0
	sub	x4, x29, #72
	mov	x0, x22
	mov	x2, x21
	mov	w3, #0
	bl	_rs6000_ptrace64
	mov	x0, x19
	bl	_DEPRECATED_REGISTER_RAW_SIZE
	cmp	w0, #8
	b.ne	LBB0_14
; %bb.7:
	sub	x1, x29, #72
	mov	x0, x20
	mov	w2, #8
	bl	_memcpy
	b	LBB0_2
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_supply_register
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.10:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh24:
	adrp	x8, _NUM_REGS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NUM_REGS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, w19
	b.gt	LBB0_9
; %bb.12:
Lloh27:
	adrp	x8, _gdb_stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _gdb_stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf_unfiltered
	b	LBB0_9
LBB0_13:
	ldr	w22, [x8]
Lloh32:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh33:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_PIDGET
	mov	x1, x0
	mov	w2, w21
	mov	x0, x22
	mov	w3, #0
	mov	w4, #0
	bl	_rs6000_ptrace32
	str	w0, [x20]
	b	LBB0_2
LBB0_14:
	ldur	x8, [x29, #-72]
	str	w8, [x20]
	b	LBB0_2
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_REGISTER_SIZE,4,2          ; @MAX_REGISTER_SIZE
	.comm	_errno,8,3                      ; @errno
	.comm	_PT_READ_FPR,4,2                ; @PT_READ_FPR
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_NUM_REGS,4,2                   ; @NUM_REGS
	.comm	_gdb_stderr,4,2                 ; @gdb_stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gdb error: register no %d not implemented.\n"

	.comm	_PT_READ_GPR,4,2                ; @PT_READ_GPR
	.no_dead_strip	_fetch_register
.subsections_via_symbols
