	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd64_native_gregset_reg_offset
_amd64_native_gregset_reg_offset:       ## @amd64_native_gregset_reg_offset
	.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, %r15d
	movq	_amd64_native_gregset64_reg_offset@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_amd64_native_gregset64_num_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%edi
	shrl	$31, %edi
	callq	_gdb_assert
	movq	_current_gdbarch@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gdbarch_ptr_bit
	cmpl	$32, %eax
	jne	LBB0_2
## %bb.1:
	movq	_amd64_native_gregset32_num_regs@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	movq	_NUM_REGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %ebx
	cmovgel	%edx, %ebx
	movl	$-1, %ecx
	cmpl	%r15d, %ebx
	jle	LBB0_7
## %bb.3:
	cmpl	%r15d, %edx
	jle	LBB0_7
## %bb.4:
	cmpl	$32, %eax
	jne	LBB0_6
## %bb.5:
	movq	_amd64_native_gregset32_reg_offset@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_6:
	movslq	%r15d, %rax
	movl	(%r14,%rax,4), %ecx
LBB0_7:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amd64_native_gregset64_reg_offset,8,3 ## @amd64_native_gregset64_reg_offset
	.comm	_amd64_native_gregset64_num_regs,4,2 ## @amd64_native_gregset64_num_regs
	.comm	_current_gdbarch,4,2            ## @current_gdbarch
	.comm	_amd64_native_gregset32_reg_offset,8,3 ## @amd64_native_gregset32_reg_offset
	.comm	_amd64_native_gregset32_num_regs,4,2 ## @amd64_native_gregset32_num_regs
	.comm	_NUM_REGS,4,2                   ## @NUM_REGS
	.no_dead_strip	_amd64_native_gregset_reg_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd64_native_gregset_reg_offset
_amd64_native_gregset_reg_offset:       ; @amd64_native_gregset_reg_offset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x8, _amd64_native_gregset64_reg_offset@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amd64_native_gregset64_reg_offset@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _amd64_native_gregset64_num_regs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _amd64_native_gregset64_num_regs@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_gdb_assert
Lloh6:
	adrp	x8, _current_gdbarch@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current_gdbarch@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_gdbarch_ptr_bit
Lloh9:
	adrp	x8, _amd64_native_gregset32_num_regs@GOTPAGE
Lloh10:
	ldr	x8, [x8, _amd64_native_gregset32_num_regs@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _NUM_REGS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NUM_REGS@GOTPAGEOFF]
	cmp	w0, #32
	csel	w8, w8, w21, eq
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	cmp	w8, w19
	ccmp	w9, w19, #4, gt
	b.gt	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _amd64_native_gregset32_reg_offset@GOTPAGE
Lloh16:
	ldr	x8, [x8, _amd64_native_gregset32_reg_offset@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	w0, #32
	csel	x8, x8, x20, eq
	ldr	w0, [x8, w19, sxtw #2]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_amd64_native_gregset64_reg_offset,8,3 ; @amd64_native_gregset64_reg_offset
	.comm	_amd64_native_gregset64_num_regs,4,2 ; @amd64_native_gregset64_num_regs
	.comm	_current_gdbarch,4,2            ; @current_gdbarch
	.comm	_amd64_native_gregset32_reg_offset,8,3 ; @amd64_native_gregset32_reg_offset
	.comm	_amd64_native_gregset32_num_regs,4,2 ; @amd64_native_gregset32_num_regs
	.comm	_NUM_REGS,4,2                   ; @NUM_REGS
	.no_dead_strip	_amd64_native_gregset_reg_offset
.subsections_via_symbols
