	.file	"extr_22729.c_setlang.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"passwd entry doesn't appear to exist"
	.align 8
.LC1:
	.string	"setlang(): allocating memory failed"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%s/mess.%s"
.LC3:
	.string	"passwd entry lookup failure"
.LC4:
	.string	"%s.src"
.LC5:
	.string	"w"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"setlang(): failed to write to cat file."
	.section	.rodata.str1.1
.LC7:
	.string	"%s\n"
.LC8:
	.string	"gencat %s %s"
.LC9:
	.string	"NLSPATH=%s"
	.text
	.p2align 4
	.globl	setlang
	.type	setlang, @function
setlang:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	getuid@PLT
	mov	edi, eax
	call	getpwuid@PLT
	test	rax, rax
	je	.L28
	mov	r14, QWORD PTR [rax]
	mov	r12, rax
	cmp	BYTE PTR [r14], 0
	jne	.L29
	lea	rdi, .LC3[rip]
	call	printe@PLT
.L3:
	mov	rdi, rbp
.L6:
	mov	edx, DWORD PTR [rdi]
	add	rdi, 4
	lea	eax, -16843009[rdx]
	not	edx
	and	eax, edx
	and	eax, -2139062144
	je	.L6
	mov	edx, eax
	shr	edx, 16
	test	eax, 32896
	cmove	eax, edx
	lea	rdx, 2[rdi]
	cmove	rdi, rdx
	mov	ebx, eax
	add	bl, al
	sbb	rdi, 3
	sub	rdi, rbp
	add	rdi, 5
	call	malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L30
.L8:
	lea	rsi, .LC4[rip]
	mov	rdi, r12
	xor	eax, eax
	mov	rdx, rbp
	call	sprintf@PLT
	lea	rsi, .LC5[rip]
	mov	rdi, r12
	call	fopen@PLT
	test	rax, rax
	je	.L31
.L9:
	lea	rsi, .LC5[rip]
	mov	rdi, r12
	call	fopen@PLT
	mov	edi, r13d
	mov	r14, rax
	call	setfmt@PLT
	lea	rsi, .LC7[rip]
	mov	rdi, r14
	mov	rdx, rax
	call	fprintf@PLT
	mov	rdi, r14
	call	fclose@PLT
	mov	rcx, rbp
.L10:
	mov	edx, DWORD PTR [rcx]
	add	rcx, 4
	lea	eax, -16843009[rdx]
	not	edx
	and	eax, edx
	and	eax, -2139062144
	je	.L10
	mov	edx, eax
	shr	edx, 16
	test	eax, 32896
	cmove	eax, edx
	lea	rdx, 2[rcx]
	cmove	rcx, rdx
	mov	rdx, r12
	mov	ebx, eax
	add	bl, al
	sbb	rcx, 3
	sub	rcx, rbp
.L12:
	mov	esi, DWORD PTR [rdx]
	add	rdx, 4
	lea	eax, -16843009[rsi]
	not	esi
	and	eax, esi
	and	eax, -2139062144
	je	.L12
	mov	esi, eax
	shr	esi, 16
	test	eax, 32896
	cmove	eax, esi
	lea	rsi, 2[rdx]
	cmove	rdx, rsi
	mov	ebx, eax
	add	bl, al
	sbb	rdx, 3
	sub	rdx, r12
	lea	rdi, 9[rcx+rdx]
	call	malloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L32
.L14:
	mov	rcx, r12
	mov	rdx, rbp
	lea	rsi, .LC8[rip]
	mov	rdi, r13
	xor	eax, eax
	call	sprintf@PLT
	mov	rdi, rbp
	call	unlink@PLT
	mov	rdi, r13
	call	system@PLT
	mov	rdi, rbp
.L15:
	mov	edx, DWORD PTR [rdi]
	add	rdi, 4
	lea	eax, -16843009[rdx]
	not	edx
	and	eax, edx
	and	eax, -2139062144
	je	.L15
	mov	edx, eax
	shr	edx, 16
	test	eax, 32896
	cmove	eax, edx
	lea	rdx, 2[rdi]
	cmove	rdi, rdx
	mov	ebx, eax
	add	bl, al
	sbb	rdi, 3
	sub	rdi, rbp
	add	rdi, 9
	call	malloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L33
.L17:
	mov	rdx, rbp
	lea	rsi, .LC9[rip]
	mov	rdi, r14
	xor	eax, eax
	call	sprintf@PLT
	mov	rdi, rbp
	call	free@PLT
	mov	rdi, r12
	call	free@PLT
	mov	rdi, r13
	call	free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	rdi, r14
	call	strlen@PLT
	mov	rbx, QWORD PTR LANG_NAME[rip]
	mov	rbp, rax
	mov	rdi, rbx
	call	strlen@PLT
	lea	rdi, 7[rbp+rax]
	call	malloc@PLT
	mov	r15, rax
	mov	rbp, rax
	test	rax, rax
	je	.L34
.L5:
	mov	rcx, rbx
	mov	rdx, r14
	lea	rsi, .LC2[rip]
	mov	rdi, r15
	xor	eax, eax
	call	sprintf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L31:
	lea	rdi, .LC6[rip]
	call	printe@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L28:
	lea	rdi, .LC0[rip]
	call	printe@PLT
	jmp	.L3
.L30:
	lea	rdi, .LC1[rip]
	call	printe@PLT
	jmp	.L8
.L32:
	lea	rdi, .LC1[rip]
	call	printe@PLT
	jmp	.L14
.L33:
	lea	rdi, .LC1[rip]
	call	printe@PLT
	jmp	.L17
.L34:
	lea	rdi, .LC1[rip]
	call	printe@PLT
	mov	rbx, QWORD PTR LANG_NAME[rip]
	mov	r14, QWORD PTR [r12]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	setlang, .-setlang
	.comm	LANG_NAME,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_22729.c_setlang.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"passwd entry doesn't appear to exist\000"
	.align	2
.LC1:
	.ascii	"setlang(): allocating memory failed\000"
	.align	2
.LC2:
	.ascii	"%s/mess.%s\000"
	.align	2
.LC3:
	.ascii	"passwd entry lookup failure\000"
	.align	2
.LC4:
	.ascii	"%s.src\000"
	.align	2
.LC5:
	.ascii	"w\000"
	.align	2
.LC6:
	.ascii	"setlang(): failed to write to cat file.\000"
	.align	2
.LC7:
	.ascii	"%s\012\000"
	.align	2
.LC8:
	.ascii	"gencat %s %s\000"
	.align	2
.LC9:
	.ascii	"NLSPATH=%s\000"
	.text
	.align	2
	.global	setlang
	.syntax unified
	.arm
	.fpu softvfp
	.type	setlang, %function
setlang:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	bl	getuid
	bl	getpwuid
	subs	r4, r0, #0
	beq	.L12
	ldr	r0, [r4]
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L19
	bl	printe
.L3:
	mov	r0, r5
	bl	strlen
	add	r0, r0, #5
	bl	malloc
	subs	r4, r0, #0
	beq	.L14
.L6:
	mov	r2, r5
	ldr	r1, .L19+4
	mov	r0, r4
	bl	sprintf
	mov	r0, r4
	ldr	r1, .L19+8
	bl	fopen
	cmp	r0, #0
	beq	.L15
.L7:
	ldr	r1, .L19+8
	mov	r0, r4
	bl	fopen
	mov	r6, r0
	mov	r0, r7
	bl	setfmt
	ldr	r1, .L19+12
	mov	r2, r0
	mov	r0, r6
	bl	fprintf
	mov	r0, r6
	bl	fclose
	mov	r0, r5
	bl	strlen
	mov	r6, r0
	mov	r0, r4
	bl	strlen
	add	r0, r6, r0
	add	r0, r0, #9
	bl	malloc
	subs	r6, r0, #0
	beq	.L16
.L8:
	mov	r3, r4
	mov	r2, r5
	ldr	r1, .L19+16
	mov	r0, r6
	bl	sprintf
	mov	r0, r5
	bl	unlink
	mov	r0, r6
	bl	system
	mov	r0, r5
	bl	strlen
	add	r0, r0, #9
	bl	malloc
	subs	r7, r0, #0
	beq	.L17
.L9:
	mov	r2, r5
	ldr	r1, .L19+20
	mov	r0, r7
	bl	sprintf
	mov	r0, r5
	bl	free
	mov	r0, r4
	bl	free
	mov	r0, r6
	bl	free
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	bl	strlen
	ldr	r8, .L19+24
	mov	r5, r0
	ldr	r9, [r8]
	mov	r0, r9
	bl	strlen
	add	r0, r5, r0
	add	r0, r0, #7
	bl	malloc
	cmp	r0, #0
	mov	r6, r0
	mov	r5, r0
	beq	.L18
.L5:
	mov	r3, r9
	mov	r0, r6
	ldr	r2, [r4]
	ldr	r1, .L19+28
	bl	sprintf
	b	.L3
.L15:
	ldr	r0, .L19+32
	bl	printe
	b	.L7
.L12:
	ldr	r0, .L19+36
	bl	printe
	b	.L3
.L14:
	ldr	r0, .L19+40
	bl	printe
	b	.L6
.L16:
	ldr	r0, .L19+40
	bl	printe
	b	.L8
.L17:
	ldr	r0, .L19+40
	bl	printe
	b	.L9
.L18:
	ldr	r0, .L19+40
	bl	printe
	ldr	r9, [r8]
	b	.L5
.L20:
	.align	2
.L19:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	LANG_NAME
	.word	.LC2
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.size	setlang, .-setlang
	.comm	LANG_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
