	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function videobuf_dma_contig_user_get
_videobuf_dma_contig_user_get:          ## @videobuf_dma_contig_user_get
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	8(%rsi), %edi
	callq	_untagged_addr
	movq	%rax, %r13
	movq	_current@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %r15
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%r13d, %eax
	movq	(%rbx), %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	%rax, %rdi
	callq	_PAGE_ALIGN
	movq	%rax, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_down_read
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_find_vma
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	(%r14), %rdx
	leaq	(%rdx,%r13), %rcx
	cmpq	(%rax), %rcx
	ja	LBB0_15
## %bb.2:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.3:
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rax
	movq	%r13, %rsi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rsi
	incq	%r14
	movq	(%rdi), %rdx
                                        ## kill: def $cl killed $cl killed $rcx
	shrq	%cl, %rdx
	movq	%r8, %r15
	cmpq	%rdx, %r14
	jae	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rsi, %r13
	leaq	-64(%rbp), %rdx
	callq	_follow_pfn
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r8
	testq	%r14, %r14
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	cmpq	%r15, %r8
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_10
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r8, %rdx
	shlq	%cl, %rdx
	addq	-56(%rbp), %rdx                 ## 8-byte Folded Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdx, 8(%rdi)
	jmp	LBB0_11
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_13:
	negl	%ebx
LBB0_14:
	movq	_current@GOTPCREL(%rip), %r12
LBB0_15:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_up_read
	movl	%ebx, %eax
	addq	$24, %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	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_videobuf_dma_contig_user_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function videobuf_dma_contig_user_get
_videobuf_dma_contig_user_get:          ; @videobuf_dma_contig_user_get
	.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, x1
	mov	x19, x0
	ldr	w0, [x1, #8]
	bl	_untagged_addr
	mov	x20, x0
Lloh0:
	adrp	x24, _current@GOTPAGE
Lloh1:
	ldr	x24, [x24, _current@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x23, [x8]
Lloh2:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x21]
	bic	w25, w20, w8
	add	x0, x9, x25
	bl	_PAGE_ALIGN
	str	x0, [x19]
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	mov	x0, x23
	bl	_down_read
	mov	x0, x23
	mov	x1, x20
	bl	_find_vma
	cbz	x0, LBB0_14
; %bb.1:
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x9, [x0]
	add	x10, x8, x20
	cmp	x10, x9
	b.hi	LBB0_14
; %bb.2:
Lloh8:
	adrp	x23, _PAGE_SHIFT@GOTPAGE
Lloh9:
	ldr	x23, [x23, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x9, [x23]
	lsr	x8, x8, x9
	cbz	x8, LBB0_14
; %bb.3:
	mov	x24, #0
	mov	x26, #0
Lloh10:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh11:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
Lloh12:
	adrp	x28, _EFAULT@GOTPAGE
Lloh13:
	ldr	x28, [x28, _EFAULT@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x23]
	lsl	x10, x8, x9
	add	x10, x10, x25
	str	x10, [x19, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x27]
	add	x20, x10, x20
	add	x26, x26, #1
	ldr	x10, [x19]
	lsr	x9, x10, x9
	mov	x24, x8
	cmp	x26, x9
	b.hs	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_follow_pfn
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]
	cbz	x26, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x24, #1
	ldr	w9, [x28]
	cmp	x8, x10
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x23]
	b	LBB0_5
LBB0_10:
	mov	x22, x0
	b	LBB0_13
LBB0_11:
	mov	w22, #0
	b	LBB0_13
LBB0_12:
	neg	w22, w9
LBB0_13:
Lloh14:
	adrp	x24, _current@GOTPAGE
Lloh15:
	ldr	x24, [x24, _current@GOTPAGEOFF]
LBB0_14:
	ldr	x8, [x24]
	ldr	x0, [x8]
	bl	_up_read
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_videobuf_dma_contig_user_get
.subsections_via_symbols
