	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_enum_input
_vidioc_enum_input:                     ## @vidioc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdx), %eax
	movq	_HDPVR_VIDEO_INPUTS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jae	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	(%rdi), %rcx
	movq	(%rcx), %r14
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rdx)
	movq	8(%rdx), %rdi
	movq	_iname@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %esi
	movl	$7, %edx
	callq	_strncpy
	movq	8(%rbx), %rax
	movb	$0, 7(%rax)
	movq	_HDPVR_RCA_FRONT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_HDPVR_RCA_BACK@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	btsl	%eax, %edx
	movq	_HDPVR_SPDIF@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	movl	%edx, 16(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDPVR_VIDEO_INPUTS,4,2         ## @HDPVR_VIDEO_INPUTS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ## @V4L2_INPUT_TYPE_CAMERA
	.comm	_iname,8,3                      ## @iname
	.comm	_HDPVR_RCA_FRONT,4,2            ## @HDPVR_RCA_FRONT
	.comm	_HDPVR_RCA_BACK,4,2             ## @HDPVR_RCA_BACK
	.comm	_HDPVR_SPDIF,4,2                ## @HDPVR_SPDIF
	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_enum_input
_vidioc_enum_input:                     ; @vidioc_enum_input
	.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
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _HDPVR_VIDEO_INPUTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDPVR_VIDEO_INPUTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.hs	LBB0_2
; %bb.1:
	mov	x19, x2
	ldr	x9, [x0]
	ldr	x20, [x9]
Lloh3:
	adrp	x9, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x2, #24]
	ldr	x0, [x2, #8]
Lloh6:
	adrp	x9, _iname@GOTPAGE
Lloh7:
	ldr	x9, [x9, _iname@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w1, [x9, x8, lsl #2]
	mov	w2, #7
	bl	_strncpy
	mov	w0, #0
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _HDPVR_RCA_FRONT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HDPVR_RCA_FRONT@GOTPAGEOFF]
	strb	wzr, [x8, #7]
Lloh11:
	ldr	w8, [x9]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh12:
	adrp	x10, _HDPVR_RCA_BACK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _HDPVR_RCA_BACK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w10, w8
Lloh15:
	adrp	x10, _HDPVR_SPDIF@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HDPVR_SPDIF@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	ldr	x9, [x20]
	ldr	w9, [x9]
	stp	w8, w9, [x19, #16]
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HDPVR_VIDEO_INPUTS,4,2         ; @HDPVR_VIDEO_INPUTS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.comm	_iname,8,3                      ; @iname
	.comm	_HDPVR_RCA_FRONT,4,2            ; @HDPVR_RCA_FRONT
	.comm	_HDPVR_RCA_BACK,4,2             ; @HDPVR_RCA_BACK
	.comm	_HDPVR_SPDIF,4,2                ; @HDPVR_SPDIF
	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols
