	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compare_values_of_enum         ## -- Begin function compare_values_of_enum
	.p2align	4, 0x90
_compare_values_of_enum:                ## @compare_values_of_enum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	cmpl	%edx, %esi
	je	LBB0_14
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_load_enum_cache_data
	movq	8(%r14), %rbx
LBB0_3:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_enum_known_sorted
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_enum_known_sorted
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	cmpl	%r15d, %r12d
	setge	%al
	addl	%eax, %eax
	decl	%eax
	jmp	LBB0_14
LBB0_6:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_find_enumitem
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_find_enumitem
	movq	%r13, %rdx
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_12
LBB0_8:
	movq	%r14, %rdi
	callq	_load_enum_cache_data
	movq	8(%r14), %rbx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_find_enumitem
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_find_enumitem
	movq	%r13, %rdx
	movq	%rax, %r13
	testq	%rdx, %rdx
	jne	LBB0_10
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %edi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_format_type_be
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_elog
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_10:
	testq	%r13, %r13
	je	LBB0_11
LBB0_12:
	movq	(%r13), %rcx
	movl	$-1, %eax
	cmpq	%rcx, (%rdx)
	jl	LBB0_14
## %bb.13:
	setg	%al
	movzbl	%al, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_compare_values_of_enum.cold.1
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function compare_values_of_enum.cold.1
_compare_values_of_enum.cold.1:         ## @compare_values_of_enum.cold.1
	.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, %r14d
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%rdi), %edi
	callq	_format_type_be
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_elog
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enum value %u not found in cache for enum %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compare_values_of_enum         ; -- Begin function compare_values_of_enum
	.p2align	2
_compare_values_of_enum:                ; @compare_values_of_enum
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w1, w2
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_15
LBB0_2:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
	cbnz	x23, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_load_enum_cache_data
	ldr	x23, [x20, #8]
LBB0_4:
	mov	x0, x23
	mov	x1, x21
	bl	_enum_known_sorted
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x23
	mov	x1, x19
	bl	_enum_known_sorted
	cbz	x0, LBB0_7
; %bb.6:
	cmp	w21, w19
	mov	w8, #-1
	cneg	w0, w8, ge
	b	LBB0_15
LBB0_7:
	mov	x0, x23
	mov	x1, x21
	bl	_find_enumitem
	mov	x22, x0
	mov	x0, x23
	mov	x1, x19
	bl	_find_enumitem
	cbz	x22, LBB0_9
; %bb.8:
	mov	x23, x0
	cbnz	x0, LBB0_12
LBB0_9:
	mov	x0, x20
	bl	_load_enum_cache_data
	ldr	x23, [x20, #8]
	mov	x0, x23
	mov	x1, x21
	bl	_find_enumitem
	mov	x22, x0
	mov	x0, x23
	mov	x1, x19
	bl	_find_enumitem
	mov	x23, x0
	cbnz	x22, LBB0_11
; %bb.10:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldr	w0, [x20]
	bl	_format_type_be
	mov	x3, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x21
	bl	_elog
LBB0_11:
	cbz	x23, LBB0_16
LBB0_12:
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ge	LBB0_14
; %bb.13:
	mov	w0, #-1
	b	LBB0_15
LBB0_14:
	cset	w0, gt
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_compare_values_of_enum.cold.1
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function compare_values_of_enum.cold.1
_compare_values_of_enum.cold.1:         ; @compare_values_of_enum.cold.1
	.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
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	ldr	w0, [x0]
	bl	_format_type_be
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_elog
	brk	#0x1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enum value %u not found in cache for enum %s"

.subsections_via_symbols
