	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l_stk_mmap
_v4l_stk_mmap:                          ## @v4l_stk_mmap
	.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	%rsi, %r14
	movq	(%rsi), %r15
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %r15
	callq	_video_drvdata
	movl	8(%r14), %ecx
	movq	_VM_WRITE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.1:
	movq	_VM_SHARED@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.2:
	movl	(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.3:
	movq	8(%rax), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, 8(%rbx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$24, %rbx
	decq	%rcx
	jne	LBB0_4
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_remap_vmalloc_range
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_VM_DONTEXPAND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movq	%rbx, 24(%r14)
	movq	_stk_v4l_vm_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_V4L2_BUF_FLAG_MAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_stk_v4l_vm_open
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_VM_WRITE,4,2                   ## @VM_WRITE
	.comm	_VM_SHARED,4,2                  ## @VM_SHARED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VM_DONTEXPAND,4,2              ## @VM_DONTEXPAND
	.comm	_stk_v4l_vm_ops,4,2             ## @stk_v4l_vm_ops
	.comm	_V4L2_BUF_FLAG_MAPPED,4,2       ## @V4L2_BUF_FLAG_MAPPED
	.no_dead_strip	_v4l_stk_mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l_stk_mmap
_v4l_stk_mmap:                          ; @v4l_stk_mmap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	ldr	x20, [x1]
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	bl	_video_drvdata
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _VM_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VM_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
Lloh6:
	adrp	x9, _VM_SHARED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VM_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.3:
	lsl	x9, x20, x21
	ldr	x20, [x0, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20, #8]
	cmp	x10, x9
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #24
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w1, [x20, #16]
	mov	x0, x19
	mov	w2, #0
	bl	_remap_vmalloc_range
	cbnz	w0, LBB0_7
; %bb.9:
Lloh12:
	adrp	x8, _VM_DONTEXPAND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VM_DONTEXPAND@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
Lloh15:
	adrp	x8, _stk_v4l_vm_ops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stk_v4l_vm_ops@GOTPAGEOFF]
	stp	x8, x20, [x19, #16]
Lloh17:
	adrp	x8, _V4L2_BUF_FLAG_MAPPED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_BUF_FLAG_MAPPED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x19
	bl	_stk_v4l_vm_open
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_VM_WRITE,4,2                   ; @VM_WRITE
	.comm	_VM_SHARED,4,2                  ; @VM_SHARED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VM_DONTEXPAND,4,2              ; @VM_DONTEXPAND
	.comm	_stk_v4l_vm_ops,4,2             ; @stk_v4l_vm_ops
	.comm	_V4L2_BUF_FLAG_MAPPED,4,2       ; @V4L2_BUF_FLAG_MAPPED
	.no_dead_strip	_v4l_stk_mmap
.subsections_via_symbols
