	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grts_probe
_grts_probe:                            ## @grts_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_devm_iio_channel_get_all
	movq	%rax, 32(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	32(%r12), %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_25
## %bb.4:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_24
LBB0_5:
	movl	$0, (%r12)
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.6:
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.7:
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, 24(%rbx)
	leaq	16(%rbx), %rbx
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, (%r12)
	jmp	LBB0_10
LBB0_11:
	cmpl	$0, (%r12)
	je	LBB0_14
## %bb.12:
	leaq	28(%r12), %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_device_property_read_u32
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	_GRTS_DEFAULT_PRESSURE_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_14:
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	%rax, %r15
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_grts_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_grts_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GRTS_MAX_POS_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	decl	%ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	decl	%ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	cmpl	$0, (%r12)
	je	LBB0_18
## %bb.17:
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%r12), %edx
	movq	%r15, %rdi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
LBB0_18:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_input_set_capability
	movq	%r12, %rdx
	addq	$24, %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_touchscreen_parse_properties
	movq	%r15, 16(%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_input_set_drvdata
	movq	%r15, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
LBB0_24:
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_25
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_grts_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_iio_channel_get_all_cb
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.26:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	8(%r12), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_21:
	movq	_grts_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r12), %rdx
	movq	%r14, %rdi
	callq	_devm_add_action_or_reset
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_24
LBB0_22:
	xorl	%ebx, %ebx
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't get iio channels.\n"

L_.str.1:                               ## @.str.1
	.asciz	"pressure"

L_.str.2:                               ## @.str.2
	.asciz	"touchscreen-min-pressure"

L_.str.3:                               ## @.str.3
	.asciz	"can't get touchscreen-min-pressure property.\n"

	.comm	_GRTS_DEFAULT_PRESSURE_MIN,4,2  ## @GRTS_DEFAULT_PRESSURE_MIN
L_.str.4:                               ## @.str.4
	.asciz	"failed to allocate input device.\n"

	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_grts_open,4,2                  ## @grts_open
	.comm	_grts_close,4,2                 ## @grts_close
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_GRTS_MAX_POS_MASK,4,2          ## @GRTS_MAX_POS_MASK
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
L_.str.5:                               ## @.str.5
	.asciz	"failed to register input device."

	.comm	_grts_cb,4,2                    ## @grts_cb
L_.str.6:                               ## @.str.6
	.asciz	"failed to allocate callback buffer.\n"

	.comm	_grts_disable,4,2               ## @grts_disable
L_.str.7:                               ## @.str.7
	.asciz	"failed to add disable action.\n"

	.no_dead_strip	_grts_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grts_probe
_grts_probe:                            ; @grts_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_20
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_devm_iio_channel_get_all
	str	x0, [x20, #32]
	bl	_IS_ERR
	ldr	x21, [x20, #32]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
Lloh3:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_21
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_18
LBB0_4:
	str	wzr, [x20]
	cbz	x21, LBB0_13
; %bb.5:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_10
; %bb.6:
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	w23, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #24]
	add	x21, x21, #16
	cbz	x8, LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8]
	mov	x1, x22
	bl	_strcmp
	cbnz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	str	w23, [x20]
	b	LBB0_7
LBB0_10:
	ldr	w8, [x20]
	cbz	w8, LBB0_13
; %bb.11:
	add	x21, x20, #28
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_device_property_read_u32
	cbz	w0, LBB0_13
; %bb.12:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh14:
	adrp	x8, _GRTS_DEFAULT_PRESSURE_MIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GRTS_DEFAULT_PRESSURE_MIN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_13:
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_19
; %bb.14:
	mov	x21, x0
Lloh17:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _BUS_HOST@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BUS_HOST@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
Lloh23:
	adrp	x8, _grts_open@GOTPAGE
Lloh24:
	ldr	x8, [x8, _grts_open@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _grts_close@GOTPAGE
Lloh27:
	ldr	x9, [x9, _grts_close@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _ABS_X@GOTPAGE
Lloh30:
	ldr	x10, [x10, _ABS_X@GOTPAGEOFF]
	stp	w9, w8, [x0]
Lloh31:
	ldr	w1, [x10]
Lloh32:
	adrp	x22, _GRTS_MAX_POS_MASK@GOTPAGE
Lloh33:
	ldr	x22, [x22, _GRTS_MAX_POS_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	sub	w3, w8, #1
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh34:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldr	w8, [x22]
	sub	w3, w8, #1
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w8, [x20]
	cbz	w8, LBB0_16
; %bb.15:
Lloh37:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	w2, [x20, #28]
	mov	x0, x21
	mov	w3, #65535
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
LBB0_16:
Lloh40:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh44:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_input_set_capability
	add	x2, x20, #24
	mov	x0, x21
	mov	w1, #0
	bl	_touchscreen_parse_properties
	str	x21, [x20, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_input_set_drvdata
	mov	x0, x21
	bl	_input_register_device
	cbz	w0, LBB0_22
; %bb.17:
	mov	x21, x0
Lloh46:
	adrp	x1, l_.str.5@PAGE
Lloh47:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_21
LBB0_19:
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_20:
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_21:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_22:
Lloh53:
	adrp	x8, _grts_cb@GOTPAGE
Lloh54:
	ldr	x8, [x8, _grts_cb@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_iio_channel_get_all_cb
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_24
; %bb.23:
Lloh56:
	adrp	x1, l_.str.6@PAGE
Lloh57:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_24:
Lloh58:
	adrp	x8, _grts_disable@GOTPAGE
Lloh59:
	ldr	x8, [x8, _grts_disable@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	ldr	x2, [x20, #8]
	mov	x0, x19
	bl	_devm_add_action_or_reset
	mov	x21, x0
	cbz	w0, LBB0_21
; %bb.25:
Lloh61:
	adrp	x1, l_.str.7@PAGE
Lloh62:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't get iio channels.\n"

l_.str.1:                               ; @.str.1
	.asciz	"pressure"

l_.str.2:                               ; @.str.2
	.asciz	"touchscreen-min-pressure"

l_.str.3:                               ; @.str.3
	.asciz	"can't get touchscreen-min-pressure property.\n"

	.comm	_GRTS_DEFAULT_PRESSURE_MIN,4,2  ; @GRTS_DEFAULT_PRESSURE_MIN
l_.str.4:                               ; @.str.4
	.asciz	"failed to allocate input device.\n"

	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_grts_open,4,2                  ; @grts_open
	.comm	_grts_close,4,2                 ; @grts_close
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_GRTS_MAX_POS_MASK,4,2          ; @GRTS_MAX_POS_MASK
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
l_.str.5:                               ; @.str.5
	.asciz	"failed to register input device."

	.comm	_grts_cb,4,2                    ; @grts_cb
l_.str.6:                               ; @.str.6
	.asciz	"failed to allocate callback buffer.\n"

	.comm	_grts_disable,4,2               ; @grts_disable
l_.str.7:                               ; @.str.7
	.asciz	"failed to add disable action.\n"

	.no_dead_strip	_grts_probe
.subsections_via_symbols
