	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_charset
_set_charset:                           ## @set_charset
	.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, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_modfind
	testq	%rax, %rax
	js	LBB0_1
LBB0_4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_ICONV_CSNMAXLEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_malloc
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	_ENCODING_UNICODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_strncpy
	movq	_KICONV_VENDOR_MICSFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_kiconv_quirkcs
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_strncpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_kiconv_add_xlat16_cspairs
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rcx
	movq	$-1, %r8
	callq	_build_iovec
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rcx
	movq	$-1, %r8
	callq	_build_iovec
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_kldload
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_modfind
	testq	%rax, %rax
	jns	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_warnx
	movl	$-1, %r13d
	jmp	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_free
LBB0_9:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cd9660_iconv"

L_.str.1:                               ## @.str.1
	.asciz	"cannot find or load \"cd9660_iconv\" kernel module"

	.comm	_ICONV_CSNMAXLEN,4,2            ## @ICONV_CSNMAXLEN
	.comm	_ENCODING_UNICODE,4,2           ## @ENCODING_UNICODE
	.comm	_KICONV_VENDOR_MICSFT,4,2       ## @KICONV_VENDOR_MICSFT
L_.str.2:                               ## @.str.2
	.asciz	"cs_disk"

L_.str.3:                               ## @.str.3
	.asciz	"cs_local"

	.no_dead_strip	_set_charset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_charset
_set_charset:                           ; @set_charset
	.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, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_modfind
	tbnz	x0, #63, LBB0_5
LBB0_1:
Lloh2:
	adrp	x24, _ICONV_CSNMAXLEN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ICONV_CSNMAXLEN@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_malloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x22, x0
	ldr	w0, [x24]
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x23, x0
Lloh4:
	adrp	x8, _ENCODING_UNICODE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENCODING_UNICODE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x22
	bl	_strncpy
Lloh7:
	adrp	x8, _KICONV_VENDOR_MICSFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KICONV_VENDOR_MICSFT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kiconv_quirkcs
	mov	x1, x0
	ldr	w2, [x24]
	mov	x0, x23
	bl	_strncpy
	mov	x0, x22
	mov	x1, x23
	bl	_kiconv_add_xlat16_cspairs
	cbnz	w0, LBB0_9
; %bb.4:
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	mov	x4, #-1
	bl	_build_iovec
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x3, x23
	mov	x4, #-1
	bl	_build_iovec
	mov	w0, #0
	b	LBB0_10
LBB0_5:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kldload
	tbnz	x0, #63, LBB0_7
; %bb.6:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_modfind
	tbz	x0, #63, LBB0_1
LBB0_7:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	b	LBB0_9
LBB0_8:
	mov	x0, x22
	bl	_free
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cd9660_iconv"

l_.str.1:                               ; @.str.1
	.asciz	"cannot find or load \"cd9660_iconv\" kernel module"

	.comm	_ICONV_CSNMAXLEN,4,2            ; @ICONV_CSNMAXLEN
	.comm	_ENCODING_UNICODE,4,2           ; @ENCODING_UNICODE
	.comm	_KICONV_VENDOR_MICSFT,4,2       ; @KICONV_VENDOR_MICSFT
l_.str.2:                               ; @.str.2
	.asciz	"cs_disk"

l_.str.3:                               ; @.str.3
	.asciz	"cs_local"

	.no_dead_strip	_set_charset
.subsections_via_symbols
