	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___file_history_up              ## -- Begin function __file_history_up
	.p2align	4, 0x90
___file_history_up:                     ## @__file_history_up
	.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	16(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_r_id_storage_list
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_r_list_length
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	cmpl	%eax, %edx
	jge	LBB0_5
## %bb.1:
	testl	%edx, %edx
	js	LBB0_5
## %bb.2:
	incl	%edx
	movl	%edx, (%rbx)
	subl	%edx, %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_r_list_get_n
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %edi
	movl	(%rax), %esi
	movq	_R_LINE_BUFSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	decq	%rdx
	callq	_strncpy
	movl	4(%rbx), %edi
	callq	_strlen
	movl	%eax, 8(%rbx)
	movl	%eax, 12(%rbx)
LBB0_4:
	movq	%r14, %rdi
	callq	_r_list_free
	movl	$1, %ecx
LBB0_5:
	movl	%ecx, %eax
	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_up              ; -- Begin function __file_history_up
	.p2align	2
___file_history_up:                     ; @__file_history_up
	.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, #16]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_r_id_storage_list
	mov	x20, x0
	bl	_r_list_length
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	cmp	w9, w8
	b.ge	LBB0_5
; %bb.1:
	tbnz	w9, #31, LBB0_5
; %bb.2:
	add	w9, w9, #1
	str	w9, [x19]
	sub	w1, w8, w9
	mov	x0, x20
	bl	_r_list_get_n
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x19, #4]
	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	w0, [x19, #4]
	bl	_strlen
	stp	w0, w0, [x19, #8]
LBB0_4:
	mov	x0, x20
	bl	_r_list_free
	mov	w0, #1
LBB0_5:
	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
