	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_tve_register
_imx_tve_register:                      ## @imx_tve_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rsi), %rax
	movq	_TVE_MODE_VGA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_DRM_MODE_ENCODER_DAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_DRM_MODE_ENCODER_TVDAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	leaq	8(%rsi), %r15
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_imx_drm_encoder_parse_of
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	cmovel	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	_imx_tve_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_drm_encoder_helper_add
	movq	_imx_tve_encoder_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	leaq	12(%rbx), %r13
	movq	_imx_tve_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_drm_connector_helper_add
	movq	_DRM_MODE_CONNECTOR_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	16(%rbx), %r8d
	movq	_imx_tve_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_drm_connector_init_with_ddc
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_attach_encoder
LBB0_2:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TVE_MODE_VGA,8,3               ## @TVE_MODE_VGA
	.comm	_DRM_MODE_ENCODER_DAC,4,2       ## @DRM_MODE_ENCODER_DAC
	.comm	_DRM_MODE_ENCODER_TVDAC,4,2     ## @DRM_MODE_ENCODER_TVDAC
	.comm	_imx_tve_encoder_helper_funcs,4,2 ## @imx_tve_encoder_helper_funcs
	.comm	_imx_tve_encoder_funcs,4,2      ## @imx_tve_encoder_funcs
	.comm	_imx_tve_connector_helper_funcs,4,2 ## @imx_tve_connector_helper_funcs
	.comm	_imx_tve_connector_funcs,4,2    ## @imx_tve_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_VGA,4,2     ## @DRM_MODE_CONNECTOR_VGA
	.no_dead_strip	_imx_tve_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_tve_register
_imx_tve_register:                      ; @imx_tve_register
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
	ldr	x23, [x1]
Lloh0:
	adrp	x8, _TVE_MODE_VGA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TVE_MODE_VGA@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
Lloh3:
	adrp	x8, _DRM_MODE_ENCODER_DAC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_ENCODER_DAC@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
Lloh6:
	adrp	x8, _DRM_MODE_ENCODER_TVDAC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TVDAC@GOTPAGEOFF]
Lloh8:
	ldr	w26, [x8]
	add	x19, x1, #8
	ldr	x8, [x1, #24]
	ldr	w2, [x8]
	mov	x1, x19
	bl	_imx_drm_encoder_parse_of
	mov	x22, x0
	cbnz	w0, LBB0_2
; %bb.1:
	cmp	x23, x24
	csel	w23, w25, w26, eq
Lloh9:
	adrp	x1, _imx_tve_encoder_helper_funcs@GOTPAGE
Lloh10:
	ldr	x1, [x1, _imx_tve_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_encoder_helper_add
Lloh11:
	adrp	x2, _imx_tve_encoder_funcs@GOTPAGE
Lloh12:
	ldr	x2, [x2, _imx_tve_encoder_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x23
	mov	x4, #0
	bl	_drm_encoder_init
	add	x23, x21, #12
Lloh13:
	adrp	x1, _imx_tve_connector_helper_funcs@GOTPAGE
Lloh14:
	ldr	x1, [x1, _imx_tve_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x23
	bl	_drm_connector_helper_add
Lloh15:
	adrp	x8, _DRM_MODE_CONNECTOR_VGA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_VGA@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	ldr	w4, [x21, #16]
Lloh18:
	adrp	x2, _imx_tve_connector_funcs@GOTPAGE
Lloh19:
	ldr	x2, [x2, _imx_tve_connector_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x23
	bl	_drm_connector_init_with_ddc
	mov	x0, x23
	mov	x1, x19
	bl	_drm_connector_attach_encoder
LBB0_2:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TVE_MODE_VGA,8,3               ; @TVE_MODE_VGA
	.comm	_DRM_MODE_ENCODER_DAC,4,2       ; @DRM_MODE_ENCODER_DAC
	.comm	_DRM_MODE_ENCODER_TVDAC,4,2     ; @DRM_MODE_ENCODER_TVDAC
	.comm	_imx_tve_encoder_helper_funcs,4,2 ; @imx_tve_encoder_helper_funcs
	.comm	_imx_tve_encoder_funcs,4,2      ; @imx_tve_encoder_funcs
	.comm	_imx_tve_connector_helper_funcs,4,2 ; @imx_tve_connector_helper_funcs
	.comm	_imx_tve_connector_funcs,4,2    ; @imx_tve_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_VGA,4,2     ; @DRM_MODE_CONNECTOR_VGA
	.no_dead_strip	_imx_tve_register
.subsections_via_symbols
