	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd64_csrow_nr_pages
_amd64_csrow_nr_pages:                  ## @amd64_csrow_nr_pages
	.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	%edx, %r14d
	movq	%rdi, %r15
	xorl	%eax, %eax
	testq	%rsi, %rsi
	sete	%al
	movl	(%rdi,%rax,4), %ebx
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	andb	$-4, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	andl	$15, %ebx
	movq	16(%rdi), %rax
	movl	%ebx, %edx
	callq	*(%rax)
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rdx
	movb	$20, %cl
	subb	(%rdx), %cl
	movl	%eax, %r12d
	shll	%cl, %r12d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_debugf0
	movl	8(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_debugf0
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  (csrow=%d) DBAM map index= %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"    nr_pages= %u  channel-count = %d\n"

	.no_dead_strip	_amd64_csrow_nr_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd64_csrow_nr_pages
_amd64_csrow_nr_pages:                  ; @amd64_csrow_nr_pages
	.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	x19, x2
	mov	x20, x0
	cmp	x1, #0
	cset	w8, eq
	cmp	w2, #0
	ldr	w8, [x0, w8, uxtw #2]
	cinc	w9, w2, lt
	lsl	w9, w9, #1
	and	w9, w9, #0xfffffffc
	asr	w8, w8, w9
	and	w21, w8, #0xf
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	mov	x2, x21
	blr	x8
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #20
	sub	w8, w9, w8
	lsl	w22, w0, w8
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_debugf0
	ldr	w2, [x20, #8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_debugf0
	mov	x0, x22
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  (csrow=%d) DBAM map index= %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"    nr_pages= %u  channel-count = %d\n"

	.no_dead_strip	_amd64_csrow_nr_pages
.subsections_via_symbols
