	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tfp410_get_modes
_tfp410_get_modes:                      ## @tfp410_get_modes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_drm_connector_to_tfp410
	movl	(%rax), %esi
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_drm_get_edid
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_drm_connector_update_edid_property
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_drm_add_edid_modes
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kfree
	movl	%ebx, %eax
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
LBB0_3:
	movq	%rbx, %rdi
	movl	$1920, %esi                     ## imm = 0x780
	movl	$1200, %edx                     ## imm = 0x4B0
	callq	_drm_add_modes_noedid
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movl	$768, %edx                      ## imm = 0x300
	callq	_drm_set_preferred_mode
	movl	%r14d, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EDID read failed. Fallback to standard modes\n"

	.no_dead_strip	_tfp410_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tfp410_get_modes
_tfp410_get_modes:                      ; @tfp410_get_modes
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_drm_connector_to_tfp410
	ldr	w1, [x0]
	cbz	w1, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_drm_get_edid
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_drm_connector_update_edid_property
	mov	x0, x19
	mov	x1, x20
	bl	_drm_add_edid_modes
	mov	x19, x0
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
LBB0_4:
	mov	x0, x19
	mov	w1, #1920
	mov	w2, #1200
	bl	_drm_add_modes_noedid
	mov	x20, x0
	mov	x0, x19
	mov	w1, #1024
	mov	w2, #768
	bl	_drm_set_preferred_mode
	mov	x0, x20
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EDID read failed. Fallback to standard modes\n"

	.no_dead_strip	_tfp410_get_modes
.subsections_via_symbols
