	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cypress_init                   ## -- Begin function cypress_init
	.p2align	4, 0x90
_cypress_init:                          ## @cypress_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, 8(%rbx)
	movl	$8, (%rbx)
	movq	%rbx, %rdi
	callq	_cypress_reset
	movq	%rbx, %rdi
	callq	_cypress_query_hardware
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_4:
	movq	%rbx, %rdi
	callq	_cypress_set_absolute_mode
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movq	%rbx, %rdi
	callq	_psmouse_err
	movq	%rbx, %rdi
	callq	_cypress_reset
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	_kfree
	movl	$-1, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movl	48(%rbx), %edi
	movq	%r14, %rsi
	callq	_cypress_set_input_params
	testq	%rax, %rax
	js	LBB0_7
## %bb.10:
	movl	$1, 4(%rbx)
	movq	_cypress_protocol_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_cypress_set_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_cypress_disconnect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_cypress_reconnect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_cypress_reset@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	$0, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to query Trackpad hardware.\n"

L_.str.1:                               ## @.str.1
	.asciz	"init: Unable to initialize Cypress absolute mode.\n"

L_.str.2:                               ## @.str.2
	.asciz	"init: Unable to set input params.\n"

	.comm	_cypress_protocol_handler,4,2   ## @cypress_protocol_handler
	.comm	_cypress_set_rate,4,2           ## @cypress_set_rate
	.comm	_cypress_disconnect,4,2         ## @cypress_disconnect
	.comm	_cypress_reconnect,4,2          ## @cypress_reconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cypress_init                   ; -- Begin function cypress_init
	.p2align	2
_cypress_init:                          ; @cypress_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x0, [x19, #8]
	mov	w8, #8
	str	w8, [x19]
	mov	x0, x19
	bl	_cypress_reset
	mov	x0, x19
	bl	_cypress_query_hardware
	cbz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_cypress_set_absolute_mode
	cbz	x0, LBB0_8
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_psmouse_err
	mov	x0, x19
	bl	_cypress_reset
	str	xzr, [x19, #8]
	mov	x0, x20
	bl	_kfree
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x19, #48]
	mov	x1, x20
	bl	_cypress_set_input_params
	tbnz	x0, #63, LBB0_10
; %bb.9:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #4]
Lloh10:
	adrp	x8, _cypress_protocol_handler@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cypress_protocol_handler@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _cypress_set_rate@GOTPAGE
Lloh14:
	ldr	x9, [x9, _cypress_set_rate@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
Lloh16:
	adrp	x8, _cypress_disconnect@GOTPAGE
Lloh17:
	ldr	x8, [x8, _cypress_disconnect@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _cypress_reconnect@GOTPAGE
Lloh20:
	ldr	x9, [x9, _cypress_reconnect@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
Lloh22:
	adrp	x8, _cypress_reset@GOTPAGE
Lloh23:
	ldr	x8, [x8, _cypress_reset@GOTPAGEOFF]
	stp	xzr, x8, [x19, #16]
	b	LBB0_7
LBB0_10:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to query Trackpad hardware.\n"

l_.str.1:                               ; @.str.1
	.asciz	"init: Unable to initialize Cypress absolute mode.\n"

l_.str.2:                               ; @.str.2
	.asciz	"init: Unable to set input params.\n"

	.comm	_cypress_protocol_handler,4,2   ; @cypress_protocol_handler
	.comm	_cypress_set_rate,4,2           ; @cypress_set_rate
	.comm	_cypress_disconnect,4,2         ; @cypress_disconnect
	.comm	_cypress_reconnect,4,2          ; @cypress_reconnect
.subsections_via_symbols
