	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdp4_modeset_init_intf
_mdp4_modeset_init_intf:                ## @mdp4_modeset_init_intf
	.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	(%rdi), %rbx
	movq	8(%rbx), %r13
	cmpl	$128, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$130, %esi
	je	LBB0_10
## %bb.2:
	cmpl	$129, %esi
	jne	LBB0_13
## %bb.3:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_of_graph_get_remote_node
	testq	%rax, %rax
	je	LBB0_25
## %bb.4:
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_mdp4_lcdc_encoder_init
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_19
## %bb.5:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_mdp4_dtv_encoder_init
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_14
## %bb.7:
	movq	(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	%r15, %rdi
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	movq	(%r13), %rax
	xorl	%r14d, %r14d
	cmpl	$0, (%rax)
	je	LBB0_25
## %bb.11:
	movq	%rbx, %rdi
	callq	_mdp4_dsi_encoder_init
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_21
## %bb.12:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_17
LBB0_13:
	movq	(%rbx), %rdi
	leaq	L_.str.6(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_25
LBB0_14:
	movl	$2, (%r15)
	movl	24(%r13), %edi
	testl	%edi, %edi
	je	LBB0_23
## %bb.15:
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_msm_hdmi_modeset_init
	testl	%eax, %eax
	je	LBB0_23
## %bb.16:
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
LBB0_17:
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	jmp	LBB0_25
LBB0_19:
	movq	_DMA_P@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_mdp4_lvds_connector_init
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_24
## %bb.20:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	%r12, %rdi
	jmp	LBB0_9
LBB0_21:
	movq	_DMA_P@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, (%r15)
	movq	16(%r13), %rax
	movslq	8(%r13), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 8(%r13)
	movq	%r15, (%rax,%rcx,8)
	movq	(%r13), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_msm_dsi_modeset_init
	testl	%eax, %eax
	je	LBB0_25
## %bb.22:
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movl	%r15d, %r14d
	jmp	LBB0_25
LBB0_23:
	movq	16(%r13), %rax
	movslq	8(%r13), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 8(%r13)
	movq	%r15, (%rax,%rcx,8)
	xorl	%r14d, %r14d
	jmp	LBB0_25
LBB0_24:
	movq	16(%r13), %rax
	movslq	8(%r13), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 8(%r13)
	movq	%r15, (%rax,%rcx,8)
	movq	32(%r13), %rax
	movslq	28(%r13), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 28(%r13)
	movq	%r12, (%rax,%rcx,8)
LBB0_25:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to construct LCDC encoder\n"

	.comm	_DMA_P,4,2                      ## @DMA_P
L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize LVDS connector\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to construct DTV encoder\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to initialize HDMI: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to construct DSI encoder: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to initialize DSI: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Invalid or unsupported interface\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mdp4_modeset_init_intf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdp4_modeset_init_intf
_mdp4_modeset_init_intf:                ; @mdp4_modeset_init_intf
	.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
	ldr	x19, [x0]
	ldr	x23, [x19, #8]
	cmp	w1, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w1, #130
	b.eq	LBB0_10
; %bb.2:
	cmp	w1, #129
	b.ne	LBB0_13
; %bb.3:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_of_graph_get_remote_node
	mov	x20, x0
	cbz	x0, LBB0_25
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_mdp4_lcdc_encoder_init
	mov	x21, x0
	bl	_IS_ERR
	cbz	w0, LBB0_18
; %bb.5:
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_mdp4_dtv_encoder_init
	mov	x21, x0
	bl	_IS_ERR
	cbz	w0, LBB0_14
; %bb.7:
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	bl	_DRM_DEV_ERROR
	mov	x0, x21
LBB0_9:
	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
	b	_PTR_ERR
LBB0_10:
	ldr	x8, [x23]
	ldr	w8, [x8]
	cbz	w8, LBB0_17
; %bb.11:
	mov	x0, x19
	bl	_mdp4_dsi_encoder_init
	mov	x20, x0
	bl	_IS_ERR
	cbz	w0, LBB0_20
; %bb.12:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x0, [x19]
	str	x20, [sp]
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_22
LBB0_13:
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.str.6@PAGE
Lloh7:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_DRM_DEV_ERROR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_25
LBB0_14:
	mov	w8, #2
	str	w8, [x21]
	ldr	w0, [x23, #24]
	cbz	w0, LBB0_23
; %bb.15:
	mov	x1, x19
	mov	x2, x21
	bl	_msm_hdmi_modeset_init
	cbz	w0, LBB0_23
; %bb.16:
	mov	x20, x0
	ldr	x0, [x19]
	str	x20, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DRM_DEV_ERROR
	b	LBB0_25
LBB0_17:
	mov	w20, #0
	b	LBB0_25
LBB0_18:
Lloh13:
	adrp	x8, _DMA_P@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_P@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mdp4_lvds_connector_init
	mov	x22, x0
	bl	_IS_ERR
	cbz	w0, LBB0_24
; %bb.19:
	ldr	x0, [x19]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DRM_DEV_ERROR
	mov	x0, x22
	b	LBB0_9
LBB0_20:
Lloh18:
	adrp	x8, _DMA_P@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DMA_P@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x20]
	ldr	x8, [x23, #16]
	ldrsw	x9, [x23, #8]
	add	w10, w9, #1
	str	w10, [x23, #8]
	str	x20, [x8, x9, lsl #3]
	ldr	x8, [x23]
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x20
	bl	_msm_dsi_modeset_init
	mov	x20, x0
	cbz	w0, LBB0_25
; %bb.21:
	ldr	x0, [x19]
	str	x20, [sp]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_22:
	bl	_DRM_DEV_ERROR
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_25
LBB0_23:
	mov	w20, #0
	ldr	x8, [x23, #16]
	ldrsw	x9, [x23, #8]
	add	w10, w9, #1
	str	w10, [x23, #8]
	str	x21, [x8, x9, lsl #3]
	b	LBB0_25
LBB0_24:
	mov	w20, #0
	ldr	x8, [x23, #16]
	ldrsw	x9, [x23, #8]
	add	w10, w9, #1
	str	w10, [x23, #8]
	str	x21, [x8, x9, lsl #3]
	ldr	x8, [x23, #32]
	ldrsw	x9, [x23, #28]
	add	w10, w9, #1
	str	w10, [x23, #28]
	str	x22, [x8, x9, lsl #3]
LBB0_25:
	mov	x0, x20
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to construct LCDC encoder\n"

	.comm	_DMA_P,4,2                      ; @DMA_P
l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize LVDS connector\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to construct DTV encoder\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to initialize HDMI: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to construct DSI encoder: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to initialize DSI: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Invalid or unsupported interface\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mdp4_modeset_init_intf
.subsections_via_symbols
