	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_mdp_m2m_reqbufs
_mtk_mdp_m2m_reqbufs:                   ## @mtk_mdp_m2m_reqbufs
	.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	%rdi, %r14
	movq	%rsi, %rdi
	callq	_fh_to_ctx
	movq	%rax, %r15
	cmpq	$0, (%rbx)
	jne	LBB0_5
## %bb.1:
	movq	8(%rbx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_MTK_MDP_SRC_FMT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_MTK_MDP_DST_FMT@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mtk_mdp_ctx_state_lock_clear
LBB0_5:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_m2m_reqbufs               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_MTK_MDP_SRC_FMT,4,2            ## @MTK_MDP_SRC_FMT
	.comm	_MTK_MDP_DST_FMT,4,2            ## @MTK_MDP_DST_FMT
	.no_dead_strip	_mtk_mdp_m2m_reqbufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_mdp_m2m_reqbufs
_mtk_mdp_m2m_reqbufs:                   ; @mtk_mdp_m2m_reqbufs
	.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	x20, x0
	mov	x0, x1
	bl	_fh_to_ctx
	mov	x21, x0
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGEOFF]
Lloh2:
	adrp	x10, _MTK_MDP_SRC_FMT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MTK_MDP_SRC_FMT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _MTK_MDP_DST_FMT@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MTK_MDP_DST_FMT@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	mov	x0, x21
	bl	_mtk_mdp_ctx_state_lock_clear
LBB0_2:
	ldr	w1, [x21]
	mov	x0, x20
	mov	x2, 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	_v4l2_m2m_reqbufs
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_MTK_MDP_SRC_FMT,4,2            ; @MTK_MDP_SRC_FMT
	.comm	_MTK_MDP_DST_FMT,4,2            ; @MTK_MDP_DST_FMT
	.no_dead_strip	_mtk_mdp_m2m_reqbufs
.subsections_via_symbols
