	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _FAT_directory_mbsncasecmp
__FAT_directory_mbsncasecmp:            ## @_FAT_directory_mbsncasecmp
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -56(%rbp)
	movl	$0, -48(%rbp)
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addq	%r13, %r15
	addq	%r12, %r14
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-64(%rbp), %rdi
	movq	%r14, %rsi
	leaq	-56(%rbp), %rcx
	callq	_mbrtowc
	movq	%rax, %r12
	movl	(%r13), %edx
	leaq	-72(%rbp), %rdi
	movq	%r15, %rsi
	leaq	-48(%rbp), %rcx
	callq	_mbrtowc
	movq	%rax, %r13
	orl	%r12d, %eax
	testl	$-2147483648, %eax              ## imm = 0x80000000
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	subq	%r12, %rbx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdi
	callq	_towlower
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movq	-72(%rbp), %rdi
	callq	_towlower
	cmpl	%eax, %ebx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -64(%rbp)
	jne	LBB0_3
LBB0_7:
	movq	-64(%rbp), %rdi
	callq	_towlower
	movl	%eax, %ebx
	movq	-72(%rbp), %rdi
	callq	_towlower
	subl	%eax, %ebx
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_CUR_MAX,4,2                 ## @MB_CUR_MAX
	.no_dead_strip	__FAT_directory_mbsncasecmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _FAT_directory_mbsncasecmp
__FAT_directory_mbsncasecmp:            ; @_FAT_directory_mbsncasecmp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	wzr, [sp, #8]
	str	wzr, [sp]
	cbz	x2, LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
	mov	x23, #0
Lloh0:
	adrp	x25, _MB_CUR_MAX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MB_CUR_MAX@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x21, x21, x22
	add	x20, x20, x23
	ldr	w2, [x25]
	add	x0, sp, #24
	add	x3, sp, #8
	mov	x1, x21
	bl	_mbrtowc
	mov	x22, x0
	ldr	w2, [x25]
	add	x0, sp, #16
	mov	x3, sp
	mov	x1, x20
	bl	_mbrtowc
	mov	x23, x0
	orr	w8, w22, w23
	tbnz	w8, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	x19, x19, x22
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #24]
	bl	_towlower
	mov	x24, x0
	ldr	x0, [sp, #16]
	bl	_towlower
	ldr	x8, [sp, #24]
	cmp	w24, w0
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_2
LBB0_5:
	ldr	x0, [sp, #24]
	bl	_towlower
	mov	x19, x0
	ldr	x0, [sp, #16]
	bl	_towlower
	sub	w0, w19, w0
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_CUR_MAX,4,2                 ; @MB_CUR_MAX
	.no_dead_strip	__FAT_directory_mbsncasecmp
.subsections_via_symbols
