	.file	"403472.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"login"
.LC1:
	.string	"newpasswd"
.LC2:
	.string	"unknown argument "
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 5
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L3
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	login
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 5
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L5
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	newpasswd
	jmp	.L4
.L5:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 0
	call	print_help
	jmp	.L4
.L2:
	mov	eax, 0
	call	print_help
.L4:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.string	"qauladmin executes qaul.net web admin tasks\n"
.LC4:
	.string	"usage:"
	.align 8
.LC5:
	.string	"  qauladmin login <password> <shadowhash>"
	.align 8
.LC6:
	.string	"  qauladmin login mypassword \\$1\\$IxLAgyK8\\$k9p3I2IDnER48L8H49lPq/"
	.align 8
.LC7:
	.string	"  qauladmin newpasswd <newpassword> <salt>"
	.align 8
.LC8:
	.string	"  qauladmin newpasswd mynewpassword \\$1\\$IxLAgyK8"
	.text
	.globl	print_help
	.type	print_help, @function
print_help:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	print_help, .-print_help
	.section	.rodata
.LC9:
	.string	"success"
.LC10:
	.string	"error"
.LC11:
	.string	"missing argument"
	.text
	.globl	login
	.type	login, @function
login:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 2
	jle	.L9
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	crypt@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L10
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L10:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L9:
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L12:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	login, .-login
	.section	.rodata
.LC12:
	.string	"%s"
	.text
	.globl	newpasswd
	.type	newpasswd, @function
newpasswd:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 2
	jle	.L14
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	crypt@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L14:
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	newpasswd, .-newpasswd
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"403472.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"login\000"
	.align	2
.LC1:
	.ascii	"newpasswd\000"
	.align	2
.LC2:
	.ascii	"unknown argument \000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #5
	ldr	r1, .L7
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	login
	b	.L4
.L3:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #5
	ldr	r1, .L7+4
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	newpasswd
	b	.L4
.L5:
	ldr	r0, .L7+8
	bl	puts
	bl	print_help
	b	.L4
.L2:
	bl	print_help
.L4:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"qauladmin executes qaul.net web admin tasks\012\000"
	.align	2
.LC4:
	.ascii	"usage:\000"
	.align	2
.LC5:
	.ascii	"  qauladmin login <password> <shadowhash>\000"
	.align	2
.LC6:
	.ascii	"  qauladmin login mypassword \\$1\\$IxLAgyK8\\$k9p3"
	.ascii	"I2IDnER48L8H49lPq/\000"
	.align	2
.LC7:
	.ascii	"  qauladmin newpasswd <newpassword> <salt>\000"
	.align	2
.LC8:
	.ascii	"  qauladmin newpasswd mynewpassword \\$1\\$IxLAgyK8"
	.ascii	"\000"
	.text
	.align	2
	.global	print_help
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_help, %function
print_help:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #10
	bl	putchar
	ldr	r0, .L10
	bl	puts
	ldr	r0, .L10+4
	bl	puts
	ldr	r0, .L10+8
	bl	puts
	ldr	r0, .L10+12
	bl	puts
	ldr	r0, .L10+16
	bl	puts
	ldr	r0, .L10+20
	bl	puts
	mov	r0, #10
	bl	putchar
	nop
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	print_help, .-print_help
	.section	.rodata
	.align	2
.LC9:
	.ascii	"success\000"
	.align	2
.LC10:
	.ascii	"error\000"
	.align	2
.LC11:
	.ascii	"missing argument\000"
	.text
	.align	2
	.global	login
	.syntax unified
	.arm
	.fpu softvfp
	.type	login, %function
login:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	ble	.L13
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	crypt
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L17
	bl	printf
	b	.L16
.L14:
	ldr	r0, .L17+4
	bl	printf
	b	.L16
.L13:
	ldr	r0, .L17+8
	bl	puts
.L16:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	login, .-login
	.section	.rodata
	.align	2
.LC12:
	.ascii	"%s\000"
	.text
	.align	2
	.global	newpasswd
	.syntax unified
	.arm
	.fpu softvfp
	.type	newpasswd, %function
newpasswd:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	ble	.L20
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	crypt
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L23
	bl	printf
	b	.L22
.L20:
	ldr	r0, .L23+4
	bl	puts
.L22:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC12
	.word	.LC11
	.size	newpasswd, .-newpasswd
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
