	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_m2m_ioctl_try_decoder_cmd ## -- Begin function v4l2_m2m_ioctl_try_decoder_cmd
	.p2align	4, 0x90
_v4l2_m2m_ioctl_try_decoder_cmd:        ## @v4l2_m2m_ioctl_try_decoder_cmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdx), %rcx
	movq	_V4L2_DEC_CMD_STOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_V4L2_DEC_CMD_START@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rax, %rcx
	je	LBB0_3
## %bb.1:
	cmpq	%rsi, %rcx
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	$0, 32(%rdx)
	cmpq	%rax, %rcx
	jne	LBB0_5
## %bb.4:
	movq	$0, 24(%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	cmpq	%rsi, %rcx
	jne	LBB0_7
## %bb.6:
	movq	$0, 16(%rdx)
	movq	_V4L2_DEC_START_FMT_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rdx)
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_DEC_CMD_STOP,8,3          ## @V4L2_DEC_CMD_STOP
	.comm	_V4L2_DEC_CMD_START,8,3         ## @V4L2_DEC_CMD_START
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_DEC_START_FMT_NONE,4,2    ## @V4L2_DEC_START_FMT_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_m2m_ioctl_try_decoder_cmd ; -- Begin function v4l2_m2m_ioctl_try_decoder_cmd
	.p2align	2
_v4l2_m2m_ioctl_try_decoder_cmd:        ; @v4l2_m2m_ioctl_try_decoder_cmd
	.cfi_startproc
; %bb.0:
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _V4L2_DEC_CMD_STOP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_DEC_CMD_STOP@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
Lloh3:
	adrp	x9, _V4L2_DEC_CMD_START@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_DEC_CMD_START@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_3
; %bb.1:
	str	xzr, [x2, #32]
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	str	xzr, [x2, #24]
	ret
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	str	xzr, [x2, #16]
Lloh9:
	adrp	x8, _V4L2_DEC_START_FMT_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_DEC_START_FMT_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x2, #8]
	ret
LBB0_6:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_DEC_CMD_STOP,8,3          ; @V4L2_DEC_CMD_STOP
	.comm	_V4L2_DEC_CMD_START,8,3         ; @V4L2_DEC_CMD_START
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_DEC_START_FMT_NONE,4,2    ; @V4L2_DEC_START_FMT_NONE
.subsections_via_symbols
