	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_rdma_dev_remove           ## -- Begin function qede_rdma_dev_remove
	.p2align	4, 0x90
_qede_rdma_dev_remove:                  ## @qede_rdma_dev_remove
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_qede_rdma_supported
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.5:
	cmpl	$0, (%rbx)
	jne	LBB0_7
## %bb.6:
	movq	_qedr_dev_list_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	__qede_rdma_dev_remove
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_7:
	movl	$1, (%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_qede_rdma_destroy_wq
	movq	_qedr_dev_list_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	__qede_rdma_dev_remove
LBB0_4:
	movq	$0, 8(%rbx)
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_list_del
	movq	_qedr_dev_list_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_qedr_dev_list_lock,4,2         ## @qedr_dev_list_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_rdma_dev_remove           ; -- Begin function qede_rdma_dev_remove
	.p2align	2
_qede_rdma_dev_remove:                  ; @qede_rdma_dev_remove
	.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	x20, x1
	mov	x19, x0
	bl	_qede_rdma_supported
	cbz	w0, LBB0_5
; %bb.1:
	cbz	w20, LBB0_6
; %bb.2:
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x20, _qedr_dev_list_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _qedr_dev_list_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	__qede_rdma_dev_remove
	mov	x0, x20
	bl	_mutex_unlock
LBB0_4:
	mov	w8, #1
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_qede_rdma_destroy_wq
Lloh2:
	adrp	x0, _qedr_dev_list_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _qedr_dev_list_lock@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	__qede_rdma_dev_remove
LBB0_8:
	str	xzr, [x19, #8]
	add	x0, x19, #4
	bl	_list_del
Lloh4:
	adrp	x0, _qedr_dev_list_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _qedr_dev_list_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_qedr_dev_list_lock,4,2         ; @qedr_dev_list_lock
.subsections_via_symbols
