	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_speedfax
_reset_speedfax:                        ## @reset_speedfax
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	12(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_TIGER_EXTERN_RESET_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TIGER_RESET_ADDR@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_outb
	movq	_SFAX_PCI_RESET_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TIGER_AUX_DATA@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_outb
	movl	$1, %edi
	callq	_mdelay
	movq	_TIGER_EXTERN_RESET_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_outb
	movq	_SFAX_PCI_RESET_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 8(%rbx)
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_outb
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: resetting card\n"

	.comm	_TIGER_EXTERN_RESET_ON,4,2      ## @TIGER_EXTERN_RESET_ON
	.comm	_TIGER_RESET_ADDR,8,3           ## @TIGER_RESET_ADDR
	.comm	_SFAX_PCI_RESET_ON,4,2          ## @SFAX_PCI_RESET_ON
	.comm	_TIGER_AUX_DATA,8,3             ## @TIGER_AUX_DATA
	.comm	_TIGER_EXTERN_RESET_OFF,4,2     ## @TIGER_EXTERN_RESET_OFF
	.comm	_SFAX_PCI_RESET_OFF,4,2         ## @SFAX_PCI_RESET_OFF
	.no_dead_strip	_reset_speedfax
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_speedfax
_reset_speedfax:                        ; @reset_speedfax
	.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
	ldr	w1, [x0, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh2:
	adrp	x8, _TIGER_EXTERN_RESET_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TIGER_EXTERN_RESET_ON@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh5:
	adrp	x20, _TIGER_RESET_ADDR@GOTPAGE
Lloh6:
	ldr	x20, [x20, _TIGER_RESET_ADDR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_outb
Lloh7:
	adrp	x8, _SFAX_PCI_RESET_ON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SFAX_PCI_RESET_ON@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh10:
	adrp	x21, _TIGER_AUX_DATA@GOTPAGE
Lloh11:
	ldr	x21, [x21, _TIGER_AUX_DATA@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_outb
	mov	w0, #1
	bl	_mdelay
Lloh12:
	adrp	x8, _TIGER_EXTERN_RESET_OFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TIGER_EXTERN_RESET_OFF@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_outb
Lloh15:
	adrp	x8, _SFAX_PCI_RESET_OFF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SFAX_PCI_RESET_OFF@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	str	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_outb
	mov	w0, #1
	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	_mdelay
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: resetting card\n"

	.comm	_TIGER_EXTERN_RESET_ON,4,2      ; @TIGER_EXTERN_RESET_ON
	.comm	_TIGER_RESET_ADDR,8,3           ; @TIGER_RESET_ADDR
	.comm	_SFAX_PCI_RESET_ON,4,2          ; @SFAX_PCI_RESET_ON
	.comm	_TIGER_AUX_DATA,8,3             ; @TIGER_AUX_DATA
	.comm	_TIGER_EXTERN_RESET_OFF,4,2     ; @TIGER_EXTERN_RESET_OFF
	.comm	_SFAX_PCI_RESET_OFF,4,2         ; @SFAX_PCI_RESET_OFF
	.no_dead_strip	_reset_speedfax
.subsections_via_symbols
