	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_du_encoders_init_one
_rcar_du_encoders_init_one:             ## @rcar_du_encoders_init_one
	.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	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdx), %rdi
	callq	_of_graph_get_remote_port_parent
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_of_device_is_available
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_rcar_du_encoder_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_9
## %bb.7:
	movq	_ENOLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_9
## %bb.8:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	callq	_dev_warn
LBB0_9:
	movq	%r12, %rdi
	callq	_of_node_put
	jmp	LBB0_10
LBB0_1:
	movl	(%r15), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_2
LBB0_4:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	callq	_dev_dbg
	movq	%r12, %rdi
	callq	_of_node_put
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %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	"unconnected endpoint %pOF, skipping\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"connected entity %pOF is disabled, skipping\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_ENOLINK,4,2                    ## @ENOLINK
L_.str.2:                               ## @.str.2
	.asciz	"failed to initialize encoder %pOF on output %u (%d), skipping\n"

	.no_dead_strip	_rcar_du_encoders_init_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_du_encoders_init_one
_rcar_du_encoders_init_one:             ; @rcar_du_encoders_init_one
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x2]
	bl	_of_graph_get_remote_port_parent
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_of_device_is_available
	cbz	w0, LBB0_8
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_rcar_du_encoder_init
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w22, w8
	b.eq	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _ENOLINK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOLINK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w22, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	mov	x4, x22
	bl	_dev_warn
LBB0_6:
	mov	x0, x19
	bl	_of_node_put
	b	LBB0_10
LBB0_7:
	ldr	w0, [x21]
	ldr	x2, [x22]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	b	LBB0_9
LBB0_8:
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
	mov	x0, x19
	bl	_of_node_put
LBB0_9:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unconnected endpoint %pOF, skipping\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"connected entity %pOF is disabled, skipping\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_ENOLINK,4,2                    ; @ENOLINK
l_.str.2:                               ; @.str.2
	.asciz	"failed to initialize encoder %pOF on output %u (%d), skipping\n"

	.no_dead_strip	_rcar_du_encoders_init_one
.subsections_via_symbols
