	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function modeset_init_intf
_modeset_init_intf:                     ## @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	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	16(%rdi), %r14
	movq	8(%r14), %r13
	movl	(%rsi), %edx
	cmpl	$130, %edx
	je	LBB0_7
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_13
## %bb.2:
	cmpl	$128, %edx
	jne	LBB0_17
## %bb.3:
	cmpl	$0, 12(%r13)
	je	LBB0_22
## %bb.4:
	movl	4(%r15), %esi
	movq	%r12, %rdi
	callq	_mdp5_ctlm_request
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_construct_encoder
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:
	movl	12(%r13), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msm_edp_modeset_init           ## TAILCALL
LBB0_7:
	movl	(%rbx), %edi
	callq	_mdp5_cfg_get_hw_config
	movl	4(%r15), %esi
	movq	%rax, %rdi
	callq	_get_dsi_id_from_intf
	movq	%r13, %rcx
	movl	%eax, %r13d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rdi
	callq	_ARRAY_SIZE
	testl	%r13d, %r13d
	js	LBB0_18
## %bb.8:
	cmpl	%eax, %r13d
	jge	LBB0_18
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	%r13d, %r13d
	cmpl	$0, (%rax,%r13,4)
	je	LBB0_22
## %bb.10:
	movl	4(%r15), %esi
	movq	%r12, %rdi
	callq	_mdp5_ctlm_request
	testq	%rax, %rax
	je	LBB0_20
## %bb.11:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_construct_encoder
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msm_dsi_modeset_init           ## TAILCALL
LBB0_13:
	cmpl	$0, 8(%r13)
	je	LBB0_22
## %bb.14:
	movl	4(%r15), %esi
	movq	%r12, %rdi
	callq	_mdp5_ctlm_request
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_construct_encoder
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_25
LBB0_16:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_17:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_19
LBB0_22:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_18:
	movl	(%r14), %edi
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
LBB0_19:
	callq	_DRM_DEV_ERROR
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	8(%r13), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msm_hdmi_modeset_init          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find dsi from intf %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"unknown intf: %d\n"

	.no_dead_strip	_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 modeset_init_intf
_modeset_init_intf:                     ; @modeset_init_intf
	.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	x21, x0
	ldp	x22, x19, [x0, #8]
	ldr	x24, [x19, #8]
	ldr	w2, [x1]
	cmp	w2, #130
	b.eq	LBB0_7
; %bb.1:
	cmp	w2, #129
	b.eq	LBB0_13
; %bb.2:
	cmp	w2, #128
	b.ne	LBB0_17
; %bb.3:
	ldr	w8, [x24, #12]
	cbz	w8, LBB0_18
; %bb.4:
	ldr	w1, [x20, #4]
	mov	x0, x22
	bl	_mdp5_ctlm_request
	cbz	x0, LBB0_21
; %bb.5:
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_construct_encoder
	mov	x20, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_16
; %bb.6:
	ldr	w0, [x24, #12]
	mov	x1, x19
	mov	x2, x20
	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
	b	_msm_edp_modeset_init
LBB0_7:
	ldr	w0, [x21]
	bl	_mdp5_cfg_get_hw_config
	ldr	w1, [x20, #4]
	bl	_get_dsi_id_from_intf
	mov	x23, x0
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	tbnz	w23, #31, LBB0_19
; %bb.8:
	cmp	w23, w0
	b.ge	LBB0_19
; %bb.9:
	ldr	x8, [x24]
	ldr	w8, [x8, w23, uxtw #2]
	cbz	w8, LBB0_18
; %bb.10:
	ldr	w1, [x20, #4]
	mov	x0, x22
	bl	_mdp5_ctlm_request
	cbz	x0, LBB0_21
; %bb.11:
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_construct_encoder
	mov	x20, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_16
; %bb.12:
	mov	w8, w23
	ldr	x9, [x24]
	ldr	w0, [x9, x8, lsl #2]
	mov	x1, x19
	mov	x2, x20
	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
	b	_msm_dsi_modeset_init
LBB0_13:
	ldr	w8, [x24, #8]
	cbz	w8, LBB0_18
; %bb.14:
	ldr	w1, [x20, #4]
	mov	x0, x22
	bl	_mdp5_ctlm_request
	cbz	x0, LBB0_21
; %bb.15:
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_construct_encoder
	mov	x20, x0
	bl	_IS_ERR
	cbz	w0, LBB0_23
LBB0_16:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_17:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_18:
	mov	w0, #0
	b	LBB0_22
LBB0_19:
	ldr	w0, [x19]
	ldr	w2, [x20, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_20:
	bl	_DRM_DEV_ERROR
LBB0_21:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	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
LBB0_23:
	ldr	w0, [x24, #8]
	mov	x1, x19
	mov	x2, x20
	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
	b	_msm_hdmi_modeset_init
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find dsi from intf %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"unknown intf: %d\n"

	.no_dead_strip	_modeset_init_intf
.subsections_via_symbols
