	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpg110_probe
_tpg110_probe:                          ## @tpg110_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, %r14
	leaq	8(%rdi), %r15
	movq	8(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%r15, 40(%rax)
	leaq	36(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_DRM_DEV_ERROR
LBB0_5:
	movq	%r13, %rdx
	addq	$32, %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_DRM_DEV_ERROR
LBB0_7:
	movq	%r15, %rdi
	callq	_devm_of_find_backlight
	movl	%eax, 28(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.14:
	movl	28(%r13), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get
	movl	%eax, 24(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_DRM_DEV_ERROR
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$8, (%r14)
	movq	_SPI_3WIRE_HIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_spi_setup
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	%r14, 16(%r13)
	movq	%r13, %rdi
	callq	_tpg110_startup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.15:
	movq	%r13, %rdi
	callq	_drm_panel_init
	movq	%r15, 8(%r13)
	movq	_tpg110_drm_funcs@GOTPCREL(%rip), %rax
	movq	%rax, (%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_spi_set_drvdata
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_panel_add                  ## TAILCALL
LBB0_11:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_DRM_DEV_ERROR
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"width-mm"

L_.str.1:                               ## @.str.1
	.asciz	"no panel width specified\n"

L_.str.2:                               ## @.str.2
	.asciz	"height-mm"

L_.str.3:                               ## @.str.3
	.asciz	"no panel height specified\n"

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

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.5:                               ## @.str.5
	.asciz	"no GRESTB GPIO\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SPI_3WIRE_HIZ,4,2              ## @SPI_3WIRE_HIZ
L_.str.6:                               ## @.str.6
	.asciz	"spi setup failed.\n"

	.comm	_tpg110_drm_funcs,4,2           ## @tpg110_drm_funcs
	.no_dead_strip	_tpg110_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpg110_probe
_tpg110_probe:                          ; @tpg110_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	mov	x19, x0
	ldr	x22, [x19, #8]!
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	str	x19, [x0, #40]
	add	x2, x0, #36
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
LBB0_3:
	add	x2, x21, #32
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
LBB0_5:
	mov	x0, x19
	bl	_devm_of_find_backlight
	str	w0, [x21, #28]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w0, [x21, #28]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_7:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh13:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	w0, [x21, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.9:
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w8, #8
	str	w8, [x20]
Lloh22:
	adrp	x8, _SPI_3WIRE_HIZ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SPI_3WIRE_HIZ@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_spi_setup
	tbnz	w0, #31, LBB0_15
; %bb.13:
	str	x20, [x21, #16]
	mov	x0, x21
	bl	_tpg110_startup
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.14:
	mov	x0, x21
	bl	_drm_panel_init
Lloh25:
	adrp	x8, _tpg110_drm_funcs@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tpg110_drm_funcs@GOTPAGEOFF]
	stp	x8, x19, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_spi_set_drvdata
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_drm_panel_add
LBB0_15:
	mov	x22, x0
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"width-mm"

l_.str.1:                               ; @.str.1
	.asciz	"no panel width specified\n"

l_.str.2:                               ; @.str.2
	.asciz	"height-mm"

l_.str.3:                               ; @.str.3
	.asciz	"no panel height specified\n"

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

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.5:                               ; @.str.5
	.asciz	"no GRESTB GPIO\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SPI_3WIRE_HIZ,4,2              ; @SPI_3WIRE_HIZ
l_.str.6:                               ; @.str.6
	.asciz	"spi setup failed.\n"

	.comm	_tpg110_drm_funcs,4,2           ; @tpg110_drm_funcs
	.no_dead_strip	_tpg110_probe
.subsections_via_symbols
