	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpi_touchscreen_probe
_rpi_touchscreen_probe:                 ## @rpi_touchscreen_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$0, -48(%rbp)
	movq	_RPI_DSI_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 24(%r15)
	movq	_REG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rpi_touchscreen_i2c_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	cmpl	$195, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$222, %eax
	jne	LBB0_7
LBB0_8:
	movq	_REG_POWERON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rpi_touchscreen_i2c_write
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_of_graph_get_next_endpoint
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_of_graph_get_remote_port_parent
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_find_mipi_dsi_host_by_node
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_of_node_put
	testq	%r13, %r13
	je	LBB0_12
## %bb.13:
	movq	%r12, %rdi
	callq	_of_graph_get_remote_port
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	%r12, %rdi
	callq	_of_node_put
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_mipi_dsi_device_register_full
	movl	%eax, 16(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	16(%r15), %edi
	callq	_PTR_ERR
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	16(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_21
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_18:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_17:
	movq	%r12, %rdi
	callq	_of_node_put
	jmp	LBB0_18
LBB0_12:
	movq	%r12, %rdi
	callq	_of_node_put
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_16:
	movq	%r14, 8(%r15)
	movq	_rpi_touchscreen_funcs@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_drm_panel_add
	movl	%eax, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_RPI_DSI_DRIVER_NAME,4,2        ## @RPI_DSI_DRIVER_NAME
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_REG_ID,4,2                     ## @REG_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Atmel I2C read failed: %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Unknown Atmel firmware revision: 0x%02x\n"

	.comm	_REG_POWERON,4,2                ## @REG_POWERON
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"DSI device registration failed: %ld\n"

	.comm	_rpi_touchscreen_funcs,4,2      ## @rpi_touchscreen_funcs
	.no_dead_strip	_rpi_touchscreen_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpi_touchscreen_probe
_rpi_touchscreen_probe:                 ; @rpi_touchscreen_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
Lloh0:
	adrp	x8, _RPI_DSI_DRIVER_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RPI_DSI_DRIVER_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	str	x19, [x20, #24]
Lloh6:
	adrp	x8, _REG_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_ID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rpi_touchscreen_i2c_read
	mov	x2, x0
	tbnz	w0, #31, LBB0_11
; %bb.2:
	cmp	w2, #195
	b.eq	LBB0_4
; %bb.3:
	cmp	w2, #222
	b.ne	LBB0_12
LBB0_4:
Lloh9:
	adrp	x8, _REG_POWERON@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_POWERON@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_rpi_touchscreen_i2c_write
	ldr	w0, [x19]
	mov	x1, #0
	bl	_of_graph_get_next_endpoint
	cbz	x0, LBB0_14
; %bb.5:
	mov	x21, x0
	bl	_of_graph_get_remote_port_parent
	cbz	x0, LBB0_17
; %bb.6:
	mov	x23, x0
	bl	_of_find_mipi_dsi_host_by_node
	mov	x22, x0
	mov	x0, x23
	bl	_of_node_put
	cbz	x22, LBB0_18
; %bb.7:
	mov	x0, x21
	bl	_of_graph_get_remote_port
	str	x0, [sp]
	cbz	x0, LBB0_17
; %bb.8:
	mov	x0, x21
	bl	_of_node_put
	mov	x1, sp
	mov	x0, x22
	bl	_mipi_dsi_device_register_full
	str	w0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.9:
	ldr	w0, [x20, #16]
	bl	_PTR_ERR
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #16]
	bl	_PTR_ERR
	b	LBB0_16
LBB0_10:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_dev_err
LBB0_14:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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_17:
	mov	x0, x21
	bl	_of_node_put
	b	LBB0_14
LBB0_18:
	mov	x0, x21
	bl	_of_node_put
Lloh22:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_15
LBB0_19:
Lloh24:
	adrp	x8, _rpi_touchscreen_funcs@GOTPAGE
Lloh25:
	ldr	x8, [x8, _rpi_touchscreen_funcs@GOTPAGEOFF]
	stp	x8, x19, [x20]
	mov	x0, x20
	bl	_drm_panel_add
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_RPI_DSI_DRIVER_NAME,4,2        ; @RPI_DSI_DRIVER_NAME
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_REG_ID,4,2                     ; @REG_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Atmel I2C read failed: %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Unknown Atmel firmware revision: 0x%02x\n"

	.comm	_REG_POWERON,4,2                ; @REG_POWERON
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"DSI device registration failed: %ld\n"

	.comm	_rpi_touchscreen_funcs,4,2      ; @rpi_touchscreen_funcs
	.no_dead_strip	_rpi_touchscreen_probe
.subsections_via_symbols
