	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_cx25840_subdev_update     ## -- Begin function pvr2_cx25840_subdev_update
	.p2align	4, 0x90
_pvr2_cx25840_subdev_update:            ## @pvr2_cx25840_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	%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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_PVR2_TRACE_CHIPS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_pvr2_trace
	cmpq	$0, 24(%rbx)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
LBB0_2:
	movq	8(%rbx), %rax
	movl	(%rax), %r15d
	movq	_routing_schemes@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jae	LBB0_8
## %bb.3:
	movq	(%r13), %rax
	movq	(%rax,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	js	LBB0_8
## %bb.5:
	cmpl	(%rax), %ecx
	jge	LBB0_8
## %bb.6:
	movq	8(%rax), %rax
	movl	(%rax,%rcx,8), %ebx
	movl	4(%rax,%rcx,8), %r15d
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_pvr2_trace
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*(%rax)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_8:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pvr2_trace                     ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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 cx2584x update..."

	.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 cx2584x set_input: Invalid routing scheme (%u) and/or input (%d)"

L_.str.2:                               ## @.str.2
	.asciz	"subdev cx2584x set_input vid=0x%x aud=0x%x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_cx25840_subdev_update     ; -- Begin function pvr2_cx25840_subdev_update
	.p2align	2
_pvr2_cx25840_subdev_update:            ; @pvr2_cx25840_subdev_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _PVR2_TRACE_CHIPS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PVR2_TRACE_CHIPS@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pvr2_trace
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	w21, [x8]
Lloh4:
	adrp	x23, _routing_schemes@GOTPAGE
Lloh5:
	ldr	x23, [x23, _routing_schemes@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.hs	LBB0_7
; %bb.3:
	ldr	x8, [x23]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	w9, [x20]
	tbnz	w9, #31, LBB0_7
; %bb.5:
	ldr	w10, [x8]
	cmp	w9, w10
	b.ge	LBB0_7
; %bb.6:
	ldr	x8, [x8, #8]
	add	x8, x8, x9, lsl #3
	ldp	w20, w21, [x8]
	ldr	w0, [x22]
	stp	x20, x21, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_pvr2_trace
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	blr	x8
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x4, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	br	x4
LBB0_7:
Lloh8:
	adrp	x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w8, [x20]
	stp	x21, x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_pvr2_trace
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_TRACE_CHIPS,4,2           ; @PVR2_TRACE_CHIPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subdev cx2584x update..."

	.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 cx2584x set_input: Invalid routing scheme (%u) and/or input (%d)"

l_.str.2:                               ; @.str.2
	.asciz	"subdev cx2584x set_input vid=0x%x aud=0x%x"

.subsections_via_symbols
