	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_uverbs_ex_destroy_flow      ## -- Begin function ib_uverbs_ex_destroy_flow
	.p2align	4, 0x90
_ib_uverbs_ex_destroy_flow:             ## @ib_uverbs_ex_destroy_flow
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$15, (%rdx)
	ja	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	%rdi, %r14
	leaq	-40(%rbp), %rdi
	movq	%rdx, %rsi
	movl	$16, %edx
	callq	_ib_copy_from_udata
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, -32(%rbp)
	jne	LBB0_1
## %bb.4:
	movl	-40(%rbp), %esi
	movl	4(%r14), %edx
	movq	_ib_uverbs_rule_idr@GOTPCREL(%rip), %rdi
	callq	_idr_write_uobj
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rax, %r15
	movq	16(%rax), %rdi
	callq	_ib_destroy_flow
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	$0, 8(%r15)
LBB0_7:
	movq	%r15, %rdi
	callq	_put_uobj_write
	movq	_ib_uverbs_rule_idr@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_idr_remove_uobj
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_put_uobj
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ib_uverbs_rule_idr,4,2         ## @ib_uverbs_rule_idr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_uverbs_ex_destroy_flow      ; -- Begin function ib_uverbs_ex_destroy_flow
	.p2align	2
_ib_uverbs_ex_destroy_flow:             ; @ib_uverbs_ex_destroy_flow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x2]
	cmp	w8, #15
	b.hi	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x0
	mov	x0, sp
	mov	x1, x2
	mov	w2, #16
	bl	_ib_copy_from_udata
	mov	x20, x0
	cbz	w0, LBB0_4
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_1
; %bb.5:
	ldr	w1, [sp]
	ldr	w2, [x19, #4]
Lloh3:
	adrp	x0, _ib_uverbs_rule_idr@GOTPAGE
Lloh4:
	ldr	x0, [x0, _ib_uverbs_rule_idr@GOTPAGEOFF]
	bl	_idr_write_uobj
	cbz	x0, LBB0_1
; %bb.6:
	mov	x21, x0
	ldr	x0, [x0, #16]
	bl	_ib_destroy_flow
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.7:
	str	xzr, [x21, #8]
LBB0_8:
	mov	x0, x21
	bl	_put_uobj_write
Lloh5:
	adrp	x0, _ib_uverbs_rule_idr@GOTPAGE
Lloh6:
	ldr	x0, [x0, _ib_uverbs_rule_idr@GOTPAGEOFF]
	mov	x1, x21
	bl	_idr_remove_uobj
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x21
	bl	_list_del
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	bl	_put_uobj
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ib_uverbs_rule_idr,4,2         ; @ib_uverbs_rule_idr
.subsections_via_symbols
