	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ili9881c_get_modes
_ili9881c_get_modes:                    ## @ili9881c_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, %r15
	movq	(%rdi), %r14
	callq	_panel_to_ili9881c
	movq	%rax, %r12
	movl	8(%r15), %edi
	movq	_bananapi_default_mode@GOTPCREL(%rip), %r13
	movq	%r13, %rsi
	callq	_drm_mode_duplicate
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_drm_mode_set_name
	movq	_DRM_MODE_TYPE_DRIVER@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_TYPE_PREFERRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_probed_add
	movq	(%r15), %rax
	movabsq	$472446402622, %rcx             ## imm = 0x6E0000003E
	movq	%rcx, (%rax)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	movq	(%r12), %rdi
	movl	8(%r13), %edx
	movl	(%r13), %r8d
	movl	4(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bananapi_default_mode,12,2     ## @bananapi_default_mode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add mode %ux%ux@%u\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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	_ili9881c_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ili9881c_get_modes
lCPI0_0:
	.long	62                              ; 0x3e
	.long	110                             ; 0x6e
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ili9881c_get_modes:                    ; @ili9881c_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
	ldr	x20, [x0]
	bl	_panel_to_ili9881c
	mov	x22, x0
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x23, _bananapi_default_mode@GOTPAGE
Lloh1:
	ldr	x23, [x23, _bananapi_default_mode@GOTPAGEOFF]
	mov	x1, x23
	bl	_drm_mode_duplicate
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	bl	_drm_mode_set_name
Lloh2:
	adrp	x8, _DRM_MODE_TYPE_DRIVER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_MODE_TYPE_DRIVER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_drm_mode_probed_add
	ldr	x8, [x19]
Lloh8:
	adrp	x9, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	x0, [x22]
	ldp	w3, w2, [x23, #4]
	ldr	w4, [x23]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_bananapi_default_mode,12,2     ; @bananapi_default_mode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add mode %ux%ux@%u\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.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	_ili9881c_get_modes
.subsections_via_symbols
