	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_get_result_length           ## -- Begin function UI_get_result_length
	.p2align	4, 0x90
_UI_get_result_length:                  ## @UI_get_result_length
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%esi, %esi
	js	LBB0_1
## %bb.3:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_sk_UI_STRING_num
	cmpl	%ebx, %eax
	jle	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_sk_UI_STRING_value
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_UI_get_result_string_length    ## TAILCALL
LBB0_1:
	movq	_UI_F_UI_GET_RESULT_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UI_R_INDEX_TOO_SMALL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_UI_F_UI_GET_RESULT_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UI_R_INDEX_TOO_LARGE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_UIerr
	movl	$-1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UI_F_UI_GET_RESULT_LENGTH,4,2  ## @UI_F_UI_GET_RESULT_LENGTH
	.comm	_UI_R_INDEX_TOO_SMALL,4,2       ## @UI_R_INDEX_TOO_SMALL
	.comm	_UI_R_INDEX_TOO_LARGE,4,2       ## @UI_R_INDEX_TOO_LARGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_get_result_length           ; -- Begin function UI_get_result_length
	.p2align	2
_UI_get_result_length:                  ; @UI_get_result_length
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	tbnz	w1, #31, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_sk_UI_STRING_num
	cmp	w0, w19
	b.le	LBB0_4
; %bb.2:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_sk_UI_STRING_value
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_UI_get_result_string_length
LBB0_3:
Lloh0:
	adrp	x8, _UI_F_UI_GET_RESULT_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UI_F_UI_GET_RESULT_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _UI_R_INDEX_TOO_SMALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UI_R_INDEX_TOO_SMALL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _UI_F_UI_GET_RESULT_LENGTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UI_F_UI_GET_RESULT_LENGTH@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _UI_R_INDEX_TOO_LARGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UI_R_INDEX_TOO_LARGE@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	bl	_UIerr
	mov	w0, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_UI_F_UI_GET_RESULT_LENGTH,4,2  ; @UI_F_UI_GET_RESULT_LENGTH
	.comm	_UI_R_INDEX_TOO_SMALL,4,2       ; @UI_R_INDEX_TOO_SMALL
	.comm	_UI_R_INDEX_TOO_LARGE,4,2       ; @UI_R_INDEX_TOO_LARGE
.subsections_via_symbols
