	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_display_components
_add_display_components:                ## @add_display_components
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_of_device_is_compatible
	movq	%r15, %r12
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:
	movl	(%r15), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_of_platform_populate
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_DRM_DEV_ERROR
	jmp	LBB0_10
LBB0_4:
	movq	_compare_name_mdp@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_device_find_child
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_put_device
	movq	_compare_of@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_drm_of_component_match_add
LBB0_7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_add_components_mdp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_of_platform_depopulate
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_DRM_DEV_ERROR
	movq	%r15, %rdi
	callq	_of_platform_depopulate
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %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	"qcom,mdss"

L_.str.1:                               ## @.str.1
	.asciz	"qcom,sdm845-mdss"

L_.str.2:                               ## @.str.2
	.asciz	"failed to populate children devices\n"

	.comm	_compare_name_mdp,4,2           ## @compare_name_mdp
L_.str.3:                               ## @.str.3
	.asciz	"failed to find MDSS MDP node\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_compare_of,4,2                 ## @compare_of
	.no_dead_strip	_add_display_components
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_display_components
_add_display_components:                ; @add_display_components
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_device_is_compatible
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_device_is_compatible
	mov	x21, x19
	cbz	x0, LBB0_6
LBB0_2:
	ldr	w0, [x19]
	mov	x1, #0
	mov	x2, #0
	mov	x3, x19
	bl	_of_platform_populate
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	b	LBB0_9
LBB0_4:
Lloh6:
	adrp	x8, _compare_name_mdp@GOTPAGE
Lloh7:
	ldr	x8, [x8, _compare_name_mdp@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_device_find_child
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
	bl	_put_device
Lloh9:
	adrp	x8, _compare_of@GOTPAGE
Lloh10:
	ldr	x8, [x8, _compare_of@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_drm_of_component_match_add
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	bl	_add_components_mdp
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_of_platform_depopulate
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	mov	x0, x19
	bl	_of_platform_depopulate
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qcom,mdss"

l_.str.1:                               ; @.str.1
	.asciz	"qcom,sdm845-mdss"

l_.str.2:                               ; @.str.2
	.asciz	"failed to populate children devices\n"

	.comm	_compare_name_mdp,4,2           ; @compare_name_mdp
l_.str.3:                               ; @.str.3
	.asciz	"failed to find MDSS MDP node\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_compare_of,4,2                 ; @compare_of
	.no_dead_strip	_add_display_components
.subsections_via_symbols
