	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function install_from_unix_file
_install_from_unix_file:                ## @install_from_unix_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
	pushq	%rax
	.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, %r15
	movq	%rdi, %r13
	callq	_strlen
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%r14d, %ebx
	leal	(%rax,%rbx), %edi
	addl	$3, %edi
	callq	_heap_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.2:
	movslq	%r14d, %rax
	movb	-1(%rax,%r12), %cl
	cmpb	$47, %cl
	je	LBB0_7
## %bb.3:
	cmpb	$92, %cl
	je	LBB0_7
## %bb.4:
	incl	%r14d
	movb	$47, (%r12,%rax)
	jmp	LBB0_7
LBB0_5:
	movq	_INSTALL_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	cmpb	$0, (%r15)
	je	LBB0_9
## %bb.8:
	movslq	%r14d, %rbx
	leaq	(%r12,%rbx), %rdi
	movq	%r15, %rsi
	callq	_strcpy
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rbx), %ecx
	leal	(%rax,%rbx), %r14d
	incl	%r14d
	movslq	%ecx, %rax
	movb	$47, (%r12,%rax)
LBB0_9:
	movslq	%r14d, %rax
	movq	%r12, %rdi
	addq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcpy
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	__open
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %edi
	callq	__close
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	movq	_CP_ACP@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
	movl	%eax, %r14d
	leal	(,%r14,4), %edi
	callq	_heap_alloc
	movq	%rax, %rbx
	movl	(%r15), %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	$-1, %ecx
	movq	%rax, %r8
	movl	%r14d, %r9d
	callq	_MultiByteToWideChar
	movq	%r12, %rdi
	callq	_heap_free
	movq	%rbx, %rdi
	callq	_install_file
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_heap_free
	movl	%r14d, %eax
	jmp	LBB0_13
LBB0_11:
	movq	%r12, %rdi
	callq	_debugstr_a
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	%r12, %rdi
	callq	_heap_free
	movq	_INSTALL_NEXT@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INSTALL_FAILED,4,2             ## @INSTALL_FAILED
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s not found\n"

	.comm	_INSTALL_NEXT,4,2               ## @INSTALL_NEXT
L_.str.1:                               ## @.str.1
	.asciz	"Could not get wine_get_dos_file_name function, calling install_cab directly.\n"

	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.no_dead_strip	_install_from_unix_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function install_from_unix_file
_install_from_unix_file:                ; @install_from_unix_file
	.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	x21, x1
	mov	x23, x0
	bl	_strlen
	mov	x22, x0
	mov	x0, x21
	bl	_strlen
	mov	x19, x0
	mov	x0, x20
	bl	_strlen
	add	w8, w22, w19
	add	w8, w8, w0
	add	w0, w8, #3
	bl	_heap_alloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	cbz	w22, LBB0_5
; %bb.2:
	sxtw	x8, w22
	add	x9, x8, x19
	ldurb	w9, [x9, #-1]
	cmp	w9, #47
	b.eq	LBB0_5
; %bb.3:
	cmp	w9, #92
	b.eq	LBB0_5
; %bb.4:
	add	w22, w22, #1
	mov	w9, #47
	strb	w9, [x19, x8]
LBB0_5:
	ldrb	w8, [x21]
	cbz	w8, LBB0_7
; %bb.6:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x22, w22
	add	x0, x19, x22
	mov	x1, x21
	bl	_strcpy
	mov	x0, x21
	bl	_strlen
	add	x8, x22, w0, sxtw
	add	w22, w8, #1
	mov	w9, #47
	strb	w9, [x19, x8]
LBB0_7:
	add	x0, x19, w22, sxtw
	mov	x1, x20
	bl	_strcpy
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	__open
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.8:
	bl	__close
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
Lloh5:
	adrp	x22, _CP_ACP@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CP_ACP@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #0
	mov	x2, x19
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
	mov	x20, x0
	lsl	w0, w0, #2
	bl	_heap_alloc
	mov	x21, x0
	ldr	w0, [x22]
	mov	w1, #0
	mov	x2, x19
	mov	w3, #-1
	mov	x4, x21
	mov	x5, x20
	bl	_MultiByteToWideChar
	mov	x0, x19
	bl	_heap_free
	mov	x0, x21
	bl	_install_file
	mov	x19, x0
	mov	x0, x21
	bl	_heap_free
	mov	x0, x19
	b	LBB0_12
LBB0_9:
Lloh7:
	adrp	x8, _INSTALL_FAILED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INSTALL_FAILED@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_debugstr_a
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x19
	bl	_heap_free
Lloh11:
	adrp	x8, _INSTALL_NEXT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INSTALL_NEXT@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_INSTALL_FAILED,4,2             ; @INSTALL_FAILED
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s not found\n"

	.comm	_INSTALL_NEXT,4,2               ; @INSTALL_NEXT
l_.str.1:                               ; @.str.1
	.asciz	"Could not get wine_get_dos_file_name function, calling install_cab directly.\n"

	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.no_dead_strip	_install_from_unix_file
.subsections_via_symbols
