	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_saa7115_subdev_update     ## -- Begin function pvr2_saa7115_subdev_update
	.p2align	4, 0x90
_pvr2_saa7115_subdev_update:            ## @pvr2_saa7115_subdev_update
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
LBB0_2:
	movq	8(%rbx), %rax
	movl	(%rax), %r15d
	movq	_PVR2_TRACE_CHIPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_pvr2_trace
	movq	_routing_schemes@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jae	LBB0_7
## %bb.3:
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	(%rbx), %rcx
	cmpq	(%rax), %rcx
	jae	LBB0_7
## %bb.5:
	movq	8(%rax), %rax
	movl	(%rax,%rcx,4), %esi
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_7:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rcx
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pvr2_trace                     ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_TRACE_CHIPS,4,2           ## @PVR2_TRACE_CHIPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"subdev v4l2 set_input(%d)"

	.comm	_routing_schemes,8,3            ## @routing_schemes
	.comm	_PVR2_TRACE_ERROR_LEGS,4,2      ## @PVR2_TRACE_ERROR_LEGS
L_.str.1:                               ## @.str.1
	.asciz	"*** WARNING *** subdev v4l2 set_input: Invalid routing scheme (%u) and/or input (%d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_saa7115_subdev_update     ; -- Begin function pvr2_saa7115_subdev_update
	.p2align	2
_pvr2_saa7115_subdev_update:            ; @pvr2_saa7115_subdev_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	w21, [x8]
Lloh0:
	adrp	x8, _PVR2_TRACE_CHIPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PVR2_TRACE_CHIPS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pvr2_trace
Lloh5:
	adrp	x22, _routing_schemes@GOTPAGE
Lloh6:
	ldr	x22, [x22, _routing_schemes@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.hs	LBB0_6
; %bb.3:
	ldr	x8, [x22]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x9, [x20]
	ldr	x10, [x8]
	cmp	x9, x10
	b.hs	LBB0_6
; %bb.5:
	ldr	x8, [x8, #8]
	ldr	w1, [x8, x9, lsl #2]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x4, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	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
	add	sp, sp, #64
	br	x4
LBB0_6:
Lloh7:
	adrp	x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_pvr2_trace
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_TRACE_CHIPS,4,2           ; @PVR2_TRACE_CHIPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subdev v4l2 set_input(%d)"

	.comm	_routing_schemes,8,3            ; @routing_schemes
	.comm	_PVR2_TRACE_ERROR_LEGS,4,2      ; @PVR2_TRACE_ERROR_LEGS
l_.str.1:                               ; @.str.1
	.asciz	"*** WARNING *** subdev v4l2 set_input: Invalid routing scheme (%u) and/or input (%d)"

.subsections_via_symbols
