	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm97xx_register_touch
_wm97xx_register_touch:                 ## @wm97xx_register_touch
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	callq	_dev_get_platdata
	movq	%rax, %r14
	movl	16(%r15), %edi
	callq	_devm_input_allocate_device
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_wm97xx_ts_input_open@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	_wm97xx_ts_input_close@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movq	_EV_ABS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	24(%rax), %esi
	callq	___set_bit
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rax
	movl	24(%rax), %esi
	callq	___set_bit
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rax
	movl	20(%rax), %esi
	callq	___set_bit
	movq	(%r15), %rdi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_abs_x@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movl	8(%rax), %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	(%r15), %rdi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_abs_y@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movl	8(%rax), %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	(%r15), %rdi
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_abs_p@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movl	8(%rax), %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	(%r15), %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movl	16(%r15), %eax
	movq	(%r15), %rdi
	movl	%eax, 16(%rdi)
	callq	_input_register_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	movl	$-1, %esi
	callq	_platform_device_alloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movl	16(%r15), %eax
	movq	8(%r15), %rdi
	movl	%eax, 8(%rdi)
	movq	%r14, (%rdi)
	callq	_platform_device_add
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.6:
	movl	%eax, %r14d
	movq	8(%r15), %rdi
	callq	_platform_device_put
	movl	%r14d, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	(%r15), %rdi
	callq	_input_unregister_device
	movq	$0, (%r15)
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wm97xx touchscreen"

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

	.comm	_wm97xx_ts_input_open,4,2       ## @wm97xx_ts_input_open
	.comm	_wm97xx_ts_input_close,4,2      ## @wm97xx_ts_input_close
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_abs_x,8,3                      ## @abs_x
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_abs_y,8,3                      ## @abs_y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_abs_p,8,3                      ## @abs_p
L_.str.2:                               ## @.str.2
	.asciz	"wm97xx-touch"

	.no_dead_strip	_wm97xx_register_touch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm97xx_register_touch
_wm97xx_register_touch:                 ; @wm97xx_register_touch
	.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	x19, x0
	ldr	w0, [x0, #16]
	bl	_dev_get_platdata
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_devm_input_allocate_device
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x8, x9, [x0]
Lloh4:
	adrp	x8, _wm97xx_ts_input_open@GOTPAGE
Lloh5:
	ldr	x8, [x8, _wm97xx_ts_input_open@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _wm97xx_ts_input_close@GOTPAGE
Lloh8:
	ldr	x9, [x9, _wm97xx_ts_input_close@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #28]
Lloh10:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w1, [x0, #24]
	mov	x0, x8
	bl	___set_bit
Lloh13:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w1, [x8, #24]
	bl	___set_bit
Lloh16:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w1, [x8, #20]
	bl	___set_bit
	ldr	x0, [x19]
Lloh19:
	adrp	x8, _ABS_X@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _abs_x@GOTPAGE
Lloh23:
	ldr	x8, [x8, _abs_x@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldp	w2, w3, [x8]
	ldr	w4, [x8, #8]
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x19]
Lloh25:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _abs_y@GOTPAGE
Lloh29:
	ldr	x8, [x8, _abs_y@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ldp	w2, w3, [x8]
	ldr	w4, [x8, #8]
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x19]
Lloh31:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _abs_p@GOTPAGE
Lloh35:
	ldr	x8, [x8, _abs_p@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldp	w2, w3, [x8]
	ldr	w4, [x8, #8]
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x19]
	mov	x1, x19
	bl	_input_set_drvdata
	ldr	w8, [x19, #16]
	ldr	x0, [x19]
	str	w8, [x0, #16]
	bl	_input_register_device
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.2:
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #-1
	bl	_platform_device_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.3:
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	w8, [x19, #16]
	ldr	x0, [x19, #8]
	str	w8, [x0, #8]
	str	x20, [x0]
	bl	_platform_device_add
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	w21, #0
	b	LBB0_9
LBB0_5:
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_6:
Lloh42:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_7:
	mov	x21, x0
	ldr	x0, [x19, #8]
	bl	_platform_device_put
LBB0_8:
	ldr	x0, [x19]
	bl	_input_unregister_device
	str	xzr, [x19]
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wm97xx touchscreen"

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

	.comm	_wm97xx_ts_input_open,4,2       ; @wm97xx_ts_input_open
	.comm	_wm97xx_ts_input_close,4,2      ; @wm97xx_ts_input_close
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_abs_x,8,3                      ; @abs_x
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_abs_y,8,3                      ; @abs_y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_abs_p,8,3                      ; @abs_p
l_.str.2:                               ; @.str.2
	.asciz	"wm97xx-touch"

	.no_dead_strip	_wm97xx_register_touch
.subsections_via_symbols
