	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function putent
_putent:                                ## @putent
	.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
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_DIRSIZ
	movq	%rax, (%rbx)
	movq	_dirloc@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	%rax, %rsi
	addq	%rdi, %rsi
	movq	_DIRBLKSIZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rsi
	jle	LBB0_4
## %bb.1:
	movq	_prev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%rax, %rdx
	movq	_dirbuf@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	movq	%rdx, (%rdi,%rax)
	movq	(%rsi), %rdi
	movq	(%rcx), %rsi
	movq	_df@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edx
	callq	_fwrite
	cmpl	$1, %eax
	je	LBB0_3
## %bb.2:
	movq	_dirfile@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fail_dirtmp
LBB0_3:
	movq	$0, (%r14)
	movq	(%rbx), %rax
	xorl	%edi, %edi
LBB0_4:
	movq	_dirbuf@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_memmove
	movq	(%r14), %rax
	movq	_prev@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	addq	(%rbx), %rax
	movq	%rax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dirloc,8,3                     ## @dirloc
	.comm	_DIRBLKSIZ,8,3                  ## @DIRBLKSIZ
	.comm	_prev,8,3                       ## @prev
	.comm	_dirbuf,8,3                     ## @dirbuf
	.comm	_df,4,2                         ## @df
	.comm	_dirfile,4,2                    ## @dirfile
	.no_dead_strip	_putent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function putent
_putent:                                ; @putent
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	mov	w0, #0
	mov	x1, x19
	bl	_DIRSIZ
	str	x0, [x19]
Lloh0:
	adrp	x20, _dirloc@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dirloc@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _DIRBLKSIZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DIRBLKSIZ@GOTPAGEOFF]
	ldr	x10, [x9]
	add	x11, x8, x0
	cmp	x11, x10
Lloh4:
	adrp	x21, _prev@GOTPAGE
Lloh5:
	ldr	x21, [x21, _prev@GOTPAGEOFF]
Lloh6:
	adrp	x22, _dirbuf@GOTPAGE
Lloh7:
	ldr	x22, [x22, _dirbuf@GOTPAGEOFF]
	b.le	LBB0_4
; %bb.1:
	ldr	x8, [x21]
	sub	x10, x10, x8
	ldr	x11, [x22]
	str	x10, [x11, x8]
	ldr	x0, [x22]
	ldr	x1, [x9]
Lloh8:
	adrp	x8, _df@GOTPAGE
Lloh9:
	ldr	x8, [x8, _df@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	w2, #1
	bl	_fwrite
	cmp	w0, #1
	b.eq	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _dirfile@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dirfile@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_fail_dirtmp
LBB0_3:
	mov	x8, #0
	str	xzr, [x20]
	ldr	x2, [x19]
	b	LBB0_5
LBB0_4:
	mov	x2, x0
LBB0_5:
	ldr	x9, [x22]
	add	x0, x8, x9
	mov	x1, x19
	bl	_memmove
	ldr	x8, [x20]
	str	x8, [x21]
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_dirloc,8,3                     ; @dirloc
	.comm	_DIRBLKSIZ,8,3                  ; @DIRBLKSIZ
	.comm	_prev,8,3                       ; @prev
	.comm	_dirbuf,8,3                     ; @dirbuf
	.comm	_df,4,2                         ; @df
	.comm	_dirfile,4,2                    ; @dirfile
	.no_dead_strip	_putent
.subsections_via_symbols
