	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_phys_blocks
_find_phys_blocks:                      ## @find_phys_blocks
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	(%rdi), %r13
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_page_to_pfn
	movq	%rax, %rbx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%r14d, %r14d
	movl	$1, %r15d
	xorl	%r12d, %r12d
	movl	$1, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	movl	%r15d, %eax
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%ecx
	movl	%eax, %r15d
	cmpl	%edx, %ecx
	ja	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	cmpl	%edx, %ecx
	jae	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %eax
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdi
	callq	_page_to_pfn
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	movq	%rax, %rbx
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %eax
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shrl	%cl, %eax
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	%r12d, %ecx
	movl	%r14d, (%r13,%rcx,8)
	movl	%eax, 4(%r13,%rcx,8)
	addl	%eax, %r14d
	incl	%r12d
	subl	%eax, %r15d
	je	LBB0_15
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	imull	%r15d, %ebx
	movq	_MAX_EXPECTED_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	ja	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%ebx, %edi
	callq	_is_power_of_2
	movl	%eax, %ecx
	movl	%r15d, %eax
	testl	%ecx, %ecx
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%ebx, %edi
	callq	_rounddown_pow_of_two
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r14d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	$1, %eax
	jmp	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %r14d
	jmp	LBB0_17
LBB0_1:
	xorl	%r12d, %r12d
LBB0_18:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_MAX_EXPECTED_BUFFER,4,2        ## @MAX_EXPECTED_BUFFER
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_find_phys_blocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_phys_blocks
_find_phys_blocks:                      ; @find_phys_blocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	w1, LBB0_16
; %bb.1:
	ldp	x24, x8, [x0]
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	x0, [x8]
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	bl	_page_to_pfn
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	mov	x21, x0
	mov	w23, #0
	mov	w20, #0
Lloh0:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	mov	w28, #1
Lloh2:
	adrp	x26, _MAX_EXPECTED_BUFFER@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MAX_EXPECTED_BUFFER@GOTPAGEOFF]
Lloh4:
	adrp	x27, _PAGE_SHIFT@GOTPAGE
Lloh5:
	ldr	x27, [x27, _PAGE_SHIFT@GOTPAGEOFF]
	mov	w19, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w28, w28, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #1
	cmp	w19, w9
	b.hi	LBB0_17
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x22, x21
	cmp	w19, w9
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x0, [x8, w19, uxtw #3]
	bl	_page_to_pfn
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	mov	x21, x0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, #0
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x22, #1
	cmp	x21, x8
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w28, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #1
	mov	x23, x19
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	w9, [x27]
	lsr	w8, w8, w9
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x9, x24, w20, uxtw #3
	stp	w23, w8, [x9]
	add	w23, w8, w23
	add	w20, w20, #1
	subs	w28, w28, w8
	b.eq	LBB0_15
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x25]
	mul	w22, w8, w28
	ldr	w8, [x26]
	cmp	w22, w8
	b.hi	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x22
	bl	_is_power_of_2
	mov	x8, x28
	cbnz	w0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x22
	bl	_rounddown_pow_of_two
	ldr	w8, [x27]
	lsr	w8, w0, w8
	b	LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #1
	mov	x23, x19
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	b	LBB0_3
LBB0_16:
	mov	w20, #0
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_MAX_EXPECTED_BUFFER,4,2        ; @MAX_EXPECTED_BUFFER
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_find_phys_blocks
.subsections_via_symbols
