	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc_connector_get_modes
_tc_connector_get_modes:                ## @tc_connector_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_connector_to_tc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_tc_get_display_props
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	12(%rbx), %edi
	callq	_drm_panel_get_modes
	testl	%eax, %eax
	jg	LBB0_5
## %bb.3:
	movq	%rbx, %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	callq	_drm_get_edid
	movq	%rax, %r15
	movq	(%rbx), %rdi
	callq	_kfree
	movq	%r15, (%rbx)
	testq	%r15, %r15
	je	LBB0_4
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_update_edid_property
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_add_edid_modes             ## TAILCALL
LBB0_1:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read display props: %d\n"

	.no_dead_strip	_tc_connector_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc_connector_get_modes
_tc_connector_get_modes:                ; @tc_connector_get_modes
	.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, x0
	bl	_connector_to_tc
	mov	x20, x0
	bl	_tc_get_display_props
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w0, [x20, #12]
	bl	_drm_panel_get_modes
	cmp	w0, #0
	b.gt	LBB0_6
; %bb.2:
	add	x1, x20, #8
	mov	x0, x19
	bl	_drm_get_edid
	mov	x21, x0
	ldr	x0, [x20]
	bl	_kfree
	str	x21, [x20]
	cbz	x21, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_drm_connector_update_edid_property
	mov	x0, x19
	mov	x1, 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
	b	_drm_add_edid_modes
LBB0_4:
	mov	x2, x0
	ldr	w0, [x20, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_5:
	mov	w0, #0
LBB0_6:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read display props: %d\n"

	.no_dead_strip	_tc_connector_get_modes
.subsections_via_symbols
