	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function analogix_dp_get_modes
_analogix_dp_get_modes:                 ## @analogix_dp_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, %r14
	callq	_to_dp
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_drm_panel_get_modes
	movq	%rax, %r15
LBB0_9:
	movq	(%rbx), %rdi
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movq	%r14, %rsi
	callq	*%rcx
	addl	%eax, %r15d
	jmp	LBB0_11
LBB0_2:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_analogix_dp_prepare_panel
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	12(%rbx), %edi
	callq	_pm_runtime_get_sync
	leaq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_drm_get_edid
	movq	%rax, %r12
	movl	12(%rbx), %edi
	callq	_pm_runtime_put
	testq	%r12, %r12
	je	LBB0_5
## %bb.6:
	movq	%rbx, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_drm_connector_update_edid_property
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_drm_add_edid_modes
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_5:
	xorl	%r15d, %r15d
LBB0_7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_analogix_dp_prepare_panel
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to prepare panel (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to unprepare panel (%d)\n"

	.no_dead_strip	_analogix_dp_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function analogix_dp_get_modes
_analogix_dp_get_modes:                 ; @analogix_dp_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	_to_dp
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_4
; %bb.1:
	bl	_drm_panel_get_modes
	mov	x21, x0
LBB0_2:
	ldr	x0, [x20]
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x1, x19
	blr	x8
	add	w21, w21, w0
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_analogix_dp_prepare_panel
	cbz	w0, LBB0_7
; %bb.5:
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	w21, #0
LBB0_6:
	mov	x0, 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
	ret
LBB0_7:
	ldr	w0, [x20, #12]
	bl	_pm_runtime_get_sync
	add	x1, x20, #16
	mov	x0, x19
	bl	_drm_get_edid
	mov	x21, x0
	ldr	w0, [x20, #12]
	bl	_pm_runtime_put
	cbz	x21, LBB0_9
; %bb.8:
	add	x22, x20, #8
	mov	x0, x22
	mov	x1, x21
	bl	_drm_connector_update_edid_property
	mov	x0, x22
	mov	x1, x21
	bl	_drm_add_edid_modes
	mov	x22, x0
	mov	x0, x21
	bl	_kfree
	mov	x21, x22
LBB0_9:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_analogix_dp_prepare_panel
	cbz	w0, LBB0_2
; %bb.10:
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to prepare panel (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to unprepare panel (%d)\n"

	.no_dead_strip	_analogix_dp_get_modes
.subsections_via_symbols
