	.file	"extr_Hub.c_GenHubIpAddress.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	GenHubIpAddress
	.type	GenHubIpAddress, @function
GenHubIpAddress:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdx, rsi
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rdi
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_SIZE[rip]
	mov	rsi, rsp
	mov	rbx, rsp
	mov	r12, rax
	add	rax, 15
	mov	rdi, rax
	mov	rcx, rax
	and	rdi, -4096
	and	rcx, -16
	sub	rsi, rdi
	mov	rdi, rsi
	cmp	rsp, rdi
	je	.L3
.L28:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rdi
	jne	.L28
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L29
.L4:
	mov	rcx, rax
	mov	rsi, rsp
	and	rax, -4096
	mov	r9, rsp
	sub	rsi, rax
	and	rcx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L6
.L30:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L30
.L6:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L31
.L7:
	movsx	rax, DWORD PTR SHA1_SIZE[rip]
	mov	rsi, rsp
	mov	r13, rsp
	mov	DWORD PTR -84[rbp], eax
	lea	rax, 15[0+rax*4]
	mov	rcx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rcx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L9
.L32:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L32
.L9:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	je	.L10
	or	QWORD PTR -8[rsp+rcx], 0
.L10:
	lea	r15, 3[rsp]
	mov	r8, r15
	and	r15, -4
	shr	r8, 2
	test	r14, r14
	je	.L26
	test	rdx, rdx
	je	.L26
	mov	esi, r12d
	mov	rdi, r9
	mov	QWORD PTR -80[rbp], r8
	mov	QWORD PTR -72[rbp], r9
	call	StrCpy@PLT
	mov	r9, QWORD PTR -72[rbp]
	mov	rdi, r9
	call	Trim@PLT
	mov	rdi, r15
	call	GenerateMachineUniqueHash@PLT
	mov	ecx, DWORD PTR -84[rbp]
	mov	rdx, r15
	mov	esi, r12d
	mov	rdi, r13
	sal	ecx, 2
	call	BinToStr@PLT
	mov	r9, QWORD PTR -72[rbp]
	mov	esi, r12d
	mov	rdi, r13
	mov	rdx, r9
	call	StrCat@PLT
	mov	rdi, r13
	call	StrUpper@PLT
	mov	rdi, r13
	call	StrLen@PLT
	mov	rsi, r13
	mov	rdi, r15
	mov	edx, eax
	call	Sha0@PLT
	mov	esi, 8
	mov	rdi, r14
	call	Zero@PLT
	mov	rdx, QWORD PTR [r14]
	mov	r8, QWORD PTR -80[rbp]
	movabs	rax, 133143986348
	mov	QWORD PTR [rdx], rax
	movsx	rax, DWORD PTR 0[0+r8*4]
	mov	rcx, rax
	imul	rax, rax, -2130574327
	mov	esi, ecx
	sar	esi, 31
	shr	rax, 32
	add	eax, ecx
	sar	eax, 7
	sub	eax, esi
	imul	eax, eax, 254
	sub	ecx, eax
	add	ecx, 1
	mov	DWORD PTR 8[rdx], ecx
	movsx	rax, DWORD PTR 4[0+r8*4]
	mov	rcx, rax
	imul	rax, rax, -2130574327
	mov	esi, ecx
	sar	esi, 31
	shr	rax, 32
	add	eax, ecx
	sar	eax, 7
	sub	eax, esi
	imul	eax, eax, 254
	sub	ecx, eax
	add	ecx, 1
	mov	DWORD PTR 12[rdx], ecx
.L26:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, rbx
	jne	.L33
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L31:
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L7
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	GenHubIpAddress, .-GenHubIpAddress
	.comm	SHA1_SIZE,4,4
	.comm	MAX_SIZE,4,4
	.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_Hub.c_GenHubIpAddress.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	GenHubIpAddress
	.syntax unified
	.arm
	.fpu softvfp
	.type	GenHubIpAddress, %function
GenHubIpAddress:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	cmp	r1, #0
	cmpne	r0, #0
	mov	r2, r1
	ldr	r1, .L9
	ldr	r3, .L9+4
	ldr	r6, [r1]
	ldr	r5, [r3]
	add	ip, r6, #7
	bic	ip, ip, #7
	lsl	r5, r5, #2
	mov	r8, sp
	add	r3, r5, #7
	sub	sp, sp, ip
	bic	r3, r3, #7
	mov	r7, sp
	sub	sp, sp, ip
	mov	r9, sp
	sub	sp, sp, r3
	ldr	r3, .L9+8
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	beq	.L6
	mov	r10, sp
	mov	r1, r6
	mov	r4, r0
	mov	r0, r7
	bl	StrCpy
	mov	r0, r7
	bl	Trim
	mov	r0, r10
	bl	GenerateMachineUniqueHash
	mov	r3, r5
	mov	r2, r10
	mov	r1, r6
	mov	r0, r9
	bl	BinToStr
	mov	r2, r7
	mov	r1, r6
	mov	r0, r9
	bl	StrCat
	mov	r0, r9
	bl	StrUpper
	mov	r0, r9
	bl	StrLen
	mov	r1, r9
	mov	r2, r0
	mov	r0, r10
	bl	Sha0
	mov	r1, #4
	mov	r0, r4
	bl	Zero
	mov	r0, #172
	mov	r3, #31
	ldr	r1, [r4]
	ldr	r2, .L9+12
	stm	r1, {r0, r3}
	ldr	r3, [r10]
	smull	r0, ip, r2, r3
	asr	r0, r3, #31
	add	ip, ip, r3
	rsb	r0, r0, ip, asr #7
	rsb	r0, r0, r0, lsl #7
	sub	r3, r3, r0, lsl #1
	add	r3, r3, #1
	str	r3, [r1, #8]
	ldr	r3, [r10, #4]
	smull	ip, r0, r2, r3
	asr	r2, r3, #31
	add	r0, r0, r3
	rsb	r2, r2, r0, asr #7
	rsb	r2, r2, r2, lsl #7
	sub	r3, r3, r2, lsl #1
	add	r3, r3, #1
	str	r3, [r1, #12]
.L6:
	ldr	r3, .L9+8
	mov	sp, r8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	MAX_SIZE
	.word	SHA1_SIZE
	.word	.LC0
	.word	-2130574327
	.size	GenHubIpAddress, .-GenHubIpAddress
	.comm	SHA1_SIZE,4,4
	.comm	MAX_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
