	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_unregister_ib_device     ## -- Begin function ipath_unregister_ib_device
	.p2align	4, 0x90
_ipath_unregister_ib_device:            ## @ipath_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	32(%rdi), %r14
	movq	%r14, %rdi
	callq	_ib_unregister_device
	movl	12(%rbx), %edi
	callq	_disable_timer
	movq	24(%rbx), %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	24(%rbx), %rdi
	addq	$4, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	24(%rbx), %rdi
	addq	$8, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_4
LBB0_3:
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_ipath_dev_err
LBB0_4:
	leaq	20(%rbx), %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_ipath_dev_err
LBB0_6:
	leaq	16(%rbx), %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	12(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_ipath_dev_err
LBB0_8:
	xorl	%eax, %eax
	callq	_ipath_mcast_tree_empty
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	12(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_ipath_dev_err
LBB0_10:
	leaq	8(%rbx), %rdi
	callq	_ipath_free_all_qps
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	12(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_ipath_dev_err
LBB0_12:
	movl	8(%rbx), %edi
	callq	_kfree
	movl	4(%rbx), %edi
	callq	_kfree
	movl	(%rbx), %edi
	callq	_kfree
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ib_dealloc_device              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pending list not empty!\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"rnrwait list not empty!\n"

L_.str.3:                               ## @.str.3
	.asciz	"multicast table memory leak!\n"

L_.str.4:                               ## @.str.4
	.asciz	"QP memory leak! %u still in use\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_unregister_ib_device     ; -- Begin function ipath_unregister_ib_device
	.p2align	2
_ipath_unregister_ib_device:            ; @ipath_unregister_ib_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	add	x19, x0, #32
	mov	x0, x19
	bl	_ib_unregister_device
	ldr	w0, [x20, #12]
	bl	_disable_timer
	ldr	x0, [x20, #24]
	bl	_list_empty
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #24]
	add	x0, x8, #4
	bl	_list_empty
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x20, #24]
	add	x0, x8, #8
	bl	_list_empty
	cbnz	w0, LBB0_4
LBB0_3:
	ldr	w0, [x20, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ipath_dev_err
LBB0_4:
	add	x0, x20, #20
	bl	_list_empty
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x20, #12]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ipath_dev_err
LBB0_6:
	add	x0, x20, #16
	bl	_list_empty
	cbz	w0, LBB0_11
; %bb.7:
	bl	_ipath_mcast_tree_empty
	cbz	w0, LBB0_12
LBB0_8:
	add	x0, x20, #8
	bl	_ipath_free_all_qps
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w8, [x20, #12]
	str	x0, [sp]
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x8
	bl	_ipath_dev_err
LBB0_10:
	ldr	w0, [x20, #8]
	bl	_kfree
	ldr	w0, [x20, #4]
	bl	_kfree
	ldr	w0, [x20]
	bl	_kfree
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_ib_dealloc_device
LBB0_11:
	ldr	w0, [x20, #12]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ipath_dev_err
	bl	_ipath_mcast_tree_empty
	cbnz	w0, LBB0_8
LBB0_12:
	ldr	w0, [x20, #12]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ipath_dev_err
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pending list not empty!\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"rnrwait list not empty!\n"

l_.str.3:                               ; @.str.3
	.asciz	"multicast table memory leak!\n"

l_.str.4:                               ; @.str.4
	.asciz	"QP memory leak! %u still in use\n"

.subsections_via_symbols
