	.file	"extr_main.c_load_netdata_conf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"CONFIG: cannot load config file '%s'."
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"netdata.conf"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"CONFIG: cannot load user config '%s'. Will try the stock version."
	.align 8
.LC3:
	.string	"CONFIG: cannot load stock config '%s'. Running with internal defaults."
	.text
	.p2align 4
	.type	load_netdata_conf, @function
load_netdata_conf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movsx	r13d, sil
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	QWORD PTR errno[rip], 0
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	test	rdi, rdi
	je	.L2
	cmp	BYTE PTR [rdi], 0
	mov	rbp, rdi
	jne	.L10
.L2:
	mov	edi, DWORD PTR netdata_configured_user_config_dir[rip]
	lea	rsi, .LC1[rip]
	call	strdupz_path_subpath@PLT
	mov	esi, r13d
	mov	rdi, rax
	mov	rbp, rax
	call	config_load@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
.L4:
	mov	rdi, rbp
	call	freez@PLT
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rsi, rbp
	lea	rdi, .LC2[rip]
	call	info@PLT
	mov	rdi, rbp
	call	freez@PLT
	mov	edi, DWORD PTR netdata_configured_stock_config_dir[rip]
	lea	rsi, .LC1[rip]
	call	strdupz_path_subpath@PLT
	mov	esi, r13d
	mov	rdi, rax
	mov	rbp, rax
	call	config_load@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	rsi, rbp
	lea	rdi, .LC3[rip]
	call	info@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, r13d
	call	config_load@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	call	error@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	load_netdata_conf, .-load_netdata_conf
	.comm	netdata_configured_user_config_dir,4,4
	.comm	netdata_configured_stock_config_dir,4,4
	.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_main.c_load_netdata_conf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CONFIG: cannot load config file '%s'.\000"
	.align	2
.LC1:
	.ascii	"netdata.conf\000"
	.align	2
.LC2:
	.ascii	"CONFIG: cannot load user config '%s'. Will try the "
	.ascii	"stock version.\000"
	.align	2
.LC3:
	.ascii	"CONFIG: cannot load stock config '%s'. Running with"
	.ascii	" internal defaults.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_netdata_conf, %function
load_netdata_conf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	ldr	r3, .L15
	push	{r4, r5, r6, lr}
	subs	r5, r0, #0
	mov	r6, r1
	str	r2, [r3]
	beq	.L2
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, r2
	bne	.L13
.L2:
	ldr	r3, .L15+4
	ldr	r1, .L15+8
	ldr	r0, [r3]
	bl	strdupz_path_subpath
	mov	r1, r6
	mov	r5, r0
	bl	config_load
	subs	r4, r0, #0
	beq	.L14
.L4:
	mov	r0, r5
	bl	freez
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L14:
	mov	r1, r5
	ldr	r0, .L15+12
	bl	info
	mov	r0, r5
	bl	freez
	ldr	r3, .L15+16
	ldr	r1, .L15+8
	ldr	r0, [r3]
	bl	strdupz_path_subpath
	mov	r1, r6
	mov	r5, r0
	bl	config_load
	subs	r4, r0, #0
	bne	.L4
	mov	r1, r5
	ldr	r0, .L15+20
	bl	info
	b	.L4
.L13:
	bl	config_load
	subs	r4, r0, #0
	bne	.L1
	mov	r1, r5
	ldr	r0, .L15+24
	bl	error
	b	.L1
.L16:
	.align	2
.L15:
	.word	errno
	.word	netdata_configured_user_config_dir
	.word	.LC1
	.word	.LC2
	.word	netdata_configured_stock_config_dir
	.word	.LC3
	.word	.LC0
	.size	load_netdata_conf, .-load_netdata_conf
	.comm	netdata_configured_user_config_dir,4,4
	.comm	netdata_configured_stock_config_dir,4,4
	.comm	errno,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
