	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_one_buf
_map_one_buf:                           ## @map_one_buf
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdi, %r14
	addq	(%rcx), %rdx
	movq	%rdx, -32(%rbp)
	movq	(%rdi), %rax
	movslq	%esi, %r15
	shlq	$4, %r15
	leaq	(%rax,%r15), %rdi
	addq	$12, %rdi
	leaq	8(%rcx), %rsi
	movl	$4, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	(%r14), %rax
	leaq	(%rax,%r15), %rdi
	addq	$8, %rdi
	addq	$16, %rbx
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	(%r14), %rax
	leaq	(%rax,%r15), %rdi
	addq	$4, %rdi
	movl	$4, %esi
	callq	_clear_user
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	addq	(%r14), %r15
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_map_one_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_one_buf
_map_one_buf:                           ; @map_one_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x3
	mov	x21, x1
	mov	x19, x0
	mov	x1, x3
	ldr	x8, [x1], #8
	add	x8, x8, x2
	str	x8, [sp, #8]
	ldr	x8, [x0]
	add	x8, x8, w21, sxtw #4
	add	x0, x8, #12
	mov	w2, #4
	bl	_copy_to_user
	cbnz	x0, LBB0_4
; %bb.1:
	sxtw	x21, w21
	ldr	x8, [x19]
	add	x8, x8, x21, lsl #4
	add	x0, x8, #8
	add	x1, x20, #16
	mov	w2, #4
	bl	_copy_to_user
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	add	x8, x8, x21, lsl #4
	add	x0, x8, #4
	mov	w1, #4
	bl	_clear_user
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	add	x0, x8, x21, lsl #4
	add	x1, sp, #8
	mov	w2, #8
	bl	_copy_to_user
	cbz	x0, LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh2:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_map_one_buf
.subsections_via_symbols
