	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hil_mlc_clean_serio_map
_hil_mlc_clean_serio_map:               ## @hil_mlc_clean_serio_map
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_HIL_MLC_DEVMEM@GOTPCREL(%rip), %r8
	movl	(%r8), %r9d
	testl	%r9d, %r9d
	jle	LBB0_5
## %bb.1:
	movq	(%rdi), %r11
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	movslq	%r9d, %rax
	cmpq	%rax, %rsi
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r11), %eax
	movl	4(%r11), %r10d
	xorl	%ecx, %ecx
	cmpq	%rax, %rsi
	sete	%cl
	xorl	%eax, %eax
	cmpq	%r10, %rsi
	sete	%al
	addl	%ecx, %eax
	movl	8(%r11), %ecx
	xorl	%edx, %edx
	cmpq	%rcx, %rsi
	sete	%dl
	addl	%eax, %edx
	movl	12(%r11), %eax
	xorl	%ecx, %ecx
	cmpq	%rax, %rsi
	sete	%cl
	addl	%edx, %ecx
	movl	16(%r11), %eax
	xorl	%edx, %edx
	cmpq	%rax, %rsi
	sete	%dl
	addl	%ecx, %edx
	movl	20(%r11), %eax
	xorl	%ecx, %ecx
	cmpq	%rax, %rsi
	sete	%cl
	addl	%edx, %ecx
	movl	24(%r11), %eax
	xorl	%edx, %edx
	cmpq	%rax, %rsi
	sete	%dl
	negl	%edx
	cmpl	%edx, %ecx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rax
	movl	$-1, (%rax,%rsi,4)
	movl	(%r8), %r9d
	jmp	LBB0_4
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIL_MLC_DEVMEM,4,2             ## @HIL_MLC_DEVMEM
	.no_dead_strip	_hil_mlc_clean_serio_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hil_mlc_clean_serio_map
_hil_mlc_clean_serio_map:               ; @hil_mlc_clean_serio_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #16
	.cfi_def_cfa_offset 16
Lloh0:
	adrp	x8, _HIL_MLC_DEVMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIL_MLC_DEVMEM@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x10, #0
	ldr	x11, [x0]
	mov	w12, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x10, w9, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q0, [x11]
	ushll.2d	v1, v0, #0
	ushll2.2d	v0, v0, #0
	dup.2d	v2, x10
	cmeq.2d	v0, v2, v0
	cmeq.2d	v1, v2, v1
	uzp1.4s	v0, v1, v0
	xtn.4h	v0, v0
	umov.h	w13, v0[0]
	umov.h	w14, v0[1]
	and	w14, w14, #0x1
	bfi	w13, w14, #1, #1
	umov.h	w14, v0[2]
	and	w14, w14, #0x1
	bfi	w13, w14, #2, #1
	umov.h	w14, v0[3]
	bfi	w13, w14, #3, #29
	and	w13, w13, #0xf
	ldp	w14, w15, [x11, #16]
	fmov	d0, x13
	cnt.8b	v0, v0
	uaddlv.8b	h0, v0
	fmov	w13, s0
	cmp	x10, x14
	cinc	w13, w13, eq
	cmp	x10, x15
	cinc	w13, w13, eq
	ldr	w14, [x11, #24]
	cmp	x10, x14
	csetm	w14, eq
	cmp	w13, w14
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x0, #8]
	str	w12, [x9, x10, lsl #2]
	ldr	w9, [x8]
	b	LBB0_2
LBB0_5:
	add	sp, sp, #16
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HIL_MLC_DEVMEM,4,2             ; @HIL_MLC_DEVMEM
	.no_dead_strip	_hil_mlc_clean_serio_map
.subsections_via_symbols
