	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9052_ts_probe
_da9052_ts_probe:                       ## @da9052_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, %r15
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	movq	%rax, %r14
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %r12
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	testq	%r12, %r12
	je	LBB0_4
## %bb.5:
	movq	%rbx, 8(%r14)
	movq	%r12, 16(%r14)
	movl	$1, (%r14)
	movq	%r14, %rdi
	addq	$24, %rdi
	movq	_da9052_ts_pen_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movabsq	$23871428231425, %rax           ## imm = 0x15B600000101
	movq	%rax, 32(%r12)
	movl	$36946, 40(%r12)                ## imm = 0x9052
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r12)
	movq	%r15, 24(%r12)
	movq	_da9052_ts_input_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_da9052_ts_input_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r12), %esi
	callq	___set_bit
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r12), %esi
	callq	___set_bit
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %esi
	callq	___set_bit
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	$1023, %ecx                     ## imm = 0x3FF
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	$1023, %ecx                     ## imm = 0x3FF
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	$1023, %ecx                     ## imm = 0x3FF
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_input_set_drvdata
	movq	8(%r14), %rdi
	movq	_DA9052_TSI_CONT_A_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_da9052_reg_update
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_da9052_ts_adc_toggle
	movq	8(%r14), %rdi
	movq	_DA9052_IRQ_PENDOWN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_da9052_ts_pendwn_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %r8
	callq	_da9052_request_irq
	movq	8(%r14), %rdi
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r13d
	movl	(%rdi), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_15
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_7:
	movq	_DA9052_IRQ_TSIREADY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_da9052_ts_datardy_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %r8
	callq	_da9052_request_irq
	movq	8(%r14), %rdi
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r13d
	movl	(%rdi), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_13
LBB0_9:
	movl	(%rbx), %esi
	callq	_da9052_disable_irq
	movq	8(%r14), %rdi
	movq	_DA9052_IRQ_TSIREADY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_da9052_disable_irq
	movq	%r14, %rdi
	callq	_da9052_configure_tsi
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	16(%r14), %rdi
	callq	_input_register_device
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_11
LBB0_12:
	movq	8(%r14), %rdi
	movq	_DA9052_IRQ_TSIREADY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_da9052_free_irq
LBB0_13:
	movq	8(%r14), %rdi
	movl	(%rbx), %esi
	movq	%r14, %rdx
	callq	_da9052_free_irq
LBB0_14:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_input_free_device
LBB0_15:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%r13d, %r13d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_da9052_ts_pen_work,4,2         ## @da9052_ts_pen_work
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dialog DA9052 TouchScreen Driver"

	.comm	_da9052_ts_input_open,4,2       ## @da9052_ts_input_open
	.comm	_da9052_ts_input_close,4,2      ## @da9052_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_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_DA9052_TSI_CONT_A_REG,4,2      ## @DA9052_TSI_CONT_A_REG
	.comm	_DA9052_IRQ_PENDOWN,4,2         ## @DA9052_IRQ_PENDOWN
L_.str.1:                               ## @.str.1
	.asciz	"pendown-irq"

	.comm	_da9052_ts_pendwn_irq,4,2       ## @da9052_ts_pendwn_irq
L_.str.2:                               ## @.str.2
	.asciz	"Failed to register PENDWN IRQ: %d\n"

	.comm	_DA9052_IRQ_TSIREADY,4,2        ## @DA9052_IRQ_TSIREADY
L_.str.3:                               ## @.str.3
	.asciz	"tsiready-irq"

	.comm	_da9052_ts_datardy_irq,4,2      ## @da9052_ts_datardy_irq
L_.str.4:                               ## @.str.4
	.asciz	"Failed to register TSIRDY IRQ :%d\n"

	.no_dead_strip	_da9052_ts_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function da9052_ts_probe
lCPI0_0:
	.long	257                             ; 0x101
	.long	5558                            ; 0x15b6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_da9052_ts_probe:                       ; @da9052_ts_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	x21, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	mov	x19, x0
	bl	_input_allocate_device
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_4:
	stp	x22, x20, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
	add	x0, x19, #24
Lloh9:
	adrp	x8, _da9052_ts_pen_work@GOTPAGE
Lloh10:
	ldr	x8, [x8, _da9052_ts_pen_work@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20, #32]
	mov	w8, #36946
	str	w8, [x20, #40]
Lloh14:
	adrp	x8, l_.str@PAGE
Lloh15:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x20]
	str	x21, [x20, #24]
Lloh16:
	adrp	x8, _da9052_ts_input_open@GOTPAGE
Lloh17:
	ldr	x8, [x8, _da9052_ts_input_open@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _da9052_ts_input_close@GOTPAGE
Lloh20:
	ldr	x9, [x9, _da9052_ts_input_close@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh22:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	___set_bit
Lloh25:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	___set_bit
Lloh28:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	___set_bit
Lloh31:
	adrp	x8, _ABS_X@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1023
	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]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1023
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh37:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1023
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	mov	x0, x20
	mov	x1, x19
	bl	_input_set_drvdata
	ldr	x0, [x19, #8]
Lloh40:
	adrp	x8, _DA9052_TSI_CONT_A_REG@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DA9052_TSI_CONT_A_REG@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	w2, #2
	mov	w3, #0
	bl	_da9052_reg_update
	mov	x0, x19
	mov	w1, #0
	bl	_da9052_ts_adc_toggle
	ldr	x0, [x19, #8]
Lloh43:
	adrp	x23, _DA9052_IRQ_PENDOWN@GOTPAGE
Lloh44:
	ldr	x23, [x23, _DA9052_IRQ_PENDOWN@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh45:
	adrp	x8, _da9052_ts_pendwn_irq@GOTPAGE
Lloh46:
	ldr	x8, [x8, _da9052_ts_pendwn_irq@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
Lloh48:
	adrp	x2, l_.str.1@PAGE
Lloh49:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x4, x19
	bl	_da9052_request_irq
	mov	x22, x0
	ldr	x0, [x19, #8]
	cbz	w22, LBB0_6
; %bb.5:
	ldr	w0, [x0]
Lloh50:
	adrp	x1, l_.str.2@PAGE
Lloh51:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_12
LBB0_6:
Lloh52:
	adrp	x24, _DA9052_IRQ_TSIREADY@GOTPAGE
Lloh53:
	ldr	x24, [x24, _DA9052_IRQ_TSIREADY@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh54:
	adrp	x8, _da9052_ts_datardy_irq@GOTPAGE
Lloh55:
	ldr	x8, [x8, _da9052_ts_datardy_irq@GOTPAGEOFF]
Lloh56:
	ldr	w3, [x8]
Lloh57:
	adrp	x2, l_.str.3@PAGE
Lloh58:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x4, x19
	bl	_da9052_request_irq
	mov	x22, x0
	ldr	x0, [x19, #8]
	cbz	w22, LBB0_8
; %bb.7:
	ldr	w0, [x0]
Lloh59:
	adrp	x1, l_.str.4@PAGE
Lloh60:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_11
LBB0_8:
	ldr	w1, [x23]
	bl	_da9052_disable_irq
	ldr	x0, [x19, #8]
	ldr	w1, [x24]
	bl	_da9052_disable_irq
	mov	x0, x19
	bl	_da9052_configure_tsi
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	x0, [x19, #16]
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_14
LBB0_10:
	ldr	x0, [x19, #8]
	ldr	w1, [x24]
	mov	x2, x19
	bl	_da9052_free_irq
LBB0_11:
	ldr	x0, [x19, #8]
	ldr	w1, [x23]
	mov	x2, x19
	bl	_da9052_free_irq
LBB0_12:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	bl	_input_free_device
LBB0_13:
	mov	x0, x22
	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_14:
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.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 AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_da9052_ts_pen_work,4,2         ; @da9052_ts_pen_work
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dialog DA9052 TouchScreen Driver"

	.comm	_da9052_ts_input_open,4,2       ; @da9052_ts_input_open
	.comm	_da9052_ts_input_close,4,2      ; @da9052_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_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_DA9052_TSI_CONT_A_REG,4,2      ; @DA9052_TSI_CONT_A_REG
	.comm	_DA9052_IRQ_PENDOWN,4,2         ; @DA9052_IRQ_PENDOWN
l_.str.1:                               ; @.str.1
	.asciz	"pendown-irq"

	.comm	_da9052_ts_pendwn_irq,4,2       ; @da9052_ts_pendwn_irq
l_.str.2:                               ; @.str.2
	.asciz	"Failed to register PENDWN IRQ: %d\n"

	.comm	_DA9052_IRQ_TSIREADY,4,2        ; @DA9052_IRQ_TSIREADY
l_.str.3:                               ; @.str.3
	.asciz	"tsiready-irq"

	.comm	_da9052_ts_datardy_irq,4,2      ; @da9052_ts_datardy_irq
l_.str.4:                               ; @.str.4
	.asciz	"Failed to register TSIRDY IRQ :%d\n"

	.no_dead_strip	_da9052_ts_probe
.subsections_via_symbols
