	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mipi_dbi_dev_init_with_formats ## -- Begin function mipi_dbi_dev_init_with_formats
	.p2align	4, 0x90
_mipi_dbi_dev_init_with_formats:        ## @mipi_dbi_dev_init_with_formats
	.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
	cmpl	$0, 24(%rdi)
	je	LBB0_1
## %bb.3:
	movl	%r9d, %r14d
	movq	%r8, %r15
	movl	%ecx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rsi
	movl	56(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_devm_kmalloc
	movl	%eax, 20(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_drm_mode_copy
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_mipi_dbi_rotate_mode
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_DRM_ERROR
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	32(%rbx), %r12
	leaq	16(%rbx), %r15
	movq	_mipi_dbi_connector_hfuncs@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_drm_connector_helper_add
	movq	_DRM_MODE_CONNECTOR_SPI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_mipi_dbi_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_init
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	leaq	12(%rbx), %rax
	movq	%r15, (%rsp)
	movq	%rax, %r15
	leaq	_mipi_dbi_dev_init_with_formats.modifiers(%rip), %r9
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_drm_simple_display_pipe_init
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_drm_plane_enable_fb_damage_clips
	movq	_mipi_dbi_mode_config_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	4(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movdqu	%xmm0, 32(%rbx)
	movl	%r14d, (%rbx)
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_DRM_DEBUG_KMS
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @mipi_dbi_dev_init_with_formats.modifiers
_mipi_dbi_dev_init_with_formats.modifiers:
	.long	128                             ## 0x80
	.long	129                             ## 0x81

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal rotation value %u\n"

	.comm	_mipi_dbi_connector_hfuncs,4,2  ## @mipi_dbi_connector_hfuncs
	.comm	_mipi_dbi_connector_funcs,4,2   ## @mipi_dbi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_SPI,4,2     ## @DRM_MODE_CONNECTOR_SPI
	.comm	_mipi_dbi_mode_config_funcs,4,2 ## @mipi_dbi_mode_config_funcs
L_.str.1:                               ## @.str.1
	.asciz	"rotation = %u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mipi_dbi_dev_init_with_formats ; -- Begin function mipi_dbi_dev_init_with_formats
	.p2align	2
_mipi_dbi_dev_init_with_formats:        ; @mipi_dbi_dev_init_with_formats
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x5
	mov	x24, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w0, [x0, #56]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x6
	bl	_devm_kmalloc
	str	w0, [x20, #20]
	cbz	w0, LBB0_5
; %bb.2:
	add	x25, x20, #4
	mov	x0, x25
	mov	x1, x24
	bl	_drm_mode_copy
	mov	x0, x25
	mov	x1, x19
	bl	_mipi_dbi_rotate_mode
	cbz	w0, LBB0_8
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_ERROR
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	add	x24, x20, #32
	add	x25, x20, #16
Lloh9:
	adrp	x1, _mipi_dbi_connector_hfuncs@GOTPAGE
Lloh10:
	ldr	x1, [x1, _mipi_dbi_connector_hfuncs@GOTPAGEOFF]
	mov	x0, x25
	bl	_drm_connector_helper_add
Lloh11:
	adrp	x8, _DRM_MODE_CONNECTOR_SPI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_SPI@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x2, _mipi_dbi_connector_funcs@GOTPAGE
Lloh15:
	ldr	x2, [x2, _mipi_dbi_connector_funcs@GOTPAGEOFF]
	mov	x0, x24
	mov	x1, x25
	bl	_drm_connector_init
	cbnz	w0, LBB0_7
; %bb.9:
	add	x26, x20, #12
Lloh16:
	adrp	x5, _mipi_dbi_dev_init_with_formats.modifiers@PAGE
Lloh17:
	add	x5, x5, _mipi_dbi_dev_init_with_formats.modifiers@PAGEOFF
	mov	x0, x24
	mov	x1, x26
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x6, x25
	bl	_drm_simple_display_pipe_init
	cbnz	w0, LBB0_7
; %bb.10:
	mov	x0, x26
	bl	_drm_plane_enable_fb_damage_clips
Lloh18:
	adrp	x8, _mipi_dbi_mode_config_funcs@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mipi_dbi_mode_config_funcs@GOTPAGEOFF]
	str	x8, [x20, #48]
	ldur	d0, [x20, #4]
	fmov	d1, d0
	st2.2s	{ v0, v1 }, [x24]
	str	w19, [x20]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @mipi_dbi_dev_init_with_formats.modifiers
_mipi_dbi_dev_init_with_formats.modifiers:
	.long	128                             ; 0x80
	.long	129                             ; 0x81

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal rotation value %u\n"

	.comm	_mipi_dbi_connector_hfuncs,4,2  ; @mipi_dbi_connector_hfuncs
	.comm	_mipi_dbi_connector_funcs,4,2   ; @mipi_dbi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_SPI,4,2     ; @DRM_MODE_CONNECTOR_SPI
	.comm	_mipi_dbi_mode_config_funcs,4,2 ; @mipi_dbi_mode_config_funcs
l_.str.1:                               ; @.str.1
	.asciz	"rotation = %u\n"

.subsections_via_symbols
