	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amd64_supply_native_gregset    ## -- Begin function amd64_supply_native_gregset
	.p2align	4, 0x90
_amd64_supply_native_gregset:           ## @amd64_supply_native_gregset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_get_regcache_arch
	movq	_amd64_native_gregset64_num_regs@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	%rax, %rdi
	callq	_gdbarch_ptr_bit
	cmpl	$32, %eax
	jne	LBB0_2
## %bb.1:
	movq	_amd64_native_gregset32_num_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	_NUM_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	cmpl	%r13d, %ebx
	cmovll	%ebx, %r13d
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	%ebx, %r13d
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, %r12d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ebx, %r12d
	jne	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	callq	_amd64_native_gregset_reg_offset
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rdx
	addq	%r14, %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_regcache_raw_supply
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amd64_native_gregset64_num_regs,4,2 ## @amd64_native_gregset64_num_regs
	.comm	_amd64_native_gregset32_num_regs,4,2 ## @amd64_native_gregset32_num_regs
	.comm	_NUM_REGS,4,2                   ## @NUM_REGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amd64_supply_native_gregset    ; -- Begin function amd64_supply_native_gregset
	.p2align	2
_amd64_supply_native_gregset:           ; @amd64_supply_native_gregset
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_get_regcache_arch
Lloh0:
	adrp	x8, _amd64_native_gregset64_num_regs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amd64_native_gregset64_num_regs@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_gdbarch_ptr_bit
Lloh3:
	adrp	x8, _amd64_native_gregset32_num_regs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _amd64_native_gregset32_num_regs@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, #32
	csel	w8, w8, w22, eq
Lloh6:
	adrp	x9, _NUM_REGS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NUM_REGS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w23, w8, w9, lt
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w22, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	cmp	w23, w22
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmn	w19, #1
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w19, w22
	b.ne	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_amd64_native_gregset_reg_offset
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x2, x20, w0, sxtw
	mov	x0, x21
	mov	x1, x22
	bl	_regcache_raw_supply
	b	LBB0_2
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_amd64_native_gregset64_num_regs,4,2 ; @amd64_native_gregset64_num_regs
	.comm	_amd64_native_gregset32_num_regs,4,2 ; @amd64_native_gregset32_num_regs
	.comm	_NUM_REGS,4,2                   ; @NUM_REGS
.subsections_via_symbols
