	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tfp410_modeset_init
_tfp410_modeset_init:                   ## @tfp410_modeset_init
	.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, %rbx
	callq	_to_tfp410_module
	movq	%rax, %r15
	movq	(%rbx), %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_tfp410_encoder_create
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_tfp410_connector_create
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	24(%r12), %rcx
	movslq	16(%r12), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 16(%r12)
	movq	%r14, (%rcx,%rdx,8)
	movq	8(%r12), %rcx
	movslq	4(%r12), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 4(%r12)
	movq	%rax, (%rcx,%rdx,8)
	movl	(%r12), %edi
	movq	_dvi_info@GOTPCREL(%rip), %rsi
	callq	_tilcdc_crtc_set_panel_info
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dvi_info,4,2                   ## @dvi_info
	.no_dead_strip	_tfp410_modeset_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tfp410_modeset_init
_tfp410_modeset_init:                   ; @tfp410_modeset_init
	.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, x1
	bl	_to_tfp410_module
	mov	x21, x0
	ldr	x22, [x20]
	mov	x0, x20
	mov	x1, x21
	bl	_tfp410_encoder_create
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_tfp410_connector_create
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x22, #24]
	ldrsw	x9, [x22, #16]
	add	w10, w9, #1
	str	w10, [x22, #16]
	str	x19, [x8, x9, lsl #3]
	ldr	x9, [x22, #8]
	ldp	w8, w10, [x22]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	w11, w10, #1
	str	w11, [x22, #4]
	str	x0, [x9, x10, lsl #3]
Lloh0:
	adrp	x1, _dvi_info@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dvi_info@GOTPAGEOFF]
	mov	x0, x8
	bl	_tilcdc_crtc_set_panel_info
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dvi_info,4,2                   ; @dvi_info
	.no_dead_strip	_tfp410_modeset_init
.subsections_via_symbols
