	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_set_input
_vpif_set_input:                        ## @vpif_set_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	16(%rdi), %rbx
	movq	(%rsi), %r13
	shlq	$4, %r13
	leaq	(%rbx,%r13), %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_vpif_input_to_subdev
	xorl	%edx, %edx
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_vpif_obj@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %r14d
	movq	(%rcx,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.4:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	8(%r15), %r15
	movq	%rdi, %rbx
	movq	(%r12), %rdi
	movl	(%r15,%r14,4), %esi
	callq	*%rax
	movq	%rbx, %rdi
	testl	%eax, %eax
	js	LBB0_6
LBB0_7:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movslq	%ebx, %r15
	leaq	(%r15,%r15,2), %rcx
	movl	4(%rax,%rcx,4), %r8d
	movl	8(%rax,%rcx,4), %ecx
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_routing@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%r9d, %r9d
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	xorl	%edx, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_2:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movslq	%ebx, %r15
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_3:
	movl	%ebx, 8(%r12)
	movq	%rdi, 24(%r12)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%r13), %eax
	movl	%eax, 16(%r12)
	movq	(%r14), %rax
	leaq	(%r15,%r15,2), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 12(%r12)
	jmp	LBB0_12
LBB0_9:
	movl	%eax, %ecx
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ecx, %eax
	movl	$0, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_3
## %bb.10:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%ecx, %ebx
	callq	_vpif_dbg
	jmp	LBB0_11
LBB0_6:
	movl	%eax, %ebx
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15,%r14,4), %ecx
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_vpif_dbg
LBB0_11:
	movl	%ebx, %edx
LBB0_12:
	movl	%edx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vpif_obj,8,3                   ## @vpif_obj
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't setup input path for the sub device %s, for input index %d\n"

	.comm	_video,4,2                      ## @video
	.comm	_s_routing,4,2                  ## @s_routing
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set input\n"

	.no_dead_strip	_vpif_set_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_set_input
_vpif_set_input:                        ; @vpif_set_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x24, [x0, #16]
	ldr	x25, [x1]
	add	x21, x24, x25, lsl #4
	mov	x1, x21
	bl	_vpif_input_to_subdev
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _vpif_obj@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vpif_obj@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x22, [x8, w0, uxtw #3]
	cbz	x22, LBB0_8
; %bb.2:
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w26, w0
	ldr	x27, [x23, #8]
	ldr	x0, [x20]
	ldr	w1, [x27, x26, lsl #2]
	blr	x8
	tbnz	w0, #31, LBB0_10
LBB0_4:
	ldr	x8, [x21]
	sxtw	x26, w19
	mov	w9, #12
	smaddl	x8, w19, w9, x8
	ldp	w4, w3, [x8, #4]
Lloh3:
	adrp	x8, _video@GOTPAGE
Lloh4:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _s_routing@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s_routing@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w5, #0
	bl	_v4l2_subdev_call
	tbz	w0, #31, LBB0_9
; %bb.5:
	mov	x23, x0
Lloh9:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_9
; %bb.6:
Lloh12:
	adrp	x8, _debug@GOTPAGE
Lloh13:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_7:
	mov	w23, #0
	b	LBB0_12
LBB0_8:
	mov	x8, x19
	sxtw	x26, w8
LBB0_9:
	mov	w23, #0
	str	x22, [x20, #24]
	add	x8, x24, x25, lsl #4
	ldr	w8, [x8, #8]
	str	w8, [x20, #16]
	ldr	x8, [x21]
	mov	w9, #12
	mul	x9, x26, x9
	ldr	w8, [x8, x9]
	stp	w19, w8, [x20, #8]
	b	LBB0_12
LBB0_10:
	mov	x23, x0
Lloh17:
	adrp	x8, _debug@GOTPAGE
Lloh18:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w8, [x27, x26, lsl #2]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x8, x19, [sp]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
LBB0_11:
	mov	w0, #1
	bl	_vpif_dbg
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_vpif_obj,8,3                   ; @vpif_obj
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't setup input path for the sub device %s, for input index %d\n"

	.comm	_video,4,2                      ; @video
	.comm	_s_routing,4,2                  ; @s_routing
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set input\n"

	.no_dead_strip	_vpif_set_input
.subsections_via_symbols
