	.file	"extr_kvs.c_kvs_get.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no kvs given"
	.text
	.p2align 4
	.type	kvs_get, @function
kvs_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	edi, esi
	mov	rsi, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	call	get_kvs@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	rbp, rax
	call	strm_to_str@PLT
	mov	edi, eax
	call	strm_str_intern_str@PLT
	test	rbp, rbp
	je	.L8
	mov	rdi, rbp
	mov	r14d, eax
	call	pthread_mutex_lock@PLT
	mov	edi, DWORD PTR kvs[rip]
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, r14d
	call	kh_get@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	r12, rax
	call	kh_end@PLT
	cmp	rax, r12
	je	.L9
	mov	edi, DWORD PTR 4[rbp]
	mov	rsi, r12
	call	kh_value@PLT
	mov	DWORD PTR 0[r13], eax
.L5:
	mov	rdi, rbp
	call	pthread_mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR STRM_OK[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xor	eax, eax
	call	strm_nil_value@PLT
	mov	DWORD PTR 0[r13], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	strm_raise@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR STRM_NG[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	kvs_get, .-kvs_get
	.comm	kvs,4,4
	.comm	STRM_OK,4,4
	.comm	STRM_NG,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_kvs.c_kvs_get.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no kvs given\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvs_get, %function
kvs_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r0, r1
	mov	r1, r2
	mov	r5, r2
	mov	r6, r3
	bl	get_kvs
	mov	r4, r0
	ldr	r0, [r5, #4]
	bl	strm_to_str
	bl	strm_str_intern_str
	cmp	r4, #0
	beq	.L8
	mov	r5, r0
	mov	r0, r4
	bl	pthread_mutex_lock
	ldr	r3, .L10
	mov	r2, r5
	ldr	r0, [r3]
	ldr	r1, [r4, #4]
	bl	kh_get
	mov	r5, r0
	ldr	r0, [r4, #4]
	bl	kh_end
	cmp	r0, r5
	beq	.L9
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	kh_value
	str	r0, [r6]
.L5:
	mov	r0, r4
	bl	pthread_mutex_unlock
	ldr	r3, .L10+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	bl	strm_nil_value
	str	r0, [r6]
	b	.L5
.L8:
	mov	r0, r7
	ldr	r1, .L10+8
	bl	strm_raise
	ldr	r3, .L10+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	kvs
	.word	STRM_OK
	.word	.LC0
	.word	STRM_NG
	.size	kvs_get, .-kvs_get
	.comm	kvs,4,4
	.comm	STRM_OK,4,4
	.comm	STRM_NG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
