	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zoran_enum_input
_zoran_enum_input:                      ## @zoran_enum_input
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdx), %ebx
	testl	%ebx, %ebx
	js	LBB0_2
## %bb.1:
	movq	(%rsi), %r15
	cmpl	8(%r15), %ebx
	jge	LBB0_2
## %bb.3:
	movq	%rdx, %r12
	xorl	%r14d, %r14d
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	%ebx, (%r12)
	movl	16(%r12), %edi
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movl	$3, %edx
	callq	_strncpy
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_V4L2_STD_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_input_status@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$4, %r12
	movq	%r15, %rdi
	movq	%r12, %rcx
	callq	_decoder_call
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ## @V4L2_INPUT_TYPE_CAMERA
	.comm	_V4L2_STD_ALL,4,2               ## @V4L2_STD_ALL
	.comm	_video,4,2                      ## @video
	.comm	_g_input_status,4,2             ## @g_input_status
	.no_dead_strip	_zoran_enum_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zoran_enum_input
_zoran_enum_input:                      ; @zoran_enum_input
	.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
	ldr	w21, [x2]
	tbnz	w21, #31, LBB0_3
; %bb.1:
	ldr	x19, [x1]
	ldr	w8, [x19, #8]
	cmp	w21, w8
	b.ge	LBB0_3
; %bb.2:
	mov	x20, x2
	mov	x0, x2
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	str	w21, [x20]
	ldr	w0, [x20, #16]
	ldr	x8, [x19, #16]
	ldr	w1, [x8, x21, lsl #2]
	mov	w2, #3
	bl	_strncpy
Lloh0:
	adrp	x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _V4L2_STD_ALL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_STD_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	mov	x0, x19
	bl	_mutex_lock
Lloh6:
	adrp	x8, _video@GOTPAGE
Lloh7:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _g_input_status@GOTPAGE
Lloh10:
	ldr	x8, [x8, _g_input_status@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, x20, #4
	mov	x0, x19
	bl	_decoder_call
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.comm	_V4L2_STD_ALL,4,2               ; @V4L2_STD_ALL
	.comm	_video,4,2                      ; @video
	.comm	_g_input_status,4,2             ; @g_input_status
	.no_dead_strip	_zoran_enum_input
.subsections_via_symbols
