	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_pages
_get_pages:                             ## @get_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	_PAGE_CACHE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	leaq	(%rdx,%r13), %r14
	decq	%r14
	shrq	%cl, %r13
	shrq	%cl, %r14
	movq	%r14, %rax
	subq	%r13, %rax
	movq	_NS_MAX_HELD_PAGES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.3:
	movq	%rdi, %r15
	movq	(%rsi), %r12
	movq	$0, (%rdi)
	xorl	%eax, %eax
	cmpq	%r13, %r14
	jl	LBB0_12
## %bb.4:
	incq	%r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_unlock_page
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%r15)
	movq	%rbx, (%rcx,%rax,8)
	incq	%r13
	cmpq	%r13, %r14
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_find_get_page
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_GFP_NOFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_find_or_create_page
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_write_inode_now
	movq	_GFP_NOFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_find_or_create_page
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_put_pages
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_CACHE_SHIFT,8,3           ## @PAGE_CACHE_SHIFT
	.comm	_NS_MAX_HELD_PAGES,8,3          ## @NS_MAX_HELD_PAGES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_NOFS,4,2                   ## @GFP_NOFS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_get_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_pages
_get_pages:                             ; @get_pages
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _PAGE_CACHE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_CACHE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsr	x20, x3, x8
	add	x9, x2, x3
	sub	x9, x9, #1
	lsr	x8, x9, x8
Lloh3:
	adrp	x9, _NS_MAX_HELD_PAGES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NS_MAX_HELD_PAGES@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sub	x10, x8, x20
	cmp	x10, x9
	b.ge	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x21, [x1]
	str	xzr, [x0]
	cmp	x8, x20
	b.ge	LBB0_6
LBB0_2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	add	x23, x8, #1
Lloh8:
	adrp	x24, _GFP_NOFS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _GFP_NOFS@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_unlock_page
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldp	x9, x8, [x19]
	add	x10, x9, #1
	str	x10, [x19]
	str	x22, [x8, x9, lsl #3]
	add	x20, x20, #1
	cmp	x23, x20
	b.eq	LBB0_2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_find_get_page
	mov	x22, x0
	cbnz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x24]
	mov	x0, x21
	mov	x1, x20
	bl	_find_or_create_page
	mov	x22, x0
	cbnz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x21]
	mov	w1, #1
	bl	_write_inode_now
	ldr	w2, [x24]
	mov	x0, x21
	mov	x1, x20
	bl	_find_or_create_page
	mov	x22, x0
	cbnz	x0, LBB0_7
; %bb.12:
	mov	x0, x19
	bl	_put_pages
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_CACHE_SHIFT,8,3           ; @PAGE_CACHE_SHIFT
	.comm	_NS_MAX_HELD_PAGES,8,3          ; @NS_MAX_HELD_PAGES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_NOFS,4,2                   ; @GFP_NOFS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_get_pages
.subsections_via_symbols
