	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvin_set_channel_routing       ## -- Begin function rvin_set_channel_routing
	.p2align	4, 0x90
_rvin_set_channel_routing:              ## @rvin_set_channel_routing
	.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	%esi, %r15d
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_VNMC_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_rvin_read
	movl	%eax, %r14d
	movq	_VNMC_VUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%r14d, %esi
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_rvin_write
	movq	_VNCSI_IFMD_DES1@GOTPCREL(%rip), %rax
	movq	_VNCSI_IFMD_DES0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_VNCSI_IFMD_CSI_CHSEL
	orl	%eax, %ebx
	movq	_VNCSI_IFMD_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rvin_write
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_vin_dbg
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_rvin_write
	movl	(%r12), %edi
	callq	_pm_runtime_put
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VNMC_REG,4,2                   ## @VNMC_REG
	.comm	_VNMC_VUP,4,2                   ## @VNMC_VUP
	.comm	_VNCSI_IFMD_DES1,4,2            ## @VNCSI_IFMD_DES1
	.comm	_VNCSI_IFMD_DES0,4,2            ## @VNCSI_IFMD_DES0
	.comm	_VNCSI_IFMD_REG,4,2             ## @VNCSI_IFMD_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set IFMD 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvin_set_channel_routing       ; -- Begin function rvin_set_channel_routing
	.p2align	2
_rvin_set_channel_routing:              ; @rvin_set_channel_routing
	.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, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x22, _VNMC_REG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VNMC_REG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rvin_read
	mov	x21, x0
Lloh2:
	adrp	x8, _VNMC_VUP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VNMC_VUP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w2, [x22]
	mov	x0, x19
	bl	_rvin_write
Lloh5:
	adrp	x8, _VNCSI_IFMD_DES1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VNCSI_IFMD_DES1@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _VNCSI_IFMD_DES0@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VNCSI_IFMD_DES0@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w23, w9, w8
	mov	x0, x20
	bl	_VNCSI_IFMD_CSI_CHSEL
	orr	w20, w23, w0
Lloh11:
	adrp	x8, _VNCSI_IFMD_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VNCSI_IFMD_REG@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_rvin_write
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_vin_dbg
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_rvin_write
	ldr	w0, [x19]
	bl	_pm_runtime_put
	mov	w0, #0
LBB0_2:
	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 AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VNMC_REG,4,2                   ; @VNMC_REG
	.comm	_VNMC_VUP,4,2                   ; @VNMC_VUP
	.comm	_VNCSI_IFMD_DES1,4,2            ; @VNCSI_IFMD_DES1
	.comm	_VNCSI_IFMD_DES0,4,2            ; @VNCSI_IFMD_DES0
	.comm	_VNCSI_IFMD_REG,4,2             ; @VNCSI_IFMD_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set IFMD 0x%x\n"

.subsections_via_symbols
