	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function silead_ts_probe
_silead_ts_probe:                       ## @silead_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	16(%rdi), %r14
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	12(%rdi), %edi
	movq	_I2C_FUNC_SMBUS_WRITE_I2C_BLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r12, 16(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_silead_ts_set_default_fw_name
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movq	%r12, %rdi
	callq	_silead_ts_read_props
	cmpq	$0, (%r12)
	jle	LBB0_16
## %bb.4:
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rdi)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 8(%rdi)
	callq	_ARRAY_SIZE
	movq	8(%r15), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_devm_regulator_bulk_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	movq	8(%r15), %rsi
	movl	%eax, %edi
	callq	_regulator_bulk_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	movq	_silead_disable_regulator@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_devm_add_action_or_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:
	movl	(%r15), %edi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movl	(%r15), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_11:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_17:
	movq	%r12, %rdi
	callq	_silead_ts_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.18:
	movq	%r15, %rdi
	callq	_silead_ts_request_input_dev
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.19:
	movq	(%r12), %rsi
	movq	_silead_ts_threaded_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	8(%r12), %r9d
	movq	%r15, (%rsp)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_15
## %bb.20:
	movl	%eax, %r15d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_22:
	movl	%r15d, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.comm	_I2C_FUNC_SMBUS_READ_I2C_BLOCK,4,2 ## @I2C_FUNC_SMBUS_READ_I2C_BLOCK
	.comm	_I2C_FUNC_SMBUS_WRITE_I2C_BLOCK,4,2 ## @I2C_FUNC_SMBUS_WRITE_I2C_BLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C functionality check failed\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"vddio"

L_.str.2:                               ## @.str.2
	.asciz	"avdd"

	.comm	_silead_disable_regulator,4,2   ## @silead_disable_regulator
L_.str.3:                               ## @.str.3
	.asciz	"power"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.4:                               ## @.str.4
	.asciz	"Shutdown GPIO request failed\n"

	.comm	_silead_ts_threaded_irq_handler,4,2 ## @silead_ts_threaded_irq_handler
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.5:                               ## @.str.5
	.asciz	"IRQ request failed %d\n"

	.no_dead_strip	_silead_ts_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function silead_ts_probe
_silead_ts_probe:                       ; @silead_ts_probe
	.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	x22, x1
	mov	x20, x0
	add	x19, x0, #16
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _I2C_FUNC_SMBUS_WRITE_I2C_BLOCK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_WRITE_I2C_BLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_i2c_check_functionality
	cbz	w0, LBB0_11
; %bb.1:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.2:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
	str	x20, [x21, #16]
	mov	x0, x21
	mov	x1, x22
	bl	_silead_ts_set_default_fw_name
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_14
; %bb.3:
	mov	x0, x20
	bl	_silead_ts_read_props
	ldr	x8, [x20]
	cmp	x8, #0
	b.le	LBB0_15
; %bb.4:
	ldr	x0, [x21, #8]
Lloh12:
	adrp	x8, l_.str.1@PAGE
Lloh13:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh14:
	adrp	x9, l_.str.2@PAGE
Lloh15:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x8, x9, [x0]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [x21, #8]
	mov	x0, x19
	bl	_devm_regulator_bulk_get
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_14
; %bb.5:
	ldr	x0, [x21, #8]
	bl	_ARRAY_SIZE
	ldr	x1, [x21, #8]
	bl	_regulator_bulk_enable
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_14
; %bb.6:
Lloh16:
	adrp	x8, _silead_disable_regulator@GOTPAGE
Lloh17:
	ldr	x8, [x8, _silead_disable_regulator@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_add_action_or_reset
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_14
; %bb.7:
Lloh19:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	w0, [x21]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.8:
	ldr	w0, [x21]
	bl	_PTR_ERR
Lloh24:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_10
; %bb.9:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_10:
	ldr	w0, [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
	b	_PTR_ERR
LBB0_11:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh31:
	adrp	x8, _ENXIO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	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_15:
Lloh35:
	adrp	x8, _ENODEV@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_16:
	mov	x0, x20
	bl	_silead_ts_setup
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_14
; %bb.17:
	mov	x0, x21
	bl	_silead_ts_request_input_dev
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_14
; %bb.18:
Lloh37:
	adrp	x8, _silead_ts_threaded_irq_handler@GOTPAGE
Lloh38:
	ldr	x8, [x8, _silead_ts_threaded_irq_handler@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh39:
	ldr	w3, [x8]
Lloh40:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh42:
	ldr	w4, [x8]
	ldr	w5, [x20, #8]
	mov	x0, x19
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_14
; %bb.19:
Lloh43:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_14
; %bb.20:
	str	x0, [sp]
Lloh46:
	adrp	x1, l_.str.5@PAGE
Lloh47:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x20, x0
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.comm	_I2C_FUNC_SMBUS_READ_I2C_BLOCK,4,2 ; @I2C_FUNC_SMBUS_READ_I2C_BLOCK
	.comm	_I2C_FUNC_SMBUS_WRITE_I2C_BLOCK,4,2 ; @I2C_FUNC_SMBUS_WRITE_I2C_BLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C functionality check failed\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"vddio"

l_.str.2:                               ; @.str.2
	.asciz	"avdd"

	.comm	_silead_disable_regulator,4,2   ; @silead_disable_regulator
l_.str.3:                               ; @.str.3
	.asciz	"power"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.4:                               ; @.str.4
	.asciz	"Shutdown GPIO request failed\n"

	.comm	_silead_ts_threaded_irq_handler,4,2 ; @silead_ts_threaded_irq_handler
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.5:                               ; @.str.5
	.asciz	"IRQ request failed %d\n"

	.no_dead_strip	_silead_ts_probe
.subsections_via_symbols
