	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_transport_dev_cleanup    ## -- Begin function ipoib_transport_dev_cleanup
	.p2align	4, 0x90
_ipoib_transport_dev_cleanup:           ## @ipoib_transport_dev_cleanup
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	callq	_ib_destroy_qp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ipoib_warn
LBB0_3:
	movq	$0, 16(%rbx)
	movq	_IPOIB_PKEY_ASSIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_clear_bit
LBB0_4:
	movl	8(%rbx), %edi
	callq	_ib_destroy_cq
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ipoib_warn
LBB0_6:
	movl	4(%rbx), %edi
	callq	_ib_destroy_cq
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ipoib_warn
LBB0_8:
	movq	%rbx, %rdi
	callq	_ipoib_cm_dev_cleanup
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ib_dealloc_pd                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ib_qp_destroy failed\n"

	.comm	_IPOIB_PKEY_ASSIGNED,4,2        ## @IPOIB_PKEY_ASSIGNED
L_.str.1:                               ## @.str.1
	.asciz	"ib_cq_destroy (send) failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"ib_cq_destroy (recv) failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_transport_dev_cleanup    ; -- Begin function ipoib_transport_dev_cleanup
	.p2align	2
_ipoib_transport_dev_cleanup:           ; @ipoib_transport_dev_cleanup
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_4
; %bb.1:
	bl	_ib_destroy_qp
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ipoib_warn
LBB0_3:
	str	xzr, [x19, #16]
Lloh2:
	adrp	x8, _IPOIB_PKEY_ASSIGNED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPOIB_PKEY_ASSIGNED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x19, #12
	bl	_clear_bit
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_ib_destroy_cq
	cbz	x0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ipoib_warn
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_ib_destroy_cq
	cbz	x0, LBB0_8
; %bb.7:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ipoib_warn
LBB0_8:
	mov	x0, x19
	bl	_ipoib_cm_dev_cleanup
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ib_dealloc_pd
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ib_qp_destroy failed\n"

	.comm	_IPOIB_PKEY_ASSIGNED,4,2        ; @IPOIB_PKEY_ASSIGNED
l_.str.1:                               ; @.str.1
	.asciz	"ib_cq_destroy (send) failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"ib_cq_destroy (recv) failed\n"

.subsections_via_symbols
