	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function putdir
_putdir:                                ## @putdir
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.1:
	movq	%rsi, %r15
	xorl	%r12d, %r12d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %r13
	movq	_Bcvt@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	callq	_swabst
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_oldinofmt@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r13)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_Bcvt@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r13), %rax
	movq	%rax, 16(%r13)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_DT_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r13)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_DIRBLKSIZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	leaq	-1(%r14), %rax
	andq	%r12, %rax
	subq	%rax, %r14
	movslq	8(%r13), %rbx
	testb	$3, %bl
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rbx, %r14
	jb	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	movq	%r13, %rsi
	callq	_DIRSIZ
	cmpq	%rbx, %rax
	ja	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rax
	movq	_NAME_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_22
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_vprintf
	movl	8(%r13), %eax
	testb	$3, %al
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_vprintf
	movl	8(%r13), %eax
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%eax, %rbx
	xorl	%edi, %edi
	movq	%r13, %rsi
	callq	_DIRSIZ
	cmpq	%rbx, %rax
	jbe	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%r13), %ebx
	xorl	%edi, %edi
	movq	%r13, %rsi
	callq	_DIRSIZ
	movl	%r15d, %edi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_vprintf
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rdx
	movq	_NAME_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %rdx
	movq	_stdout@GOTPCREL(%rip), %rbx
	jle	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_vprintf
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_vprintf
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	%r14, %r12
	cmpq	%r15, %r12
	jb	LBB0_2
	jmp	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	8(%r13), %r14
	cmpq	$0, (%r13)
	je	LBB0_20
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_putent
	jmp	LBB0_20
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Bcvt,8,3                       ## @Bcvt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ls"

	.comm	_oldinofmt,8,3                  ## @oldinofmt
	.comm	_DT_UNKNOWN,8,3                 ## @DT_UNKNOWN
	.comm	_DIRBLKSIZ,4,2                  ## @DIRBLKSIZ
	.comm	_NAME_MAX,8,3                   ## @NAME_MAX
	.comm	_stdout,4,2                     ## @stdout
L_.str.1:                               ## @.str.1
	.asciz	"Mangled directory: "

L_.str.2:                               ## @.str.2
	.asciz	"reclen not multiple of 4 "

L_.str.3:                               ## @.str.3
	.asciz	"reclen less than DIRSIZ (%u < %zu) "

L_.str.4:                               ## @.str.4
	.asciz	"reclen name too big (%u > %u) "

L_.str.5:                               ## @.str.5
	.asciz	"\n"

	.no_dead_strip	_putdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function putdir
_putdir:                                ; @putdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x1, LBB0_22
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x22, #0
Lloh0:
	adrp	x23, _Bcvt@GOTPAGE
Lloh1:
	ldr	x23, [x23, _Bcvt@GOTPAGEOFF]
Lloh2:
	adrp	x26, _oldinofmt@GOTPAGE
Lloh3:
	ldr	x26, [x26, _oldinofmt@GOTPAGEOFF]
Lloh4:
	adrp	x24, _DIRBLKSIZ@GOTPAGE
Lloh5:
	ldr	x24, [x24, _DIRBLKSIZ@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh8:
	adrp	x25, _stdout@GOTPAGE
Lloh9:
	ldr	x25, [x25, _stdout@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x27, x20, x22
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x27
	bl	_swabst
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	cbz	x8, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27]
	cbz	x8, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27, #24]
	str	x8, [x27, #16]
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh12:
	adrp	x8, _DT_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DT_UNKNOWN@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x27, #24]
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x8, [x24]
	sub	x9, x8, #1
	and	x9, x22, x9
	sub	x9, x8, x9
	ldrsw	x28, [x27, #8]
	and	w8, w28, #0x3
	cmp	w8, #0
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	ccmp	x9, x28, #0, eq
	b.hs	LBB0_18
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	bl	_vprintf
	ldr	w28, [x27, #8]
	tst	w28, #0x3
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_vprintf
	ldr	w28, [x27, #8]
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #0
	mov	x1, x27
	bl	_DIRSIZ
	cmp	x0, w28, sxtw
	b.ls	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w28, [x25]
	mov	x25, x21
	mov	x21, x19
	mov	x19, x20
	mov	x20, x23
	mov	x23, x24
	mov	x24, x26
	ldr	w26, [x27, #8]
	mov	w0, #0
	mov	x1, x27
	bl	_DIRSIZ
	stp	x26, x0, [sp]
	mov	x26, x24
	mov	x24, x23
	mov	x23, x20
	mov	x20, x19
	mov	x19, x21
	mov	x21, x25
Lloh17:
	adrp	x25, _stdout@GOTPAGE
Lloh18:
	ldr	x25, [x25, _stdout@GOTPAGEOFF]
	mov	x0, x28
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_vprintf
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27, #16]
Lloh21:
	adrp	x9, _NAME_MAX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NAME_MAX@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	stp	x8, x9, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_vprintf
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_vprintf
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x28, x22
	cmp	x22, x19
	b.lo	LBB0_2
	b	LBB0_22
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #0
	mov	x1, x27
	bl	_DIRSIZ
	cmp	x0, x28
	b.hi	LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27, #16]
Lloh28:
	adrp	x9, _NAME_MAX@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NAME_MAX@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_10
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x28, [x27, #8]
	ldr	x8, [x27]
	cbz	x8, LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x27
	bl	_putent
	b	LBB0_17
LBB0_22:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_Bcvt,8,3                       ; @Bcvt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ls"

	.comm	_oldinofmt,8,3                  ; @oldinofmt
	.comm	_DT_UNKNOWN,8,3                 ; @DT_UNKNOWN
	.comm	_DIRBLKSIZ,4,2                  ; @DIRBLKSIZ
	.comm	_NAME_MAX,8,3                   ; @NAME_MAX
	.comm	_stdout,4,2                     ; @stdout
l_.str.1:                               ; @.str.1
	.asciz	"Mangled directory: "

l_.str.2:                               ; @.str.2
	.asciz	"reclen not multiple of 4 "

l_.str.3:                               ; @.str.3
	.asciz	"reclen less than DIRSIZ (%u < %zu) "

l_.str.4:                               ; @.str.4
	.asciz	"reclen name too big (%u > %u) "

l_.str.5:                               ; @.str.5
	.asciz	"\n"

	.no_dead_strip	_putdir
.subsections_via_symbols
