	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___file_history_down            ## -- Begin function __file_history_down
	.p2align	4, 0x90
___file_history_down:                   ## @__file_history_down
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_r_id_storage_list
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_r_list_length
	movl	%eax, %esi
	movl	(%rbx), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.1:
	cmpl	%esi, %ecx
	jg	LBB0_7
## %bb.2:
	leal	-1(%rcx), %edx
	movl	%edx, (%rbx)
	cmpl	$1, %ecx
	ja	LBB0_4
## %bb.3:
	movq	8(%rbx), %rcx
	movb	$0, (%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	jmp	LBB0_7
LBB0_4:
	subl	%edx, %esi
	movq	%r14, %rdi
	callq	_r_list_get_n
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	movl	(%rax), %esi
	movq	_R_LINE_BUFSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	decq	%rdx
	callq	_strncpy
	movq	8(%rbx), %rdi
	callq	_strlen
	movq	%rax, 16(%rbx)
	movq	%rax, 24(%rbx)
LBB0_6:
	movq	%r14, %rdi
	callq	_r_list_free
	movl	$1, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_LINE_BUFSIZE,8,3             ## @R_LINE_BUFSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___file_history_down            ; -- Begin function __file_history_down
	.p2align	2
___file_history_down:                   ; @__file_history_down
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_r_id_storage_list
	mov	x20, x0
	bl	_r_list_length
	ldr	w8, [x19]
	cmp	w8, #1
	ccmp	w8, w0, #0, ge
	b.le	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	subs	w8, w8, #1
	str	w8, [x19]
	b.hi	LBB0_4
; %bb.3:
	mov	w0, #0
	ldr	x8, [x19, #8]
	strb	wzr, [x8]
	stp	xzr, xzr, [x19, #16]
	b	LBB0_7
LBB0_4:
	sub	w1, w0, w8
	mov	x0, x20
	bl	_r_list_get_n
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	w1, [x0]
Lloh0:
	adrp	x9, _R_LINE_BUFSIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _R_LINE_BUFSIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sub	x2, x9, #1
	mov	x0, x8
	bl	_strncpy
	ldr	x0, [x19, #8]
	bl	_strlen
	stp	x0, x0, [x19, #16]
LBB0_6:
	mov	x0, x20
	bl	_r_list_free
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_R_LINE_BUFSIZE,8,3             ; @R_LINE_BUFSIZE
.subsections_via_symbols
