	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function module_fill_module
_module_fill_module:                    ## @module_fill_module
	.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	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_get_wine_loader_name
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_strlenW
	leaq	(%rax,%r14), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_get_filename
	movq	%rax, %r15
	subl	%r15d, %r13d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	-1(%r12), %rsi
	movl	%r13d, %edi
	callq	_min
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_memcpy
	movb	$0, (%rbx,%r14)
	cmpq	$5, %r14
	jb	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_match_ext
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	subq	%rax, %r14
	movb	$0, (%rbx,%r14)
	jmp	LBB0_10
LBB0_3:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_strlenW
	cmpq	%rax, %r14
	jbe	LBB0_6
## %bb.4:
	leaq	(%rbx,%r14), %r15
	movq	%r12, %rdi
	callq	_strlenW
	subq	%rax, %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_strcmpiW
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	cmpq	$4, %r14
	jb	LBB0_10
## %bb.7:
	leaq	(%rbx,%r14), %rdi
	addq	$-3, %rdi
	movq	_S_DotSoW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_strcmpiW
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	addq	$-3, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_match_ext
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	subq	%rax, %r14
	addq	%rbx, %r14
	movq	_S_ElfW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_strcpyW
	jmp	LBB0_10
LBB0_5:
	movq	_S_WineLoaderW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_lstrcpynW
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_tolowerW
	movb	%al, (%rbx)
	incq	%rbx
	testb	%al, %al
	jne	LBB0_10
## %bb.11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_WineLoaderW,4,2              ## @S_WineLoaderW
	.comm	_S_DotSoW,8,3                   ## @S_DotSoW
	.comm	_S_ElfW,4,2                     ## @S_ElfW
	.no_dead_strip	_module_fill_module
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function module_fill_module
_module_fill_module:                    ; @module_fill_module
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	bl	_get_wine_loader_name
	mov	x21, x0
	mov	x0, x22
	bl	_strlenW
	add	x23, x22, x0
	mov	x0, x22
	mov	x1, x23
	bl	_get_filename
	mov	x24, x0
	sub	w0, w23, w24
	sub	x1, x20, #1
	bl	_min
	mov	x22, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	bl	_memcpy
	add	x23, x19, x22
	strb	wzr, [x23]
	cmp	x22, #5
	b.lo	LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_match_ext
	cbz	x0, LBB0_3
; %bb.2:
	sub	x8, x22, x0
	strb	wzr, [x19, x8]
	b	LBB0_10
LBB0_3:
	mov	x0, x21
	bl	_strlenW
	cmp	x22, x0
	b.ls	LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_strlenW
	sub	x0, x23, x0
	mov	x1, x21
	bl	_strcmpiW
	cbz	w0, LBB0_9
LBB0_5:
	cmp	x22, #4
	b.lo	LBB0_10
; %bb.6:
	sub	x20, x22, #3
	add	x0, x19, x20
Lloh0:
	adrp	x8, _S_DotSoW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_DotSoW@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	bl	_strcmpiW
	cbnz	w0, LBB0_10
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_match_ext
	cbz	x0, LBB0_10
; %bb.8:
	sub	x8, x20, x0
	add	x0, x19, x8
Lloh3:
	adrp	x8, _S_ElfW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S_ElfW@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_strcpyW
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _S_WineLoaderW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_WineLoaderW@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_lstrcpynW
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x19]
	bl	_tolowerW
	strb	w0, [x19], #1
	cbnz	w0, LBB0_10
; %bb.11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_S_WineLoaderW,4,2              ; @S_WineLoaderW
	.comm	_S_DotSoW,8,3                   ; @S_DotSoW
	.comm	_S_ElfW,4,2                     ; @S_ElfW
	.no_dead_strip	_module_fill_module
.subsections_via_symbols
