	.file	"490830.c"
	.intel_syntax noprefix
	.text
	.globl	auth
	.bss
	.align 8
	.type	auth, @object
	.size	auth, 8
auth:
	.zero	8
	.globl	service
	.align 8
	.type	service, @object
	.size	service, 8
service:
	.zero	8
	.section	.rodata
.LC0:
	.string	"[ auth = %p, service = %p ]\n"
.LC1:
	.string	"auth "
.LC2:
	.string	"reset"
.LC3:
	.string	"service"
.LC4:
	.string	"login"
.LC5:
	.string	"Welcome Admin!"
.LC6:
	.string	"/bin/sh"
.LC7:
	.string	"please enter your password"
	.text
	.globl	main
	.type	main, @function
main:
.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L9:
	mov	rdx, QWORD PTR service[rip]
	mov	rax, QWORD PTR auth[rip]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -144[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L13
	lea	rax, -144[rbp]
	mov	edx, 5
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L4
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR auth[rip], rax
	mov	rax, QWORD PTR auth[rip]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -144[rbp]
	add	rax, 5
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 30
	ja	.L4
	lea	rax, -144[rbp]
	add	rax, 5
	mov	rdx, QWORD PTR auth[rip]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
.L4:
	lea	rax, -144[rbp]
	mov	edx, 5
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR auth[rip]
	mov	rdi, rax
	call	free@PLT
.L5:
	lea	rax, -144[rbp]
	mov	edx, 6
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L6
	lea	rax, -144[rbp]
	add	rax, 7
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR service[rip], rax
.L6:
	lea	rax, -144[rbp]
	mov	edx, 5
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR auth[rip]
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	je	.L8
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	system@PLT
	jmp	.L9
.L8:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L9
.L13:
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"490830.c"
	.text
	.comm	auth,4,4
	.comm	service,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[ auth = %p, service = %p ]\012\000"
	.align	2
.LC1:
	.ascii	"auth \000"
	.align	2
.LC2:
	.ascii	"reset\000"
	.align	2
.LC3:
	.ascii	"service\000"
	.align	2
.LC4:
	.ascii	"login\000"
	.align	2
.LC5:
	.ascii	"Welcome Admin!\000"
	.align	2
.LC6:
	.ascii	"/bin/sh\000"
	.align	2
.LC7:
	.ascii	"please enter your password\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L9:
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldr	r2, .L14+8
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L14+12
	bl	printf
	ldr	r3, .L14+16
	ldr	r2, [r3]
	sub	r3, fp, #136
	mov	r1, #128
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	sub	r3, fp, #136
	mov	r2, #5
	ldr	r1, .L14+20
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L14+4
	str	r2, [r3]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r2, #4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #136
	add	r3, r3, #5
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #30
	bhi	.L4
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r2, r3
	sub	r3, fp, #136
	add	r3, r3, #5
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
.L4:
	sub	r3, fp, #136
	mov	r2, #5
	ldr	r1, .L14+24
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L5:
	sub	r3, fp, #136
	mov	r2, #6
	ldr	r1, .L14+28
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #136
	add	r3, r3, #7
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L14+8
	str	r2, [r3]
.L6:
	sub	r3, fp, #136
	mov	r2, #5
	ldr	r1, .L14+32
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldr	r3, [r3, #32]
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L14+36
	bl	puts
	ldr	r0, .L14+40
	bl	system
	b	.L9
.L8:
	ldr	r0, .L14+44
	bl	puts
	b	.L9
.L13:
	nop
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC8
	.word	auth
	.word	service
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
