	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i5100_npages
_i5100_npages:                          ## @i5100_npages
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	callq	_i5100_csrow_to_rank
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_i5100_csrow_to_chan
	movq	(%r12), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rax
	movl	%r15d, %edx
	shlq	$4, %rdx
	cmpl	$0, 12(%rax,%rdx)
	je	LBB0_1
## %bb.2:
	movq	_I5100_DIMM_ADDR_LINES@GOTPCREL(%rip), %rsi
	movl	(%rax,%rdx), %ecx
	addl	(%rsi), %ecx
	addl	4(%rax,%rdx), %ecx
	addl	8(%rax,%rdx), %ecx
	movl	$1, %eax
	shlq	%cl, %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rsi, %rdx
	btsq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I5100_DIMM_ADDR_LINES,4,2      ## @I5100_DIMM_ADDR_LINES
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_i5100_npages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i5100_npages
_i5100_npages:                          ; @i5100_npages
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	bl	_i5100_csrow_to_rank
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	bl	_i5100_csrow_to_chan
	ldr	x8, [x22]
	ldr	x8, [x8, w0, uxtw #3]
	add	x9, x8, w19, uxtw #4
	ldr	w9, [x9, #12]
	cbz	w9, LBB0_2
; %bb.1:
	mov	w9, w19
Lloh0:
	adrp	x10, _I5100_DIMM_ADDR_LINES@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I5100_DIMM_ADDR_LINES@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	add	x8, x8, x9, lsl #4
	ldp	w9, w11, [x8]
	add	w9, w9, w10
	add	w9, w9, w11
	ldr	w8, [x8, #8]
	add	w8, w9, w8
	mov	w9, #1
	lsl	x8, x9, x8
Lloh3:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	udiv	x0, x8, x9
	b	LBB0_3
LBB0_2:
	mov	x0, #0
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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I5100_DIMM_ADDR_LINES,4,2      ; @I5100_DIMM_ADDR_LINES
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_i5100_npages
.subsections_via_symbols
