	.file	"extr_linker.c_load_library.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unknown error"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"jq: error loading data file %s: %s\n"
	.text
	.p2align 4
	.type	load_library, @function
load_library:
.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
	mov	r14, r9
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR 112[rsp]
	mov	r15, QWORD PTR 120[rsp]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	edx, edx
	je	.L2
	test	ecx, ecx
	jne	.L2
	mov	edi, esi
	call	jv_string_value@PLT
	xor	esi, esi
	mov	edi, eax
	call	jv_load_file@PLT
	mov	edi, eax
	mov	ebp, eax
	call	jv_is_valid@PLT
	test	eax, eax
	je	.L3
.L4:
	mov	edi, ebp
	call	jv_copy@PLT
	mov	rsi, r14
	xor	r14d, r14d
	mov	edi, eax
	call	gen_const_global@PLT
	mov	QWORD PTR 32[rsp], rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, r12d
	mov	DWORD PTR 16[rsp], edx
	call	jv_string_value@PLT
	mov	esi, 1
	mov	edi, eax
	call	jv_load_file@PLT
	mov	edi, eax
	mov	ebp, eax
	call	jv_is_valid@PLT
	mov	edx, DWORD PTR 16[rsp]
	test	eax, eax
	je	.L3
	test	edx, edx
	jne	.L4
	mov	edi, ebp
	call	jv_copy@PLT
	mov	edi, eax
	call	jv_string_length_bytes@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	jv_string_value@PLT
	mov	edi, r12d
	mov	r14d, eax
	call	jv_string_value@PLT
	mov	edx, r14d
	mov	ecx, ebx
	mov	rdi, r13
	mov	esi, eax
	call	locfile_init@PLT
	lea	rcx, 32[rsp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	QWORD PTR 24[rsp], rcx
	mov	QWORD PTR 16[rsp], rax
	call	jq_parse_library@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	rbx, rax
	mov	r14d, eax
	call	locfile_free@PLT
	test	ebx, ebx
	mov	rcx, QWORD PTR 24[rsp]
	je	.L24
.L10:
	movsx	rbx, DWORD PTR [r15]
	mov	rdi, QWORD PTR 16[r15]
	lea	esi, 1[rbx]
	mov	DWORD PTR [r15], esi
	sal	esi, 3
	call	jv_mem_realloc@PLT
	mov	rdi, QWORD PTR 8[r15]
	mov	QWORD PTR 16[r15], rax
	mov	eax, DWORD PTR [r15]
	lea	esi, 0[0+rax*8]
	call	jv_mem_realloc@PLT
	mov	edi, r12d
	mov	QWORD PTR 8[r15], rax
	call	jv_string_value@PLT
	mov	edi, eax
	mov	rax, QWORD PTR 16[r15]
	lea	r13, [rax+rbx*8]
	call	strdup@PLT
	mov	QWORD PTR 0[r13], rax
	mov	rax, QWORD PTR 8[r15]
	mov	rdx, QWORD PTR 32[rsp]
	mov	QWORD PTR [rax+rbx*8], rdx
	mov	rax, QWORD PTR 32[rsp]
.L6:
	mov	rcx, QWORD PTR 8[rsp]
	mov	edi, r12d
	mov	QWORD PTR [rcx], rax
	call	jv_free@PLT
	mov	edi, ebp
	call	jv_free@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	xor	eax, eax
	xor	r14d, r14d
	call	gen_noop@PLT
	mov	QWORD PTR 32[rsp], rax
	test	ebx, ebx
	jne	.L6
	mov	edi, ebp
	call	jv_copy@PLT
	mov	edi, eax
	call	jv_invalid_has_msg@PLT
	test	rax, rax
	jne	.L26
	lea	rdi, .LC0[rip]
	call	jv_string@PLT
	mov	ebp, eax
.L8:
	mov	edi, ebp
	call	jv_string_value@PLT
	mov	edi, r12d
	mov	r14d, eax
	call	jv_string_value@PLT
	mov	edx, r14d
	lea	rdi, .LC1[rip]
	mov	r14d, 1
	mov	esi, eax
	call	jv_string_fmt@PLT
	mov	rdi, r13
	mov	esi, eax
	call	jq_report_error@PLT
	mov	rax, QWORD PTR 32[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, r12d
	mov	QWORD PTR 16[rsp], rcx
	call	jv_string_value@PLT
	mov	edi, eax
	call	strdup@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	dirname@PLT
	mov	rdi, rax
	call	jv_string@PLT
	mov	rdi, r13
	mov	r14d, eax
	call	jq_get_jq_origin@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	edx, r14d
	mov	r8, r15
	mov	esi, eax
	mov	rdi, r13
	call	process_dependencies@PLT
	mov	rdi, rbx
	mov	r14d, eax
	call	free@PLT
	mov	esi, DWORD PTR OP_IS_CALL_PSEUDO[rip]
	mov	rdi, QWORD PTR 32[rsp]
	call	block_bind_self@PLT
	mov	QWORD PTR 32[rsp], rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, ebp
	call	jv_invalid_get_msg@PLT
	mov	ebp, eax
	jmp	.L8
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	load_library, .-load_library
	.comm	OP_IS_CALL_PSEUDO,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_linker.c_load_library.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unknown error\000"
	.align	2
.LC1:
	.ascii	"jq: error loading data file %s: %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_library, %function
load_library:
	@ args = 16, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r3
	cmp	r2, #0
	lsr	r3, r3, #5
	moveq	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, #0
	ldr	r3, .L21
	sub	sp, sp, #16
	mov	r10, r0
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r8, [sp, #52]
	ldr	r9, [sp, #56]
	ldr	r4, [sp, #60]
	beq	.L2
	mov	r0, r1
	bl	jv_string_value
	mov	r1, #0
	bl	jv_load_file
	mov	r6, r0
	bl	jv_is_valid
	cmp	r0, #0
	beq	.L3
.L4:
	mov	r0, r6
	bl	jv_copy
	mov	r1, r8
	bl	gen_const_global
	mov	r8, #0
	str	r0, [sp, #8]
	b	.L10
.L2:
	mov	r0, r1
	mov	r7, r2
	bl	jv_string_value
	mov	r1, #1
	bl	jv_load_file
	mov	r6, r0
	bl	jv_is_valid
	cmp	r0, #0
	beq	.L3
	cmp	r7, #0
	bne	.L4
	mov	r0, r5
	bl	jv_string_value
	mov	r7, r0
	mov	r0, r6
	bl	jv_string_value
	mov	r8, r0
	mov	r0, r6
	bl	jv_copy
	bl	jv_string_length_bytes
	mov	r2, r8
	mov	r3, r0
	mov	r1, r7
	mov	r0, r10
	bl	locfile_init
	add	r1, sp, #8
	mov	r7, r0
	bl	jq_parse_library
	mov	r8, r0
	mov	r0, r7
	bl	locfile_free
	cmp	r8, #0
	beq	.L18
.L10:
	ldr	r3, [r4]
	ldr	r0, [r4, #8]
	add	r3, r3, #1
	lsl	r7, r3, #2
	mov	r1, r7
	str	r3, [r4]
	bl	jv_mem_realloc
	ldr	r1, [r4]
	str	r0, [r4, #8]
	lsl	r1, r1, #2
	ldr	r0, [r4, #4]
	bl	jv_mem_realloc
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4, #4]
	bl	jv_string_value
	ldr	r10, [r4, #8]
	bl	strdup
	sub	r7, r7, #4
	str	r0, [r10, r7]
	ldr	r3, [r4, #4]
	ldr	r2, [sp, #8]
	str	r2, [r3, r7]
	ldr	r0, [sp, #8]
.L6:
	str	r0, [r9]
	mov	r0, r5
	bl	jv_free
	mov	r0, r6
	bl	jv_free
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r8
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	bl	gen_noop
	ldr	r3, [sp, #48]
	str	r0, [sp, #8]
	cmp	r3, #0
	movne	r8, #0
	bne	.L6
	mov	r0, r6
	bl	jv_copy
	bl	jv_invalid_has_msg
	cmp	r0, #0
	bne	.L20
	ldr	r0, .L21+4
	bl	jv_string
	mov	r6, r0
.L8:
	mov	r0, r5
	bl	jv_string_value
	mov	r4, r0
	mov	r0, r6
	bl	jv_string_value
	mov	r1, r4
	mov	r2, r0
	ldr	r0, .L21+8
	bl	jv_string_fmt
	mov	r1, r0
	mov	r0, r10
	bl	jq_report_error
	mov	r8, #1
	ldr	r0, [sp, #8]
	b	.L6
.L18:
	mov	r0, r5
	bl	jv_string_value
	bl	strdup
	mov	r7, r0
	mov	r0, r10
	bl	jq_get_jq_origin
	mov	r8, r0
	mov	r0, r7
	bl	dirname
	bl	jv_string
	mov	r1, r8
	mov	r2, r0
	add	r3, sp, #8
	mov	r0, r10
	str	r4, [sp]
	bl	process_dependencies
	mov	r8, r0
	mov	r0, r7
	bl	free
	ldr	r3, .L21+12
	ldr	r0, [sp, #8]
	ldr	r1, [r3]
	bl	block_bind_self
	str	r0, [sp, #8]
	b	.L10
.L20:
	mov	r0, r6
	bl	jv_invalid_get_msg
	mov	r6, r0
	b	.L8
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	OP_IS_CALL_PSEUDO
	.size	load_library, .-load_library
	.comm	OP_IS_CALL_PSEUDO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
