	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl_readdir
_gl_readdir:                            ## @gl_readdir
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	cmpq	8(%rdi), %rbx
	jge	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	leaq	1(%rbx), %rax
	movq	%rax, (%rdi)
	leaq	_gl_readdir.dir(%rip), %r14
	movl	_gl_readdir.dir+20(%rip), %edi
	shlq	$4, %rbx
	movl	8(%r12,%rbx), %esi
	callq	_strcpy
	movl	8(%r12,%rbx), %edi
	callq	_strlen
	movl	%eax, _gl_readdir.dir+12(%rip)
	movq	(%r15), %rax
	movq	%rax, _gl_readdir.dir(%rip)
	cmpq	$0, (%r12,%rbx)
	jne	LBB0_3
## %bb.4:
	movq	_DT_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_3:
	movq	_DT_DIR@GOTPCREL(%rip), %rax
LBB0_5:
	movslq	(%rax), %rdi
	movl	%edi, _gl_readdir.dir+16(%rip)
	callq	_DPRINTF
	movl	_gl_readdir.dir+12(%rip), %esi
	movq	%r14, %rdi
	callq	__DIRENT_RECLEN
	movl	%eax, _gl_readdir.dir+8(%rip)
LBB0_6:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_gl_readdir.dir,24,3 ## @gl_readdir.dir
	.comm	_DT_DIR,4,2                     ## @DT_DIR
	.comm	_DT_REG,4,2                     ## @DT_REG
	.no_dead_strip	_gl_readdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl_readdir
_gl_readdir:                            ; @gl_readdir
	.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
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x9, [x0, #16]
	add	x10, x8, #1
	str	x10, [x0]
Lloh0:
	adrp	x19, _gl_readdir.dir@PAGE
Lloh1:
	add	x19, x19, _gl_readdir.dir@PAGEOFF
	ldr	w0, [x19, #20]
	add	x21, x9, x8, lsl #4
	ldr	w1, [x21, #8]
	bl	_strcpy
	ldr	w0, [x21, #8]
	bl	_strlen
	str	w0, [x19, #12]
	ldr	x8, [x20]
	str	x8, [x19]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _DT_DIR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DT_DIR@GOTPAGEOFF]
Lloh4:
	adrp	x10, _DT_REG@GOTPAGE
Lloh5:
	ldr	x10, [x10, _DT_REG@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldrsw	x0, [x8]
	str	w0, [x19, #16]
	bl	_DPRINTF
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	__DIRENT_RECLEN
	str	w0, [x19, #8]
	b	LBB0_3
LBB0_2:
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_gl_readdir.dir,24,3 ; @gl_readdir.dir
	.comm	_DT_DIR,4,2                     ; @DT_DIR
	.comm	_DT_REG,4,2                     ; @DT_REG
	.no_dead_strip	_gl_readdir
.subsections_via_symbols
