	.file	"extr_browsers.c_parse_browsers_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Unable to open browser's file: %s"
	.align 8
.LC2:
	.string	"Maximum number of custom browsers has been reached"
	.text
	.p2align 4
	.globl	parse_browsers_file
	.type	parse_browsers_file, @function
parse_browsers_file:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.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
	mov	eax, DWORD PTR MAX_LINE_BROWSERS[rip]
	mov	rcx, rsp
	mov	QWORD PTR -72[rbp], rsp
	lea	r14d, 1[rax]
	movsx	rax, r14d
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L32:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L32
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L33
.L4:
	mov	rdi, QWORD PTR browsers[rip]
	mov	rbx, rsp
	call	ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR browsers[rip]
	movsx	r13, eax
	call	ARRAY_SIZE@PLT
	lea	edi, 0[0+rax*8]
	call	xmalloc@PLT
	mov	QWORD PTR browsers_hash[rip], rax
	mov	rdi, rax
	test	r13, r13
	je	.L5
	xor	r12d, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdi, QWORD PTR browsers_hash[rip]
.L6:
	mov	rax, QWORD PTR browsers[rip]
	mov	rsi, r12
	mov	rdx, QWORD PTR [rax+r12*8]
	add	r12, 1
	mov	ecx, DWORD PTR 4[rdx]
	mov	edx, DWORD PTR [rdx]
	call	set_browser@PLT
	cmp	r13, r12
	jne	.L34
.L5:
	mov	edi, DWORD PTR conf[rip+16]
	test	edi, edi
	je	.L30
	lea	rsi, .LC0[rip]
	call	fopen@PLT
	mov	r15, rax
	test	rax, rax
	je	.L35
.L9:
	mov	eax, DWORD PTR MAX_CUSTOM_BROWSERS[rip]
	xor	r13d, r13d
	lea	edi, 0[0+rax*8]
	call	xmalloc@PLT
	mov	QWORD PTR conf[rip+8], rax
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, r15
	mov	esi, r14d
	mov	rdi, rbx
	call	fgets@PLT
	test	rax, rax
	je	.L15
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 9
	je	.L16
	cmp	al, 32
	jne	.L17
.L16:
	lea	r12, 1[rbx]
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, rbx
	call	strlen@PLT
	mov	rsi, r12
	mov	rdi, rbx
	mov	edx, eax
	call	memmove@PLT
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 32
	je	.L25
	cmp	al, 9
	je	.L25
.L17:
	add	r13d, 1
	cmp	al, 35
	ja	.L12
	movabs	rcx, 34359747584
	bt	rcx, rax
	jc	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR MAX_CUSTOM_BROWSERS[rip]
	cmp	DWORD PTR conf[rip], eax
	jge	.L36
.L14:
	mov	rdi, QWORD PTR conf[rip+8]
	mov	edx, r13d
	mov	rsi, rbx
	call	parse_browser_token@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r15
	call	fclose@PLT
.L30:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, QWORD PTR -72[rbp]
	jne	.L37
	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
.L36:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	FATAL@PLT
	jmp	.L14
.L33:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L35:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	xor	eax, eax
	call	FATAL@PLT
	jmp	.L9
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	parse_browsers_file, .-parse_browsers_file
	.comm	errno,4,4
	.comm	conf,24,16
	.comm	browsers_hash,8,8
	.comm	browsers,8,8
	.comm	MAX_LINE_BROWSERS,4,4
	.comm	MAX_CUSTOM_BROWSERS,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_browsers.c_parse_browsers_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"Unable to open browser's file: %s\000"
	.align	2
.LC2:
	.ascii	"Maximum number of custom browsers has been reached\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_browsers_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_browsers_file, %function
parse_browsers_file:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L28
	ldr	r8, .L28+4
	ldr	r7, [r3]
	str	sp, [fp, #-48]
	add	r3, r7, #8
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L28+8
	ldr	r0, [r8]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	ARRAY_SIZE
	mov	r6, r0
	ldr	r0, [r8]
	bl	ARRAY_SIZE
	lsl	r0, r0, #2
	bl	xmalloc
	ldr	r9, .L28+12
	cmp	r6, #0
	mov	r4, sp
	add	r7, r7, #1
	str	r0, [r9]
	beq	.L2
	mov	r5, #0
	b	.L3
.L24:
	ldr	r0, [r9]
.L3:
	ldr	r3, [r8]
	mov	r1, r5
	ldr	r2, [r3, r5, lsl #2]
	add	r5, r5, #1
	ldm	r2, {r2, r3}
	bl	set_browser
	cmp	r6, r5
	bne	.L24
.L2:
	ldr	r9, .L28+16
	ldr	r0, [r9, #8]
	cmp	r0, #0
	bne	.L4
.L22:
	ldr	r3, .L28+8
	ldr	sp, [fp, #-48]
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r1, .L28+20
	bl	fopen
	subs	r8, r0, #0
	beq	.L26
.L6:
	ldr	r10, .L28+24
	mov	r6, #0
	ldr	r0, [r10]
	add	r5, r4, #1
	lsl	r0, r0, #2
	bl	xmalloc
	str	r0, [r9, #4]
.L7:
	mov	r2, r8
	mov	r1, r7
	mov	r0, r4
	bl	fgets
	cmp	r0, #0
	bne	.L21
	b	.L11
.L8:
	mov	r0, r4
	bl	strlen
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	memmove
.L21:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #9
	cmpne	r3, #32
	beq	.L8
	cmp	r3, #13
	cmpne	r3, #10
	moveq	r2, #1
	movne	r2, #0
	cmp	r3, #35
	movne	r3, r2
	orreq	r3, r2, #1
	cmp	r3, #0
	add	r6, r6, #1
	bne	.L7
	ldr	r2, [r9]
	ldr	r3, [r10]
	cmp	r2, r3
	bge	.L27
.L10:
	mov	r2, r6
	mov	r1, r4
	ldr	r0, [r9, #4]
	bl	parse_browser_token
	b	.L7
.L27:
	ldr	r0, .L28+28
	bl	FATAL
	b	.L10
.L11:
	mov	r0, r8
	bl	fclose
	b	.L22
.L26:
	ldr	r3, .L28+32
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L28+36
	bl	FATAL
	b	.L6
.L25:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	MAX_LINE_BROWSERS
	.word	browsers
	.word	.LC3
	.word	browsers_hash
	.word	conf
	.word	.LC0
	.word	MAX_CUSTOM_BROWSERS
	.word	.LC2
	.word	errno
	.word	.LC1
	.size	parse_browsers_file, .-parse_browsers_file
	.comm	errno,4,4
	.comm	conf,12,4
	.comm	browsers_hash,4,4
	.comm	browsers,4,4
	.comm	MAX_LINE_BROWSERS,4,4
	.comm	MAX_CUSTOM_BROWSERS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
