	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_drm_platform_of_probe
_rockchip_drm_platform_of_probe:        ## @rockchip_drm_platform_of_probe
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_14
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movl	$1, %ebx
	leaq	L_.str(%rip), %r13
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	callq	_DRM_DEV_DEBUG
	movq	_is_support_iommu@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_of_node_put
	movl	$1, %r14d
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_of_node_put
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_of_parse_phandle
	movq	%rax, %r15
	incl	%ebx
	testq	%rax, %rax
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	callq	_of_device_is_available
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdi
	callq	_of_device_is_available
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_6
LBB0_9:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_10
## %bb.11:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jne	LBB0_15
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_DRM_DEV_ERROR
LBB0_14:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ports"

L_.str.1:                               ## @.str.1
	.asciz	"iommus"

L_.str.2:                               ## @.str.2
	.asciz	"no iommu attached for %pOF, using non-iommu buffers\n"

	.comm	_is_support_iommu,4,2           ## @is_support_iommu
L_.str.3:                               ## @.str.3
	.asciz	"missing 'ports' property\n"

L_.str.4:                               ## @.str.4
	.asciz	"No available vop found for display-subsystem.\n"

	.no_dead_strip	_rockchip_drm_platform_of_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_drm_platform_of_probe
_rockchip_drm_platform_of_probe:        ; @rockchip_drm_platform_of_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x20, [x0]
	cbz	x20, LBB0_15
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_12
; %bb.2:
	mov	x21, x0
	mov	w27, #0
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
	mov	w24, #1
Lloh6:
	adrp	x28, _is_support_iommu@GOTPAGE
Lloh7:
	ldr	x28, [x28, _is_support_iommu@GOTPAGEOFF]
	mov	x26, x0
Lloh8:
	adrp	x25, l_.str.2@PAGE
Lloh9:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x26]
	mov	x0, x19
	mov	x1, x25
	bl	_DRM_DEV_DEBUG
	str	wzr, [x28]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	bl	_of_node_put
	mov	w27, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	bl	_of_node_put
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	bl	_of_parse_phandle
	mov	x26, x0
	add	w24, w24, #1
	cbz	x0, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x26]
	bl	_of_device_is_available
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x26]
	mov	x1, x23
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x27, x0
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x27]
	bl	_of_device_is_available
	cbnz	w0, LBB0_4
	b	LBB0_3
LBB0_9:
	cbz	x21, LBB0_12
; %bb.10:
	cbz	w27, LBB0_13
; %bb.11:
	mov	w0, #0
	b	LBB0_16
LBB0_12:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_DRM_DEV_ERROR
LBB0_15:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ports"

l_.str.1:                               ; @.str.1
	.asciz	"iommus"

l_.str.2:                               ; @.str.2
	.asciz	"no iommu attached for %pOF, using non-iommu buffers\n"

	.comm	_is_support_iommu,4,2           ; @is_support_iommu
l_.str.3:                               ; @.str.3
	.asciz	"missing 'ports' property\n"

l_.str.4:                               ; @.str.4
	.asciz	"No available vop found for display-subsystem.\n"

	.no_dead_strip	_rockchip_drm_platform_of_probe
.subsections_via_symbols
