	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_find_sd_index_limit
_i40iw_find_sd_index_limit:             ## @i40iw_find_sd_index_limit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %r10
	movq	(%rdi), %rax
	shlq	$4, %rsi
	movq	8(%rax,%rsi), %rdx
	imulq	%rdx, %r10
	addq	(%rax,%rsi), %r10
	imulq	%rdx, %rcx
	movq	_I40IW_HMC_DIRECT_BP_SIZE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	movq	%r10, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r10, %rax
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_3
LBB0_1:
	movl	%r10d, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	movq	%rax, (%r8)
	leaq	(%rcx,%r10), %rax
	decq	%rax
	movq	(%rsi), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	incq	%rax
	movq	%rax, (%r9)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_HMC_DIRECT_BP_SIZE,8,3   ## @I40IW_HMC_DIRECT_BP_SIZE
	.no_dead_strip	_i40iw_find_sd_index_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_find_sd_index_limit
_i40iw_find_sd_index_limit:             ; @i40iw_find_sd_index_limit
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	add	x8, x8, x1, lsl #4
	ldp	x9, x8, [x8]
	madd	x9, x8, x2, x9
Lloh0:
	adrp	x10, _I40IW_HMC_DIRECT_BP_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I40IW_HMC_DIRECT_BP_SIZE@GOTPAGEOFF]
	ldr	x11, [x10]
	udiv	x11, x9, x11
	str	x11, [x4]
	madd	x8, x8, x3, x9
	sub	x8, x8, #1
	ldr	x9, [x10]
	udiv	x8, x8, x9
	add	x8, x8, #1
	str	x8, [x5]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_HMC_DIRECT_BP_SIZE,8,3   ; @I40IW_HMC_DIRECT_BP_SIZE
	.no_dead_strip	_i40iw_find_sd_index_limit
.subsections_via_symbols
