	.file	"extr_ui_lib.c_UI_get_result_length.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	UI_get_result_length
	.type	UI_get_result_length, @function
UI_get_result_length:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	esi, esi
	js	.L7
	mov	rbx, rdi
	mov	edi, DWORD PTR [rdi]
	mov	ebp, esi
	call	sk_UI_STRING_num@PLT
	cmp	eax, ebp
	jle	.L8
	mov	edi, DWORD PTR [rbx]
	mov	esi, ebp
	call	sk_UI_STRING_value@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	edi, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	UI_get_result_string_length@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR UI_R_INDEX_TOO_LARGE[rip]
	mov	edi, DWORD PTR UI_F_UI_GET_RESULT_LENGTH[rip]
	call	UIerr@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR UI_R_INDEX_TOO_SMALL[rip]
	mov	edi, DWORD PTR UI_F_UI_GET_RESULT_LENGTH[rip]
	call	UIerr@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	UI_get_result_length, .-UI_get_result_length
	.comm	UI_R_INDEX_TOO_SMALL,4,4
	.comm	UI_R_INDEX_TOO_LARGE,4,4
	.comm	UI_F_UI_GET_RESULT_LENGTH,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_ui_lib.c_UI_get_result_length.c"
	.text
	.align	2
	.global	UI_get_result_length
	.syntax unified
	.arm
	.fpu softvfp
	.type	UI_get_result_length, %function
UI_get_result_length:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r1, #0
	blt	.L7
	mov	r5, r0
	ldr	r0, [r0]
	bl	sk_UI_STRING_num
	cmp	r0, r4
	ble	.L8
	mov	r1, r4
	ldr	r0, [r5]
	bl	sk_UI_STRING_value
	pop	{r4, r5, r6, lr}
	b	UI_get_result_string_length
.L8:
	ldr	r2, .L9
	ldr	r3, .L9+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	UIerr
.L1:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r2, .L9+8
	ldr	r3, .L9+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	UIerr
	b	.L1
.L10:
	.align	2
.L9:
	.word	UI_R_INDEX_TOO_LARGE
	.word	UI_F_UI_GET_RESULT_LENGTH
	.word	UI_R_INDEX_TOO_SMALL
	.size	UI_get_result_length, .-UI_get_result_length
	.comm	UI_R_INDEX_TOO_SMALL,4,4
	.comm	UI_R_INDEX_TOO_LARGE,4,4
	.comm	UI_F_UI_GET_RESULT_LENGTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
