	.file	"extr_ssh.c_read_known_hosts_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r"
.LC1:
	.string	", "
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Failed to parse port number: %s."
	.align 8
.LC3:
	.string	"Failed to parse port number: %s, invalid number."
	.align 8
.LC4:
	.string	"Failed to parse port number: %s, out of range."
	.align 8
.LC5:
	.string	"Failed to close hosts file: '%s'"
	.align 8
.LC6:
	.string	"Failed to open KnownHostFile: '%s'"
	.text
	.p2align 4
	.type	read_known_hosts_file, @function
read_known_hosts_file:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	fopen@PLT
	mov	QWORD PTR [rsp], rax
	test	rax, rax
	je	.L2
	lea	rax, 48[rsp]
	lea	r13, 56[rsp]
	mov	QWORD PTR 40[rsp], 0
	mov	QWORD PTR 8[rsp], rax
	lea	rax, 40[rsp]
	mov	QWORD PTR 16[rsp], rax
	lea	rax, 64[rsp]
	mov	QWORD PTR 48[rsp], 0
	mov	QWORD PTR 24[rsp], rax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR 16[rsp]
	mov	rdx, QWORD PTR [rsp]
	mov	rsi, QWORD PTR 8[rsp]
	call	getline@PLT
	mov	rdi, QWORD PTR 40[rsp]
	test	rax, rax
	jle	.L45
	call	g_strstrip@PLT
	mov	r12, rax
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	sete	cl
	cmp	al, 64
	sete	dl
	or	cl, dl
	jne	.L3
	cmp	al, 124
	je	.L3
	mov	esi, 32
	mov	rdi, r12
	call	strchr@PLT
	test	rax, rax
	je	.L3
	mov	BYTE PTR [rax], 0
	mov	QWORD PTR 56[rsp], r12
	.p2align 4,,10
	.p2align 3
.L43:
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	strsep@PLT
	mov	r15, rax
	test	rax, rax
	je	.L3
	xor	r12d, r12d
	cmp	BYTE PTR [rax], 91
	je	.L46
.L6:
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L10
	xor	r14d, r14d
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, r14d
	mov	rdi, r15
	sal	rax, 4
	mov	rsi, QWORD PTR 8[rbp+rax]
	call	g_ascii_strcasecmp@PLT
	test	eax, eax
	je	.L43
	mov	eax, DWORD PTR [rbx]
	add	r14d, 1
	cmp	eax, r14d
	ja	.L12
.L10:
	lea	esi, 2[rax]
	mov	rdi, rbp
	sal	esi, 4
	call	g_realloc@PLT
	mov	rdi, r15
	mov	rbp, rax
	mov	eax, DWORD PTR [rbx]
	sal	rax, 4
	lea	r14, 0[rbp+rax]
	call	g_strdup@PLT
	mov	QWORD PTR 8[r14], rax
	mov	eax, DWORD PTR [rbx]
	sal	rax, 4
	mov	DWORD PTR 0[rbp+rax], r12d
	mov	eax, DWORD PTR [rbx]
	add	eax, 1
	sal	rax, 4
	add	rax, rbp
	mov	QWORD PTR 8[rax], 0
	mov	DWORD PTR [rax], 0
	add	DWORD PTR [rbx], 1
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L46:
	add	r15, 1
	mov	esi, 93
	mov	rdi, r15
	call	strchr@PLT
	cmp	BYTE PTR 1[rax], 58
	jne	.L6
	mov	BYTE PTR [rax], 0
	lea	r14, 2[rax]
	mov	rsi, QWORD PTR 24[rsp]
	mov	edx, 10
	mov	QWORD PTR errno[rip], 0
	mov	rdi, r14
	mov	QWORD PTR 64[rsp], 0
	call	g_ascii_strtoll@PLT
	cmp	QWORD PTR errno[rip], 0
	mov	r12d, eax
	jne	.L47
	cmp	r14, QWORD PTR 64[rsp]
	je	.L48
	cmp	eax, 65535
	jbe	.L6
	mov	rsi, r14
	lea	rdi, .LC4[rip]
	xor	r12d, r12d
	call	g_warning@PLT
	jmp	.L6
.L45:
	test	rdi, rdi
	je	.L16
	call	free@PLT
.L16:
	mov	rdi, QWORD PTR [rsp]
	call	fclose@PLT
	test	rax, rax
	jne	.L49
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L50
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	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
.L49:
	.cfi_restore_state
	mov	rdi, QWORD PTR errno[rip]
	call	g_strerror@PLT
	lea	rdi, .LC5[rip]
	mov	rsi, rax
	call	g_warning@PLT
	jmp	.L1
.L47:
	mov	rsi, r14
	lea	rdi, .LC2[rip]
	xor	r12d, r12d
	call	g_warning@PLT
	jmp	.L6
.L2:
	mov	rsi, r12
	lea	rdi, .LC6[rip]
	call	g_debug@PLT
	jmp	.L1
.L48:
	mov	rsi, r14
	lea	rdi, .LC3[rip]
	xor	r12d, r12d
	call	g_warning@PLT
	jmp	.L6
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_known_hosts_file, .-read_known_hosts_file
	.comm	errno,8,8
	.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_ssh.c_read_known_hosts_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	", \000"
	.align	2
.LC2:
	.ascii	"Failed to parse port number: %s.\000"
	.align	2
.LC3:
	.ascii	"Failed to parse port number: %s, invalid number.\000"
	.align	2
.LC4:
	.ascii	"Failed to parse port number: %s, out of range.\000"
	.align	2
.LC5:
	.ascii	"Failed to close hosts file: '%s'\000"
	.align	2
.LC6:
	.ascii	"Failed to open KnownHostFile: '%s'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_known_hosts_file, %function
read_known_hosts_file:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L54
	sub	sp, sp, #36
	mov	r6, r1
	ldr	r1, .L54+4
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r5, r0
	bl	fopen
	subs	r10, r0, #0
	beq	.L2
	mov	r3, #0
	ldr	r9, .L54+8
	str	r3, [sp, #12]
	str	r3, [sp, #16]
.L3:
	mov	r2, r10
	add	r1, sp, #16
	add	r0, sp, #12
	bl	getline
	cmp	r0, #0
	ldr	r0, [sp, #12]
	ble	.L46
	bl	g_strstrip
	ldrb	r3, [r0]	@ zero_extendqisi2
	mov	r5, r0
	cmp	r3, #64
	cmpne	r3, #35
	moveq	r8, #1
	movne	r8, #0
	cmp	r3, #124
	orreq	r8, r8, #1
	cmp	r8, #0
	bne	.L3
	mov	r1, #32
	bl	strchr
	cmp	r0, #0
	beq	.L3
	strb	r8, [r0]
	mov	r1, r9
	add	r0, sp, #20
	str	r5, [sp, #20]
	bl	strsep
	subs	fp, r0, #0
	beq	.L3
	ldrb	r3, [fp]	@ zero_extendqisi2
	str	r8, [sp, #4]
	cmp	r3, #91
	beq	.L47
.L21:
	mov	r8, #0
.L6:
	ldr	r1, [r4]
	cmp	r1, #0
	beq	.L10
.L51:
	mov	r5, #0
	add	r7, r6, #4
	b	.L12
.L48:
	ldr	r1, [r4]
	add	r5, r5, #1
	cmp	r1, r5
	bls	.L10
.L12:
	mov	r0, fp
	ldr	r1, [r7, r5, lsl #3]
	bl	g_ascii_strcasecmp
	cmp	r0, #0
	bne	.L48
.L11:
	mov	r1, r9
	add	r0, sp, #20
	bl	strsep
	subs	fp, r0, #0
	beq	.L3
	ldrb	r3, [fp]	@ zero_extendqisi2
	cmp	r3, #91
	bne	.L21
.L47:
	add	fp, fp, #1
	mov	r0, fp
	mov	r1, #93
	bl	strchr
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L21
	mov	r5, r0
	ldr	r3, [sp, #4]
	ldr	r7, .L54+12
	strb	r3, [r5], #2
	mov	r0, r5
	mov	r2, #10
	add	r1, sp, #24
	str	r3, [r7]
	str	r3, [sp, #24]
	bl	g_ascii_strtoll
	ldr	r3, [r7]
	mov	r8, r0
	cmp	r3, #0
	bne	.L49
	ldr	r2, [sp, #24]
	cmp	r5, r2
	beq	.L50
	cmp	r0, #65536
	bcc	.L6
	mov	r1, r5
	ldr	r0, .L54+16
	mov	r8, r3
	bl	g_warning
	ldr	r1, [r4]
	cmp	r1, #0
	bne	.L51
.L10:
	add	r1, r1, #2
	lsl	r1, r1, #3
	mov	r0, r6
	bl	g_realloc
	mov	r6, r0
	mov	r0, fp
	ldr	r5, [r4]
	bl	g_strdup
	ldr	r3, [r4]
	add	r5, r6, r5, lsl #3
	str	r0, [r5, #4]
	str	r8, [r6, r3, lsl #3]
	ldr	r3, [r4]
	ldr	r1, [sp, #4]
	add	r3, r3, #1
	add	r2, r6, r3, lsl #3
	str	r1, [r2, #4]
	str	r1, [r6, r3, lsl #3]
	ldr	r3, [r4]
	add	r3, r3, #1
	str	r3, [r4]
	b	.L11
.L46:
	cmp	r0, #0
	beq	.L16
	bl	free
.L16:
	mov	r0, r10
	bl	fclose
	cmp	r0, #0
	bne	.L52
.L1:
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L53
	mov	r0, r6
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L52:
	ldr	r3, .L54+12
	ldr	r0, [r3]
	bl	g_strerror
	mov	r1, r0
	ldr	r0, .L54+20
	bl	g_warning
	b	.L1
.L49:
	mov	r1, r5
	ldr	r0, .L54+24
	bl	g_warning
	mov	r8, #0
	b	.L6
.L2:
	mov	r1, r5
	ldr	r0, .L54+28
	bl	g_debug
	b	.L1
.L50:
	mov	r1, r5
	ldr	r0, .L54+32
	mov	r8, r3
	bl	g_warning
	b	.L6
.L53:
	bl	__stack_chk_fail
.L55:
	.align	2
.L54:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	errno
	.word	.LC4
	.word	.LC5
	.word	.LC2
	.word	.LC6
	.word	.LC3
	.size	read_known_hosts_file, .-read_known_hosts_file
	.comm	errno,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
