	.file	"extr_Network.c_GetHostName.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
	.text
	.p2align 4
	.globl	GetHostName
	.type	GetHostName, @function
GetHostName:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	test	rdi, rdi
	je	.L7
	mov	r12, rdx
	test	rdx, rdx
	je	.L7
	mov	rbp, rdi
	mov	r14d, esi
	call	GetHostCache@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L3
	mov	rdi, rbp
	xor	r13d, r13d
	call	IsEmptyStr@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	test	eax, eax
	sete	r13b
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	r13d, r13d
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edi, 4
	call	ZeroMalloc@PLT
	mov	edx, 4
	mov	rsi, r12
	mov	rdi, rax
	mov	r15, rax
	call	Copy@PLT
	mov	edi, DWORD PTR GetHostNameThread[rip]
	mov	rsi, r15
	call	NewThread@PLT
	mov	rdi, rax
	mov	r15, rax
	call	WaitThreadInit@PLT
	mov	esi, DWORD PTR TIMEOUT_HOSTNAME[rip]
	mov	rdi, r15
	call	WaitThread@PLT
	mov	rdi, r15
	call	ReleaseThread@PLT
	mov	rdx, r12
	mov	esi, r14d
	mov	rdi, rbp
	call	GetHostCache@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L4
	mov	rdi, r12
	call	IsIP4@PLT
	test	rax, rax
	jne	.L5
.L6:
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	AddHostCache@PLT
	mov	esi, r14d
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	call	StrCpy@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	call	IsEmptyStr@PLT
	test	eax, eax
	jne	.L6
	mov	r13d, r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, r12
	mov	esi, r14d
	mov	rdi, rbp
	call	GetNetBiosName@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L6
	mov	rsi, rbp
	mov	rdi, r12
	mov	r13d, r15d
	call	AddHostCache@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	GetHostName, .-GetHostName
	.comm	TIMEOUT_HOSTNAME,4,4
	.comm	GetHostNameThread,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_Network.c_GetHostName.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.text
	.align	2
	.global	GetHostName
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetHostName, %function
GetHostName:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	cmpne	r0, #0
	push	{r4, r5, r6, r7, r8, lr}
	moveq	r4, #0
	bne	.L13
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r6, r0
	mov	r5, r2
	mov	r7, r1
	bl	GetHostCache
	subs	r4, r0, #0
	beq	.L3
	mov	r0, r6
	bl	IsEmptyStr
	clz	r4, r0
	lsr	r4, r4, #5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, #4
	bl	ZeroMalloc
	mov	r8, r0
	mov	r2, #4
	mov	r1, r5
	bl	Copy
	ldr	r3, .L15
	mov	r1, r8
	ldr	r0, [r3]
	bl	NewThread
	mov	r8, r0
	bl	WaitThreadInit
	ldr	r3, .L15+4
	mov	r0, r8
	ldr	r1, [r3]
	bl	WaitThread
	mov	r0, r8
	bl	ReleaseThread
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	bl	GetHostCache
	subs	r8, r0, #0
	beq	.L14
	mov	r0, r6
	bl	IsEmptyStr
	cmp	r0, #0
	moveq	r4, r8
	beq	.L1
.L6:
	mov	r0, r5
	ldr	r1, .L15+8
	bl	AddHostCache
	mov	r1, r7
	mov	r0, r6
	ldr	r2, .L15+8
	bl	StrCpy
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r0, r5
	bl	IsIP4
	cmp	r0, #0
	beq	.L6
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	bl	GetNetBiosName
	subs	r8, r0, #0
	beq	.L6
	mov	r1, r6
	mov	r0, r5
	bl	AddHostCache
	mov	r4, r8
	b	.L1
.L16:
	.align	2
.L15:
	.word	GetHostNameThread
	.word	TIMEOUT_HOSTNAME
	.word	.LC0
	.size	GetHostName, .-GetHostName
	.comm	TIMEOUT_HOSTNAME,4,4
	.comm	GetHostNameThread,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
