	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FD31_GetFileType
_FD31_GetFileType:                      ## @FD31_GetFileType
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	xorl	%r12d, %r12d
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	callq	_lstrlenW
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cltq
	addq	%rax, %rbx
	incq	%rbx
	cmpl	%r12d, %r15d
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_lstrlenW
	cltq
	addq	%rax, %rbx
	incq	%rbx
	incl	%r12d
	movq	%rbx, %rdi
	callq	_lstrlenW
	testl	%eax, %eax
	jne	LBB0_3
LBB0_5:
	testq	%r14, %r14
	je	LBB0_10
## %bb.6:
	movq	%r14, %rdi
	callq	_lstrlenW
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	subl	%r12d, %r15d
	incl	%r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cltq
	leaq	(%rax,%r14), %rbx
	incq	%rbx
	decl	%r15d
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_lstrlenW
	cltq
	leaq	(%rax,%rbx), %r14
	incq	%r14
	movq	%r14, %rdi
	callq	_lstrlenW
	testl	%eax, %eax
	jne	LBB0_8
LBB0_10:
	movq	_FILE_star@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_11:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FILE_star,8,3                  ## @FILE_star
	.no_dead_strip	_FD31_GetFileType
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FD31_GetFileType
_FD31_GetFileType:                      ; @FD31_GetFileType
	.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	x20, x2
	mov	x19, x1
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	bl	_lstrlenW
	mov	w22, #0
	cbz	w0, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w0, #1
	add	x21, x21, w8, sxtw
	cmp	w20, w22
	b.eq	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_lstrlenW
	add	w8, w0, #1
	add	x21, x21, w8, sxtw
	add	w22, w22, #1
	mov	x0, x21
	bl	_lstrlenW
	cbnz	w0, LBB0_2
LBB0_4:
	cbnz	x19, LBB0_6
	b	LBB0_10
LBB0_5:
	mov	w22, #0
	cbz	x19, LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_lstrlenW
	cbz	w0, LBB0_10
; %bb.7:
	sub	w8, w20, w22
	add	w20, w8, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w0, #1
	add	x21, x19, w8, sxtw
	subs	w20, w20, #1
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_lstrlenW
	add	w8, w0, #1
	add	x19, x21, w8, sxtw
	mov	x0, x19
	bl	_lstrlenW
	cbnz	w0, LBB0_8
LBB0_10:
Lloh0:
	adrp	x8, _FILE_star@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FILE_star@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
LBB0_11:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FILE_star,8,3                  ; @FILE_star
	.no_dead_strip	_FD31_GetFileType
.subsections_via_symbols
