	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_set_output
_vpif_set_output:                       ## @vpif_set_output
	.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
	pushq	%rax
	.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, %r15
	movq	(%rsi), %rbx
	shlq	$3, %rbx
	addq	(%rdi), %rbx
	movq	%rbx, %rsi
	callq	_vpif_output_to_subdev
	xorl	%r12d, %r12d
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_vpif_obj@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.6:
	movq	(%rbx), %rax
	movslq	%r14d, %rcx
	leaq	(%rcx,%rcx,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	%r12, %rdi
	xorl	%r9d, %r9d
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jns	LBB0_3
## %bb.7:
	movl	%eax, %r13d
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	je	LBB0_3
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_vpif_err
	jmp	LBB0_9
LBB0_2:
	xorl	%r12d, %r12d
LBB0_3:
	movl	%r14d, 8(%r15)
	movq	%r12, 16(%r15)
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movslq	%r14d, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 12(%r15)
LBB0_5:
	xorl	%r13d, %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %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	_video,4,2                      ## @video
	.comm	_s_routing,4,2                  ## @s_routing
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set output\n"

	.no_dead_strip	_vpif_set_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_set_output
_vpif_set_output:                       ; @vpif_set_output
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x9, [x1]
	add	x21, x8, x9, lsl #3
	mov	x1, x21
	bl	_vpif_output_to_subdev
	tbnz	w0, #31, LBB0_5
; %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_6
; %bb.2:
	ldr	x8, [x21]
	mov	w9, #12
	smaddl	x8, w20, 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_6
; %bb.3:
	mov	x23, x0
Lloh9:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_6
; %bb.4:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vpif_err
	b	LBB0_9
LBB0_5:
	mov	x22, #0
LBB0_6:
	str	w20, [x19, #8]
	str	x22, [x19, #16]
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.7:
	mov	w23, #0
	mov	w9, #12
	smull	x9, w20, w9
	ldr	w8, [x8, x9]
	str	w8, [x19, #12]
	b	LBB0_9
LBB0_8:
	mov	w23, #0
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_vpif_obj,8,3                   ; @vpif_obj
	.comm	_video,4,2                      ; @video
	.comm	_s_routing,4,2                  ; @s_routing
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set output\n"

	.no_dead_strip	_vpif_set_output
.subsections_via_symbols
