	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __qib_get_user_pages
___qib_get_user_pages:                  ## @__qib_get_user_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, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_RLIMIT_MEMLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rlimit
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rax
	cmpq	%r13, %rax
	jae	LBB0_3
## %bb.1:
	movq	_CAP_IPC_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_3:
	testq	%r13, %r13
	je	LBB0_9
LBB0_4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %rsi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	imulq	%rbx, %rdx
	addq	%r12, %rdx
	movq	%r13, %rcx
	subq	%rbx, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,8), %rax
	movl	$1, %r8d
	movl	$1, %r9d
	pushq	%r15
	pushq	%rax
	callq	_get_user_pages
	addq	$16, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %eax
	addq	%rax, %rbx
	cmpq	%r13, %rbx
	jb	LBB0_6
LBB0_9:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	addq	%r13, (%rax)
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	___qib_release_user_pages
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RLIMIT_MEMLOCK,4,2             ## @RLIMIT_MEMLOCK
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_CAP_IPC_LOCK,4,2               ## @CAP_IPC_LOCK
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_current,8,3                    ## @current
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	___qib_get_user_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __qib_get_user_pages
___qib_get_user_pages:                  ; @__qib_get_user_pages
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _RLIMIT_MEMLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RLIMIT_MEMLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rlimit
Lloh3:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsr	x8, x0, x8
Lloh6:
	adrp	x25, _current@GOTPAGE
Lloh7:
	ldr	x25, [x25, _current@GOTPAGEOFF]
	cmp	x8, x20
	b.hs	LBB0_3
; %bb.1:
Lloh8:
	adrp	x8, _CAP_IPC_LOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CAP_IPC_LOCK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_capable
	cbnz	w0, LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_9
LBB0_3:
	cbz	x20, LBB0_7
LBB0_4:
	mov	x23, #0
Lloh14:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh15:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	ldr	x1, [x0]
	ldr	x8, [x26]
	madd	x2, x8, x23, x22
	sub	x3, x20, x23
	add	x6, x19, x23, lsl #3
	mov	w4, #1
	mov	w5, #1
	mov	x7, x21
	bl	_get_user_pages
	mov	x24, x0
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, w24, uxtw
	cmp	x23, x20
	b.lo	LBB0_5
LBB0_7:
	mov	w24, #0
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	x9, [x8]
	add	x9, x9, x20
	str	x9, [x8]
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	___qib_release_user_pages
LBB0_9:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RLIMIT_MEMLOCK,4,2             ; @RLIMIT_MEMLOCK
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_CAP_IPC_LOCK,4,2               ; @CAP_IPC_LOCK
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_current,8,3                    ; @current
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	___qib_get_user_pages
.subsections_via_symbols
