	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amd64_collect_native_gregset   ## -- Begin function amd64_collect_native_gregset
	.p2align	4, 0x90
_amd64_collect_native_gregset:          ## @amd64_collect_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_13
## %bb.1:
	movq	_amd64_native_gregset32_num_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_I386_EIP_REGNUM@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_amd64_native_gregset_reg_offset
	movslq	%eax, %rdi
	addq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%r13), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %ecx
	cmpl	%eax, %ebx
	movl	%ecx, %ebx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, %r12d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ebx, %r12d
	jne	LBB0_6
	jmp	LBB0_5
LBB0_7:
	movq	_I386_CS_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_I386_GS_REGNUM@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	cmpl	%eax, %ebx
	jle	LBB0_8
LBB0_12:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_13:
	movq	_NUM_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	cmpl	%r13d, %ebx
	cmovll	%ebx, %r13d
	testl	%r13d, %r13d
	jle	LBB0_20
## %bb.14:
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	incl	%ebx
	cmpl	%ebx, %r13d
	je	LBB0_20
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, %r12d
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	%ebx, %r12d
	jne	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %edi
	callq	_amd64_native_gregset_reg_offset
	cmpl	$-1, %eax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movslq	%eax, %rdx
	addq	%r14, %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_regcache_raw_collect
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %edi
	callq	_amd64_native_gregset_reg_offset
	movslq	%eax, %rdi
	addq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%r13), %eax
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	leal	1(%rbx), %ecx
	cmpl	%eax, %ebx
	movl	%ecx, %ebx
	jge	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, %r12d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%ebx, %r12d
	jne	LBB0_11
	jmp	LBB0_10
LBB0_20:
	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	_I386_EIP_REGNUM,4,2            ## @I386_EIP_REGNUM
	.comm	_I386_CS_REGNUM,4,2             ## @I386_CS_REGNUM
	.comm	_I386_GS_REGNUM,4,2             ## @I386_GS_REGNUM
	.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_collect_native_gregset   ; -- Begin function amd64_collect_native_gregset
	.p2align	2
_amd64_collect_native_gregset:          ; @amd64_collect_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	w23, [x8]
	bl	_gdbarch_ptr_bit
	cmp	w0, #32
	b.ne	LBB0_8
; %bb.1:
Lloh3:
	adrp	x8, _amd64_native_gregset32_num_regs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _amd64_native_gregset32_num_regs@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x24, _I386_EIP_REGNUM@GOTPAGE
Lloh7:
	ldr	x24, [x24, _I386_EIP_REGNUM@GOTPAGEOFF]
	ldr	w8, [x24]
	tbnz	w8, #31, LBB0_7
; %bb.2:
	mov	w22, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_amd64_native_gregset_reg_offset
	add	x0, x20, w0, sxtw
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w22, #1
	cmp	w22, w8
	mov	x22, x9
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmn	w19, #1
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, w22
	b.ne	LBB0_4
	b	LBB0_3
LBB0_7:
Lloh8:
	adrp	x8, _I386_CS_REGNUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I386_CS_REGNUM@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	adrp	x24, _I386_GS_REGNUM@GOTPAGE
Lloh12:
	ldr	x24, [x24, _I386_GS_REGNUM@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w22, w8
	b.le	LBB0_17
LBB0_8:
Lloh13:
	adrp	x8, _NUM_REGS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NUM_REGS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w23, w8
	csel	w23, w23, w8, lt
	cmp	w23, #1
	b.lt	LBB0_19
; %bb.9:
	mov	w22, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w22, w22, #1
	cmp	w23, w22
	b.eq	LBB0_19
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	cmn	w19, #1
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w19, w22
	b.ne	LBB0_10
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	bl	_amd64_native_gregset_reg_offset
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x2, x20, w0, sxtw
	mov	x0, x21
	mov	x1, x22
	bl	_regcache_raw_collect
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x22
	bl	_amd64_native_gregset_reg_offset
	add	x0, x20, w0, sxtw
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x24]
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w9, w22, #1
	cmp	w22, w8
	mov	x22, x9
	b.ge	LBB0_8
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	cmn	w19, #1
	b.eq	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w19, w22
	b.ne	LBB0_16
	b	LBB0_15
LBB0_19:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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	_I386_EIP_REGNUM,4,2            ; @I386_EIP_REGNUM
	.comm	_I386_CS_REGNUM,4,2             ; @I386_CS_REGNUM
	.comm	_I386_GS_REGNUM,4,2             ; @I386_GS_REGNUM
	.comm	_NUM_REGS,4,2                   ; @NUM_REGS
.subsections_via_symbols
