	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_of_find_panel_or_bridge    ## -- Begin function drm_of_find_panel_or_bridge
	.p2align	4, 0x90
_drm_of_find_panel_or_bridge:           ## @drm_of_find_panel_or_bridge
	.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	%r8, %r15
	movq	%rcx, %rbx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.1:
	testq	%r15, %r15
	jne	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	$0, (%rbx)
LBB0_5:
	callq	_of_graph_get_remote_node
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_of_device_is_available
	testl	%eax, %eax
	je	LBB0_14
## %bb.7:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_of_drm_find_panel
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_18
## %bb.9:
	movq	$0, (%rbx)
LBB0_10:
	movl	%r12d, %ebx
	negl	%ebx
	testq	%r15, %r15
	je	LBB0_21
## %bb.11:
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.12:
	movq	%r14, %rdi
	callq	_of_drm_find_bridge
	movq	%rax, (%r15)
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovnel	%ecx, %ebx
	jmp	LBB0_21
LBB0_14:
	movq	%r14, %rdi
	callq	_of_node_put
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	testq	%r15, %r15
	je	LBB0_20
LBB0_19:
	movq	$0, (%r15)
LBB0_20:
	xorl	%ebx, %ebx
LBB0_21:
	movq	%r14, %rdi
	callq	_of_node_put
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_of_find_panel_or_bridge    ; -- Begin function drm_of_find_panel_or_bridge
	.p2align	2
_drm_of_find_panel_or_bridge:           ; @drm_of_find_panel_or_bridge
	.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	x20, x4
	mov	x21, x3
Lloh0:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	cbnz	x3, LBB0_3
; %bb.1:
	cbnz	x20, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_3:
	cbz	x21, LBB0_5
; %bb.4:
	str	xzr, [x21]
LBB0_5:
	bl	_of_graph_get_remote_node
	cbz	x0, LBB0_14
; %bb.6:
	mov	x19, x0
	bl	_of_device_is_available
	cbz	w0, LBB0_13
; %bb.7:
	cbz	x21, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_of_drm_find_panel
	str	x0, [x21]
	bl	_IS_ERR
	cbz	w0, LBB0_17
; %bb.9:
	str	xzr, [x21]
LBB0_10:
	neg	w21, w22
	cbz	x20, LBB0_20
; %bb.11:
	cbz	w22, LBB0_18
; %bb.12:
	mov	x0, x19
	bl	_of_drm_find_bridge
	str	x0, [x20]
	cmp	x0, #0
	csel	w21, w21, wzr, eq
	b	LBB0_20
LBB0_13:
	mov	x0, x19
	bl	_of_node_put
LBB0_14:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_16:
	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
LBB0_17:
	cbz	x20, LBB0_19
LBB0_18:
	mov	w21, #0
	str	xzr, [x20]
	b	LBB0_20
LBB0_19:
	mov	w21, #0
LBB0_20:
	mov	x0, x19
	bl	_of_node_put
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
