	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_pd_connector_get_modes
_imx_pd_connector_get_modes:            ## @imx_pd_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	%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	%rdi, %r14
	callq	_con_to_imxpd
	movq	%rax, %rbx
	movq	24(%rax), %rax
	movq	(%rax), %r12
	movl	16(%rbx), %edi
	callq	_drm_panel_get_modes
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_1
LBB0_8:
	movl	%r15d, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_drm_connector_update_edid_property
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_drm_add_edid_modes
	movl	%eax, %r15d
LBB0_3:
	testq	%r12, %r12
	je	LBB0_8
## %bb.4:
	movl	(%r14), %edi
	callq	_drm_mode_create
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	movq	%rbx, %rdx
	addq	$4, %rdx
	movq	_OF_USE_NATIVE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_of_get_drm_display_mode
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_copy
	movq	_DRM_MODE_TYPE_DRIVER@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_TYPE_PREFERRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_drm_mode_probed_add
	incl	%r15d
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OF_USE_NATIVE_MODE,4,2         ## @OF_USE_NATIVE_MODE
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ## @DRM_MODE_TYPE_DRIVER
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ## @DRM_MODE_TYPE_PREFERRED
	.no_dead_strip	_imx_pd_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 imx_pd_connector_get_modes
_imx_pd_connector_get_modes:            ; @imx_pd_connector_get_modes
	.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	x19, x0
	bl	_con_to_imxpd
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x22, [x8]
	ldr	w0, [x0, #16]
	bl	_drm_panel_get_modes
	mov	x21, x0
	cmp	w0, #0
	b.le	LBB0_3
LBB0_1:
	mov	x0, x21
LBB0_2:
	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
LBB0_3:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_drm_connector_update_edid_property
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_drm_add_edid_modes
	mov	x21, x0
LBB0_5:
	cbz	x22, LBB0_1
; %bb.6:
	ldr	w0, [x19]
	bl	_drm_mode_create
	cbz	x0, LBB0_9
; %bb.7:
	mov	x23, x0
	add	x2, x20, #4
Lloh0:
	adrp	x8, _OF_USE_NATIVE_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OF_USE_NATIVE_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x20
	bl	_of_get_drm_display_mode
	cbnz	w0, LBB0_2
; %bb.8:
	mov	x0, x23
	mov	x1, x20
	bl	_drm_mode_copy
Lloh3:
	adrp	x8, _DRM_MODE_TYPE_DRIVER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_TYPE_DRIVER@GOTPAGEOFF]
Lloh5:
	adrp	x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w8, w8, w9
	str	w8, [x23]
	mov	x0, x19
	mov	x1, x23
	bl	_drm_mode_probed_add
	add	w0, w21, #1
	b	LBB0_2
LBB0_9:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OF_USE_NATIVE_MODE,4,2         ; @OF_USE_NATIVE_MODE
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ; @DRM_MODE_TYPE_DRIVER
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ; @DRM_MODE_TYPE_PREFERRED
	.no_dead_strip	_imx_pd_connector_get_modes
.subsections_via_symbols
