	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_user_pages_fast            ## -- Begin function get_user_pages_fast
	.p2align	4, 0x90
_get_user_pages_fast:                   ## @get_user_pages_fast
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r8
	movq	%rdi, %r15
	movq	_current@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax), %r12
	movl	$0, -44(%rbp)
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movslq	%esi, %rsi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	shlq	%cl, %rsi
	andq	(%rax), %r15
	xorl	%eax, %eax
	movq	%rsi, %rbx
	addq	%r15, %rbx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	jb	LBB0_7
## %bb.1:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	xorl	%eax, %eax
	callq	_local_irq_disable
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_pgd_offset
	movq	%rax, %r14
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %r12d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_pgd_addr_end
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_pgd_none
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	leaq	-44(%rbp), %r9
	callq	_gup_pud_range
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %r14
	movq	%r15, %r13
	cmpq	%rbx, %r15
	jne	LBB0_2
## %bb.5:
	xorl	%eax, %eax
	callq	_local_irq_enable
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	shrq	%cl, %rdx
	movslq	-44(%rbp), %rax
	xorl	%edi, %edi
	cmpq	%rax, %rdx
	setne	%dil
	callq	_VM_BUG_ON
	movl	-44(%rbp), %ebx
	jmp	LBB0_9
LBB0_6:
	xorl	%eax, %eax
	callq	_local_irq_enable
	movl	-44(%rbp), %eax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	_current@GOTPCREL(%rip), %r13
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_7:
	movslq	%eax, %rsi
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	cltq
	addq	%rax, %r15
	leaq	(%r8,%rsi,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_down_read
	movq	(%r13), %rdi
	subq	%r15, %rbx
	movb	(%r14), %cl
	shrq	%cl, %rbx
	xorl	%r14d, %r14d
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	pushq	$0
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_get_user_pages
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_up_read
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.8:
	testl	%ebx, %ebx
	cmovgl	%ebx, %r14d
	addl	%r14d, %eax
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	___VIRTUAL_MASK_SHIFT,8,3       ## @__VIRTUAL_MASK_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_user_pages_fast            ; -- Begin function get_user_pages_fast
	.p2align	2
_get_user_pages_fast:                   ; @get_user_pages_fast
	.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
	mov	x21, x3
	mov	x20, x2
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x24, _current@GOTPAGE
Lloh1:
	ldr	x24, [x24, _current@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x19, [x8]
	str	wzr, [sp, #12]
Lloh2:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	and	x23, x8, x0
	sxtw	x9, w1
Lloh5:
	adrp	x25, _PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x8, [x25]
	lsl	x28, x9, x8
	adds	x22, x28, x23
	b.lo	LBB0_2
; %bb.1:
	mov	w9, #0
	b	LBB0_8
LBB0_2:
	bl	_local_irq_disable
	mov	x0, x19
	mov	x1, x23
	bl	_pgd_offset
	mov	x24, x0
	mov	x25, x23
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w27, [x24]
	mov	x0, x25
	mov	x1, x22
	bl	_pgd_addr_end
	mov	x26, x0
	mov	x0, x27
	bl	_pgd_none
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x5, sp, #12
	mov	x0, x27
	mov	x1, x25
	mov	x2, x26
	mov	x3, x20
	mov	x4, x21
	bl	_gup_pud_range
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #4
	mov	x25, x26
	cmp	x26, x22
	b.ne	LBB0_3
; %bb.6:
	bl	_local_irq_enable
	ldrsw	x8, [sp, #12]
Lloh7:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	lsr	x9, x28, x9
	cmp	x9, x8
	cset	w0, ne
	bl	_VM_BUG_ON
	ldr	w0, [sp, #12]
	b	LBB0_9
LBB0_7:
	bl	_local_irq_enable
	ldr	w9, [sp, #12]
Lloh10:
	adrp	x25, _PAGE_SHIFT@GOTPAGE
Lloh11:
	ldr	x25, [x25, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh12:
	adrp	x24, _current@GOTPAGE
Lloh13:
	ldr	x24, [x24, _current@GOTPAGEOFF]
LBB0_8:
	lsl	w8, w9, w8
	add	x23, x23, w8, sxtw
	add	x21, x21, w9, sxtw #3
	mov	x0, x19
	bl	_down_read
	ldr	x0, [x24]
	sub	x8, x22, x23
	ldr	x9, [x25]
	lsr	x3, x8, x9
	mov	x1, x19
	mov	x2, x23
	mov	x4, x20
	mov	w5, #0
	mov	x6, x21
	mov	x7, #0
	bl	_get_user_pages
	mov	x20, x0
	mov	x0, x19
	bl	_up_read
	ldr	w8, [sp, #12]
	cmp	w20, #0
	csel	w9, w20, wzr, gt
	add	w9, w8, w9
	cmp	w8, #1
	csel	w0, w20, w9, lt
LBB0_9:
	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	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	___VIRTUAL_MASK_SHIFT,8,3       ; @__VIRTUAL_MASK_SHIFT
.subsections_via_symbols
