	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seiko_panel_get_fixed_modes
_seiko_panel_get_fixed_modes:           ## @seiko_panel_get_fixed_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	cmpl	$0, (%rsi)
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.8:
	leaq	-80(%rbp), %r13
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_drm_mode_probed_add
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	movq	(%r12), %rsi
	movl	(%rsi), %eax
	addq	$8, %rbx
	cmpq	%rax, %r15
	jae	LBB0_4
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%rsi), %r12
	leaq	(%r12,%rbx), %rdi
	movq	%r13, %rsi
	callq	_videomode_from_timing
	movq	%r14, %rdi
	callq	_drm_mode_create
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_drm_display_mode_from_videomode
	movl	(%r14), %eax
	movq	_DRM_MODE_TYPE_DRIVER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rcx
	cmpl	$1, (%rcx)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_DRM_MODE_TYPE_PREFERRED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r14), %edi
	movl	(%r12,%rbx), %ecx
	movl	4(%r12,%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_4:
	cmpl	$0, 4(%rsi)
	je	LBB0_19
## %bb.5:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_drm_mode_set_name
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_drm_mode_probed_add
	incl	-44(%rbp)                       ## 4-byte Folded Spill
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movq	(%r12), %rsi
	movl	4(%rsi), %eax
	addq	$16, %r15
	cmpq	%rax, %r14
	jae	LBB0_19
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rsi), %r12
	leaq	(%r12,%r15), %rsi
	movq	%r13, %rdi
	callq	_drm_mode_duplicate
	testq	%rax, %rax
	je	LBB0_7
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movl	(%rax), %eax
	movq	_DRM_MODE_TYPE_DRIVER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rcx
	cmpl	$1, 4(%rcx)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_DRM_MODE_TYPE_PREFERRED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r13), %edi
	movl	12(%r12,%r15), %edx
	movl	4(%r12,%r15), %r8d
	movl	8(%r12,%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_19:
	movl	24(%rsi), %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 12(%rbx)
	movl	20(%rsi), %eax
	movl	%eax, 8(%rbx)
	movl	16(%rsi), %eax
	movl	%eax, 4(%rbx)
	cmpl	$0, 12(%rsi)
	je	LBB0_21
## %bb.20:
	addq	$12, %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_drm_display_info_set_bus_formats
	movq	(%r12), %rsi
LBB0_21:
	movl	8(%rsi), %eax
	movl	%eax, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add mode %ux%u\n"

	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ## @DRM_MODE_TYPE_DRIVER
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ## @DRM_MODE_TYPE_PREFERRED
L_.str.1:                               ## @.str.1
	.asciz	"failed to add mode %ux%u@%u\n"

	.no_dead_strip	_seiko_panel_get_fixed_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seiko_panel_get_fixed_modes
_seiko_panel_get_fixed_modes:           ; @seiko_panel_get_fixed_modes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x20, x0
	ldp	x22, x19, [x0, #8]
	ldr	w9, [x8]
Lloh0:
	adrp	x26, _DRM_MODE_TYPE_DRIVER@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DRM_MODE_TYPE_DRIVER@GOTPAGEOFF]
	cbz	w9, LBB0_10
; %bb.2:
	mov	x28, #0
	mov	x27, #0
	mov	w21, #0
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_drm_mode_probed_add
	add	w21, w21, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	ldr	x8, [x20]
	ldr	w9, [x8]
	add	x28, x28, #8
	cmp	x27, x9
	b.hs	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #40]
	add	x25, x8, x28
	add	x1, sp, #8
	mov	x0, x25
	bl	_videomode_from_timing
	mov	x0, x22
	bl	_drm_mode_create
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	add	x0, sp, #8
	mov	x1, x24
	bl	_drm_display_mode_from_videomode
	ldr	w8, [x26]
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x24]
	ldr	x9, [x20]
	ldr	w9, [x9]
	cmp	w9, #1
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh4:
	adrp	x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x24]
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22]
	ldp	w3, w2, [x25]
	mov	x1, x23
	bl	_dev_err
	b	LBB0_4
LBB0_9:
	mov	w21, #0
	b	LBB0_22
LBB0_10:
	mov	w21, #0
LBB0_11:
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_19
; %bb.12:
	mov	x27, #0
	mov	x28, #0
Lloh7:
	adrp	x23, l_.str.1@PAGE
Lloh8:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x24
	bl	_drm_mode_set_name
	mov	x0, x19
	mov	x1, x24
	bl	_drm_mode_probed_add
	add	w21, w21, #1
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x28, x28, #1
	ldr	x8, [x20]
	ldr	w9, [x8, #4]
	add	x27, x27, #16
	cmp	x28, x9
	b.hs	LBB0_19
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #32]
	add	x25, x8, x27
	mov	x0, x22
	mov	x1, x25
	bl	_drm_mode_duplicate
	cbz	x0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x24, x0
	ldr	w8, [x26]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	ldr	x9, [x20]
	ldr	w9, [x9, #4]
	cmp	w9, #1
	b.ne	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
Lloh9:
	adrp	x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x24]
	b	LBB0_13
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x22]
	ldp	w3, w2, [x25, #8]
	ldr	w8, [x25, #4]
	str	x8, [sp]
	mov	x1, x23
	bl	_dev_err
	b	LBB0_14
LBB0_19:
	ldr	w9, [x8, #24]
	str	w9, [x19, #12]
	ldr	d0, [x8, #16]
	stur	d0, [x19, #4]
	mov	x1, x8
	ldr	w9, [x1, #12]!
	cbz	w9, LBB0_21
; %bb.20:
	mov	x0, x19
	mov	w2, #1
	bl	_drm_display_info_set_bus_formats
	ldr	x8, [x20]
LBB0_21:
	ldr	w8, [x8, #8]
	str	w8, [x19]
LBB0_22:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add mode %ux%u\n"

	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ; @DRM_MODE_TYPE_DRIVER
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ; @DRM_MODE_TYPE_PREFERRED
l_.str.1:                               ; @.str.1
	.asciz	"failed to add mode %ux%u@%u\n"

	.no_dead_strip	_seiko_panel_get_fixed_modes
.subsections_via_symbols
