	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cros_ec_lpc_mec_in_range       ## -- Begin function cros_ec_lpc_mec_in_range
	.p2align	4, 0x90
_cros_ec_lpc_mec_in_range:              ## @cros_ec_lpc_mec_in_range
	.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
	testl	%esi, %esi
	je	LBB0_8
## %bb.1:
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_mec_emi_base@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	sete	%al
	movq	_mec_emi_end@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r12), %eax
	addl	%r14d, %ebx
	movl	(%r15), %ecx
	cmpl	%r14d, %eax
	ja	LBB0_6
## %bb.3:
	cmpl	%r14d, %ecx
	jbe	LBB0_6
## %bb.4:
	decl	%ebx
	xorl	%edi, %edi
	cmpl	%ecx, %ebx
	setae	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movl	$1, %eax
	jmp	LBB0_9
LBB0_6:
	cmpl	%r14d, %ecx
	seta	%cl
	cmpl	%eax, %ebx
	seta	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mec_emi_base,4,2               ## @mec_emi_base
	.comm	_mec_emi_end,4,2                ## @mec_emi_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cros_ec_lpc_mec_in_range       ; -- Begin function cros_ec_lpc_mec_in_range
	.p2align	2
_cros_ec_lpc_mec_in_range:              ; @cros_ec_lpc_mec_in_range
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	w1, LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _mec_emi_base@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mec_emi_base@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #0
Lloh2:
	adrp	x22, _mec_emi_end@GOTPAGE
Lloh3:
	ldr	x22, [x22, _mec_emi_end@GOTPAGEOFF]
	ldr	w8, [x22]
	ccmp	w8, #0, #4, ne
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w9, [x21]
	ldr	w8, [x22]
	add	w10, w20, w19
	cmp	w9, w19
	ccmp	w8, w19, #0, ls
	b.hi	LBB0_6
; %bb.5:
	cmp	w10, w9
	ccmp	w8, w19, #0, hi
	cset	w0, hi
	bl	_WARN_ON
	cbnz	x0, LBB0_2
	b	LBB0_3
LBB0_6:
	sub	w9, w10, #1
	cmp	w9, w8
	cset	w0, hs
	bl	_WARN_ON
	cbnz	x0, LBB0_2
; %bb.7:
	mov	w0, #1
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mec_emi_base,4,2               ; @mec_emi_base
	.comm	_mec_emi_end,4,2                ; @mec_emi_end
.subsections_via_symbols
