	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stop_pci_io
_stop_pci_io:                           ## @stop_pci_io
	.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
	movq	%rdi, %r12
	leaq	16(%rdi), %r14
	movq	_OCT_DEV_IN_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_atomic_set
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_netif_device_detach
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_OCTEON_ALL_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	*48(%r12)
	movq	%r12, %rdi
	callq	_pcierror_quiesce_device
	cmpq	$0, 40(%r12)
	je	LBB0_8
## %bb.4:
	cmpl	$0, 4(%r12)
	jle	LBB0_7
## %bb.5:
	movq	24(%r12), %r15
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx), %edi
	xorl	%esi, %esi
	callq	_irq_set_affinity_hint
	movl	(%r15,%rbx), %edi
	movq	32(%r12), %rsi
	addq	%rbx, %rsi
	callq	_free_irq
	incq	%r13
	movslq	4(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_6
LBB0_7:
	movq	8(%r12), %rdi
	callq	_pci_disable_msix
	movq	24(%r12), %rdi
	callq	_kfree
	movq	$0, 24(%r12)
	movq	%r12, %rdi
	callq	_octeon_free_ioq_vector
LBB0_8:
	movq	8(%r12), %r15
	movq	%r14, %rdi
	callq	_lio_get_state_string
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	8(%r12), %rdi
	callq	_cleanup_aer_uncorrect_error_status
	movq	8(%r12), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_disable_device             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OCT_DEV_IN_RESET,4,2           ## @OCT_DEV_IN_RESET
	.comm	_OCTEON_ALL_INTR,4,2            ## @OCTEON_ALL_INTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device state is now %s\n"

	.no_dead_strip	_stop_pci_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stop_pci_io
_stop_pci_io:                           ; @stop_pci_io
	.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	x19, x0
	add	x20, x0, #16
Lloh0:
	adrp	x8, _OCT_DEV_IN_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCT_DEV_IN_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_atomic_set
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	ldr	w0, [x8, x21, lsl #2]
	bl	_netif_device_detach
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x19, #48]
Lloh3:
	adrp	x9, _OCTEON_ALL_INTR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OCTEON_ALL_INTR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_pcierror_quiesce_device
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
	mov	x22, #0
	ldr	x23, [x19, #24]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, x21]
	mov	x1, #0
	bl	_irq_set_affinity_hint
	ldr	w0, [x23, x21]
	ldr	x8, [x19, #32]
	add	x1, x8, x21
	bl	_free_irq
	add	x22, x22, #1
	ldrsw	x8, [x19, #4]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_6
LBB0_7:
	ldr	x0, [x19, #8]
	bl	_pci_disable_msix
	ldr	x0, [x19, #24]
	bl	_kfree
	str	xzr, [x19, #24]
	mov	x0, x19
	bl	_octeon_free_ioq_vector
LBB0_8:
	ldr	x21, [x19, #8]
	mov	x0, x20
	bl	_lio_get_state_string
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	x0, [x19, #8]
	bl	_cleanup_aer_uncorrect_error_status
	ldr	x0, [x19, #8]
	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
	b	_pci_disable_device
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_OCT_DEV_IN_RESET,4,2           ; @OCT_DEV_IN_RESET
	.comm	_OCTEON_ALL_INTR,4,2            ; @OCTEON_ALL_INTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device state is now %s\n"

	.no_dead_strip	_stop_pci_io
.subsections_via_symbols
