	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_check_sr_access_params
_ice_check_sr_access_params:            ## @ice_check_sr_access_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	(%rdx,%rsi), %rax
	cmpq	(%rdi), %rax
	jle	LBB0_2
## %bb.1:
	movq	_ICE_DBG_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_12:
	xorl	%eax, %eax
	callq	_ice_debug
	jmp	LBB0_13
LBB0_2:
	movq	%rdx, %rcx
	movq	_ICE_SR_SECTOR_SIZE_IN_WORDS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	cmpq	%rcx, %r8
	jge	LBB0_4
## %bb.3:
	movq	_ICE_DBG_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_ice_debug
LBB0_13:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	popq	%rbp
	retq
LBB0_4:
	decq	%rax
	movq	%rax, %rcx
	orq	%r8, %rcx
	shrq	$32, %rcx
	je	LBB0_5
## %bb.6:
	cqto
	idivq	%r8
	movq	%rax, %rcx
	jmp	LBB0_7
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
	movl	%eax, %ecx
LBB0_7:
	movq	%rsi, %rax
	orq	%r8, %rax
	shrq	$32, %rax
	je	LBB0_8
## %bb.9:
	movq	%rsi, %rax
	cqto
	idivq	%r8
	movq	%rax, %rdx
	jmp	LBB0_10
LBB0_8:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%r8d
	movl	%eax, %edx
LBB0_10:
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	je	LBB0_14
## %bb.11:
	movq	_ICE_DBG_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_DBG_NVM,4,2                ## @ICE_DBG_NVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NVM error: offset beyond SR lmt.\n"

	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ICE_SR_SECTOR_SIZE_IN_WORDS,8,3 ## @ICE_SR_SECTOR_SIZE_IN_WORDS
L_.str.1:                               ## @.str.1
	.asciz	"NVM error: tried to access %d words, limit is %d.\n"

L_.str.2:                               ## @.str.2
	.asciz	"NVM error: cannot spread over two sectors.\n"

	.no_dead_strip	_ice_check_sr_access_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_check_sr_access_params
_ice_check_sr_access_params:            ; @ice_check_sr_access_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	add	x9, x2, x1
	cmp	x9, x8
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ICE_DBG_NVM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_DBG_NVM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
Lloh5:
	adrp	x8, _ICE_SR_SECTOR_SIZE_IN_WORDS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ICE_SR_SECTOR_SIZE_IN_WORDS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ge	LBB0_4
; %bb.3:
Lloh8:
	adrp	x9, _ICE_DBG_NVM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ICE_DBG_NVM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	stp	x2, x8, [sp]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
	sub	x9, x9, #1
	sdiv	x9, x9, x8
	sdiv	x8, x1, x8
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh13:
	adrp	x8, _ICE_DBG_NVM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ICE_DBG_NVM@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_7:
	bl	_ice_debug
Lloh18:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_DBG_NVM,4,2                ; @ICE_DBG_NVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NVM error: offset beyond SR lmt.\n"

	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ICE_SR_SECTOR_SIZE_IN_WORDS,8,3 ; @ICE_SR_SECTOR_SIZE_IN_WORDS
l_.str.1:                               ; @.str.1
	.asciz	"NVM error: tried to access %d words, limit is %d.\n"

l_.str.2:                               ; @.str.2
	.asciz	"NVM error: cannot spread over two sectors.\n"

	.no_dead_strip	_ice_check_sr_access_params
.subsections_via_symbols
