	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rockchip_drm_endpoint_is_subdriver ## -- Begin function rockchip_drm_endpoint_is_subdriver
	.p2align	4, 0x90
_rockchip_drm_endpoint_is_subdriver:    ## @rockchip_drm_endpoint_is_subdriver
	.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
	callq	_of_graph_get_remote_port_parent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_find_device_by_node
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_of_node_put
	testq	%r14, %r14
	je	LBB0_1
## %bb.3:
	movq	(%r14), %r12
	testq	%r12, %r12
	je	LBB0_9
## %bb.4:
	movq	_num_rockchip_sub_drivers@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	movq	_rockchip_sub_drivers@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %r15
	movq	%r12, %rdi
	callq	_to_platform_driver
	cmpq	%rax, %r15
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	_num_rockchip_sub_drivers@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_9:
	movq	%r14, %rdi
	callq	_platform_device_put
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	callq	_platform_device_put
	movl	$1, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_num_rockchip_sub_drivers,4,2   ## @num_rockchip_sub_drivers
	.comm	_rockchip_sub_drivers,8,3       ## @rockchip_sub_drivers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rockchip_drm_endpoint_is_subdriver ; -- Begin function rockchip_drm_endpoint_is_subdriver
	.p2align	2
_rockchip_drm_endpoint_is_subdriver:    ; @rockchip_drm_endpoint_is_subdriver
	.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
	bl	_of_graph_get_remote_port_parent
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	bl	_of_find_device_by_node
	mov	x19, x0
	mov	x0, x20
	bl	_of_node_put
	cbz	x19, LBB0_8
; %bb.2:
	ldr	x20, [x19]
	cbz	x20, LBB0_7
; %bb.3:
Lloh0:
	adrp	x21, _num_rockchip_sub_drivers@GOTPAGE
Lloh1:
	ldr	x21, [x21, _num_rockchip_sub_drivers@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x22, #0
Lloh2:
	adrp	x23, _rockchip_sub_drivers@GOTPAGE
Lloh3:
	ldr	x23, [x23, _rockchip_sub_drivers@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x24, [x8, x22, lsl #3]
	mov	x0, x20
	bl	_to_platform_driver
	cmp	x24, x0
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_7:
	mov	x0, x19
	bl	_platform_device_put
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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_10:
	mov	x0, x19
	bl	_platform_device_put
	mov	w0, #1
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_num_rockchip_sub_drivers,4,2   ; @num_rockchip_sub_drivers
	.comm	_rockchip_sub_drivers,8,3       ; @rockchip_sub_drivers
.subsections_via_symbols
