	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ia64_fbsd_regcache_collect
_ia64_fbsd_regcache_collect:            ## @ia64_fbsd_regcache_collect
	.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
	testl	%esi, %esi
	js	LBB0_5
## %bb.1:
	movq	_NUM_REGS@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_5
## %bb.2:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	_reg_offset@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, %ecx
	movslq	(%rax,%rcx,4), %r15
	movq	_IA64_BSP_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	-26(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_regcache_raw_collect
	movq	_IA64_BSPSTORE_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-25(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_regcache_raw_collect
	movb	-26(%rbp), %al
	subb	-25(%rbp), %al
	movb	%al, (%r14,%r15)
	jmp	LBB0_5
LBB0_4:
	testl	%r15d, %r15d
	js	LBB0_5
## %bb.6:
	movl	%r15d, %eax
	addq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regcache_raw_collect           ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_REGS,4,2                   ## @NUM_REGS
	.comm	_reg_offset,8,3                 ## @reg_offset
	.comm	_IA64_BSP_REGNUM,4,2            ## @IA64_BSP_REGNUM
	.comm	_IA64_BSPSTORE_REGNUM,4,2       ## @IA64_BSPSTORE_REGNUM
	.no_dead_strip	_ia64_fbsd_regcache_collect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ia64_fbsd_regcache_collect
_ia64_fbsd_regcache_collect:            ; @ia64_fbsd_regcache_collect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	tbnz	w1, #31, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _NUM_REGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_REGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_6
; %bb.2:
	mov	x19, x2
	mov	x20, x0
Lloh3:
	adrp	x8, _reg_offset@GOTPAGE
Lloh4:
	ldr	x8, [x8, _reg_offset@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldrsw	x21, [x8, w1, uxtw #2]
Lloh6:
	adrp	x8, _IA64_BSP_REGNUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IA64_BSP_REGNUM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.3:
	add	x2, sp, #15
	mov	x0, x20
	bl	_regcache_raw_collect
Lloh9:
	adrp	x8, _IA64_BSPSTORE_REGNUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IA64_BSPSTORE_REGNUM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #14
	mov	x0, x20
	bl	_regcache_raw_collect
	ldrb	w8, [sp, #15]
	ldrb	w9, [sp, #14]
	sub	w8, w8, w9
	strb	w8, [x19, x21]
	b	LBB0_6
LBB0_4:
	tbnz	w21, #31, LBB0_6
; %bb.5:
	add	x2, x19, w21, uxtw
	mov	x0, x20
	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
	add	sp, sp, #64
	b	_regcache_raw_collect
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_REGS,4,2                   ; @NUM_REGS
	.comm	_reg_offset,8,3                 ; @reg_offset
	.comm	_IA64_BSP_REGNUM,4,2            ; @IA64_BSP_REGNUM
	.comm	_IA64_BSPSTORE_REGNUM,4,2       ; @IA64_BSPSTORE_REGNUM
	.no_dead_strip	_ia64_fbsd_regcache_collect
.subsections_via_symbols
