	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_encoder_cmd
_vidioc_encoder_cmd:                    ## @vidioc_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	(%rdi), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	8(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%rbx), %r8d
	cmpl	$128, %r8d
	je	LBB0_3
## %bb.1:
	cmpl	$129, %r8d
	jne	LBB0_4
## %bb.2:
	movl	$0, 4(%rbx)
	movq	%r14, %rdi
	callq	_hdpvr_start_streaming
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	%r14, %rdi
	callq	_hdpvr_stop_streaming
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_hdpvr_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%r14), %rdx
	leaq	L_.str(%rip), %rcx
	callq	_v4l2_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.comm	_hdpvr_debug,4,2                ## @hdpvr_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported encoder cmd %d\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_encoder_cmd
_vidioc_encoder_cmd:                    ; @vidioc_encoder_cmd
	.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	x20, x2
	ldr	x8, [x0]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_mutex_lock
	add	x0, x20, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w4, [x20]
	cmp	w4, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w4, #129
	b.ne	LBB0_4
; %bb.2:
	str	wzr, [x20, #4]
	mov	x0, x19
	bl	_hdpvr_start_streaming
	mov	x20, x0
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_hdpvr_stop_streaming
	mov	x20, x0
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _hdpvr_debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hdpvr_debug@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, x19, #4
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	bl	_v4l2_dbg
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.comm	_hdpvr_debug,4,2                ; @hdpvr_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported encoder cmd %d\n"

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