	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_m2m_mmap                  ## -- Begin function v4l2_m2m_mmap
	.p2align	4, 0x90
_v4l2_m2m_mmap:                         ## @v4l2_m2m_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	%rdx, %rbx
	movq	(%rdx), %rax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	shlq	%cl, %rax
	movq	%rsi, %rdi
	movq	_DST_QUEUE_OFF_BASE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jae	LBB0_2
## %bb.1:
	callq	_v4l2_m2m_get_src_vq
	jmp	LBB0_3
LBB0_2:
	callq	_v4l2_m2m_get_dst_vq
	movq	(%r15), %rdx
	movb	(%r14), %cl
	shrq	%cl, %rdx
	subq	%rdx, (%rbx)
LBB0_3:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vb2_mmap                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_DST_QUEUE_OFF_BASE,8,3         ## @DST_QUEUE_OFF_BASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_m2m_mmap                  ; -- Begin function v4l2_m2m_mmap
	.p2align	2
_v4l2_m2m_mmap:                         ; @v4l2_m2m_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, x2
	mov	x0, x1
	ldr	x8, [x2]
Lloh0:
	adrp	x20, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x8, x8, x9
Lloh2:
	adrp	x21, _DST_QUEUE_OFF_BASE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DST_QUEUE_OFF_BASE@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.hs	LBB0_2
; %bb.1:
	bl	_v4l2_m2m_get_src_vq
	b	LBB0_3
LBB0_2:
	bl	_v4l2_m2m_get_dst_vq
	ldr	x8, [x21]
	ldr	x9, [x20]
	lsr	x8, x8, x9
	ldr	x9, [x19]
	sub	x8, x9, x8
	str	x8, [x19]
LBB0_3:
	mov	x1, x19
	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
	b	_vb2_mmap
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_DST_QUEUE_OFF_BASE,8,3         ; @DST_QUEUE_OFF_BASE
.subsections_via_symbols
