	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usnic_ib_pci_remove
_usnic_ib_pci_remove:                   ## @usnic_ib_pci_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	%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
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movq	8(%rax), %r15
	leaq	4(%r15), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	leaq	4(%r14), %rdi
	callq	_list_del
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_usnic_ib_undiscover_pf@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_kref_put
	movl	(%r14), %edi
	callq	_usnic_vnic_free
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
	movq	%rbx, %rdi
	callq	_pci_clear_master
	movq	%rbx, %rdi
	callq	_pci_release_regions
	movq	%rbx, %rdi
	callq	_pci_disable_device
	movq	%r14, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_pci_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usnic_info                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_usnic_ib_undiscover_pf,4,2     ## @usnic_ib_undiscover_pf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Removed VF %s\n"

	.no_dead_strip	_usnic_ib_pci_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usnic_ib_pci_remove
_usnic_ib_pci_remove:                   ; @usnic_ib_pci_remove
	.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
	bl	_pci_get_drvdata
	mov	x20, x0
	ldr	x21, [x0, #8]
	add	x22, x21, #4
	mov	x0, x22
	bl	_mutex_lock
	add	x0, x20, #4
	bl	_list_del
	mov	x0, x22
	bl	_mutex_unlock
Lloh0:
	adrp	x8, _usnic_ib_undiscover_pf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _usnic_ib_undiscover_pf@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kref_put
	ldr	w0, [x20]
	bl	_usnic_vnic_free
	mov	x0, x19
	mov	x1, #0
	bl	_pci_set_drvdata
	mov	x0, x19
	bl	_pci_clear_master
	mov	x0, x19
	bl	_pci_release_regions
	mov	x0, x19
	bl	_pci_disable_device
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	bl	_pci_name
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	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	_usnic_info
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_usnic_ib_undiscover_pf,4,2     ; @usnic_ib_undiscover_pf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Removed VF %s\n"

	.no_dead_strip	_usnic_ib_pci_remove
.subsections_via_symbols
