	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_drv_add_endpoints
_sun4i_drv_add_endpoints:               ## @sun4i_drv_add_endpoints
	.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	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rcx, %rdi
	callq	_sun4i_drv_node_is_frontend
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_of_device_is_available
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_sun4i_drv_node_is_connector
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	movq	%rbx, %rdi
	callq	_sun4i_drv_node_is_frontend
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_sun4i_drv_node_is_deu
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_sun4i_drv_node_is_supported_frontend
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_of_device_is_available
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DRM_DEBUG_DRIVER
	movq	_compare_of@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	_drm_of_component_match_add
	movl	$1, %r13d
LBB0_9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_sun4i_drv_traverse_endpoints
	movq	%rbx, %rdi
	callq	_sun4i_drv_node_is_tcon_top
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$3, %edx
	callq	_sun4i_drv_traverse_endpoints
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$5, %edx
	callq	_sun4i_drv_traverse_endpoints
	jmp	LBB0_11
LBB0_2:
	xorl	%r13d, %r13d
LBB0_11:
	movl	%r13d, %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	"Adding component %pOF\n"

	.comm	_compare_of,4,2                 ## @compare_of
	.no_dead_strip	_sun4i_drv_add_endpoints
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_drv_add_endpoints
_sun4i_drv_add_endpoints:               ; @sun4i_drv_add_endpoints
	.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	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x3
	bl	_sun4i_drv_node_is_frontend
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_of_device_is_available
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_sun4i_drv_node_is_connector
	cbz	x0, LBB0_4
LBB0_3:
	mov	w21, #0
	b	LBB0_12
LBB0_4:
	mov	x0, x19
	bl	_sun4i_drv_node_is_frontend
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_sun4i_drv_node_is_deu
	cbz	x0, LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_sun4i_drv_node_is_supported_frontend
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_of_device_is_available
	cbz	x0, LBB0_9
LBB0_8:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_DRIVER
Lloh2:
	adrp	x8, _compare_of@GOTPAGE
Lloh3:
	ldr	x8, [x8, _compare_of@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x19
	bl	_drm_of_component_match_add
	mov	w21, #1
	b	LBB0_10
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_sun4i_drv_traverse_endpoints
	mov	x0, x19
	bl	_sun4i_drv_node_is_tcon_top
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #3
	bl	_sun4i_drv_traverse_endpoints
	mov	x0, x20
	mov	x1, x19
	mov	w2, #5
	bl	_sun4i_drv_traverse_endpoints
LBB0_12:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adding component %pOF\n"

	.comm	_compare_of,4,2                 ; @compare_of
	.no_dead_strip	_sun4i_drv_add_endpoints
.subsections_via_symbols
