	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlsi_stop_hw
_vlsi_stop_hw:                          ## @vlsi_stop_hw
	.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, %r15
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_pci_get_drvdata
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_VLSI_PIO_IRENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	xorl	%edi, %edi
	callq	_outw
	movq	_VLSI_PIO_IRCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	xorl	%edi, %edi
	callq	_outw
	movq	_VLSI_PIO_IRINTR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	addl	%ebx, %esi
	xorl	%edi, %edi
	callq	_outb
	xorl	%eax, %eax
	callq	_wmb
	movq	_IRINTR_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	addl	%ebx, %esi
	callq	_outb
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	callq	_vlsi_unarm_tx
	movq	%r15, %rdi
	callq	_vlsi_unarm_rx
	movl	%ebx, %edi
	callq	_vlsi_clear_regs
	movq	%r14, %rdi
	callq	_vlsi_stop_clock
	movq	%r14, %rdi
	callq	_pci_disable_device
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLSI_PIO_IRENABLE,4,2          ## @VLSI_PIO_IRENABLE
	.comm	_VLSI_PIO_IRCFG,4,2             ## @VLSI_PIO_IRCFG
	.comm	_VLSI_PIO_IRINTR,4,2            ## @VLSI_PIO_IRINTR
	.comm	_IRINTR_INT_MASK,4,2            ## @IRINTR_INT_MASK
	.no_dead_strip	_vlsi_stop_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlsi_stop_hw
_vlsi_stop_hw:                          ; @vlsi_stop_hw
	.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	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_pci_get_drvdata
	ldr	w21, [x0]
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _VLSI_PIO_IRENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLSI_PIO_IRENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w1, w8, w21
	mov	w0, #0
	bl	_outw
Lloh3:
	adrp	x8, _VLSI_PIO_IRCFG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VLSI_PIO_IRCFG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w1, w8, w21
	mov	w0, #0
	bl	_outw
Lloh6:
	adrp	x22, _VLSI_PIO_IRINTR@GOTPAGE
Lloh7:
	ldr	x22, [x22, _VLSI_PIO_IRINTR@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w1, w8, w21
	mov	w0, #0
	bl	_outb
	bl	_wmb
Lloh8:
	adrp	x8, _IRINTR_INT_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRINTR_INT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w8, [x22]
	add	w1, w8, w21
	bl	_outb
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_vlsi_unarm_tx
	mov	x0, x20
	bl	_vlsi_unarm_rx
	mov	x0, x21
	bl	_vlsi_clear_regs
	mov	x0, x19
	bl	_vlsi_stop_clock
	mov	x0, x19
	bl	_pci_disable_device
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VLSI_PIO_IRENABLE,4,2          ; @VLSI_PIO_IRENABLE
	.comm	_VLSI_PIO_IRCFG,4,2             ; @VLSI_PIO_IRCFG
	.comm	_VLSI_PIO_IRINTR,4,2            ; @VLSI_PIO_IRINTR
	.comm	_IRINTR_INT_MASK,4,2            ; @IRINTR_INT_MASK
	.no_dead_strip	_vlsi_stop_hw
.subsections_via_symbols
