	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ni65_set_performance
_ni65_set_performance:                  ## @ni65_set_performance
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_CSR0_STOP@GOTPCREL(%rip), %rax
	movq	_CSR0_CLRALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_CSR0@GOTPCREL(%rip), %r14
	movswl	(%r14), %esi
	callq	_writereg
	movq	_cards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	testb	$2, (%rax,%rcx,4)
	je	LBB0_2
## %bb.1:
	movq	_PORT@GOTPCREL(%rip), %rbx
	movq	_L_ADDRREG@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	movl	$80, %edi
	callq	_outw
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_inw
	cmpl	$80, %eax
	jne	LBB0_2
## %bb.3:
	movq	_csr80@GOTPCREL(%rip), %rax
	movl	$16383, %edi                    ## imm = 0x3FFF
	andl	(%rax), %edi
	movl	$80, %esi
	callq	_writereg
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_outw
	movq	_isa0@GOTPCREL(%rip), %rax
	movswl	(%rax), %edi
	movq	_L_BUSIF@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%rbx), %rsi
	callq	_outw
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	movl	$1, %edi
	callq	_outw
	movq	_isa1@GOTPCREL(%rip), %rax
	movswl	(%rax), %edi
	movq	(%r12), %rsi
	addq	(%rbx), %rsi
	callq	_outw
	movswl	(%r14), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outw                           ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR0_STOP,4,2                  ## @CSR0_STOP
	.comm	_CSR0_CLRALL,4,2                ## @CSR0_CLRALL
	.comm	_CSR0,2,1                       ## @CSR0
	.comm	_cards,8,3                      ## @cards
	.comm	_PORT,8,3                       ## @PORT
	.comm	_L_ADDRREG,8,3                  ## @L_ADDRREG
	.comm	_csr80,4,2                      ## @csr80
	.comm	_isa0,8,3                       ## @isa0
	.comm	_L_BUSIF,8,3                    ## @L_BUSIF
	.comm	_isa1,8,3                       ## @isa1
	.no_dead_strip	_ni65_set_performance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ni65_set_performance
_ni65_set_performance:                  ; @ni65_set_performance
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _CSR0_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSR0_STOP@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CSR0_CLRALL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CSR0_CLRALL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh6:
	adrp	x20, _CSR0@GOTPAGE
Lloh7:
	ldr	x20, [x20, _CSR0@GOTPAGEOFF]
	ldrsh	w1, [x20]
	bl	_writereg
Lloh8:
	adrp	x8, _cards@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cards@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
	tbz	w8, #1, LBB0_3
; %bb.1:
Lloh11:
	adrp	x19, _PORT@GOTPAGE
Lloh12:
	ldr	x19, [x19, _PORT@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh13:
	adrp	x21, _L_ADDRREG@GOTPAGE
Lloh14:
	ldr	x21, [x21, _L_ADDRREG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #80
	bl	_outw
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inw
	cmp	w0, #80
	b.ne	LBB0_3
; %bb.2:
Lloh15:
	adrp	x8, _csr80@GOTPAGE
Lloh16:
	ldr	x8, [x8, _csr80@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w0, w8, #0x3fff
	mov	w1, #80
	bl	_writereg
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #0
	bl	_outw
Lloh18:
	adrp	x8, _isa0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _isa0@GOTPAGEOFF]
Lloh20:
	ldrsh	w0, [x8]
	ldr	x8, [x19]
Lloh21:
	adrp	x22, _L_BUSIF@GOTPAGE
Lloh22:
	ldr	x22, [x22, _L_BUSIF@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_outw
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #1
	bl	_outw
Lloh23:
	adrp	x8, _isa1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _isa1@GOTPAGEOFF]
Lloh25:
	ldrsh	w0, [x8]
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_outw
	ldrsh	w0, [x20]
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_outw
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR0_STOP,4,2                  ; @CSR0_STOP
	.comm	_CSR0_CLRALL,4,2                ; @CSR0_CLRALL
	.comm	_CSR0,2,1                       ; @CSR0
	.comm	_cards,8,3                      ; @cards
	.comm	_PORT,8,3                       ; @PORT
	.comm	_L_ADDRREG,8,3                  ; @L_ADDRREG
	.comm	_csr80,4,2                      ; @csr80
	.comm	_isa0,8,3                       ; @isa0
	.comm	_L_BUSIF,8,3                    ; @L_BUSIF
	.comm	_isa1,8,3                       ; @isa1
	.no_dead_strip	_ni65_set_performance
.subsections_via_symbols
