	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lcd_olinuxino_get_modes
_lcd_olinuxino_get_modes:               ## @lcd_olinuxino_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_lcd_olinuxino
	movq	%rax, %rbx
	movq	56(%rax), %r15
	cmpl	$0, (%rax)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	48(%rbx), %r13
	movq	8(%rbx), %r14
	movq	%r13, %rdi
	callq	_drm_mode_create
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r12
	movl	72(%r14), %eax
	movl	%eax, 72(%r12)
	movq	64(%r14), %rax
	movq	%rax, 64(%r12)
	addq	56(%r14), %rax
	movq	%rax, 56(%r12)
	addq	48(%r14), %rax
	movq	%rax, 48(%r12)
	addq	40(%r14), %rax
	movq	%rax, 40(%r12)
	movq	32(%r14), %rax
	movq	%rax, 32(%r12)
	addq	24(%r14), %rax
	movq	%rax, 24(%r12)
	addq	16(%r14), %rax
	movq	%rax, 16(%r12)
	addq	8(%r14), %rax
	movq	%rax, 8(%r12)
	movl	(%r14), %eax
	movl	%eax, 4(%r12)
	movq	_DRM_MODE_TYPE_PREFERRED@GOTPCREL(%rip), %rax
	movl	(%r12), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movq	_DRM_MODE_TYPE_DRIVER@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movq	%r12, %rdi
	callq	_drm_mode_set_name
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_drm_mode_probed_add
	movl	$1, %eax
	jmp	LBB0_5
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_11
LBB0_4:
	movl	(%r13), %edi
	movq	64(%r14), %rdx
	movq	32(%r14), %rcx
	movl	(%r14), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%eax, %eax
LBB0_5:
	cmpl	$2, (%rbx)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jl	LBB0_11
## %bb.6:
	movl	$1, %r14d
	movl	$392, %r15d                     ## imm = 0x188
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r13
	movl	(%r12,%r15), %eax
	movl	%eax, 72(%r13)
	movq	-8(%r12,%r15), %rax
	movq	%rax, 64(%r13)
	addq	-16(%r12,%r15), %rax
	movq	%rax, 56(%r13)
	addq	-24(%r12,%r15), %rax
	movq	%rax, 48(%r13)
	addq	-32(%r12,%r15), %rax
	movq	%rax, 40(%r13)
	movq	-40(%r12,%r15), %rax
	movq	%rax, 32(%r13)
	addq	-48(%r12,%r15), %rax
	movq	%rax, 24(%r13)
	addq	-56(%r12,%r15), %rax
	movq	%rax, 16(%r13)
	addq	-64(%r12,%r15), %rax
	movq	%rax, 8(%r13)
	movl	-72(%r12,%r15), %eax
	movl	%eax, 4(%r13)
	movq	_DRM_MODE_TYPE_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	movq	%r13, %rdi
	callq	_drm_mode_set_name
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_drm_mode_probed_add
	incl	-44(%rbp)                       ## 4-byte Folded Spill
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %r13
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	incq	%r14
	movslq	(%rbx), %rax
	addq	$320, %r15                      ## imm = 0x140
	cmpq	%rax, %r14
	jge	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r12
	movq	%r13, %rdi
	callq	_drm_mode_create
	movq	%r13, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rbx), %edi
	movq	-8(%r12,%r15), %rdx
	movq	-40(%r12,%r15), %rcx
	movl	-72(%r12,%r15), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_10
LBB0_11:
	movl	40(%rbx), %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 12(%r14)
	movl	36(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	32(%rbx), %eax
	movl	%eax, 4(%r14)
	cmpq	$0, 24(%rbx)
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rsi
	addq	$24, %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_drm_display_info_set_bus_formats
LBB0_13:
	movl	16(%rbx), %eax
	movl	%eax, (%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %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@%u\n"

	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ## @DRM_MODE_TYPE_PREFERRED
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ## @DRM_MODE_TYPE_DRIVER
	.no_dead_strip	_lcd_olinuxino_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lcd_olinuxino_get_modes
_lcd_olinuxino_get_modes:               ; @lcd_olinuxino_get_modes
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_to_lcd_olinuxino
	mov	x19, x0
	ldr	x20, [x0, #56]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x21, [x19, #48]
	ldr	x23, [x19, #8]
	mov	x0, x21
	bl	_drm_mode_create
	mov	x22, x0
Lloh0:
	adrp	x25, _DRM_MODE_TYPE_DRIVER@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DRM_MODE_TYPE_DRIVER@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x23, #72]
	str	w8, [x22, #72]
	ldp	x9, x8, [x23, #56]
	ldp	x11, x10, [x23, #40]
	add	x9, x9, x8
	add	x10, x10, x9
	stp	x9, x8, [x22, #56]
	add	x8, x11, x10
	stp	x8, x10, [x22, #40]
	ldp	x9, x8, [x23, #24]
	ldp	x11, x10, [x23, #8]
	add	x9, x9, x8
	add	x10, x10, x9
	stp	x9, x8, [x22, #24]
	add	x8, x11, x10
	stp	x8, x10, [x22, #8]
	ldr	w8, [x23]
Lloh2:
	adrp	x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w10, [x22]
	orr	w9, w10, w9
	stp	w9, w8, [x22]
	ldr	w8, [x25]
	orr	w8, w9, w8
	str	w8, [x22]
	mov	x0, x22
	bl	_drm_mode_set_name
	mov	x0, x20
	mov	x1, x22
	bl	_drm_mode_probed_add
	mov	w22, #1
	b	LBB0_5
LBB0_3:
	mov	w22, #0
	b	LBB0_11
LBB0_4:
	ldr	w0, [x21]
	ldr	x2, [x23, #64]
	ldr	x3, [x23, #32]
	ldr	w4, [x23]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_5:
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.6:
	mov	w26, #1
	mov	w27, #320
Lloh7:
	adrp	x23, l_.str@PAGE
Lloh8:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x0
	add	x8, x28, x27
	ldr	w9, [x8, #72]
	str	w9, [x0, #72]
	ldp	x10, x9, [x8, #56]
	ldp	x12, x11, [x8, #40]
	add	x10, x10, x9
	add	x11, x11, x10
	stp	x10, x9, [x0, #56]
	add	x9, x12, x11
	stp	x9, x11, [x0, #40]
	ldp	x10, x9, [x8, #24]
	ldp	x12, x11, [x8, #8]
	add	x10, x10, x9
	add	x11, x11, x10
	stp	x10, x9, [x0, #24]
	add	x9, x12, x11
	stp	x9, x11, [x0, #8]
	ldr	w8, [x8]
	ldr	w9, [x25]
	ldr	w10, [x0]
	orr	w9, w10, w9
	stp	w9, w8, [x0]
	bl	_drm_mode_set_name
	mov	x0, x20
	mov	x1, x24
	bl	_drm_mode_probed_add
	add	w22, w22, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x19]
	add	x27, x27, #320
	cmp	x26, x8
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x19, #8]
	mov	x0, x21
	bl	_drm_mode_create
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x21]
	add	x8, x28, x27
	ldr	x2, [x8, #64]
	ldr	x3, [x8, #32]
	ldr	w4, [x8]
	mov	x1, x23
	bl	_dev_err
	b	LBB0_8
LBB0_11:
	mov	x1, x19
	ldr	x8, [x1, #24]!
	ldr	w9, [x1, #16]
	str	w9, [x20, #12]
	ldr	d0, [x1, #8]
	stur	d0, [x20, #4]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x20
	mov	w2, #1
	bl	_drm_display_info_set_bus_formats
LBB0_13:
	ldr	w8, [x19, #16]
	str	w8, [x20]
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add mode %ux%u@%u\n"

	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ; @DRM_MODE_TYPE_PREFERRED
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ; @DRM_MODE_TYPE_DRIVER
	.no_dead_strip	_lcd_olinuxino_get_modes
.subsections_via_symbols
