	.file	"extr_mount_udf.c_set_charset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"udf_iconv"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"cannot find or load \"udf_iconv\" kernel module"
	.text
	.p2align 4
	.globl	set_charset
	.type	set_charset, @function
set_charset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	call	modfind@PLT
	test	rax, rax
	js	.L13
.L2:
	mov	edi, DWORD PTR ICONV_CSNMAXLEN[rip]
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L7
	mov	edi, DWORD PTR ICONV_CSNMAXLEN[rip]
	call	malloc@PLT
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	je	.L7
	mov	edx, DWORD PTR ICONV_CSNMAXLEN[rip]
	mov	rsi, QWORD PTR ENCODING_UNICODE[rip]
	mov	rdi, QWORD PTR [rbx]
	call	strncpy@PLT
	mov	edx, DWORD PTR ICONV_CSNMAXLEN[rip]
	mov	rdi, QWORD PTR 0[rbp]
	mov	rsi, r12
	call	strncpy@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [rbx]
	call	kiconv_add_xlat16_cspairs@PLT
	test	eax, eax
	setne	al
	movzx	eax, al
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	kldload@PLT
	test	rax, rax
	js	.L5
	lea	rdi, .LC0[rip]
	call	modfind@PLT
	test	rax, rax
	jns	.L2
.L5:
	lea	rdi, .LC1[rip]
	call	warnx@PLT
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	set_charset, .-set_charset
	.comm	ICONV_CSNMAXLEN,4,4
	.comm	ENCODING_UNICODE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mount_udf.c_set_charset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"udf_iconv\000"
	.align	2
.LC1:
	.ascii	"cannot find or load \"udf_iconv\" kernel module\000"
	.text
	.align	2
	.global	set_charset
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_charset, %function
set_charset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, .L14
	mov	r5, r1
	mov	r6, r2
	bl	modfind
	cmp	r0, #0
	blt	.L13
.L2:
	ldr	r7, .L14+4
	ldr	r8, [r7]
	mov	r0, r8
	bl	malloc
	cmp	r0, #0
	str	r0, [r4]
	beq	.L7
	mov	r0, r8
	bl	malloc
	cmp	r0, #0
	str	r0, [r5]
	beq	.L7
	ldr	r3, .L14+8
	mov	r2, r8
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	strncpy
	mov	r1, r6
	ldr	r2, [r7]
	ldr	r0, [r5]
	bl	strncpy
	ldr	r1, [r5]
	ldr	r0, [r4]
	bl	kiconv_add_xlat16_cspairs
	subs	r0, r0, #0
	movne	r0, #1
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r0, .L14
	bl	kldload
	cmp	r0, #0
	blt	.L5
	ldr	r0, .L14
	bl	modfind
	cmp	r0, #0
	bge	.L2
.L5:
	ldr	r0, .L14+12
	bl	warnx
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	ICONV_CSNMAXLEN
	.word	ENCODING_UNICODE
	.word	.LC1
	.size	set_charset, .-set_charset
	.comm	ICONV_CSNMAXLEN,4,4
	.comm	ENCODING_UNICODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
