	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function hb_bd_main_feature
LCPI0_0:
	.quad	0x3fe6666666666666              ## double 0.69999999999999996
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hb_bd_main_feature
	.p2align	4, 0x90
_hb_bd_main_feature:                    ## @hb_bd_main_feature
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_hb_list_count
	testl	%eax, %eax
	jle	LBB0_18
## %bb.1:
	xorps	%xmm0, %xmm0
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %r12d
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_hb_list_count
	movl	%r12d, %r13d
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	cmpl	%eax, %r15d
	jge	LBB0_19
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_hb_list_item
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movslq	(%rax), %r12
	movq	-8(%rcx,%r12,8), %rcx
	movsd	8(%rax), %xmm2                  ## xmm2 = mem[0],zero
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movapd	%xmm1, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	ucomisd	%xmm0, %xmm2
	jbe	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rcx), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rax
	cmpq	$7, %rax
	jg	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	l___const.hb_bd_main_feature.rank(%rip), %rdx
	movl	(%rdx,%rax,4), %eax
	movl	%eax, %edx
	cmpl	%eax, %r14d
	jl	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	ucomisd	%xmm1, %xmm2
	jbe	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%edx, %r14d
	jne	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rcx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	movl	%edx, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	%xmm0, %xmm2
	jbe	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%edx, %r14d
	jne	LBB0_2
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	ucomisd	%xmm1, %xmm2
	jne	LBB0_2
	jp	LBB0_2
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rcx), %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	cmovgl	%eax, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	cmovgl	%r12d, %r13d
	jmp	LBB0_2
LBB0_18:
	xorl	%r12d, %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.hb_bd_main_feature.rank
l___const.hb_bd_main_feature.rank:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	6                               ## 0x6
	.long	5                               ## 0x5
	.long	7                               ## 0x7
	.long	4                               ## 0x4

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_bd_main_feature             ; -- Begin function hb_bd_main_feature
	.p2align	2
_hb_bd_main_feature:                    ; @hb_bd_main_feature
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_hb_list_count
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.1:
	mov	w27, #0
	mov	w21, #0
	mov	w23, #0
	mov	w26, #0
	movi	d8, #0000000000000000
	mov	x24, #7378697629483820646
	movk	x24, #16358, lsl #48
Lloh0:
	adrp	x25, l___const.hb_bd_main_feature.rank@PAGE
Lloh1:
	add	x25, x25, l___const.hb_bd_main_feature.rank@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	fmov	d9, d8
	mov	x22, x27
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	mov	x0, x19
	bl	_hb_list_count
	mov	x27, x22
	fmov	d8, d9
	cmp	w21, w0
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_hb_list_item
	ldr	x8, [x20]
	ldr	w22, [x0]
	sub	w9, w22, #1
	ldr	x8, [x8, w9, sxtw #3]
	ldr	d9, [x0, #8]
	cbz	x8, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	fmov	d0, x24
	fmul	d0, d8, d0
	fcmp	d9, d0
	b.le	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	ldrsw	x9, [x9]
	cmp	w9, #7
	b.gt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x25, x9, lsl #2]
	cmp	w26, w9
	b.lt	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	fcmp	d9, d8
	b.le	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, w9
	b.ne	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x8]
	mov	x26, x9
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	fcmp	d9, d8
	b.le	LBB0_2
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, w9
	fccmp	d9, d8, #0, eq
	b.ne	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x8]
	cmp	w8, w23
	csel	w23, w8, w23, gt
	csel	w22, w22, w27, gt
	fmov	d9, d8
	b	LBB0_3
LBB0_14:
	mov	w22, #0
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.hb_bd_main_feature.rank
l___const.hb_bd_main_feature.rank:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	6                               ; 0x6
	.long	5                               ; 0x5
	.long	7                               ; 0x7
	.long	4                               ; 0x4

.subsections_via_symbols
