	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omapdss_device_init_output     ## -- Begin function omapdss_device_init_output
	.p2align	4, 0x90
_omapdss_device_init_output:            ## @omapdss_device_init_output
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	32(%rdi), %rax
	movl	(%rax), %ebx
	movl	40(%rdi), %edi
	callq	_ffs
	leaq	-1(%rax), %rsi
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_of_graph_get_remote_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_omapdss_find_device_by_node
	movq	%rax, 24(%r15)
	movq	%rbx, %rdi
	callq	_of_drm_find_bridge
	movl	%eax, 16(%r15)
	movq	%rbx, %rdi
	callq	_of_drm_find_panel
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	$0, 8(%r15)
LBB0_4:
	movq	%rbx, %rdi
	callq	_of_node_put
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%r15), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rax), %rcx
	je	LBB0_11
## %bb.6:
	movq	32(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	24(%r15), %rdi
	callq	_omapdss_device_put
	movq	$0, 24(%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_1:
	movq	32(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_11
LBB0_7:
	xorl	%r14d, %r14d
	cmpl	$0, 16(%r15)
	jne	LBB0_11
## %bb.8:
	cmpq	$0, 8(%r15)
	je	LBB0_9
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find video sink\n"

L_.str.1:                               ## @.str.1
	.asciz	"output type and display type don't match\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omapdss_device_init_output     ; -- Begin function omapdss_device_init_output
	.p2align	2
_omapdss_device_init_output:            ; @omapdss_device_init_output
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	w20, [x8]
	ldr	w0, [x0, #40]
	bl	_ffs
	sub	x1, x0, #1
	mov	x0, x20
	mov	w2, #0
	bl	_of_graph_get_remote_node
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	bl	_omapdss_find_device_by_node
	str	x0, [x19, #24]
	mov	x0, x20
	bl	_of_drm_find_bridge
	str	w0, [x19, #16]
	mov	x0, x20
	bl	_of_drm_find_panel
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	str	xzr, [x19, #8]
LBB0_3:
	mov	x0, x20
	bl	_of_node_put
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	x9, [x19]
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_10
; %bb.5:
	ldr	x0, [x19, #32]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #24]
	bl	_omapdss_device_put
	str	xzr, [x19, #24]
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_7:
	ldr	x0, [x19, #32]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_11
LBB0_8:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh6:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find video sink\n"

l_.str.1:                               ; @.str.1
	.asciz	"output type and display type don't match\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
.subsections_via_symbols
