	.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
	movq	(%rdx), %rax
	movq	_POSEIDON_INPUTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	44(%rdx), %edi
	movq	_pd_inputs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %esi
	callq	_strcpy
	movq	_V4L2_INPUT_TYPE_TUNER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	_V4L2_STD_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	_logs
	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	_POSEIDON_INPUTS,8,3            ## @POSEIDON_INPUTS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pd_inputs,8,3                  ## @pd_inputs
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ## @V4L2_INPUT_TYPE_TUNER
	.comm	_V4L2_STD_ALL,4,2               ## @V4L2_STD_ALL
	.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	x8, [x2]
Lloh0:
	adrp	x9, _POSEIDON_INPUTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _POSEIDON_INPUTS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_2
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	ldr	w0, [x2, #44]
Lloh3:
	adrp	x9, _pd_inputs@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pd_inputs@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w1, [x9, x8, lsl #2]
	bl	_strcpy
Lloh6:
	adrp	x8, _V4L2_INPUT_TYPE_TUNER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_TUNER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #40]
	stp	xzr, xzr, [x20, #24]
Lloh9:
	adrp	x8, _V4L2_STD_ALL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_STD_ALL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	xzr, [x20, #8]
	mov	x0, x19
	bl	_logs
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_POSEIDON_INPUTS,8,3            ; @POSEIDON_INPUTS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pd_inputs,8,3                  ; @pd_inputs
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ; @V4L2_INPUT_TYPE_TUNER
	.comm	_V4L2_STD_ALL,4,2               ; @V4L2_STD_ALL
	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols
