	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hil_mlc_match_di_scratch
_hil_mlc_match_di_scratch:              ## @hil_mlc_match_di_scratch
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_HIL_MLC_DEVMEM@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	xorl	%edi, %edi
	cmpq	%rdx, %rbx
	sete	%dil
	xorl	%edx, %edx
	cmpq	%rsi, %rbx
	sete	%dl
	addl	%edi, %edx
	movl	8(%rax), %esi
	xorl	%edi, %edi
	cmpq	%rsi, %rbx
	sete	%dil
	addl	%edx, %edi
	movl	12(%rax), %edx
	xorl	%esi, %esi
	cmpq	%rdx, %rbx
	sete	%sil
	addl	%edi, %esi
	movl	16(%rax), %edx
	xorl	%edi, %edi
	cmpq	%rdx, %rbx
	sete	%dil
	addl	%esi, %edi
	movl	20(%rax), %edx
	xorl	%esi, %esi
	cmpq	%rdx, %rbx
	sete	%sil
	addl	%edi, %esi
	movl	24(%rax), %eax
	xorl	%edx, %edx
	cmpq	%rax, %rbx
	sete	%dl
	negl	%edx
	cmpl	%edx, %esi
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rdi
	addq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcmp
	movl	(%r12), %ecx
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	cmpl	%ecx, %ebx
	movl	$-1, %eax
	cmovll	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIL_MLC_DEVMEM,4,2             ## @HIL_MLC_DEVMEM
	.no_dead_strip	_hil_mlc_match_di_scratch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hil_mlc_match_di_scratch
_hil_mlc_match_di_scratch:              ; @hil_mlc_match_di_scratch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x22, _HIL_MLC_DEVMEM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HIL_MLC_DEVMEM@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	add	x20, x0, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	q0, [x9]
	ushll.2d	v1, v0, #0
	ushll2.2d	v0, v0, #0
	dup.2d	v2, x21
	cmeq.2d	v0, v2, v0
	cmeq.2d	v1, v2, v1
	uzp1.4s	v0, v1, v0
	xtn.4h	v0, v0
	umov.h	w10, v0[0]
	umov.h	w11, v0[1]
	and	w11, w11, #0x1
	bfi	w10, w11, #1, #1
	umov.h	w11, v0[2]
	and	w11, w11, #0x1
	bfi	w10, w11, #2, #1
	umov.h	w11, v0[3]
	bfi	w10, w11, #3, #29
	and	w10, w10, #0xf
	ldp	w11, w12, [x9, #16]
	fmov	d0, x10
	cnt.8b	v0, v0
	uaddlv.8b	h0, v0
	fmov	w10, s0
	cmp	x21, x11
	cinc	w10, w10, eq
	cmp	x21, x12
	cinc	w10, w10, eq
	ldr	w9, [x9, #24]
	cmp	x21, x9
	csetm	w9, eq
	cmp	w10, w9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	add	x0, x21, x8
	mov	x1, x20
	mov	w2, #4
	bl	_memcmp
	ldr	w8, [x22]
	cbnz	w0, LBB0_2
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	cmp	w21, w8
	csinv	w0, w21, wzr, lt
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HIL_MLC_DEVMEM,4,2             ; @HIL_MLC_DEVMEM
	.no_dead_strip	_hil_mlc_match_di_scratch
.subsections_via_symbols
