	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_trackpad
_init_trackpad:                         ## @init_trackpad
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movq	_ADBREQ_SYNC@GOTPCREL(%rip), %r14
	movq	_ADBREQ_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	orl	(%r14), %ebx
	movl	%r15d, %edi
	movl	$1, %esi
	callq	_ADB_READREG
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_adb_request
	cmpl	$7, -80(%rbp)
	jg	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_printk
	jmp	LBB0_3
LBB0_2:
	movq	-72(%rbp), %rsi
	addq	$4, %rsi
	leaq	-56(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	movl	(%r14), %ebx
	movl	%r15d, %edi
	movl	$1, %esi
	callq	_ADB_WRITEREG
	movzbl	-56(%rbp), %r9d
	movzbl	-55(%rbp), %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movzbl	-54(%rbp), %r11d
	movzbl	-53(%rbp), %r13d
	movzbl	-52(%rbp), %r14d
	movzbl	-51(%rbp), %r12d
	movzbl	-49(%rbp), %r10d
	subq	$8, %rsp
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	$9, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	pushq	%r10
	pushq	$13
	pushq	%r12
	pushq	%r14
	pushq	%r13
	pushq	%r11
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_adb_request
	addq	$64, %rsp
	movq	_ADBREQ_SYNC@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	%r15d, %edi
	movl	$2, %esi
	callq	_ADB_WRITEREG
	subq	$8, %rsp
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	$9, %ecx
	movl	%eax, %r8d
	movl	$153, %r9d
	xorl	%eax, %eax
	pushq	$80
	pushq	$27
	pushq	$138
	pushq	$178
	pushq	$255
	pushq	$25
	pushq	$148
	callq	_adb_request
	addq	$64, %rsp
	movl	(%r14), %r13d
	movl	%r15d, %edi
	movl	$1, %esi
	callq	_ADB_WRITEREG
	movzbl	-56(%rbp), %r9d
	movzbl	-55(%rbp), %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movzbl	-54(%rbp), %r11d
	movzbl	-53(%rbp), %r14d
	movzbl	-52(%rbp), %r12d
	movzbl	-51(%rbp), %ebx
	movzbl	-49(%rbp), %r10d
	subq	$8, %rsp
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	movl	$9, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	pushq	%r10
	pushq	$3
	pushq	%rbx
	pushq	%r12
	pushq	%r14
	pushq	%r11
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_adb_request
	addq	$64, %rsp
	movq	_ADBREQ_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_ADB_FLUSH
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_adb_request
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" (trackpad)"

	.comm	_ADBREQ_SYNC,4,2                ## @ADBREQ_SYNC
	.comm	_ADBREQ_REPLY,4,2               ## @ADBREQ_REPLY
L_.str.1:                               ## @.str.1
	.asciz	"bad length for reg. 1\n"

	.no_dead_strip	_init_trackpad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_trackpad
_init_trackpad:                         ; @init_trackpad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
Lloh5:
	adrp	x21, _ADBREQ_SYNC@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ADBREQ_SYNC@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _ADBREQ_REPLY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ADBREQ_REPLY@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w20, w9, w8
	mov	x0, x19
	mov	w1, #1
	bl	_ADB_READREG
	mov	x4, x0
	add	x0, sp, #64
	mov	x1, #0
	mov	x2, x20
	mov	w3, #1
	bl	_adb_request
	ldr	w8, [sp, #64]
	cmp	w8, #7
	b.gt	LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	b	LBB0_3
LBB0_2:
	ldr	x8, [sp, #72]
	add	x1, x8, #4
	sub	x0, x29, #48
	mov	w2, #8
	bl	_memcpy
	ldr	w20, [x21]
	mov	x0, x19
	mov	w1, #1
	bl	_ADB_WRITEREG
	mov	x4, x0
	ldurb	w8, [x29, #-48]
	ldurb	w9, [x29, #-47]
	ldurb	w10, [x29, #-46]
	ldurb	w11, [x29, #-45]
	ldurb	w12, [x29, #-44]
	ldurb	w13, [x29, #-43]
	ldurb	w14, [x29, #-41]
	mov	w15, #13
	stp	x15, x14, [sp, #48]
	stp	x12, x13, [sp, #32]
	add	x0, sp, #64
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
	mov	x1, #0
	mov	x2, x20
	mov	w3, #9
	bl	_adb_request
	ldr	w20, [x21]
	mov	x0, x19
	mov	w1, #2
	bl	_ADB_WRITEREG
	mov	x4, x0
	mov	w8, #80
	mov	w9, #27
	stp	x9, x8, [sp, #48]
	mov	w8, #138
	mov	w9, #178
	stp	x9, x8, [sp, #32]
	mov	w8, #255
	mov	w9, #25
	mov	w10, #148
	mov	w11, #153
	stp	x9, x8, [sp, #16]
	add	x0, sp, #64
	stp	x11, x10, [sp]
	mov	x1, #0
	mov	x2, x20
	mov	w3, #9
	bl	_adb_request
	ldr	w20, [x21]
	mov	x0, x19
	mov	w1, #1
	bl	_ADB_WRITEREG
	mov	x4, x0
	ldurb	w8, [x29, #-48]
	ldurb	w9, [x29, #-47]
	ldurb	w10, [x29, #-46]
	ldurb	w11, [x29, #-45]
	ldurb	w12, [x29, #-44]
	ldurb	w13, [x29, #-43]
	ldurb	w14, [x29, #-41]
	mov	w15, #3
	stp	x15, x14, [sp, #48]
	stp	x12, x13, [sp, #32]
	add	x0, sp, #64
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
	mov	x1, #0
	mov	x2, x20
	mov	w3, #9
	bl	_adb_request
	ldr	w20, [x21]
	mov	x0, x19
	bl	_ADB_FLUSH
	mov	x4, x0
	add	x0, sp, #64
	mov	x1, #0
	mov	x2, x20
	mov	w3, #1
	bl	_adb_request
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" (trackpad)"

	.comm	_ADBREQ_SYNC,4,2                ; @ADBREQ_SYNC
	.comm	_ADBREQ_REPLY,4,2               ; @ADBREQ_REPLY
l_.str.1:                               ; @.str.1
	.asciz	"bad length for reg. 1\n"

	.no_dead_strip	_init_trackpad
.subsections_via_symbols
