	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_open_filename_w   ## -- Begin function archive_read_open_filename_w
	.p2align	4, 0x90
_archive_read_open_filename_w:          ## @archive_read_open_filename_w
	.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
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_wcslen
                                        ## kill: def $eax killed $eax def $rax
	leal	32(,%rax,4), %esi
	movl	$1, %edi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	$-1, (%rax)
	movq	%r12, 8(%rax)
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.5:
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	callq	_archive_string_init
	movq	%rbx, %rdi
	callq	_wcslen
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_archive_string_append_from_wcs
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	jmp	LBB0_12
LBB0_4:
	movq	_FNT_STDIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	jmp	LBB0_11
LBB0_10:
	movq	_FNT_MBS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movl	16(%r15), %edi
	movl	-40(%rbp), %esi
	callq	_strcpy
	leaq	-40(%rbp), %rdi
	callq	_archive_string_free
LBB0_11:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_archive_read_append_callback_data
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.13:
	movq	_file_open@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_archive_read_set_open_callback
	movq	_file_read@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_archive_read_set_read_callback
	movq	_file_skip@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_archive_read_set_skip_callback
	movq	_file_close@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_archive_read_set_close_callback
	movq	_file_switch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_archive_read_set_switch_callback
	movq	_file_seek@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_archive_read_set_seek_callback
	movq	%r14, %rdi
	callq	_archive_read_open1
	jmp	LBB0_14
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdx
LBB0_8:
	movq	%r14, %rdi
	callq	_archive_set_error
	leaq	-40(%rbp), %rdi
	callq	_archive_string_free
	movq	%r15, %rdi
	callq	_free
LBB0_12:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No memory"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_FNT_STDIN,4,2                  ## @FNT_STDIN
	.comm	_errno,8,3                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate memory"

	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Failed to convert a wide-character filename to a multi-byte filename"

	.comm	_FNT_MBS,4,2                    ## @FNT_MBS
	.comm	_ARCHIVE_OK,8,3                 ## @ARCHIVE_OK
	.comm	_file_open,4,2                  ## @file_open
	.comm	_file_read,4,2                  ## @file_read
	.comm	_file_skip,4,2                  ## @file_skip
	.comm	_file_close,4,2                 ## @file_close
	.comm	_file_switch,4,2                ## @file_switch
	.comm	_file_seek,4,2                  ## @file_seek
	.comm	_FNT_WCS,4,2                    ## @FNT_WCS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_open_filename_w   ; -- Begin function archive_read_open_filename_w
	.p2align	2
_archive_read_open_filename_w:          ; @archive_read_open_filename_w
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_wcslen
	lsl	w8, w0, #2
	add	w1, w8, #32
	mov	w0, #1
	bl	_calloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	w8, #-1
	str	w8, [x0]
	str	x22, [x0, #8]
	cbz	x21, LBB0_7
; %bb.2:
	ldr	w8, [x21]
	cbz	w8, LBB0_7
; %bb.3:
	add	x0, sp, #8
	bl	_archive_string_init
	mov	x0, x21
	bl	_wcslen
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x21
	bl	_archive_string_append_from_wcs
	cbz	x0, LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_11
; %bb.5:
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
	b	LBB0_13
LBB0_7:
Lloh13:
	adrp	x8, _FNT_STDIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FNT_STDIN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _FNT_MBS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FNT_MBS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	ldr	w0, [x20, #16]
	ldr	w1, [sp, #8]
	bl	_strcpy
	add	x0, sp, #8
	bl	_archive_string_free
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_archive_read_append_callback_data
Lloh19:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.10:
Lloh22:
	adrp	x8, _file_open@GOTPAGE
Lloh23:
	ldr	x8, [x8, _file_open@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_read_set_open_callback
Lloh25:
	adrp	x8, _file_read@GOTPAGE
Lloh26:
	ldr	x8, [x8, _file_read@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_read_set_read_callback
Lloh28:
	adrp	x8, _file_skip@GOTPAGE
Lloh29:
	ldr	x8, [x8, _file_skip@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_read_set_skip_callback
Lloh31:
	adrp	x8, _file_close@GOTPAGE
Lloh32:
	ldr	x8, [x8, _file_close@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_read_set_close_callback
Lloh34:
	adrp	x8, _file_switch@GOTPAGE
Lloh35:
	ldr	x8, [x8, _file_switch@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_read_set_switch_callback
Lloh37:
	adrp	x8, _file_seek@GOTPAGE
Lloh38:
	ldr	x8, [x8, _file_seek@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_read_set_seek_callback
	mov	x0, x19
	bl	_archive_read_open1
	b	LBB0_14
LBB0_11:
Lloh40:
	adrp	x8, _EINVAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh42:
	ldr	x1, [x8]
Lloh43:
	adrp	x2, l_.str.2@PAGE
Lloh44:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_archive_set_error
	add	x0, sp, #8
	bl	_archive_string_free
	mov	x0, x20
	bl	_free
LBB0_13:
Lloh45:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
LBB0_14:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No memory"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_FNT_STDIN,4,2                  ; @FNT_STDIN
	.comm	_errno,8,3                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate memory"

	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Failed to convert a wide-character filename to a multi-byte filename"

	.comm	_FNT_MBS,4,2                    ; @FNT_MBS
	.comm	_ARCHIVE_OK,8,3                 ; @ARCHIVE_OK
	.comm	_file_open,4,2                  ; @file_open
	.comm	_file_read,4,2                  ; @file_read
	.comm	_file_skip,4,2                  ; @file_skip
	.comm	_file_close,4,2                 ; @file_close
	.comm	_file_switch,4,2                ; @file_switch
	.comm	_file_seek,4,2                  ; @file_seek
	.comm	_FNT_WCS,4,2                    ; @FNT_WCS
.subsections_via_symbols
