	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hideep_init_input
_hideep_init_input:                     ## @hideep_init_input
	.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, %rbx
	movq	40(%rdi), %r14
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_HIDEEP_TS_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_BUS_I2C@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_input_set_drvdata
	movq	8(%rbx), %rdi
	movq	_EV_ABS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_input_set_capability
	movq	8(%rbx), %rdi
	movl	(%r15), %esi
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_input_set_capability
	movq	8(%rbx), %rdi
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	8(%rbx), %rdi
	movq	_ABS_MT_TOUCH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	8(%rbx), %rdi
	movq	_ABS_MT_TOOL_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_TOOL_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	8(%rbx), %rdi
	leaq	24(%rbx), %rdx
	movl	$1, %esi
	callq	_touchscreen_parse_properties
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 32(%rbx)
	jne	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_hideep_get_axis_info
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
LBB0_4:
	movq	8(%rbx), %rdi
	movq	_HIDEEP_MT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INPUT_MT_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_input_mt_init_slots
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_property_count_u32
	movl	%eax, (%rbx)
	movq	_HIDEEP_KEY_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_10
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testl	%eax, %eax
	jle	LBB0_13
## %bb.11:
	movq	16(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_device_property_read_u32_array
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_9
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_14:
	movq	8(%rbx), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_21
## %bb.15:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_16:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.17:
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rcx
	movq	%rcx, 8(%rdi)
	movl	$4, (%rdi)
	movl	%eax, 4(%rdi)
	jle	LBB0_14
## %bb.18:
	movq	_EV_KEY@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%rcx), %edx
	callq	_input_set_capability
	cmpl	$2, (%rbx)
	jl	LBB0_14
## %bb.19:
	movl	$1, %r12d
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rax
	movl	(%r15), %esi
	movl	(%rax,%r12,4), %edx
	callq	_input_set_capability
	incq	%r12
	movslq	(%rbx), %rax
	cmpq	%rax, %r12
	jl	LBB0_20
	jmp	LBB0_14
LBB0_21:
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate input device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HIDEEP_TS_NAME,4,2             ## @HIDEEP_TS_NAME
	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ## @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_TOOL_TYPE,4,2           ## @ABS_MT_TOOL_TYPE
	.comm	_MT_TOOL_MAX,4,2                ## @MT_TOOL_MAX
	.comm	_HIDEEP_MT_MAX,4,2              ## @HIDEEP_MT_MAX
	.comm	_INPUT_MT_DIRECT,4,2            ## @INPUT_MT_DIRECT
L_.str.1:                               ## @.str.1
	.asciz	"linux,keycodes"

	.comm	_HIDEEP_KEY_MAX,4,2             ## @HIDEEP_KEY_MAX
L_.str.2:                               ## @.str.2
	.asciz	"too many keys defined: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"missing or malformed 'linux,keycodes' property\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to read keymap: %d"

	.comm	_EV_KEY,4,2                     ## @EV_KEY
L_.str.5:                               ## @.str.5
	.asciz	"failed to register input device: %d"

	.no_dead_strip	_hideep_init_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hideep_init_input
_hideep_init_input:                     ; @hideep_init_input
	.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	x20, x0
	ldr	x19, [x0, #40]
	mov	x0, x19
	bl	_devm_input_allocate_device
	str	x0, [x20, #8]
	cbz	x0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _HIDEEP_TS_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIDEEP_TS_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BUS_I2C@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BUS_I2C@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
	mov	x1, x20
	bl	_input_set_drvdata
	ldr	x0, [x20, #8]
Lloh6:
	adrp	x21, _EV_ABS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _EV_ABS@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_input_set_capability
	ldr	x0, [x20, #8]
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_input_set_capability
	ldr	x0, [x20, #8]
Lloh14:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #65535
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x20, #8]
Lloh17:
	adrp	x8, _ABS_MT_TOUCH_MAJOR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ABS_MT_TOUCH_MAJOR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x20, #8]
Lloh20:
	adrp	x8, _ABS_MT_TOOL_TYPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ABS_MT_TOOL_TYPE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _MT_TOOL_MAX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MT_TOOL_MAX@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x20, #8]
	add	x2, x20, #24
	mov	w1, #1
	bl	_touchscreen_parse_properties
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_hideep_get_axis_info
	mov	x21, x0
	cbnz	w0, LBB0_9
LBB0_4:
	ldr	x0, [x20, #8]
Lloh26:
	adrp	x8, _HIDEEP_MT_MAX@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HIDEEP_MT_MAX@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _INPUT_MT_DIRECT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _INPUT_MT_DIRECT@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	bl	_input_mt_init_slots
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.5:
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_device_property_count_u32
	mov	x3, x0
	str	w0, [x20]
Lloh34:
	adrp	x8, _HIDEEP_KEY_MAX@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HIDEEP_KEY_MAX@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_10
; %bb.6:
	str	x3, [sp]
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh39:
	adrp	x8, _EINVAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh41:
	adrp	x1, l_.str@PAGE
Lloh42:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	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_10:
	cmp	w3, #0
	b.le	LBB0_13
; %bb.11:
	ldr	x2, [x20, #16]
Lloh45:
	adrp	x1, l_.str.1@PAGE
Lloh46:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_device_property_read_u32_array
	cbz	w0, LBB0_16
; %bb.12:
	mov	x21, x0
	str	x21, [sp]
Lloh47:
	adrp	x1, l_.str.4@PAGE
Lloh48:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	b	LBB0_9
LBB0_13:
Lloh49:
	adrp	x1, l_.str.3@PAGE
Lloh50:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_14:
	ldr	x0, [x20, #8]
	bl	_input_register_device
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.15:
	str	x21, [sp]
Lloh51:
	adrp	x1, l_.str.5@PAGE
Lloh52:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_9
LBB0_16:
	ldr	w9, [x20]
	cbz	w9, LBB0_14
; %bb.17:
	ldp	x0, x8, [x20, #8]
	str	x8, [x0, #8]
	mov	w10, #4
	stp	w10, w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.18:
Lloh53:
	adrp	x21, _EV_KEY@GOTPAGE
Lloh54:
	ldr	x21, [x21, _EV_KEY@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x8]
	bl	_input_set_capability
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_14
; %bb.19:
	mov	w22, #1
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldp	x0, x8, [x20, #8]
	ldr	w1, [x21]
	ldr	w2, [x8, x22, lsl #2]
	bl	_input_set_capability
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.lt	LBB0_20
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate input device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HIDEEP_TS_NAME,4,2             ; @HIDEEP_TS_NAME
	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ; @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_TOOL_TYPE,4,2           ; @ABS_MT_TOOL_TYPE
	.comm	_MT_TOOL_MAX,4,2                ; @MT_TOOL_MAX
	.comm	_HIDEEP_MT_MAX,4,2              ; @HIDEEP_MT_MAX
	.comm	_INPUT_MT_DIRECT,4,2            ; @INPUT_MT_DIRECT
l_.str.1:                               ; @.str.1
	.asciz	"linux,keycodes"

	.comm	_HIDEEP_KEY_MAX,4,2             ; @HIDEEP_KEY_MAX
l_.str.2:                               ; @.str.2
	.asciz	"too many keys defined: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"missing or malformed 'linux,keycodes' property\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to read keymap: %d"

	.comm	_EV_KEY,4,2                     ; @EV_KEY
l_.str.5:                               ; @.str.5
	.asciz	"failed to register input device: %d"

	.no_dead_strip	_hideep_init_input
.subsections_via_symbols
