	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fnmatch_icase_mem
_fnmatch_icase_mem:                     ## @fnmatch_icase_mem
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rax, -40(%rbp)
	movslq	%esi, %rax
	cmpb	$0, (%rdi,%rax)
	je	LBB0_2
## %bb.1:
	movl	%esi, %edx
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_strbuf_add
	movq	-48(%rbp), %rbx
LBB0_2:
	movslq	%r12d, %rax
	cmpb	$0, (%r15,%rax)
	je	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_strbuf_add
	movq	-40(%rbp), %r15
LBB0_4:
	movq	_ignore_case@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_WM_CASEFOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_6:
	orl	%r14d, %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wildmatch
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.comm	_ignore_case,8,3                ## @ignore_case
	.comm	_WM_CASEFOLD,4,2                ## @WM_CASEFOLD
	.no_dead_strip	_fnmatch_icase_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fnmatch_icase_mem
_fnmatch_icase_mem:                     ; @fnmatch_icase_mem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x8, [sp]
	ldrb	w8, [x0, w1, sxtw]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x2, x1
	add	x0, sp, #8
	mov	x1, x21
	bl	_strbuf_add
	ldr	x21, [sp, #8]
LBB0_2:
	ldrb	w8, [x20, w22, sxtw]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, sp
	mov	x1, x20
	mov	x2, x22
	bl	_strbuf_add
	ldr	x20, [sp]
LBB0_4:
Lloh3:
	adrp	x8, _ignore_case@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ignore_case@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _WM_CASEFOLD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WM_CASEFOLD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	orr	w2, w8, w19
	mov	x0, x21
	mov	x1, x20
	bl	_wildmatch
	mov	x19, x0
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, sp
	bl	_strbuf_release
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.comm	_ignore_case,8,3                ; @ignore_case
	.comm	_WM_CASEFOLD,4,2                ; @WM_CASEFOLD
	.no_dead_strip	_fnmatch_icase_mem
.subsections_via_symbols
