	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function panel_simple_get_non_edid_modes
_panel_simple_get_non_edid_modes:       ## @panel_simple_get_non_edid_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), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	leaq	8(%rdi), %rsi
	cmpl	$0, (%rsi)
	je	LBB0_6
## %bb.3:
	movq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_drm_mode_duplicate
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_drm_mode_probed_add
	movl	$1, %r15d
	jmp	LBB0_9
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_5:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	(%rbx), %rax
LBB0_6:
	cmpq	$0, 32(%rax)
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_panel_simple_get_timings_modes
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_7:
	xorl	%r15d, %r15d
LBB0_9:
	movq	(%rbx), %rax
	cmpq	$0, 32(%rax)
	je	LBB0_10
## %bb.11:
	xorl	%edi, %edi
	cmpq	$0, 24(%rax)
	setne	%dil
	jmp	LBB0_12
LBB0_10:
	xorl	%edi, %edi
LBB0_12:
	callq	_WARN_ON
	testl	%r15d, %r15d
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_panel_simple_get_display_modes
	movl	%eax, %r15d
LBB0_14:
	movq	(%rbx), %rsi
	movl	16(%rsi), %eax
	movl	%eax, 12(%r14)
	movl	12(%rsi), %eax
	movl	%eax, 8(%r14)
	movl	8(%rsi), %eax
	movl	%eax, 4(%r14)
	cmpl	$0, 4(%rsi)
	je	LBB0_16
## %bb.15:
	addq	$4, %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_drm_display_info_set_bus_formats
	movq	(%rbx), %rsi
LBB0_16:
	movl	(%rsi), %eax
	movl	%eax, (%r14)
LBB0_17:
	movl	%r15d, %eax
	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 add override mode\n"

	.no_dead_strip	_panel_simple_get_non_edid_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function panel_simple_get_non_edid_modes
_panel_simple_get_non_edid_modes:       ; @panel_simple_get_non_edid_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
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x19, [x0, #24]
	add	x1, x0, #8
	ldr	w9, [x1]
	cbz	w9, LBB0_6
; %bb.2:
	ldr	x21, [x20, #16]
	mov	x0, x21
	bl	_drm_mode_duplicate
	cbz	x0, LBB0_5
; %bb.3:
	mov	x1, x0
	mov	x0, x19
	bl	_drm_mode_probed_add
	mov	w21, #1
	b	LBB0_9
LBB0_4:
	mov	w21, #0
	b	LBB0_15
LBB0_5:
	ldr	w0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x8, [x20]
LBB0_6:
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_panel_simple_get_timings_modes
	mov	x21, x0
	b	LBB0_9
LBB0_8:
	mov	w21, #0
LBB0_9:
	ldr	x8, [x20]
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_16
; %bb.10:
	ldr	x8, [x8, #24]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	cbnz	w21, LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_panel_simple_get_display_modes
	mov	x21, x0
LBB0_12:
	ldr	x8, [x20]
	ldr	w9, [x8, #16]
	str	w9, [x19, #12]
	ldr	d0, [x8, #8]
	stur	d0, [x19, #4]
	mov	x1, x8
	ldr	w9, [x1, #4]!
	cbz	w9, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	w2, #1
	bl	_drm_display_info_set_bus_formats
	ldr	x8, [x20]
LBB0_14:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_15:
	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_16:
	mov	w0, #0
	bl	_WARN_ON
	cbnz	w21, LBB0_12
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add override mode\n"

	.no_dead_strip	_panel_simple_get_non_edid_modes
.subsections_via_symbols
