	.file	"882196.c"
	.intel_syntax noprefix
	.text
	.globl	adminHash
	.section	.rodata
	.align 8
.LC0:
	.string	"$6$saaaaalty$cjw9qyAKmchl7kQMJxE5c1mHN0cXxfQNjs4EhcyULLndQR1wXslGCaZrJj5xRRBeflfvmpoIVv6Vs7ZOQwhcx."
	.section	.data.rel.local,"aw"
	.align 8
	.type	adminHash, @object
	.size	adminHash, 8
adminHash:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"$6$saaaaalty"
	.text
	.globl	checkPassword
	.type	checkPassword, @function
checkPassword:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	crypt@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR adminHash[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	checkPassword, .-checkPassword
	.section	.rodata
.LC2:
	.string	"cmd"
.LC3:
	.string	"%s-%s"
	.align 8
.LC4:
	.string	"Hello %s.\nYou are admin!\nisAdmin: 0x%x\n"
	.align 8
.LC5:
	.string	"Hello %s.\nYou are not admin.\nisAdmin: 0x%x\n"
	.text
	.globl	handleData
	.type	handleData, @function
handleData:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -84[rbp], 0
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	checkPassword
	mov	DWORD PTR -84[rbp], eax
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -80[rbp]
	mov	rcx, rdx
	lea	rdx, .LC2[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	cmp	DWORD PTR -84[rbp], 0
	jle	.L5
	mov	edx, DWORD PTR -84[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L5:
	mov	edx, DWORD PTR -84[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	handleData, .-handleData
	.section	.rodata
.LC6:
	.string	"Call: %s <name> <password>\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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], 3
	je	.L10
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	handleData
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.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	"882196.c"
	.text
	.global	adminHash
	.section	.rodata
	.align	2
.LC0:
	.ascii	"$6$saaaaalty$cjw9qyAKmchl7kQMJxE5c1mHN0cXxfQNjs4Ehc"
	.ascii	"yULLndQR1wXslGCaZrJj5xRRBeflfvmpoIVv6Vs7ZOQwhcx.\000"
	.data
	.align	2
	.type	adminHash, %object
	.size	adminHash, 4
adminHash:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"$6$saaaaalty\000"
	.text
	.align	2
	.global	checkPassword
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkPassword, %function
checkPassword:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r1, .L4
	ldr	r0, [fp, #-16]
	bl	crypt
	str	r0, [fp, #-8]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC1
	.word	adminHash
	.size	checkPassword, .-checkPassword
	.section	.rodata
	.align	2
.LC2:
	.ascii	"cmd\000"
	.align	2
.LC3:
	.ascii	"%s-%s\000"
	.align	2
.LC4:
	.ascii	"Hello %s.\012You are admin!\012isAdmin: 0x%x\012\000"
	.align	2
.LC5:
	.ascii	"Hello %s.\012You are not admin.\012isAdmin: 0x%x\012"
	.ascii	"\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handleData
	.syntax unified
	.arm
	.fpu softvfp
	.type	handleData, %function
handleData:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r0, [fp, #-84]
	bl	checkPassword
	str	r0, [fp, #-76]
	sub	r0, fp, #72
	ldr	r3, [fp, #-80]
	ldr	r2, .L11+4
	ldr	r1, .L11+8
	bl	sprintf
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	ble	.L7
	sub	r3, fp, #72
	ldr	r2, [fp, #-76]
	mov	r1, r3
	ldr	r0, .L11+12
	bl	printf
	b	.L10
.L7:
	sub	r3, fp, #72
	ldr	r2, [fp, #-76]
	mov	r1, r3
	ldr	r0, .L11+16
	bl	printf
.L10:
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	handleData, .-handleData
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Call: %s <name> <password>\012\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, #3
	beq	.L14
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16
	bl	printf
	mov	r0, #0
	bl	exit
.L14:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	handleData
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
