	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ili9341_probe
_ili9341_probe:                         ## @ili9341_probe
	.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
	movl	$0, -44(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	8(%rax), %r14
	movq	_ili9341_driver@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_devm_drm_dev_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_15
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rbx
	addq	$16, %rbx
	movq	%r14, %rdi
	callq	_drm_mode_config_init
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_DRM_DEV_ERROR
	movq	(%rbx), %rdi
	jmp	LBB0_10
LBB0_6:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_DRM_DEV_ERROR
	movq	%r13, %rdi
	jmp	LBB0_10
LBB0_8:
	movq	%r15, %rdi
	callq	_devm_of_find_backlight
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	(%r12), %rdi
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_device_property_read_u32
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_mipi_dbi_spi_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movl	-44(%rbp), %ecx
	movq	_ili9341_pipe_funcs@GOTPCREL(%rip), %rsi
	movq	_yx240qv29_mode@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	callq	_mipi_dbi_dev_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	movq	%r14, %rdi
	callq	_drm_mode_config_reset
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_dev_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_fbdev_generic_setup
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ili9341_driver,4,2             ## @ili9341_driver
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get gpio 'reset'\n"

L_.str.2:                               ## @.str.2
	.asciz	"dc"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.3:                               ## @.str.3
	.asciz	"Failed to get gpio 'dc'\n"

L_.str.4:                               ## @.str.4
	.asciz	"rotation"

	.comm	_ili9341_pipe_funcs,4,2         ## @ili9341_pipe_funcs
	.comm	_yx240qv29_mode,4,2             ## @yx240qv29_mode
	.no_dead_strip	_ili9341_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ili9341_probe
_ili9341_probe:                         ; @ili9341_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	add	x20, x0, #8
Lloh3:
	adrp	x2, _ili9341_driver@GOTPAGE
Lloh4:
	ldr	x2, [x2, _ili9341_driver@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_devm_drm_dev_init
	cbz	w0, LBB0_5
; %bb.2:
	mov	x22, x0
	mov	x0, x21
	bl	_kfree
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_5:
	add	x22, x21, #16
	mov	x0, x20
	bl	_drm_mode_config_init
Lloh8:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x22]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	ldr	x0, [x22]
	b	LBB0_11
LBB0_7:
Lloh15:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	mov	x0, x23
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_devm_of_find_backlight
	str	x0, [x21]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x0, [x21]
LBB0_11:
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_12:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_device_property_read_u32
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_mipi_dbi_spi_init
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.13:
	ldr	w3, [sp, #12]
Lloh24:
	adrp	x1, _ili9341_pipe_funcs@GOTPAGE
Lloh25:
	ldr	x1, [x1, _ili9341_pipe_funcs@GOTPAGEOFF]
Lloh26:
	adrp	x2, _yx240qv29_mode@GOTPAGE
Lloh27:
	ldr	x2, [x2, _yx240qv29_mode@GOTPAGEOFF]
	mov	x0, x21
	bl	_mipi_dbi_dev_init
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.14:
	mov	x0, x20
	bl	_drm_mode_config_reset
	mov	x0, x20
	mov	w1, #0
	bl	_drm_dev_register
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.15:
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	mov	x0, x20
	mov	w1, #0
	bl	_drm_fbdev_generic_setup
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ili9341_driver,4,2             ; @ili9341_driver
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get gpio 'reset'\n"

l_.str.2:                               ; @.str.2
	.asciz	"dc"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.3:                               ; @.str.3
	.asciz	"Failed to get gpio 'dc'\n"

l_.str.4:                               ; @.str.4
	.asciz	"rotation"

	.comm	_ili9341_pipe_funcs,4,2         ; @ili9341_pipe_funcs
	.comm	_yx240qv29_mode,4,2             ; @yx240qv29_mode
	.no_dead_strip	_ili9341_probe
.subsections_via_symbols
