	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_try_encoder_cmd
_ivtv_try_encoder_cmd:                  ## @ivtv_try_encoder_cmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %rdi
	callq	_fh2id
	movl	(%rbx), %esi
	leal	-128(%rsi), %eax
	cmpl	$3, %eax
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_IVTV_DEBUG_IOCTL
	movq	_V4L2_ENC_CMD_STOP_AT_GOP_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, 4(%rbx)
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.4(%rip), %rdi
	xorl	%r14d, %r14d
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_IVTV_DEBUG_IOCTL
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
LBB0_3:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_IVTV_DEBUG_IOCTL
	movl	$0, 4(%rbx)
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"V4L2_ENC_CMD_START\n"

L_.str.1:                               ## @.str.1
	.asciz	"V4L2_ENC_CMD_STOP\n"

	.comm	_V4L2_ENC_CMD_STOP_AT_GOP_END,4,2 ## @V4L2_ENC_CMD_STOP_AT_GOP_END
L_.str.2:                               ## @.str.2
	.asciz	"V4L2_ENC_CMD_PAUSE\n"

L_.str.3:                               ## @.str.3
	.asciz	"V4L2_ENC_CMD_RESUME\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unknown cmd %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ivtv_try_encoder_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivtv_try_encoder_cmd
_ivtv_try_encoder_cmd:                  ; @ivtv_try_encoder_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x0, x1
	bl	_fh2id
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IVTV_DEBUG_IOCTL
	mov	w0, #0
Lloh4:
	adrp	x8, _V4L2_ENC_CMD_STOP_AT_GOP_END@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_ENC_CMD_STOP_AT_GOP_END@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	and	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_8
LBB0_3:
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.4@PAGE
Lloh8:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_IVTV_DEBUG_IOCTL
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_IVTV_DEBUG_IOCTL
	mov	w0, #0
	str	wzr, [x19, #4]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"V4L2_ENC_CMD_START\n"

l_.str.1:                               ; @.str.1
	.asciz	"V4L2_ENC_CMD_STOP\n"

	.comm	_V4L2_ENC_CMD_STOP_AT_GOP_END,4,2 ; @V4L2_ENC_CMD_STOP_AT_GOP_END
l_.str.2:                               ; @.str.2
	.asciz	"V4L2_ENC_CMD_PAUSE\n"

l_.str.3:                               ; @.str.3
	.asciz	"V4L2_ENC_CMD_RESUME\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unknown cmd %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ivtv_try_encoder_cmd
.subsections_via_symbols
