	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function act2000_isa_reset
_act2000_isa_reset:                     ## @act2000_isa_reset
	.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
	movl	%edi, %r12d
	movq	_ISA_COR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	%r12, %rdi
	callq	_inb
	movl	%eax, %r14d
	xorl	%eax, %eax
	cmpb	$-1, %r14b
	je	LBB0_4
## %bb.1:
	movq	_ISA_COR_RESET@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	orb	%r14b, %al
	movq	(%r15), %rsi
	addq	%r12, %rsi
	movzbl	%al, %edi
	callq	_outb
	movl	$10, %edi
	callq	_mdelay
	movq	(%r15), %rsi
	addq	%r12, %rsi
	movzbl	%r14b, %edi
	callq	_outb
	movl	$10, %edi
	callq	_mdelay
	xorl	%ebx, %ebx
	movl	$16, %r14d
	movq	_ISA_ISR@GOTPCREL(%rip), %r15
	movq	_ISA_ISR_SERIAL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%r12, %rdi
	callq	_inb
	movl	%ebx, %ecx
	sarl	%ecx
	movl	%ecx, %ebx
	orl	$32768, %ebx                    ## imm = 0x8000
	testl	%eax, (%r13)
	cmovel	%ecx, %ebx
	decl	%r14d
	jne	LBB0_2
## %bb.3:
	movq	_ISA_SER_ID@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %ebx
	sete	%al
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISA_COR,8,3                    ## @ISA_COR
	.comm	_ISA_COR_RESET,1,0              ## @ISA_COR_RESET
	.comm	_ISA_ISR,8,3                    ## @ISA_ISR
	.comm	_ISA_ISR_SERIAL,4,2             ## @ISA_ISR_SERIAL
	.comm	_ISA_SER_ID,4,2                 ## @ISA_SER_ID
	.no_dead_strip	_act2000_isa_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function act2000_isa_reset
_act2000_isa_reset:                     ; @act2000_isa_reset
	.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	w20, w0
Lloh0:
	adrp	x21, _ISA_COR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ISA_COR@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_inb
	mvn	w8, w0
	tst	w8, #0xff
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	mov	x19, x0
Lloh2:
	adrp	x8, _ISA_COR_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISA_COR_RESET@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w8, w8, w0
	ldr	x9, [x21]
	add	x1, x9, x20
	and	w0, w8, #0xff
	bl	_outb
	mov	w0, #10
	bl	_mdelay
	ldr	x8, [x21]
	add	x1, x8, x20
	and	w0, w19, #0xff
	bl	_outb
	mov	w0, #10
	bl	_mdelay
	mov	w19, #0
	mov	w21, #16
Lloh4:
	adrp	x22, _ISA_ISR@GOTPAGE
Lloh5:
	ldr	x22, [x22, _ISA_ISR@GOTPAGEOFF]
Lloh6:
	adrp	x23, _ISA_ISR_SERIAL@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ISA_ISR_SERIAL@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x0, x8, x20
	bl	_inb
	ldr	w8, [x23]
	asr	w9, w19, #1
	orr	w10, w9, #0x8000
	tst	w8, w0
	csel	w19, w9, w10, eq
	subs	w21, w21, #1
	b.ne	LBB0_3
; %bb.4:
Lloh8:
	adrp	x8, _ISA_SER_ID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISA_SER_ID@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w19, w8
	cset	w0, eq
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ISA_COR,8,3                    ; @ISA_COR
	.comm	_ISA_COR_RESET,1,0              ; @ISA_COR_RESET
	.comm	_ISA_ISR,8,3                    ; @ISA_ISR
	.comm	_ISA_ISR_SERIAL,4,2             ; @ISA_ISR_SERIAL
	.comm	_ISA_SER_ID,4,2                 ; @ISA_SER_ID
	.no_dead_strip	_act2000_isa_reset
.subsections_via_symbols
