	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_output_connector_get_modes ## -- Begin function tegra_output_connector_get_modes
	.p2align	4, 0x90
_tegra_output_connector_get_modes:      ## @tegra_output_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_connector_to_output
	movq	%rax, %r12
	movq	24(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	(%rdi), %rax
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	jg	LBB0_11
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kmemdup
	jmp	LBB0_8
LBB0_5:
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_drm_get_edid
LBB0_8:
	movq	%rax, %rbx
LBB0_9:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_cec_notifier_set_phys_addr_from_edid
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_drm_connector_update_edid_property
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_drm_add_edid_modes
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_output_connector_get_modes ; -- Begin function tegra_output_connector_get_modes
	.p2align	2
_tegra_output_connector_get_modes:      ; @tegra_output_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_output
	mov	x21, x0
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	mov	x20, x0
	cmp	w0, #0
	b.gt	LBB0_10
; %bb.2:
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kmemdup
	b	LBB0_7
LBB0_4:
	mov	w20, #0
	ldr	x0, [x21, #16]
	cbnz	x0, LBB0_3
LBB0_5:
	ldr	x1, [x21, #8]
	cbz	x1, LBB0_12
; %bb.6:
	mov	x0, x19
	bl	_drm_get_edid
LBB0_7:
	mov	x22, x0
LBB0_8:
	ldr	w0, [x21]
	mov	x1, x22
	bl	_cec_notifier_set_phys_addr_from_edid
	mov	x0, x19
	mov	x1, x22
	bl	_drm_connector_update_edid_property
	cbz	x22, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x22
	bl	_drm_add_edid_modes
	mov	x19, x0
	mov	x0, x22
	bl	_kfree
	mov	x0, x19
	b	LBB0_11
LBB0_10:
	mov	x0, x20
LBB0_11:
	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
LBB0_12:
	mov	x22, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
