	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdp5_setup_interconnect
_mdp5_setup_interconnect:               ## @mdp5_setup_interconnect
	.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	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_of_icc_get
	movq	%rax, %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_icc_get
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_icc_get
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movl	$6400, %edi                     ## imm = 0x1900
	callq	_MBps_to_icc
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_icc_set_bw
	movq	%r15, %rdi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	$6400, %edi                     ## imm = 0x1900
	callq	_MBps_to_icc
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_icc_set_bw
LBB0_5:
	movq	%r14, %rdi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	$6400, %edi                     ## imm = 0x1900
	callq	_MBps_to_icc
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_icc_set_bw
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mdp0-mem"

L_.str.1:                               ## @.str.1
	.asciz	"mdp1-mem"

L_.str.2:                               ## @.str.2
	.asciz	"rotator-mem"

L_.str.3:                               ## @.str.3
	.asciz	"No interconnect support may cause display underflows!\n"

	.no_dead_strip	_mdp5_setup_interconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdp5_setup_interconnect
_mdp5_setup_interconnect:               ; @mdp5_setup_interconnect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_icc_get
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_of_icc_get
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_of_icc_get
	mov	x19, x0
	mov	x0, x21
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	cbz	x21, LBB0_7
; %bb.3:
	mov	w0, #6400
	bl	_MBps_to_icc
	mov	x2, x0
	mov	x0, x21
	mov	w1, #0
	bl	_icc_set_bw
	mov	x0, x20
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_5
; %bb.4:
	mov	w0, #6400
	bl	_MBps_to_icc
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_icc_set_bw
LBB0_5:
	mov	x0, x19
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_8
; %bb.6:
	mov	w0, #6400
	bl	_MBps_to_icc
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_icc_set_bw
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mdp0-mem"

l_.str.1:                               ; @.str.1
	.asciz	"mdp1-mem"

l_.str.2:                               ; @.str.2
	.asciz	"rotator-mem"

l_.str.3:                               ; @.str.3
	.asciz	"No interconnect support may cause display underflows!\n"

	.no_dead_strip	_mdp5_setup_interconnect
.subsections_via_symbols
