	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun6i_dsi_bind
_sun6i_dsi_bind:                        ## @sun6i_dsi_bind
	.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	%rdx, %r15
	movq	(%rdx), %r14
	callq	_dev_get_drvdata
	cmpl	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 16(%rax)
	movq	_sun6i_dsi_enc_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_drm_encoder_helper_add
	movq	_DRM_MODE_ENCODER_DSI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_sun6i_dsi_enc_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_7
LBB0_1:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_4:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, (%rbx)
	movq	%rbx, %r12
	addq	$4, %r12
	movq	_sun6i_dsi_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_drm_connector_helper_add
	movq	_DRM_MODE_CONNECTOR_DSI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_sun6i_dsi_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_drm_connector_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_drm_encoder_cleanup
	movl	%r15d, %r14d
	jmp	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_drm_connector_attach_encoder
	movl	8(%rbx), %edi
	movq	%r12, %rsi
	callq	_drm_panel_attach
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_sun6i_dsi_enc_helper_funcs,4,2 ## @sun6i_dsi_enc_helper_funcs
	.comm	_sun6i_dsi_enc_funcs,4,2        ## @sun6i_dsi_enc_funcs
	.comm	_DRM_MODE_ENCODER_DSI,4,2       ## @DRM_MODE_ENCODER_DSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't initialise the DSI encoder\n"

	.comm	_sun6i_dsi_connector_helper_funcs,4,2 ## @sun6i_dsi_connector_helper_funcs
	.comm	_sun6i_dsi_connector_funcs,4,2  ## @sun6i_dsi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_DSI,4,2     ## @DRM_MODE_CONNECTOR_DSI
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't initialise the DSI connector\n"

	.no_dead_strip	_sun6i_dsi_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun6i_dsi_bind
_sun6i_dsi_bind:                        ; @sun6i_dsi_bind
	.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, x2
	ldr	x21, [x2]
	bl	_dev_get_drvdata
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	str	x21, [x0, #16]
Lloh0:
	adrp	x1, _sun6i_dsi_enc_helper_funcs@GOTPAGE
Lloh1:
	ldr	x1, [x1, _sun6i_dsi_enc_helper_funcs@GOTPAGEOFF]
	bl	_drm_encoder_helper_add
Lloh2:
	adrp	x8, _DRM_MODE_ENCODER_DSI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_MODE_ENCODER_DSI@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x2, _sun6i_dsi_enc_funcs@GOTPAGE
Lloh6:
	ldr	x2, [x2, _sun6i_dsi_enc_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	mov	x4, #0
	bl	_drm_encoder_init
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	w0, [x19, #12]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_3:
Lloh9:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_4:
	bl	_BIT
	mov	x22, x19
	str	w0, [x22], #4
Lloh12:
	adrp	x1, _sun6i_dsi_connector_helper_funcs@GOTPAGE
Lloh13:
	ldr	x1, [x1, _sun6i_dsi_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_connector_helper_add
Lloh14:
	adrp	x8, _DRM_MODE_CONNECTOR_DSI@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DSI@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
Lloh17:
	adrp	x2, _sun6i_dsi_connector_funcs@GOTPAGE
Lloh18:
	ldr	x2, [x2, _sun6i_dsi_connector_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x22
	bl	_drm_connector_init
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #12]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_drm_encoder_cleanup
	b	LBB0_7
LBB0_6:
	mov	x0, x22
	mov	x1, x19
	bl	_drm_connector_attach_encoder
	ldr	w0, [x19, #8]
	mov	x1, x22
	bl	_drm_panel_attach
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_sun6i_dsi_enc_helper_funcs,4,2 ; @sun6i_dsi_enc_helper_funcs
	.comm	_sun6i_dsi_enc_funcs,4,2        ; @sun6i_dsi_enc_funcs
	.comm	_DRM_MODE_ENCODER_DSI,4,2       ; @DRM_MODE_ENCODER_DSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't initialise the DSI encoder\n"

	.comm	_sun6i_dsi_connector_helper_funcs,4,2 ; @sun6i_dsi_connector_helper_funcs
	.comm	_sun6i_dsi_connector_funcs,4,2  ; @sun6i_dsi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_DSI,4,2     ; @DRM_MODE_CONNECTOR_DSI
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't initialise the DSI connector\n"

	.no_dead_strip	_sun6i_dsi_bind
.subsections_via_symbols
