	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_dmabuf_user
_copy_dmabuf_user:                      ## @copy_dmabuf_user
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	xorl	%eax, %eax
	testl	%ecx, %ecx
	sete	%al
	movslq	24(%rdi), %rbx
	addq	16(%rdi), %rbx
	movq	(%rdi,%rax,8), %rdx
	movslq	%r15d, %rax
	addq	%rdx, %rax
	cmpq	%rbx, %rax
	jbe	LBB0_8
## %bb.1:
	subq	%rdx, %rbx
	movq	%r13, %rdi
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.2:
	movq	%r14, %rsi
	movl	%ebx, %ecx
	callq	_translate_to_user
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movslq	%ebx, %rax
	addq	%rax, %r14
	movq	16(%r13), %rdx
	subl	%ebx, %r15d
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %ecx
	callq	_translate_to_user
	jmp	LBB0_4
LBB0_8:
	movq	%r13, %rdi
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.10:
	movq	%r14, %rsi
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_translate_to_user              ## TAILCALL
LBB0_6:
	movq	%rdx, %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_translate_from_user
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	movq	16(%r13), %rsi
	movslq	%ebx, %rax
	addq	%rax, %r14
	subl	%ebx, %r15d
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_translate_from_user
LBB0_4:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovsl	%ecx, %r12d
	addl	%eax, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rdx, %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_translate_from_user            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_copy_dmabuf_user
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_dmabuf_user
_copy_dmabuf_user:                      ; @copy_dmabuf_user
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	cmp	w3, #0
	cset	w8, eq
	ldr	x2, [x0, w8, uxtw #3]
	ldr	x8, [x0, #16]
	ldrsw	x9, [x0, #24]
	add	x10, x2, w19, sxtw
	add	x8, x8, x9
	cmp	x10, x8
	b.ls	LBB0_4
; %bb.1:
	sub	x23, x8, x2
	mov	x0, x20
	cbz	w3, LBB0_6
; %bb.2:
	mov	x1, x21
	mov	x3, x23
	bl	_translate_to_user
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.3:
	add	x1, x21, w23, sxtw
	ldr	x2, [x20, #16]
	sub	w3, w19, w23
	mov	x0, x20
	bl	_translate_to_user
	b	LBB0_8
LBB0_4:
	mov	x0, x20
	cbz	w3, LBB0_10
; %bb.5:
	mov	x1, x21
	mov	x3, x19
	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
	b	_translate_to_user
LBB0_6:
	mov	x1, x2
	mov	x2, x21
	mov	x3, x23
	bl	_translate_from_user
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.7:
	ldr	x1, [x20, #16]
	add	x2, x21, w23, sxtw
	sub	w3, w19, w23
	mov	x0, x20
	bl	_translate_from_user
LBB0_8:
	cmp	w0, #0
	csel	w8, wzr, w22, lt
	add	w22, w8, w0
LBB0_9:
	mov	x0, x22
	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_10:
	mov	x1, x2
	mov	x2, x21
	mov	x3, x19
	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
	b	_translate_from_user
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_copy_dmabuf_user
.subsections_via_symbols
