	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_sconv_object
_get_sconv_object:                      ## @get_sconv_object
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_find_sconv_object
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movl	(%r14), %eax
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_get_current_codepage
LBB0_5:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_canonical_charset_name
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_canonical_charset_name
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_create_sconv_object
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.7:
	testq	%r14, %r14
	je	LBB0_1
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_add_sconv_object
	jmp	LBB0_1
LBB0_9:
	testq	%r14, %r14
	je	LBB0_14
## %bb.10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
	jmp	LBB0_1
LBB0_11:
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
LBB0_13:
	movq	%rbx, %rdi
	callq	_free_sconv_object
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not allocate memory for a string conversion object"

	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
L_.str.1:                               ## @.str.1
	.asciz	"A character-set conversion not fully supported on this platform"

	.comm	_SCONV_TO_CHARSET,4,2           ## @SCONV_TO_CHARSET
	.no_dead_strip	_get_sconv_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_sconv_object
_get_sconv_object:                      ; @get_sconv_object
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_find_sconv_object
	mov	x20, x0
	cbnz	x0, LBB0_14
; %bb.1:
	cbz	x19, LBB0_3
; %bb.2:
	ldr	w20, [x19]
	b	LBB0_4
LBB0_3:
	bl	_get_current_codepage
	mov	x20, x0
LBB0_4:
	mov	x0, x23
	bl	_canonical_charset_name
	mov	x23, x0
	mov	x0, x22
	bl	_canonical_charset_name
	mov	x1, x0
	mov	x0, x23
	mov	x2, x20
	mov	x3, x21
	bl	_create_sconv_object
	cbz	x0, LBB0_8
; %bb.5:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.6:
	cbz	x19, LBB0_14
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_add_sconv_object
	b	LBB0_14
LBB0_8:
	cbz	x19, LBB0_13
; %bb.9:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
	b	LBB0_13
LBB0_10:
	cbz	x19, LBB0_12
; %bb.11:
Lloh5:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
LBB0_12:
	mov	x0, x20
	bl	_free_sconv_object
LBB0_13:
	mov	x20, #0
LBB0_14:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not allocate memory for a string conversion object"

	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
l_.str.1:                               ; @.str.1
	.asciz	"A character-set conversion not fully supported on this platform"

	.comm	_SCONV_TO_CHARSET,4,2           ; @SCONV_TO_CHARSET
	.no_dead_strip	_get_sconv_object
.subsections_via_symbols
