	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_dealloc_device              ## -- Begin function ib_dealloc_device
	.p2align	4, 0x90
_ib_dealloc_device:                     ## @ib_dealloc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_2:
	movq	_devices_rwsem@GOTPCREL(%rip), %rdi
	callq	_down_write
	movl	16(%rbx), %esi
	movq	_devices@GOTPCREL(%rip), %rdi
	callq	_xa_load
	cmpq	%rbx, %rax
	jne	LBB0_4
## %bb.3:
	movl	16(%rbx), %esi
	movq	_devices@GOTPCREL(%rip), %rdi
	callq	_xa_erase
LBB0_4:
	movq	_devices_rwsem@GOTPCREL(%rip), %rdi
	callq	_up_write
	movq	%rbx, %rdi
	callq	_free_netdevs
	leaq	12(%rbx), %rdi
	callq	_xa_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	leaq	8(%rbx), %rdi
	callq	_xa_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	leaq	4(%rbx), %rdi
	callq	_refcount_read
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%rbx, %rdi
	callq	_rdma_restrack_clean
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_put_device                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_devices_rwsem,4,2              ## @devices_rwsem
	.comm	_devices,4,2                    ## @devices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_dealloc_device              ; -- Begin function ib_dealloc_device
	.p2align	2
_ib_dealloc_device:                     ; @ib_dealloc_device
	.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	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	blr	x8
LBB0_2:
Lloh0:
	adrp	x0, _devices_rwsem@GOTPAGE
Lloh1:
	ldr	x0, [x0, _devices_rwsem@GOTPAGEOFF]
	bl	_down_write
	ldr	w1, [x19, #16]
Lloh2:
	adrp	x0, _devices@GOTPAGE
Lloh3:
	ldr	x0, [x0, _devices@GOTPAGEOFF]
	bl	_xa_load
	cmp	x0, x19
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x19, #16]
Lloh4:
	adrp	x0, _devices@GOTPAGE
Lloh5:
	ldr	x0, [x0, _devices@GOTPAGEOFF]
	bl	_xa_erase
LBB0_4:
Lloh6:
	adrp	x0, _devices_rwsem@GOTPAGE
Lloh7:
	ldr	x0, [x0, _devices_rwsem@GOTPAGEOFF]
	bl	_up_write
	mov	x0, x19
	bl	_free_netdevs
	add	x0, x19, #12
	bl	_xa_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	add	x0, x19, #8
	bl	_xa_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	add	x0, x19, #4
	bl	_refcount_read
	bl	_WARN_ON
	mov	x0, x19
	bl	_rdma_restrack_clean
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_put_device
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_devices_rwsem,4,2              ; @devices_rwsem
	.comm	_devices,4,2                    ; @devices
.subsections_via_symbols
