	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_pd_register
_imx_pd_register:                       ## @imx_pd_register
	.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	%rsi, %r12
	movq	%rdi, %r15
	leaq	32(%rsi), %r14
	movq	8(%rsi), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_imx_drm_encoder_parse_of
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_imx_pd_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_drm_encoder_helper_add
	movq	_DRM_MODE_ENCODER_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_imx_pd_encoder_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	cmpl	$0, 16(%r12)
	jne	LBB0_3
## %bb.2:
	movq	_imx_pd_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_drm_connector_helper_add
	movq	_DRM_MODE_CONNECTOR_DPI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_imx_pd_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_drm_connector_init
LBB0_3:
	movq	24(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	movq	%r12, %rsi
	callq	_drm_panel_attach
LBB0_5:
	movl	16(%r12), %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_drm_bridge_attach
	testl	%eax, %eax
	jns	LBB0_9
## %bb.7:
	movl	%eax, %r14d
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r14d, %ebx
	jmp	LBB0_9
LBB0_8:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_drm_connector_attach_encoder
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_DPMS_OFF,4,2          ## @DRM_MODE_DPMS_OFF
	.comm	_imx_pd_encoder_helper_funcs,4,2 ## @imx_pd_encoder_helper_funcs
	.comm	_imx_pd_encoder_funcs,4,2       ## @imx_pd_encoder_funcs
	.comm	_DRM_MODE_ENCODER_NONE,4,2      ## @DRM_MODE_ENCODER_NONE
	.comm	_imx_pd_connector_helper_funcs,4,2 ## @imx_pd_connector_helper_funcs
	.comm	_imx_pd_connector_funcs,4,2     ## @imx_pd_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_DPI,4,2     ## @DRM_MODE_CONNECTOR_DPI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to attach bridge: %d\n"

	.no_dead_strip	_imx_pd_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_pd_register
_imx_pd_register:                       ; @imx_pd_register
	.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	x19, x1
	mov	x21, x0
	add	x20, x1, #32
	ldr	x8, [x1, #8]
	ldr	w2, [x8]
	mov	x1, x20
	bl	_imx_drm_encoder_parse_of
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh3:
	adrp	x1, _imx_pd_encoder_helper_funcs@GOTPAGE
Lloh4:
	ldr	x1, [x1, _imx_pd_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	bl	_drm_encoder_helper_add
Lloh5:
	adrp	x8, _DRM_MODE_ENCODER_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_ENCODER_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x2, _imx_pd_encoder_funcs@GOTPAGE
Lloh9:
	ldr	x2, [x2, _imx_pd_encoder_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	mov	x4, #0
	bl	_drm_encoder_init
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh10:
	adrp	x1, _imx_pd_connector_helper_funcs@GOTPAGE
Lloh11:
	ldr	x1, [x1, _imx_pd_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_connector_helper_add
Lloh12:
	adrp	x8, _DRM_MODE_CONNECTOR_DPI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DPI@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x2, _imx_pd_connector_funcs@GOTPAGE
Lloh16:
	ldr	x2, [x2, _imx_pd_connector_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	bl	_drm_connector_init
LBB0_3:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x19
	bl	_drm_panel_attach
LBB0_5:
	ldr	w1, [x19, #16]
	cbz	w1, LBB0_8
; %bb.6:
	mov	x0, x20
	mov	x2, #0
	bl	_drm_bridge_attach
	tbz	w0, #31, LBB0_9
; %bb.7:
	mov	x22, x0
	ldr	x0, [x19, #8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_drm_connector_attach_encoder
LBB0_9:
	mov	w22, #0
LBB0_10:
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
	.comm	_imx_pd_encoder_helper_funcs,4,2 ; @imx_pd_encoder_helper_funcs
	.comm	_imx_pd_encoder_funcs,4,2       ; @imx_pd_encoder_funcs
	.comm	_DRM_MODE_ENCODER_NONE,4,2      ; @DRM_MODE_ENCODER_NONE
	.comm	_imx_pd_connector_helper_funcs,4,2 ; @imx_pd_connector_helper_funcs
	.comm	_imx_pd_connector_funcs,4,2     ; @imx_pd_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_DPI,4,2     ; @DRM_MODE_CONNECTOR_DPI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to attach bridge: %d\n"

	.no_dead_strip	_imx_pd_register
.subsections_via_symbols
