	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyapa_probe
_cyapa_probe:                           ## @cyapa_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	16(%rdi), %r14
	callq	_cyapa_check_adapter_functionality
	movq	%rax, %rbx
	movq	_CYAPA_ADAPTER_FUNC_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_30
LBB0_2:
	movq	8(%r13), %rdi
	movl	(%r13), %esi
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_I2C_SMBUS_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_i2c_smbus_xfer
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	movq	_CYAPA_ADAPTER_FUNC_SMBUS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_8
## %bb.7:
	movl	$1, (%r12)
LBB0_8:
	movq	%r13, 24(%r12)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movl	20(%r12), %edi
	movq	8(%r13), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movl	%eax, 16(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	16(%r12), %edi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	jmp	LBB0_13
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_30
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_30
LBB0_10:
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
LBB0_14:
	movq	_cyapa_disable_regulator@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_devm_add_action
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_cyapa_disable_regulator
	leaq	L_.str.5(%rip), %rsi
LBB0_12:
	movq	%r14, %rdi
	movl	%r15d, %edx
LBB0_13:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_30:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r12, %rdi
	callq	_cyapa_initialize
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_30
LBB0_18:
	movq	_cyapa_sysfs_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_device_add_group
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %r15d
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_12
LBB0_20:
	movq	%r12, %rdi
	callq	_cyapa_prepare_wakeup_controls
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %r15d
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_12
LBB0_22:
	movq	%r12, %rdi
	callq	_cyapa_start_runtime
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	%eax, %r15d
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_12
LBB0_24:
	movl	4(%r13), %esi
	movq	_cyapa_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	%r12, (%rsp)
	leaq	L_.str.10(%rip), %r9
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %ebx
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_29
LBB0_26:
	movl	4(%r13), %edi
	callq	_disable_irq
	cmpq	$0, 8(%r12)
	je	LBB0_30
## %bb.27:
	movq	%r12, %rdi
	callq	_cyapa_create_input_dev
	testl	%eax, %eax
	je	LBB0_30
## %bb.28:
	movl	%eax, %ebx
	leaq	L_.str.12(%rip), %rsi
LBB0_29:
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r15d
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_CYAPA_ADAPTER_FUNC_NONE,8,3    ## @CYAPA_ADAPTER_FUNC_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not a supported I2C/SMBus adapter\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_I2C_SMBUS_READ,4,2             ## @I2C_SMBUS_READ
	.comm	_I2C_SMBUS_BYTE,4,2             ## @I2C_SMBUS_BYTE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CYAPA_ADAPTER_FUNC_SMBUS,8,3   ## @CYAPA_ADAPTER_FUNC_SMBUS
L_.str.1:                               ## @.str.1
	.asciz	"i2c-%d-%04x/input0"

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

L_.str.3:                               ## @.str.3
	.asciz	"failed to get vcc regulator: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to enable regulator: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to add disable regulator action: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed to detect and initialize tp device.\n"

	.comm	_cyapa_sysfs_group,4,2          ## @cyapa_sysfs_group
L_.str.7:                               ## @.str.7
	.asciz	"failed to create sysfs entries: %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"failed to prepare wakeup controls: %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"failed to start pm_runtime: %d\n"

	.comm	_cyapa_irq,4,2                  ## @cyapa_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.10:                              ## @.str.10
	.asciz	"cyapa"

L_.str.11:                              ## @.str.11
	.asciz	"failed to request threaded irq: %d\n"

L_.str.12:                              ## @.str.12
	.asciz	"create input_dev instance failed: %d\n"

	.no_dead_strip	_cyapa_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyapa_probe
_cyapa_probe:                           ; @cyapa_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	x20, x0
	add	x19, x0, #16
	bl	_cyapa_check_adapter_functionality
Lloh0:
	adrp	x8, _CYAPA_ADAPTER_FUNC_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CYAPA_ADAPTER_FUNC_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x22, x0
	ldr	x0, [x20, #8]
	ldr	w1, [x20]
Lloh7:
	adrp	x8, _I2C_SMBUS_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I2C_SMBUS_READ@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x8, _I2C_SMBUS_BYTE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I2C_SMBUS_BYTE@GOTPAGEOFF]
Lloh12:
	ldr	w5, [x8]
	add	x6, sp, #8
	mov	w2, #0
	mov	w4, #0
	bl	_i2c_smbus_xfer
	tbnz	x0, #63, LBB0_9
; %bb.3:
Lloh13:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.4:
	mov	x21, x0
Lloh16:
	adrp	x8, _CYAPA_ADAPTER_FUNC_SMBUS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CYAPA_ADAPTER_FUNC_SMBUS@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x21]
LBB0_6:
	str	x20, [x21, #24]
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
	ldr	w0, [x21, #20]
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
	ldr	w3, [x20]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sprintf
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x21, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x21, #16]
	cbz	x8, LBB0_13
; %bb.7:
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_9:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	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
	add	sp, sp, #64
	ret
LBB0_13:
	bl	_regulator_enable
	cbz	w0, LBB0_15
; %bb.14:
	mov	x22, x0
	str	x22, [sp]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_15:
Lloh31:
	adrp	x1, _cyapa_disable_regulator@GOTPAGE
Lloh32:
	ldr	x1, [x1, _cyapa_disable_regulator@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_add_action
	cbz	w0, LBB0_18
; %bb.16:
	mov	x22, x0
	mov	x0, x21
	bl	_cyapa_disable_regulator
	str	x22, [sp]
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_12
LBB0_18:
	mov	x0, x21
	bl	_cyapa_initialize
	cbz	w0, LBB0_20
; %bb.19:
	mov	x22, x0
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_8
LBB0_20:
Lloh37:
	adrp	x1, _cyapa_sysfs_group@GOTPAGE
Lloh38:
	ldr	x1, [x1, _cyapa_sysfs_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_device_add_group
	cbz	w0, LBB0_22
; %bb.21:
	mov	x22, x0
	str	x22, [sp]
Lloh39:
	adrp	x1, l_.str.7@PAGE
Lloh40:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_17
LBB0_22:
	mov	x0, x21
	bl	_cyapa_prepare_wakeup_controls
	cbz	w0, LBB0_24
; %bb.23:
	mov	x22, x0
	str	x22, [sp]
Lloh41:
	adrp	x1, l_.str.8@PAGE
Lloh42:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_17
LBB0_24:
	mov	x0, x21
	bl	_cyapa_start_runtime
	cbz	w0, LBB0_26
; %bb.25:
	mov	x22, x0
	str	x22, [sp]
Lloh43:
	adrp	x1, l_.str.9@PAGE
Lloh44:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_17
LBB0_26:
	ldr	w1, [x20, #4]
Lloh45:
	adrp	x8, _cyapa_irq@GOTPAGE
Lloh46:
	ldr	x8, [x8, _cyapa_irq@GOTPAGEOFF]
Lloh47:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh48:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh49:
	ldr	w3, [x8]
Lloh50:
	ldr	w8, [x9]
Lloh51:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh52:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh54:
	adrp	x5, l_.str.10@PAGE
Lloh55:
	add	x5, x5, l_.str.10@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_28
; %bb.27:
	mov	x22, x0
	str	x22, [sp]
Lloh56:
	adrp	x1, l_.str.11@PAGE
Lloh57:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_17
LBB0_28:
	ldr	w0, [x20, #4]
	bl	_disable_irq
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_31
; %bb.29:
	mov	x0, x21
	bl	_cyapa_create_input_dev
	mov	x22, x0
	cbz	w0, LBB0_12
; %bb.30:
	str	x22, [sp]
Lloh58:
	adrp	x1, l_.str.12@PAGE
Lloh59:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_17
LBB0_31:
	mov	w22, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh49
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_CYAPA_ADAPTER_FUNC_NONE,8,3    ; @CYAPA_ADAPTER_FUNC_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not a supported I2C/SMBus adapter\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_I2C_SMBUS_READ,4,2             ; @I2C_SMBUS_READ
	.comm	_I2C_SMBUS_BYTE,4,2             ; @I2C_SMBUS_BYTE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CYAPA_ADAPTER_FUNC_SMBUS,8,3   ; @CYAPA_ADAPTER_FUNC_SMBUS
l_.str.1:                               ; @.str.1
	.asciz	"i2c-%d-%04x/input0"

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

l_.str.3:                               ; @.str.3
	.asciz	"failed to get vcc regulator: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to enable regulator: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to add disable regulator action: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed to detect and initialize tp device.\n"

	.comm	_cyapa_sysfs_group,4,2          ; @cyapa_sysfs_group
l_.str.7:                               ; @.str.7
	.asciz	"failed to create sysfs entries: %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"failed to prepare wakeup controls: %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"failed to start pm_runtime: %d\n"

	.comm	_cyapa_irq,4,2                  ; @cyapa_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.10:                              ; @.str.10
	.asciz	"cyapa"

l_.str.11:                              ; @.str.11
	.asciz	"failed to request threaded irq: %d\n"

l_.str.12:                              ; @.str.12
	.asciz	"create input_dev instance failed: %d\n"

	.no_dead_strip	_cyapa_probe
.subsections_via_symbols
