	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_dpi_init_bridge
_vc4_dpi_init_bridge:                   ## @vc4_dpi_init_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %rcx
	leaq	-24(%rbp), %r8
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_drm_of_find_panel_or_bridge
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	cmovnel	%eax, %ebx
	jmp	LBB0_6
LBB0_2:
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	movq	_DRM_MODE_CONNECTOR_DPI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_panel_bridge_add
	movq	%rax, %rsi
	movq	%rax, -24(%rbp)
	jmp	LBB0_5
LBB0_3:
	movq	-24(%rbp), %rsi
LBB0_5:
	movl	(%r14), %edi
	xorl	%edx, %edx
	callq	_drm_bridge_attach
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DRM_MODE_CONNECTOR_DPI,4,2     ## @DRM_MODE_CONNECTOR_DPI
	.no_dead_strip	_vc4_dpi_init_bridge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_dpi_init_bridge
_vc4_dpi_init_bridge:                   ; @vc4_dpi_init_bridge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	add	x3, sp, #8
	mov	x4, sp
	mov	w1, #0
	mov	w2, #0
	bl	_drm_of_find_panel_or_bridge
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	csel	w0, wzr, w0, eq
	b	LBB0_6
LBB0_2:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _DRM_MODE_CONNECTOR_DPI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DPI@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_drm_panel_bridge_add
	mov	x1, x0
	str	x0, [sp]
	b	LBB0_5
LBB0_4:
	ldr	x1, [sp]
LBB0_5:
	ldr	w0, [x19]
	mov	x2, #0
	bl	_drm_bridge_attach
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DRM_MODE_CONNECTOR_DPI,4,2     ; @DRM_MODE_CONNECTOR_DPI
	.no_dead_strip	_vc4_dpi_init_bridge
.subsections_via_symbols
