	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function td043mtea1_probe
_td043mtea1_probe:                      ## @td043mtea1_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_spi_set_drvdata
	movq	%r15, 16(%rbx)
	movq	_TPO_R02_MODE_800x480@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	32(%rbx), %edi
	movq	_td043mtea1_def_gamma@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movl	%eax, 28(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	28(%rbx), %edi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movl	%eax, 24(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	24(%rbx), %edi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movl	$16, (%r15)
	movq	_SPI_MODE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_spi_setup
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	_td043mtea1_attr_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	callq	_drm_panel_init
	movq	16(%rbx), %rax
	addq	$4, %rax
	movq	%rax, 8(%rbx)
	movq	_td043mtea1_funcs@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_drm_panel_add
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jns	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	movq	_td043mtea1_attr_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
	movl	%ebx, %r15d
	jmp	LBB0_13
LBB0_8:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_10:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TPO_R02_MODE_800x480,4,2       ## @TPO_R02_MODE_800x480
	.comm	_td043mtea1_def_gamma,4,2       ## @td043mtea1_def_gamma
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vcc"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get VCC regulator\n"

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

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.3:                               ## @.str.3
	.asciz	"failed to get reset GPIO\n"

	.comm	_SPI_MODE_0,4,2                 ## @SPI_MODE_0
L_.str.4:                               ## @.str.4
	.asciz	"failed to setup SPI: %d\n"

	.comm	_td043mtea1_attr_group,4,2      ## @td043mtea1_attr_group
L_.str.5:                               ## @.str.5
	.asciz	"failed to create sysfs files\n"

	.comm	_td043mtea1_funcs,4,2           ## @td043mtea1_funcs
	.no_dead_strip	_td043mtea1_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function td043mtea1_probe
_td043mtea1_probe:                      ; @td043mtea1_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x0
	add	x19, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x20
	bl	_spi_set_drvdata
	str	x21, [x20, #16]
Lloh3:
	adrp	x8, _TPO_R02_MODE_800x480@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TPO_R02_MODE_800x480@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #36]
	ldr	w0, [x20, #32]
Lloh6:
	adrp	x8, _td043mtea1_def_gamma@GOTPAGE
Lloh7:
	ldr	x8, [x8, _td043mtea1_def_gamma@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcpy
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x20, #28]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #28]
	b	LBB0_7
LBB0_3:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_5:
Lloh16:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #24]
LBB0_7:
	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
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_8:
	mov	w8, #16
	str	w8, [x21]
Lloh23:
	adrp	x8, _SPI_MODE_0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SPI_MODE_0@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	mov	x0, x21
	bl	_spi_setup
	tbnz	w0, #31, LBB0_12
; %bb.9:
Lloh26:
	adrp	x1, _td043mtea1_attr_group@GOTPAGE
Lloh27:
	ldr	x1, [x1, _td043mtea1_attr_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_group
	tbnz	w0, #31, LBB0_13
; %bb.10:
	mov	x0, x20
	bl	_drm_panel_init
	ldr	x8, [x20, #16]
	add	x8, x8, #4
Lloh28:
	adrp	x9, _td043mtea1_funcs@GOTPAGE
Lloh29:
	ldr	x9, [x9, _td043mtea1_funcs@GOTPAGEOFF]
	stp	x9, x8, [x20]
	mov	x0, x20
	bl	_drm_panel_add
	tbnz	w0, #31, LBB0_15
; %bb.11:
	mov	w21, #0
	b	LBB0_4
LBB0_12:
	mov	x21, x0
	str	x21, [sp]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_13:
	mov	x21, x0
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_4
LBB0_15:
	mov	x21, x0
Lloh34:
	adrp	x1, _td043mtea1_attr_group@GOTPAGE
Lloh35:
	ldr	x1, [x1, _td043mtea1_attr_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_group
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TPO_R02_MODE_800x480,4,2       ; @TPO_R02_MODE_800x480
	.comm	_td043mtea1_def_gamma,4,2       ; @td043mtea1_def_gamma
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vcc"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get VCC regulator\n"

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

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.3:                               ; @.str.3
	.asciz	"failed to get reset GPIO\n"

	.comm	_SPI_MODE_0,4,2                 ; @SPI_MODE_0
l_.str.4:                               ; @.str.4
	.asciz	"failed to setup SPI: %d\n"

	.comm	_td043mtea1_attr_group,4,2      ; @td043mtea1_attr_group
l_.str.5:                               ; @.str.5
	.asciz	"failed to create sysfs files\n"

	.comm	_td043mtea1_funcs,4,2           ; @td043mtea1_funcs
	.no_dead_strip	_td043mtea1_probe
.subsections_via_symbols
