	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iiReset
_iiReset:                               ## @iiReset
	.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	(%rdi), %rax
	movq	_I2E_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_I2EE_BADMAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_I2_COMPLETE
LBB0_2:
	movq	_FIFO_RESET@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	88(%rbx), %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	%rbx, %rdi
	movl	$50, %esi
	callq	_iiDelay
	movq	(%r14), %rsi
	addq	88(%rbx), %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	_II_STATE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rbx)
	movq	_iiDelayed@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_I2_IRQ_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movups	%xmm0, 64(%rbx)
	movq	40(%rbx), %rax
	movq	$0, (%rax)
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 8(%rbx)
	movq	_I2EE_GOOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I2_COMPLETE                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2E_MAGIC,8,3                  ## @I2E_MAGIC
	.comm	_I2EE_BADMAGIC,4,2              ## @I2EE_BADMAGIC
	.comm	_FIFO_RESET,8,3                 ## @FIFO_RESET
	.comm	_II_STATE_RESET,4,2             ## @II_STATE_RESET
	.comm	_iiDelayed,8,3                  ## @iiDelayed
	.comm	_I2_IRQ_UNDEFINED,4,2           ## @I2_IRQ_UNDEFINED
	.comm	_I2EE_GOOD,4,2                  ## @I2EE_GOOD
	.no_dead_strip	_iiReset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iiReset
_iiReset:                               ; @iiReset
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _I2E_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2E_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _I2EE_BADMAGIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2EE_BADMAGIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_I2_COMPLETE
LBB0_2:
	ldr	x8, [x19, #88]
Lloh6:
	adrp	x20, _FIFO_RESET@GOTPAGE
Lloh7:
	ldr	x20, [x20, _FIFO_RESET@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_outb
	mov	x0, x19
	mov	w1, #50
	bl	_iiDelay
	ldr	x8, [x19, #88]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_outb
Lloh8:
	adrp	x8, _II_STATE_RESET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _II_STATE_RESET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _iiDelayed@GOTPAGE
Lloh12:
	ldr	x9, [x9, _iiDelayed@GOTPAGEOFF]
Lloh13:
	str	xzr, [x9]
Lloh14:
	adrp	x9, _I2_IRQ_UNDEFINED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _I2_IRQ_UNDEFINED@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #80]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #48]
	ldr	x8, [x19, #40]
	str	xzr, [x8]
	stur	q0, [x19, #24]
	stur	q0, [x19, #8]
Lloh17:
	adrp	x8, _I2EE_GOOD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I2EE_GOOD@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I2_COMPLETE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_I2E_MAGIC,8,3                  ; @I2E_MAGIC
	.comm	_I2EE_BADMAGIC,4,2              ; @I2EE_BADMAGIC
	.comm	_FIFO_RESET,8,3                 ; @FIFO_RESET
	.comm	_II_STATE_RESET,4,2             ; @II_STATE_RESET
	.comm	_iiDelayed,8,3                  ; @iiDelayed
	.comm	_I2_IRQ_UNDEFINED,4,2           ; @I2_IRQ_UNDEFINED
	.comm	_I2EE_GOOD,4,2                  ; @I2EE_GOOD
	.no_dead_strip	_iiReset
.subsections_via_symbols
