	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpi_ts_probe
_rpi_ts_probe:                          ## @rpi_ts_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
	movq	(%rdi), %rdi
	callq	_of_get_parent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_rpi_firmware_get
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_of_node_put
	testq	%r12, %r12
	je	LBB0_3
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	%r14, 32(%rax)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %r13
	addq	$16, %r13
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_dma_alloc_coherent
	movl	%eax, 24(%r15)
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	movq	_rpi_ts_dma_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_devm_add_action_or_reset
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_3:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
LBB0_9:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_12:
	movq	(%r13), %rax
	movq	%rax, -48(%rbp)
	movq	_RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	$8, %ecx
	callq	_rpi_firmware_property
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	cmpq	$0, -48(%rbp)
	jne	LBB0_14
## %bb.15:
	movq	%r14, %rdi
	callq	_devm_input_allocate_polled_device
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%rax, %r12
	movq	%rax, 8(%r15)
	movq	16(%rax), %r13
	leaq	L_.str.5(%rip), %rax
	movq	%rax, (%r13)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_RPI_TS_POLL_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_rpi_ts_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r15, (%r12)
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RPI_TS_DEFAULT_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RPI_TS_DEFAULT_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	callq	_touchscreen_parse_properties
	movq	_RPI_TS_MAX_SUPPORTED_POINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INPUT_MT_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_input_mt_init_slots
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_21
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_warn
	jmp	LBB0_22
LBB0_16:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_9
LBB0_19:
	movq	%r12, %rdi
	callq	_input_register_polled_device
	testl	%eax, %eax
	je	LBB0_22
## %bb.20:
	movl	%eax, %r15d
	leaq	L_.str.7(%rip), %rsi
LBB0_21:
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing firmware node\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"failed to dma_alloc_coherent\n"

	.comm	_rpi_ts_dma_cleanup,4,2         ## @rpi_ts_dma_cleanup
L_.str.2:                               ## @.str.2
	.asciz	"failed to devm_add_action_or_reset, %d\n"

	.comm	_RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF,4,2 ## @RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF
L_.str.3:                               ## @.str.3
	.asciz	"Failed to set touchbuf, %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to allocate input device\n"

L_.str.5:                               ## @.str.5
	.asciz	"raspberrypi-ts"

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_RPI_TS_POLL_INTERVAL,4,2       ## @RPI_TS_POLL_INTERVAL
	.comm	_rpi_ts_poll,4,2                ## @rpi_ts_poll
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_RPI_TS_DEFAULT_WIDTH,4,2       ## @RPI_TS_DEFAULT_WIDTH
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_RPI_TS_DEFAULT_HEIGHT,4,2      ## @RPI_TS_DEFAULT_HEIGHT
	.comm	_RPI_TS_MAX_SUPPORTED_POINTS,4,2 ## @RPI_TS_MAX_SUPPORTED_POINTS
	.comm	_INPUT_MT_DIRECT,4,2            ## @INPUT_MT_DIRECT
L_.str.6:                               ## @.str.6
	.asciz	"could not init mt slots, %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"could not register input device, %d\n"

	.no_dead_strip	_rpi_ts_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpi_ts_probe
_rpi_ts_probe:                          ; @rpi_ts_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
	ldr	x0, [x0]
	bl	_of_get_parent
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	bl	_rpi_firmware_get
	mov	x21, x0
	mov	x0, x20
	bl	_of_node_put
	cbz	x21, LBB0_7
; %bb.2:
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x20, x0
	str	x19, [x0, #32]
Lloh2:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x23, x0, #16
	ldr	w3, [x22]
	mov	x0, x19
	mov	x2, x23
	bl	_dma_alloc_coherent
	str	w0, [x20, #24]
	cbz	w0, LBB0_8
; %bb.4:
Lloh5:
	adrp	x8, _rpi_ts_dma_cleanup@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rpi_ts_dma_cleanup@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_devm_add_action_or_reset
	cbz	w0, LBB0_13
; %bb.5:
	mov	x22, x0
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_6:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _ENOENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh14:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_err
LBB0_10:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	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_13:
	ldr	x8, [x23]
	str	x8, [sp, #8]
Lloh20:
	adrp	x8, _RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	mov	w3, #8
	bl	_rpi_firmware_property
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.14:
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_18
; %bb.15:
	mov	x0, x19
	bl	_devm_input_allocate_polled_device
	cbz	x0, LBB0_19
; %bb.16:
	mov	x21, x0
	str	x0, [x20, #8]
	ldr	x22, [x0, #16]
Lloh23:
	adrp	x8, l_.str.5@PAGE
Lloh24:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh25:
	adrp	x9, _BUS_HOST@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BUS_HOST@GOTPAGEOFF]
	str	x8, [x22]
Lloh27:
	ldr	w8, [x9]
	str	w8, [x22, #8]
Lloh28:
	adrp	x8, _RPI_TS_POLL_INTERVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RPI_TS_POLL_INTERVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _rpi_ts_poll@GOTPAGE
Lloh32:
	ldr	x9, [x9, _rpi_ts_poll@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	str	x20, [x0]
Lloh34:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _RPI_TS_DEFAULT_WIDTH@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RPI_TS_DEFAULT_WIDTH@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh40:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _RPI_TS_DEFAULT_HEIGHT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _RPI_TS_DEFAULT_HEIGHT@GOTPAGEOFF]
Lloh45:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	mov	x0, x22
	mov	w1, #1
	mov	x2, x20
	bl	_touchscreen_parse_properties
Lloh46:
	adrp	x8, _RPI_TS_MAX_SUPPORTED_POINTS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _RPI_TS_MAX_SUPPORTED_POINTS@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _INPUT_MT_DIRECT@GOTPAGE
Lloh50:
	ldr	x8, [x8, _INPUT_MT_DIRECT@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_mt_init_slots
	cbz	w0, LBB0_20
; %bb.17:
	mov	x22, x0
	str	x22, [sp]
Lloh52:
	adrp	x1, l_.str.6@PAGE
Lloh53:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_22
LBB0_18:
Lloh54:
	adrp	x1, l_.str.3@PAGE
Lloh55:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_warn
	b	LBB0_12
LBB0_19:
Lloh56:
	adrp	x1, l_.str.4@PAGE
Lloh57:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_20:
	mov	x0, x21
	bl	_input_register_polled_device
	mov	x22, x0
	cbz	w0, LBB0_12
; %bb.21:
	str	x22, [sp]
Lloh58:
	adrp	x1, l_.str.7@PAGE
Lloh59:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_22:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing firmware node\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"failed to dma_alloc_coherent\n"

	.comm	_rpi_ts_dma_cleanup,4,2         ; @rpi_ts_dma_cleanup
l_.str.2:                               ; @.str.2
	.asciz	"failed to devm_add_action_or_reset, %d\n"

	.comm	_RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF,4,2 ; @RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF
l_.str.3:                               ; @.str.3
	.asciz	"Failed to set touchbuf, %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to allocate input device\n"

l_.str.5:                               ; @.str.5
	.asciz	"raspberrypi-ts"

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_RPI_TS_POLL_INTERVAL,4,2       ; @RPI_TS_POLL_INTERVAL
	.comm	_rpi_ts_poll,4,2                ; @rpi_ts_poll
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_RPI_TS_DEFAULT_WIDTH,4,2       ; @RPI_TS_DEFAULT_WIDTH
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_RPI_TS_DEFAULT_HEIGHT,4,2      ; @RPI_TS_DEFAULT_HEIGHT
	.comm	_RPI_TS_MAX_SUPPORTED_POINTS,4,2 ; @RPI_TS_MAX_SUPPORTED_POINTS
	.comm	_INPUT_MT_DIRECT,4,2            ; @INPUT_MT_DIRECT
l_.str.6:                               ; @.str.6
	.asciz	"could not init mt slots, %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"could not register input device, %d\n"

	.no_dead_strip	_rpi_ts_probe
.subsections_via_symbols
