	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_lvds_attach
_rcar_lvds_attach:                      ## @rcar_lvds_attach
	.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	%rdi, %rbx
	callq	_bridge_to_rcar_lvds
	movq	8(%rbx), %r14
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.6:
	movq	%r14, %rdi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_bridge_attach              ## TAILCALL
LBB0_1:
	movq	%rax, %r12
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movq	%r12, %r15
	addq	$16, %r15
	movl	(%rbx), %edi
	movq	_DRM_MODE_CONNECTOR_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_rcar_lvds_conn_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rsi
	callq	_drm_connector_init
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	_rcar_lvds_conn_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_drm_connector_helper_add
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_drm_connector_attach_encoder
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	movl	(%r12), %edi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_panel_attach               ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rcar_lvds_conn_funcs,4,2       ## @rcar_lvds_conn_funcs
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ## @DRM_MODE_CONNECTOR_LVDS
	.comm	_rcar_lvds_conn_helper_funcs,4,2 ## @rcar_lvds_conn_helper_funcs
	.no_dead_strip	_rcar_lvds_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_lvds_attach
_rcar_lvds_attach:                      ; @rcar_lvds_attach
	.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, x0
	bl	_bridge_to_rcar_lvds
	ldr	x20, [x22, #8]
	ldr	x1, [x0, #8]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x2, 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
	b	_drm_bridge_attach
LBB0_2:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.3:
	add	x21, x19, #16
	ldr	w0, [x22]
Lloh0:
	adrp	x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x2, _rcar_lvds_conn_funcs@GOTPAGE
Lloh4:
	ldr	x2, [x2, _rcar_lvds_conn_funcs@GOTPAGEOFF]
	mov	x1, x21
	bl	_drm_connector_init
	tbnz	w0, #31, LBB0_7
; %bb.4:
Lloh5:
	adrp	x1, _rcar_lvds_conn_helper_funcs@GOTPAGE
Lloh6:
	ldr	x1, [x1, _rcar_lvds_conn_helper_funcs@GOTPAGEOFF]
	mov	x0, x21
	bl	_drm_connector_helper_add
	mov	x0, x21
	mov	x1, x20
	bl	_drm_connector_attach_encoder
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	w0, [x19]
	mov	x1, 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
	b	_drm_panel_attach
LBB0_6:
	mov	w0, #0
LBB0_7:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_rcar_lvds_conn_funcs,4,2       ; @rcar_lvds_conn_funcs
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ; @DRM_MODE_CONNECTOR_LVDS
	.comm	_rcar_lvds_conn_helper_funcs,4,2 ; @rcar_lvds_conn_helper_funcs
	.no_dead_strip	_rcar_lvds_attach
.subsections_via_symbols
