	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_connector_get_modes_edid
_omap_connector_get_modes_edid:         ## @omap_connector_get_modes_edid
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_to_omap_connector
	movq	%rax, %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_omap_connector_detect
	movq	_connector_status_connected@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.1:
	movq	_MAX_EDID@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	movq	(%r12), %rax
	movl	(%r13), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_drm_edid_is_valid
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_update_edid_property
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_drm_add_edid_modes
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_drm_detect_hdmi_monitor
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %eax
	jmp	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	callq	_kfree
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_drm_connector_update_edid_property
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_MAX_EDID,4,2                   ## @MAX_EDID
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_omap_connector_get_modes_edid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_connector_get_modes_edid
_omap_connector_get_modes_edid:         ; @omap_connector_get_modes_edid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x19, x0
	bl	_to_omap_connector
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_omap_connector_detect
Lloh0:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh1:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.1:
Lloh3:
	adrp	x23, _MAX_EDID@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_EDID@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w2, [x23]
	mov	x0, x22
	mov	x1, x21
	blr	x8
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_drm_edid_is_valid
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_drm_connector_update_edid_property
	mov	x0, x19
	mov	x1, x21
	bl	_drm_add_edid_modes
	mov	x19, x0
	mov	x0, x21
	bl	_drm_detect_hdmi_monitor
	str	w0, [x20]
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	b	LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_kfree
LBB0_6:
	mov	x0, x19
	mov	x1, #0
	bl	_drm_connector_update_edid_property
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_MAX_EDID,4,2                   ; @MAX_EDID
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_omap_connector_get_modes_edid
.subsections_via_symbols
