	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetSerialMousePnpId
_GetSerialMousePnpId:                   ## @GetSerialMousePnpId
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	4(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$9, %esi
	callq	_WRITE_PORT_UCHAR
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_StallExecutionProcessor
	movq	%rbx, %rdi
	movl	$11, %esi
	callq	_WRITE_PORT_UCHAR
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_StallExecutionProcessor
	leaq	5(%r15), %r12
	movl	$200, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_READ_PORT_UCHAR
	movl	%eax, %r14d
	andl	$223, %eax
	movl	$200, %ebx
	cmpl	$8, %eax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_READ_PORT_UCHAR
	testb	$1, %al
	jne	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_StallExecutionProcessor
	decl	%ebx
	jne	LBB0_2
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movb	%r14b, (%r13)
	shll	$24, %r14d
	addl	$16777216, %r14d                ## imm = 0x1000000
	movl	$1, %r13d
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	$-200, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_READ_PORT_UCHAR
	testb	$1, %al
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_StallExecutionProcessor
	incl	%ebx
	jne	LBB0_7
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_READ_PORT_UCHAR
	movl	%eax, %ecx
	leaq	1(%r13), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movb	%cl, (%rdx,%r13)
	shll	$24, %ecx
	cmpl	%r14d, %ecx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$255, %r13
	movq	%rax, %r13
	jb	LBB0_6
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_GetSerialMousePnpId
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetSerialMousePnpId
_GetSerialMousePnpId:                   ; @GetSerialMousePnpId
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	add	x21, x0, #4
	mov	x0, x21
	mov	w1, #9
	bl	_WRITE_PORT_UCHAR
	mov	w0, #10000
	bl	_StallExecutionProcessor
	mov	x0, x21
	mov	w1, #11
	bl	_WRITE_PORT_UCHAR
	mov	w0, #10000
	bl	_StallExecutionProcessor
	add	x21, x20, #5
	mov	w23, #200
	mov	w22, #223
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_READ_PORT_UCHAR
	and	w8, w0, w22
	mov	w23, #200
	cmp	w8, #8
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_READ_PORT_UCHAR
	tbnz	w0, #0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	bl	_StallExecutionProcessor
	subs	w23, w23, #1
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
LBB0_5:
                                        ; 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	strb	w0, [x19]
	mov	w8, #16777216
	add	w22, w8, w0, lsl #24
	mov	w23, #1
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	w24, #-200
LBB0_8:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_READ_PORT_UCHAR
	tbnz	w0, #0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w0, #1000
	bl	_StallExecutionProcessor
	adds	w24, w24, #1
	b.lo	LBB0_8
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_READ_PORT_UCHAR
	mov	x8, x0
	add	x0, x23, #1
	strb	w8, [x19, x23]
	cmp	w22, w8, lsl #24
	b.eq	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x23, #255
	mov	x23, x0
	b.lo	LBB0_7
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_GetSerialMousePnpId
.subsections_via_symbols
