	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmp_event                      ## -- Begin function cmp_event
	.p2align	4, 0x90
_cmp_event:                             ## @cmp_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	movl	(%rsi), %edx
	movq	_global_sort_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_t_double@GOTPCREL(%rip), %r9
	movq	_global_rcid@GOTPCREL(%rip), %rsi
	movq	_global_sort_field@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	(%rsi), %eax
	leal	(%rax,%r8), %edi
	movq	_global_data@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movslq	%edi, %rdi
	cmpq	(%r9), %rcx
	jne	LBB0_3
## %bb.1:
	movsd	(%rsi,%rdi,8), %xmm0            ## xmm0 = mem[0],zero
	addl	%edx, %eax
	cltq
	movsd	(%rsi,%rax,8), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	jne	LBB0_2
	jnp	LBB0_5
LBB0_2:
	movq	_global_sort_direction@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	negl	%eax
	ucomisd	%xmm1, %xmm0
	cmoval	%ecx, %eax
	popq	%rbp
	retq
LBB0_3:
	movq	(%rsi,%rdi,8), %rdi
	addl	%edx, %eax
	cltq
	movq	(%rsi,%rax,8), %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	cmpl	%edx, %r8d
	je	LBB0_8
## %bb.6:
	movq	_global_sort_direction@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	negl	%eax
	cmpl	%edx, %r8d
	jmp	LBB0_7
LBB0_4:
	movq	_global_sort_direction@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	negl	%eax
	cmpq	%rsi, %rdi
LBB0_7:
	cmovgl	%ecx, %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_global_sort_type,8,3           ## @global_sort_type
	.comm	_t_double,8,3                   ## @t_double
	.comm	_global_data,8,3                ## @global_data
	.comm	_global_rcid,4,2                ## @global_rcid
	.comm	_global_sort_field,4,2          ## @global_sort_field
	.comm	_global_sort_direction,4,2      ## @global_sort_direction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmp_event                      ; -- Begin function cmp_event
	.p2align	2
_cmp_event:                             ; @cmp_event
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x10, _global_sort_type@GOTPAGE
Lloh1:
	ldr	x10, [x10, _global_sort_type@GOTPAGEOFF]
	ldr	w9, [x1]
Lloh2:
	ldr	x13, [x10]
Lloh3:
	adrp	x10, _t_double@GOTPAGE
Lloh4:
	ldr	x10, [x10, _t_double@GOTPAGEOFF]
Lloh5:
	adrp	x11, _global_data@GOTPAGE
Lloh6:
	ldr	x11, [x11, _global_data@GOTPAGEOFF]
Lloh7:
	ldr	x14, [x10]
Lloh8:
	ldr	x10, [x11]
Lloh9:
	adrp	x11, _global_rcid@GOTPAGE
Lloh10:
	ldr	x11, [x11, _global_rcid@GOTPAGEOFF]
Lloh11:
	adrp	x12, _global_sort_field@GOTPAGE
Lloh12:
	ldr	x12, [x12, _global_sort_field@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
Lloh14:
	ldr	w12, [x12]
	mul	w11, w12, w11
	add	w12, w11, w8
	sxtw	x12, w12
	cmp	x13, x14
	b.ne	LBB0_4
; %bb.1:
	ldr	d0, [x10, x12, lsl #3]
	add	w11, w11, w9
	ldr	d1, [x10, w11, sxtw #3]
	fcmp	d0, d1
	b.ne	LBB0_7
; %bb.2:
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.3:
	mov	w0, #0
	ret
LBB0_4:
	ldr	x12, [x10, x12, lsl #3]
	add	w11, w11, w9
	ldr	x10, [x10, w11, sxtw #3]
	cmp	x12, x10
	b.ne	LBB0_7
; %bb.5:
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	ret
LBB0_7:
Lloh15:
	adrp	x8, _global_sort_direction@GOTPAGE
Lloh16:
	ldr	x8, [x8, _global_sort_direction@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cneg	w0, w8, le
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_global_sort_type,8,3           ; @global_sort_type
	.comm	_t_double,8,3                   ; @t_double
	.comm	_global_data,8,3                ; @global_data
	.comm	_global_rcid,4,2                ; @global_rcid
	.comm	_global_sort_field,4,2          ; @global_sort_field
	.comm	_global_sort_direction,4,2      ; @global_sort_direction
.subsections_via_symbols
