	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xdl_clean_mmatch
_xdl_clean_mmatch:                      ## @xdl_clean_mmatch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %r8
	subq	%rdx, %r8
	movq	_XDL_SIMSCAN_WINDOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rsi, %r9
	subq	%rax, %r9
	cmpq	%rax, %r8
	cmovleq	%rdx, %r9
	movq	%rcx, %rdx
	subq	%rsi, %rdx
	leaq	(%rax,%rsi), %r8
	cmpq	%rax, %rdx
	cmovleq	%rcx, %r8
	xorl	%eax, %eax
	cmpq	%rsi, %r9
	jge	LBB0_18
## %bb.1:
	leaq	-1(%rsi), %rax
	movl	$1, %r11d
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r11
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%rax
	cmpq	%r9, %rax
	jl	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rax), %ecx
	cmpb	$2, %cl
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%cl, %cl
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.8:
	cmpq	%rsi, %r8
	jle	LBB0_18
## %bb.9:
	incq	%rsi
	movl	$1, %r9d
	xorl	%r10d, %r10d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r9
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rsi
	cmpq	%r8, %rsi
	jg	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rsi), %eax
	cmpb	$2, %al
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	testb	%al, %al
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%r10
	jmp	LBB0_14
LBB0_15:
	testq	%r10, %r10
	je	LBB0_16
## %bb.17:
	addq	%rdx, %r10
	addq	%r11, %r9
	movq	_XDL_KPDIS_RUN@GOTPCREL(%rip), %rax
	addq	%r9, %r10
	imulq	(%rax), %r9
	xorl	%eax, %eax
	cmpq	%r10, %r9
	setl	%al
LBB0_18:
	popq	%rbp
	retq
LBB0_16:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XDL_SIMSCAN_WINDOW,8,3         ## @XDL_SIMSCAN_WINDOW
	.comm	_XDL_KPDIS_RUN,8,3              ## @XDL_KPDIS_RUN
	.no_dead_strip	_xdl_clean_mmatch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xdl_clean_mmatch
_xdl_clean_mmatch:                      ; @xdl_clean_mmatch
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _XDL_SIMSCAN_WINDOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XDL_SIMSCAN_WINDOW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	sub	x8, x1, x9
	sub	x10, x1, x2
	cmp	x10, x9
	csel	x8, x8, x2, gt
	add	x10, x9, x1
	sub	x11, x3, x1
	cmp	x11, x9
	csel	x11, x10, x3, gt
	cmp	x8, x1
	b.ge	LBB0_18
; %bb.1:
	mov	x10, #0
	sub	x12, x1, #1
	mov	w9, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x12, x12, #1
	cmp	x12, x8
	b.lt	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w13, [x0, x12]
	cmp	w13, #2
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w13, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	b	LBB0_3
LBB0_7:
	mov	w8, #0
	cbz	x10, LBB0_17
; %bb.8:
	cmp	x11, x1
	b.le	LBB0_17
; %bb.9:
	mov	x12, #0
	add	x13, x1, #1
	mov	w8, #1
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x8, #1
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x13, x13, #1
	cmp	x13, x11
	b.gt	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w14, [x0, x13]
	cmp	w14, #2
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w14, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x12, x12, #1
	b	LBB0_11
LBB0_15:
	cbz	x12, LBB0_18
; %bb.16:
	add	x10, x12, x10
Lloh3:
	adrp	x11, _XDL_KPDIS_RUN@GOTPAGE
Lloh4:
	ldr	x11, [x11, _XDL_KPDIS_RUN@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	add	x8, x8, x9
	add	x9, x10, x8
	mul	x8, x11, x8
	cmp	x8, x9
	cset	w8, lt
LBB0_17:
	mov	x0, x8
	ret
LBB0_18:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_XDL_SIMSCAN_WINDOW,8,3         ; @XDL_SIMSCAN_WINDOW
	.comm	_XDL_KPDIS_RUN,8,3              ; @XDL_KPDIS_RUN
	.no_dead_strip	_xdl_clean_mmatch
.subsections_via_symbols
