	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m2mops_venc_device_run
_m2mops_venc_device_run:                ## @m2mops_venc_device_run
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	_MTK_Q_DATA_DST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	_V4L2_PIX_FMT_H264@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_MTK_STATE_HEADER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_mtk_venc_param_change
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_mtk_venc_encode_header
LBB0_4:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MTK_Q_DATA_DST,8,3             ## @MTK_Q_DATA_DST
	.comm	_V4L2_PIX_FMT_H264,8,3          ## @V4L2_PIX_FMT_H264
	.comm	_MTK_STATE_HEADER,8,3           ## @MTK_STATE_HEADER
	.no_dead_strip	_m2mops_venc_device_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m2mops_venc_device_run
_m2mops_venc_device_run:                ; @m2mops_venc_device_run
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _MTK_Q_DATA_DST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MTK_Q_DATA_DST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _V4L2_PIX_FMT_H264@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_PIX_FMT_H264@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _MTK_STATE_HEADER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MTK_STATE_HEADER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_mtk_venc_param_change
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_mtk_venc_encode_header
LBB0_4:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	add	x1, x19, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_queue_work
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MTK_Q_DATA_DST,8,3             ; @MTK_Q_DATA_DST
	.comm	_V4L2_PIX_FMT_H264,8,3          ; @V4L2_PIX_FMT_H264
	.comm	_MTK_STATE_HEADER,8,3           ; @MTK_STATE_HEADER
	.no_dead_strip	_m2mops_venc_device_run
.subsections_via_symbols
