	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function liquidio_remove
_liquidio_remove:                       ## @liquidio_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_kthread_stop
LBB0_2:
	cmpl	$0, 20(%rbx)
	jne	LBB0_5
## %bb.3:
	movq	_LIQUIDIO_SWITCHDEV_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_lio_vf_rep_modexit
LBB0_5:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_CVM_DRV_NIC_APP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_liquidio_stop_nic_module
LBB0_8:
	movq	%rbx, %rdi
	callq	_octeon_destroy_resources
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_octeon_free_device_mem         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stopping device\n"

	.comm	_LIQUIDIO_SWITCHDEV_CAP,4,2     ## @LIQUIDIO_SWITCHDEV_CAP
	.comm	_CVM_DRV_NIC_APP,8,3            ## @CVM_DRV_NIC_APP
L_.str.1:                               ## @.str.1
	.asciz	"Device removed\n"

	.no_dead_strip	_liquidio_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function liquidio_remove
_liquidio_remove:                       ; @liquidio_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_pci_get_drvdata
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_kthread_stop
LBB0_2:
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_5
; %bb.3:
	ldr	w8, [x19, #16]
Lloh2:
	adrp	x9, _LIQUIDIO_SWITCHDEV_CAP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LIQUIDIO_SWITCHDEV_CAP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	bl	_lio_vf_rep_modexit
LBB0_5:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _CVM_DRV_NIC_APP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CVM_DRV_NIC_APP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x8, x9, #0, ne
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_liquidio_stop_nic_module
LBB0_7:
	mov	x0, x19
	bl	_octeon_destroy_resources
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_octeon_free_device_mem
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stopping device\n"

	.comm	_LIQUIDIO_SWITCHDEV_CAP,4,2     ; @LIQUIDIO_SWITCHDEV_CAP
	.comm	_CVM_DRV_NIC_APP,8,3            ; @CVM_DRV_NIC_APP
l_.str.1:                               ; @.str.1
	.asciz	"Device removed\n"

	.no_dead_strip	_liquidio_remove
.subsections_via_symbols
