	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_dcu_attach_panel
_fsl_dcu_attach_panel:                  ## @fsl_dcu_attach_panel
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	24(%rdi), %r13
	leaq	16(%rdi), %r14
	movq	%r13, 8(%rdi)
	movl	4(%rdi), %edi
	movq	_DRM_MODE_CONNECTOR_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_fsl_dcu_drm_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rsi
	callq	_drm_connector_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_drm_connector_helper_add
	movq	%r14, %rdi
	callq	_drm_connector_register
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_drm_connector_attach_encoder
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_drm_panel_attach
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_9
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_5:
	movl	%eax, %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_drm_connector_unregister
LBB0_10:
	movq	%r14, %rdi
	callq	_drm_connector_cleanup
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_fsl_dcu_drm_connector_funcs,4,2 ## @fsl_dcu_drm_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ## @DRM_MODE_CONNECTOR_LVDS
	.comm	_connector_helper_funcs,4,2     ## @connector_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to attach panel\n"

	.no_dead_strip	_fsl_dcu_attach_panel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_dcu_attach_panel
_fsl_dcu_attach_panel:                  ; @fsl_dcu_attach_panel
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x20, x0
	add	x23, x0, #24
	add	x19, x0, #16
	str	x23, [x0, #8]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x2, _fsl_dcu_drm_connector_funcs@GOTPAGE
Lloh4:
	ldr	x2, [x2, _fsl_dcu_drm_connector_funcs@GOTPAGEOFF]
	mov	x1, x19
	bl	_drm_connector_init
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh5:
	adrp	x1, _connector_helper_funcs@GOTPAGE
Lloh6:
	ldr	x1, [x1, _connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_connector_helper_add
	mov	x0, x19
	bl	_drm_connector_register
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x0, x19
	mov	x1, x23
	bl	_drm_connector_attach_encoder
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x0, x22
	mov	x1, x19
	bl	_drm_panel_attach
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.4:
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_5:
	mov	x21, x0
	b	LBB0_10
LBB0_6:
	mov	x21, x0
	b	LBB0_9
LBB0_7:
	mov	x21, x0
LBB0_8:
	mov	x0, x19
	bl	_drm_connector_unregister
LBB0_9:
	mov	x0, x19
	bl	_drm_connector_cleanup
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_fsl_dcu_drm_connector_funcs,4,2 ; @fsl_dcu_drm_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ; @DRM_MODE_CONNECTOR_LVDS
	.comm	_connector_helper_funcs,4,2     ; @connector_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to attach panel\n"

	.no_dead_strip	_fsl_dcu_attach_panel
.subsections_via_symbols
