	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function f_length
_f_length:                              ## @f_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
	movl	%esi, %ebx
	movl	%esi, %edi
	callq	_jv_get_kind
	movq	_JV_KIND_ARRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	%ebx, %edi
	callq	_jv_array_length
	jmp	LBB0_2
LBB0_4:
	movl	%ebx, %edi
	callq	_jv_get_kind
	movq	_JV_KIND_OBJECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	callq	_jv_object_length
	jmp	LBB0_2
LBB0_6:
	movl	%ebx, %edi
	callq	_jv_get_kind
	movq	_JV_KIND_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %edi
	callq	_jv_string_length_codepoints
LBB0_2:
	movl	%eax, %edi
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_jv_number                      ## TAILCALL
LBB0_8:
	movl	%ebx, %edi
	callq	_jv_get_kind
	movq	_JV_KIND_NUMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.12:
	movl	%ebx, %edi
	callq	_jv_number_value
	movl	%eax, %edi
	callq	_fabs
	movl	%eax, %edi
	callq	_jv_number
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_jv_free
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movl	%ebx, %edi
	callq	_jv_get_kind
	movq	_JV_KIND_NULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %edi
	callq	_jv_free
	xorl	%edi, %edi
	jmp	LBB0_3
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_type_error                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_JV_KIND_ARRAY,8,3              ## @JV_KIND_ARRAY
	.comm	_JV_KIND_OBJECT,8,3             ## @JV_KIND_OBJECT
	.comm	_JV_KIND_STRING,8,3             ## @JV_KIND_STRING
	.comm	_JV_KIND_NUMBER,8,3             ## @JV_KIND_NUMBER
	.comm	_JV_KIND_NULL,8,3               ## @JV_KIND_NULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"has no length"

	.no_dead_strip	_f_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function f_length
_f_length:                              ; @f_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
	mov	x19, x1
	mov	x0, x1
	bl	_jv_get_kind
Lloh0:
	adrp	x8, _JV_KIND_ARRAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JV_KIND_ARRAY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_jv_array_length
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_jv_get_kind
Lloh3:
	adrp	x8, _JV_KIND_OBJECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JV_KIND_OBJECT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_jv_object_length
	b	LBB0_10
LBB0_4:
	mov	x0, x19
	bl	_jv_get_kind
Lloh6:
	adrp	x8, _JV_KIND_STRING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _JV_KIND_STRING@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_jv_string_length_codepoints
	b	LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_jv_get_kind
Lloh9:
	adrp	x8, _JV_KIND_NUMBER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _JV_KIND_NUMBER@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_jv_number_value
	bl	_fabs
	bl	_jv_number
	mov	x20, x0
	mov	x0, x19
	bl	_jv_free
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	bl	_jv_get_kind
Lloh12:
	adrp	x8, _JV_KIND_NULL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _JV_KIND_NULL@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_jv_free
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_jv_number
LBB0_11:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_type_error
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_JV_KIND_ARRAY,8,3              ; @JV_KIND_ARRAY
	.comm	_JV_KIND_OBJECT,8,3             ; @JV_KIND_OBJECT
	.comm	_JV_KIND_STRING,8,3             ; @JV_KIND_STRING
	.comm	_JV_KIND_NUMBER,8,3             ; @JV_KIND_NUMBER
	.comm	_JV_KIND_NULL,8,3               ; @JV_KIND_NULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"has no length"

	.no_dead_strip	_f_length
.subsections_via_symbols
