	.file	"extr_validator.c_val_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"malloc failure"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"validator: could not apply configuration settings."
	.text
	.p2align 4
	.globl	val_init
	.type	val_init, @function
val_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	edi, 1
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	mov	esi, 8
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	calloc@PLT
	test	rax, rax
	je	.L7
	mov	rbp, rax
	mov	rax, QWORD PTR 8[r12]
	movsx	rsi, ebx
	lea	r13, 4[rbp]
	mov	QWORD PTR [rax+rsi*8], rbp
	mov	rdi, r13
	mov	DWORD PTR [r12], 1
	call	lock_basic_init@PLT
	mov	edx, 4
	mov	rsi, rbp
	mov	rdi, r13
	call	lock_protect@PLT
	mov	edx, DWORD PTR 4[r12]
	mov	rdi, r12
	mov	rsi, rbp
	call	val_apply_cfg@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L8
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	r12d, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.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
.L7:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	r12d, r12d
	call	log_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L8:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	log_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	val_init, .-val_init
	.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_validator.c_val_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"malloc failure\000"
	.align	2
.LC1:
	.ascii	"validator: could not apply configuration settings.\000"
	.text
	.align	2
	.global	val_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	val_init, %function
val_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r6, r1
	mov	r0, #1
	mov	r1, #8
	bl	calloc
	subs	r4, r0, #0
	beq	.L7
	mov	r8, #1
	ldr	r3, [r5, #8]
	add	r7, r4, #4
	str	r4, [r3, r6, lsl #2]
	mov	r0, r7
	str	r8, [r5]
	bl	lock_basic_init
	mov	r1, r4
	mov	r2, #4
	mov	r0, r7
	bl	lock_protect
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r5, #4]
	bl	val_apply_cfg
	subs	r4, r0, #0
	movne	r4, r8
	beq	.L8
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r0, .L9
	bl	log_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r0, .L9+4
	bl	log_err
	b	.L1
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	.LC0
	.size	val_init, .-val_init
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
