	.file	"32949785.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"ziqij"
	.section	.data.rel.local,"aw"
	.align 8
	.type	USERNAME, @object
	.size	USERNAME, 8
USERNAME:
	.quad	.LC0
	.text
	.globl	power
	.type	power, @function
power:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -28[rbp]
	mov	DWORD PTR -20[rbp], edx
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 1
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -28[rbp]
	mov	DWORD PTR -4[rbp], edx
.L3:
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax
	cdq
	idiv	DWORD PTR -28[rbp]
	mov	DWORD PTR -20[rbp], edx
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -24[rbp], eax
.L2:
	cmp	DWORD PTR -24[rbp], 0
	jg	.L4
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	power, .-power
	.section	.rodata
.LC1:
	.string	"b: %d\n"
.LC2:
	.string	"172.26.37.44"
.LC3:
	.string	"ERROR, no such host\n"
.LC4:
	.string	"ERROR opening socket"
.LC5:
	.string	"ERROR connecting"
.LC6:
	.string	"%s\n"
.LC7:
	.string	"ERROR: writing to socket"
.LC8:
	.string	"Send username: %s\n"
.LC9:
	.string	"%d\n"
.LC10:
	.string	"Send g^b mod p = %s\n"
.LC11:
	.string	"Received g^a mod p = %s\n"
.LC12:
	.string	"\n"
.LC13:
	.string	"Shared secret = %d\n"
.LC14:
	.string	"Status report: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 368
	mov	DWORD PTR -356[rbp], edi
	mov	QWORD PTR -368[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR -275[rbp], ax
	mov	BYTE PTR -273[rbp], 0
	lea	rax, -275[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -344[rbp], eax
	mov	eax, DWORD PTR -344[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -340[rbp], 15
	mov	DWORD PTR -336[rbp], 97
	lea	rdi, .LC2[rip]
	call	gethostbyname@PLT
	mov	QWORD PTR -312[rbp], rax
	cmp	QWORD PTR -312[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rax, -304[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -304[rbp], 2
	mov	edi, 7800
	call	htons@PLT
	mov	WORD PTR -302[rbp], ax
	mov	rax, QWORD PTR -312[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -312[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -304[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -332[rbp], eax
	cmp	DWORD PTR -332[rbp], 0
	jns	.L8
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L8:
	lea	rcx, -304[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L9
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rdx, QWORD PTR USERNAME[rip]
	lea	rax, -272[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -328[rbp], eax
	cmp	DWORD PTR -328[rbp], 0
	jns	.L10
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR USERNAME[rip]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	edx, DWORD PTR -336[rbp]
	mov	ecx, DWORD PTR -344[rbp]
	mov	eax, DWORD PTR -340[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	power
	mov	DWORD PTR -324[rbp], eax
	mov	edx, DWORD PTR -324[rbp]
	lea	rax, -272[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -328[rbp], eax
	cmp	DWORD PTR -328[rbp], 0
	jns	.L11
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 255
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -328[rbp], eax
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strtok@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -320[rbp], eax
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	edx, DWORD PTR -336[rbp]
	mov	ecx, DWORD PTR -344[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	power
	mov	DWORD PTR -316[rbp], eax
	mov	eax, DWORD PTR -316[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -316[rbp]
	lea	rax, -272[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -328[rbp], eax
	cmp	DWORD PTR -328[rbp], 0
	jns	.L12
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 255
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -328[rbp], eax
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -332[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"32949785.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ziqij\000"
	.data
	.align	2
	.type	USERNAME, %object
	.size	USERNAME, 4
USERNAME:
	.word	.LC0
	.global	__aeabi_idivmod
	.text
	.align	2
	.global	power
	.syntax unified
	.arm
	.fpu softvfp
	.type	power, %function
power:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-16]
	b	.L2
.L4:
	ldr	r3, [fp, #-20]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L4
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	power, .-power
	.section	.rodata
	.align	2
.LC1:
	.ascii	"b: %d\012\000"
	.align	2
.LC2:
	.ascii	"172.26.37.44\000"
	.align	2
.LC3:
	.ascii	"ERROR, no such host\012\000"
	.align	2
.LC4:
	.ascii	"ERROR opening socket\000"
	.align	2
.LC5:
	.ascii	"ERROR connecting\000"
	.align	2
.LC6:
	.ascii	"%s\012\000"
	.align	2
.LC7:
	.ascii	"ERROR: writing to socket\000"
	.align	2
.LC8:
	.ascii	"Send username: %s\012\000"
	.align	2
.LC9:
	.ascii	"%d\012\000"
	.align	2
.LC10:
	.ascii	"Send g^b mod p = %s\012\000"
	.align	2
.LC11:
	.ascii	"Received g^a mod p = %s\012\000"
	.align	2
.LC12:
	.ascii	"\012\000"
	.align	2
.LC13:
	.ascii	"Shared secret = %d\012\000"
	.align	2
.LC14:
	.ascii	"Status report: %s\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #328
	str	r0, [fp, #-328]
	str	r1, [fp, #-332]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-332]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #268
	mov	r2, #2
	mov	r0, r3
	bl	memcpy
	mov	r3, #0
	strb	r3, [fp, #-266]
	sub	r3, fp, #268
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-320]
	ldr	r1, [fp, #-320]
	ldr	r0, .L15+4
	bl	printf
	mov	r3, #15
	str	r3, [fp, #-316]
	mov	r3, #97
	str	r3, [fp, #-312]
	ldr	r0, .L15+8
	bl	gethostbyname
	str	r0, [fp, #-308]
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L15+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #284
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #4
	sub	r3, r3, #280
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L15+20
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #280
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-308]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-308]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #284
	add	r3, r3, #4
	mov	r0, r3
	bl	memmove
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L15+24
	bl	perror
	mov	r0, #0
	bl	exit
.L8:
	sub	r3, fp, #284
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L15+28
	bl	perror
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, .L15+32
	ldr	r2, [r3]
	sub	r3, fp, #264
	ldr	r1, .L15+36
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	write
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L15+40
	bl	perror
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, .L15+32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+44
	bl	printf
	sub	r3, fp, #264
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r2, [fp, #-312]
	ldr	r1, [fp, #-320]
	ldr	r0, [fp, #-316]
	bl	power
	str	r0, [fp, #-296]
	sub	r3, fp, #264
	ldr	r2, [fp, #-296]
	ldr	r1, .L15+48
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	write
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L15+40
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L15+52
	bl	printf
	sub	r3, fp, #264
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #264
	mov	r2, #255
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	read
	str	r0, [fp, #-300]
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L15+56
	bl	printf
	sub	r3, fp, #264
	ldr	r1, .L15+60
	mov	r0, r3
	bl	strtok
	sub	r3, fp, #264
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-292]
	sub	r3, fp, #264
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r2, [fp, #-312]
	ldr	r1, [fp, #-320]
	ldr	r0, [fp, #-292]
	bl	power
	str	r0, [fp, #-288]
	ldr	r1, [fp, #-288]
	ldr	r0, .L15+64
	bl	printf
	sub	r3, fp, #264
	ldr	r2, [fp, #-288]
	ldr	r1, .L15+48
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	write
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L15+40
	bl	perror
	mov	r0, #1
	bl	exit
.L12:
	sub	r3, fp, #264
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #264
	mov	r2, #255
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	read
	str	r0, [fp, #-300]
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L15+68
	bl	printf
	ldr	r0, [fp, #-304]
	bl	close
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC15
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	7800
	.word	.LC4
	.word	.LC5
	.word	USERNAME
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
