	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compare_badness                ## -- Begin function compare_badness
	.p2align	4, 0x90
_compare_badness:                       ## @compare_badness
	.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	(%rdi), %r8d
	movl	$1, %eax
	cmpl	(%rsi), %r8d
	jne	LBB0_12
## %bb.1:
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.2:
	movq	8(%rdi), %r11
	movq	8(%rsi), %r10
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_4:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edi, %edi
	movl	$1, %r14d
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r11,%rdi,4), %edx
	subl	(%r10,%rdi,4), %edx
	movl	%ecx, %ebx
	cmovsl	%r14d, %ebx
	cmovgl	%ecx, %ebx
	movl	4(%r11,%rdi,4), %eax
	testl	%edx, %edx
	cmovgl	%r14d, %esi
	subl	4(%r10,%rdi,4), %eax
	movl	%ebx, %ecx
	cmovsl	%r14d, %ecx
	cmovgl	%ebx, %ecx
	testl	%eax, %eax
	cmovgl	%r14d, %esi
	addq	$2, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_5
LBB0_6:
	testb	$1, %r8b
	je	LBB0_8
## %bb.7:
	movl	(%r11,%rdi,4), %eax
	subl	(%r10,%rdi,4), %eax
	movl	$1, %edx
	movl	%ecx, %edi
	cmovsl	%edx, %edi
	cmovgl	%ecx, %edi
	testl	%eax, %eax
	cmovgl	%edx, %esi
	movl	%edi, %ecx
LBB0_8:
	testw	%si, %si
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	testw	%cx, %cx
	sete	%al
	addl	%eax, %eax
	incl	%eax
	jmp	LBB0_12
LBB0_10:
	movl	$2, %eax
	testw	%cx, %cx
	jne	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compare_badness                ; -- Begin function compare_badness
	.p2align	2
_compare_badness:                       ; @compare_badness
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	ldr	w9, [x1]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.1:
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	w9, #0
	mov	w10, #0
	ldr	x11, [x0, #8]
	ldr	x12, [x1, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11], #4
	ldr	w14, [x12], #4
	sub	w13, w13, w14
	cmp	w13, #0
	csinc	w13, w9, wzr, ge
	csel	w9, w9, w13, gt
	csinc	w10, w10, wzr, le
	subs	x8, x8, #1
	b.ne	LBB0_3
; %bb.4:
	tst	w10, #0xffff
	b.eq	LBB0_7
; %bb.5:
	tst	w9, #0xffff
	mov	w8, #3
	csinc	w0, w8, wzr, eq
	ret
LBB0_6:
	mov	w0, #1
	ret
LBB0_7:
	tst	w9, #0xffff
	b.eq	LBB0_9
; %bb.8:
	mov	w0, #2
	ret
LBB0_9:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
