	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fops_mmap
_fops_mmap:                             ## @fops_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_video_devdata
	movq	%rax, %r12
	movq	(%rbx), %r15
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_DEB_EE
	addq	$16, %r15
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_DEB_EE
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_V4L2_CAP_SLICED_VBI_OUTPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.4:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	callq	_BUG
                                        ## implicit-def: $r15
LBB0_7:
	movl	4(%r12), %edi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_videobuf_mmap_mapper
	movl	%eax, %ebx
	movl	4(%r12), %edi
	callq	_mutex_unlock
	movl	%ebx, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"V4L2_BUF_TYPE_VIDEO_CAPTURE: file:%p, vma:%p\n"

L_.str.1:                               ## @.str.1
	.asciz	"V4L2_BUF_TYPE_VBI_CAPTURE: file:%p, vma:%p\n"

	.comm	_V4L2_CAP_SLICED_VBI_OUTPUT,4,2 ## @V4L2_CAP_SLICED_VBI_OUTPUT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.no_dead_strip	_fops_mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fops_mmap
_fops_mmap:                             ; @fops_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
	mov	x22, x0
	bl	_video_devdata
	mov	x20, x0
	ldr	x21, [x22]
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x19
	bl	_DEB_EE
	add	x21, x21, #16
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	x2, x19
	bl	_DEB_EE
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _V4L2_CAP_SLICED_VBI_OUTPUT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _V4L2_CAP_SLICED_VBI_OUTPUT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	bl	_BUG
                                        ; implicit-def: $x21
LBB0_6:
	ldr	w0, [x20, #4]
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_9
; %bb.7:
Lloh9:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	x0, x21
	mov	x1, x19
	bl	_videobuf_mmap_mapper
	mov	x19, x0
	ldr	w0, [x20, #4]
	bl	_mutex_unlock
	mov	x0, x19
LBB0_10:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"V4L2_BUF_TYPE_VIDEO_CAPTURE: file:%p, vma:%p\n"

l_.str.1:                               ; @.str.1
	.asciz	"V4L2_BUF_TYPE_VBI_CAPTURE: file:%p, vma:%p\n"

	.comm	_V4L2_CAP_SLICED_VBI_OUTPUT,4,2 ; @V4L2_CAP_SLICED_VBI_OUTPUT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.no_dead_strip	_fops_mmap
.subsections_via_symbols
