	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdi_next_file                  ## -- Begin function gdi_next_file
	.p2align	4, 0x90
_gdi_next_file:                         ## @gdi_next_file
	.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	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_MAX_TOKEN_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_malloc
	movq	%rax, %rbx
	movb	$0, (%rax)
	movq	%r14, %rdi
	callq	_intfstream_tell
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_token
LBB0_2:
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_token
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_token
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_token
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_token
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_token
	testq	%rax, %rax
	jle	LBB0_3
## %bb.4:
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_malloc
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	movb	$0, (%rax)
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_fill_pathname_basedir
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_fill_pathname_join
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_token
	movq	%r15, %rdi
	callq	_free
	movl	$1, %r14d
	jmp	LBB0_5
LBB0_3:
	xorl	%r14d, %r14d
LBB0_5:
	movq	%rbx, %rdi
	callq	_free
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TOKEN_LEN,4,2              ## @MAX_TOKEN_LEN
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdi_next_file                  ; -- Begin function gdi_next_file
	.p2align	2
_gdi_next_file:                         ; @gdi_next_file
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _MAX_TOKEN_LEN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MAX_TOKEN_LEN@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_malloc
	mov	x19, x0
	strb	wzr, [x0]
	mov	x0, x20
	bl	_intfstream_tell
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x19
	bl	_get_token
LBB0_2:
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x19
	bl	_get_token
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x19
	bl	_get_token
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x19
	bl	_get_token
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x19
	bl	_get_token
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x19
	bl	_get_token
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.3:
Lloh2:
	adrp	x26, _PATH_MAX_LENGTH@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PATH_MAX_LENGTH@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_malloc
	mov	x24, x0
	strb	wzr, [x0]
	ldr	w2, [x26]
	mov	x1, x23
	bl	_fill_pathname_basedir
	mov	x0, x22
	mov	x1, x24
	mov	x2, x19
	mov	x3, x21
	bl	_fill_pathname_join
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x19
	bl	_get_token
	mov	x0, x24
	bl	_free
	mov	w20, #1
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TOKEN_LEN,4,2              ; @MAX_TOKEN_LEN
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
.subsections_via_symbols
