	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsp_init                       ## -- Begin function fsp_init
	.p2align	4, 0x90
_fsp_init:                              ## @fsp_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$0, -24(%rbp)
	leaq	-20(%rbp), %rsi
	callq	_fsp_get_version
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_fsp_get_revision
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	-20(%rbp), %ecx
	movq	_FSP_VER_STL3888_C0@GOTPCREL(%rip), %rax
	xorl	%r9d, %r9d
	cmpl	(%rax), %ecx
	jl	LBB0_6
## %bb.5:
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_fsp_get_sn
	movl	-20(%rbp), %ecx
	movl	-24(%rbp), %r9d
LBB0_6:
	movl	%ecx, %edx
	sarl	$4, %edx
	andl	$15, %ecx
	movl	-28(%rbp), %r8d
	movq	_fsp_drv_ver@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_psmouse_info
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	-20(%rbp), %ecx
	movl	%ecx, (%rax)
	movl	-28(%rbp), %ecx
	movl	%ecx, 4(%rax)
	movq	_fsp_process_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	_fsp_disconnect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_fsp_reconnect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_fsp_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	$4, (%r14)
	movq	%r14, %rdi
	callq	_fsp_activate_protocol
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	%r14, %rdi
	callq	_fsp_set_input_params
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	16(%r14), %rdi
	movq	_fsp_attribute_group@GOTPCREL(%rip), %rsi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_psmouse_err
LBB0_13:
	movq	8(%r14), %rdi
	callq	_kfree
	movq	$0, 8(%r14)
	jmp	LBB0_14
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_FSP_VER_STL3888_C0,4,2         ## @FSP_VER_STL3888_C0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Finger Sensing Pad, hw: %d.%d.%d, sn: %x, sw: %s\n"

	.comm	_fsp_drv_ver,4,2                ## @fsp_drv_ver
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fsp_process_byte,4,2           ## @fsp_process_byte
	.comm	_fsp_disconnect,4,2             ## @fsp_disconnect
	.comm	_fsp_reconnect,4,2              ## @fsp_reconnect
	.comm	_fsp_reset,4,2                  ## @fsp_reset
	.comm	_fsp_attribute_group,4,2        ## @fsp_attribute_group
L_.str.1:                               ## @.str.1
	.asciz	"Failed to create sysfs attributes (%d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsp_init                       ; -- Begin function fsp_init
	.p2align	2
_fsp_init:                              ; @fsp_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #4]
	add	x1, sp, #12
	bl	_fsp_get_version
	cbnz	x0, LBB0_2
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_fsp_get_revision
	cbz	x0, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _FSP_VER_STL3888_C0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FSP_VER_STL3888_C0@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.6:
	mov	w5, #0
	b	LBB0_8
LBB0_7:
	add	x1, sp, #4
	mov	x0, x19
	bl	_fsp_get_sn
	ldr	w8, [sp, #12]
	ldr	w5, [sp, #4]
LBB0_8:
	asr	w2, w8, #4
	and	w3, w8, #0xf
	ldr	w4, [sp, #8]
Lloh5:
	adrp	x8, _fsp_drv_ver@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fsp_drv_ver@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_psmouse_info
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_14
; %bb.9:
	ldr	w8, [sp, #12]
	str	w8, [x0]
	ldr	w8, [sp, #8]
	str	w8, [x0, #4]
Lloh13:
	adrp	x8, _fsp_process_byte@GOTPAGE
Lloh14:
	ldr	x8, [x8, _fsp_process_byte@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _fsp_disconnect@GOTPAGE
Lloh17:
	ldr	x9, [x9, _fsp_disconnect@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
Lloh19:
	adrp	x8, _fsp_reconnect@GOTPAGE
Lloh20:
	ldr	x8, [x8, _fsp_reconnect@GOTPAGEOFF]
Lloh21:
	adrp	x9, _fsp_reset@GOTPAGE
Lloh22:
	ldr	x9, [x9, _fsp_reset@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	mov	w8, #4
	str	w8, [x19]
	mov	x0, x19
	bl	_fsp_activate_protocol
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.10:
	mov	x0, x19
	bl	_fsp_set_input_params
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.11:
	ldr	x0, [x19, #16]
Lloh25:
	adrp	x1, _fsp_attribute_group@GOTPAGE
Lloh26:
	ldr	x1, [x1, _fsp_attribute_group@GOTPAGEOFF]
	bl	_sysfs_create_group
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.12:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_psmouse_err
LBB0_13:
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
	b	LBB0_4
LBB0_14:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_FSP_VER_STL3888_C0,4,2         ; @FSP_VER_STL3888_C0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Finger Sensing Pad, hw: %d.%d.%d, sn: %x, sw: %s\n"

	.comm	_fsp_drv_ver,4,2                ; @fsp_drv_ver
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fsp_process_byte,4,2           ; @fsp_process_byte
	.comm	_fsp_disconnect,4,2             ; @fsp_disconnect
	.comm	_fsp_reconnect,4,2              ; @fsp_reconnect
	.comm	_fsp_reset,4,2                  ; @fsp_reset
	.comm	_fsp_attribute_group,4,2        ; @fsp_attribute_group
l_.str.1:                               ; @.str.1
	.asciz	"Failed to create sysfs attributes (%d)"

.subsections_via_symbols
