	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_unregister_ib_device      ## -- Begin function hfi1_unregister_ib_device
	.p2align	4, 0x90
_hfi1_unregister_ib_device:             ## @hfi1_unregister_ib_device
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_hfi1_verbs_unregister_sysfs
	leaq	12(%rbx), %rdi
	callq	_rvt_unregister_device
	leaq	8(%rbx), %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dd_dev_err
LBB0_2:
	leaq	4(%rbx), %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dd_dev_err
LBB0_4:
	movq	%rbx, %rdi
	callq	_del_timer_sync
	movq	%rbx, %rdi
	callq	_verbs_txreq_exit
	movq	_cntr_names_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_dev_cntr_names@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_kfree
	movq	_port_cntr_names@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_kfree
	movq	$0, (%r15)
	movq	$0, (%rbx)
	movq	_cntr_names_initialized@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"txwait list not empty!\n"

L_.str.1:                               ## @.str.1
	.asciz	"memwait list not empty!\n"

	.comm	_cntr_names_lock,4,2            ## @cntr_names_lock
	.comm	_dev_cntr_names,8,3             ## @dev_cntr_names
	.comm	_port_cntr_names,8,3            ## @port_cntr_names
	.comm	_cntr_names_initialized,8,3     ## @cntr_names_initialized
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_unregister_ib_device      ; -- Begin function hfi1_unregister_ib_device
	.p2align	2
_hfi1_unregister_ib_device:             ; @hfi1_unregister_ib_device
	.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	_hfi1_verbs_unregister_sysfs
	add	x0, x19, #12
	bl	_rvt_unregister_device
	add	x0, x19, #8
	bl	_list_empty
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dd_dev_err
LBB0_2:
	add	x0, x19, #4
	bl	_list_empty
	cbnz	w0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dd_dev_err
LBB0_4:
	mov	x0, x19
	bl	_del_timer_sync
	mov	x0, x19
	bl	_verbs_txreq_exit
Lloh4:
	adrp	x19, _cntr_names_lock@GOTPAGE
Lloh5:
	ldr	x19, [x19, _cntr_names_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
Lloh6:
	adrp	x20, _dev_cntr_names@GOTPAGE
Lloh7:
	ldr	x20, [x20, _dev_cntr_names@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_kfree
Lloh8:
	adrp	x21, _port_cntr_names@GOTPAGE
Lloh9:
	ldr	x21, [x21, _port_cntr_names@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_kfree
	str	xzr, [x20]
	str	xzr, [x21]
Lloh10:
	adrp	x8, _cntr_names_initialized@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cntr_names_initialized@GOTPAGEOFF]
Lloh12:
	str	xzr, [x8]
	mov	x0, x19
	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	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"txwait list not empty!\n"

l_.str.1:                               ; @.str.1
	.asciz	"memwait list not empty!\n"

	.comm	_cntr_names_lock,4,2            ; @cntr_names_lock
	.comm	_dev_cntr_names,8,3             ; @dev_cntr_names
	.comm	_port_cntr_names,8,3            ; @port_cntr_names
	.comm	_cntr_names_initialized,8,3     ; @cntr_names_initialized
.subsections_via_symbols
