	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_remove_one
_qib_remove_one:                        ## @qib_remove_one
	.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	%rax, %rdi
	callq	_qib_unregister_ib_device
	movq	_qib_mini_init@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_qib_shutdown_device
LBB0_2:
	movq	%rbx, %rdi
	callq	_qib_stop_timers
	movq	_ib_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_flush_workqueue
	movq	%rbx, %rdi
	callq	_qibfs_remove
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	negl	%eax
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_qib_dev_err
LBB0_4:
	movq	%rbx, %rdi
	callq	_qib_device_remove
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_qib_postinit_cleanup           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_qib_mini_init,4,2              ## @qib_mini_init
	.comm	_ib_wq,4,2                      ## @ib_wq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed counters filesystem cleanup: %d\n"

	.no_dead_strip	_qib_remove_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_remove_one
_qib_remove_one:                        ; @qib_remove_one
	.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
	bl	_qib_unregister_ib_device
Lloh0:
	adrp	x8, _qib_mini_init@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qib_mini_init@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_qib_shutdown_device
LBB0_2:
	mov	x0, x19
	bl	_qib_stop_timers
Lloh3:
	adrp	x8, _ib_wq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ib_wq@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_flush_workqueue
	mov	x0, x19
	bl	_qibfs_remove
	cbz	w0, LBB0_4
; %bb.3:
	neg	w2, w0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_qib_dev_err
LBB0_4:
	mov	x0, x19
	bl	_qib_device_remove
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_qib_postinit_cleanup
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_qib_mini_init,4,2              ; @qib_mini_init
	.comm	_ib_wq,4,2                      ; @ib_wq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed counters filesystem cleanup: %d\n"

	.no_dead_strip	_qib_remove_one
.subsections_via_symbols
