	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_uverbs_ex_create_flow
_ib_uverbs_ex_create_flow:              ## @ib_uverbs_ex_create_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-72(%rbp), %rsi
	leaq	-160(%rbp), %r14
	movq	%r14, %rdx
	movl	$64, %ecx
	callq	_uverbs_request_start
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_57
## %bb.1:
	cmpq	$0, -104(%rbp)
	je	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_57:
	movl	%r12d, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_CAP_NET_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	-160(%rbp), %eax
	movq	_IB_FLOW_ATTR_FLAGS_RESERVED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_2
## %bb.7:
	movq	_IB_FLOW_ATTR_FLAGS_DONT_TRAP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.8:
	movq	-152(%rbp), %rax
	movq	_IB_FLOW_ATTR_ALL_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.9:
	movq	_IB_FLOW_ATTR_MC_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
LBB0_10:
	movslq	-144(%rbp), %rax
	movq	_IB_FLOW_SPEC_SUPPORT_LAYERS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_2
## %bb.11:
	movslq	-140(%rbp), %rdi
	leaq	(,%rax,4), %rcx
	cmpq	%rdi, %rcx
	jb	LBB0_2
## %bb.12:
	movq	-120(%rbp), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_2
## %bb.13:
	cmpq	$0, 8(%rcx)
	jne	LBB0_2
## %bb.14:
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	addl	$48, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%rax, %r14
	movups	-160(%rbp), %xmm0
	movups	-144(%rbp), %xmm1
	movups	-128(%rbp), %xmm2
	movups	%xmm2, 32(%rax)
	movups	%xmm1, 16(%rax)
	movups	%xmm0, (%rax)
	movq	%rax, %rsi
	addq	$24, %rsi
	movl	-140(%rbp), %edx
	leaq	-72(%rbp), %rdi
	callq	_uverbs_request_next
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_55
LBB0_18:
	leaq	-72(%rbp), %rdi
	callq	_uverbs_request_finish
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %r12d
	jmp	LBB0_55
LBB0_5:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_20:
	movq	_UVERBS_OBJECT_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-168(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_uobj_alloc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_55
LBB0_22:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	_UVERBS_OBJECT_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-112(%rbp), %edx
	movq	%rbx, %rcx
	callq	_uobj_get_obj_read
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	_IB_QPT_UD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_28
## %bb.25:
	movq	_IB_QPT_RAW_PACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_28
## %bb.26:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_54
LBB0_28:
	movq	_flows@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-144(%rbp), %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_29
## %bb.30:
	movl	-144(%rbp), %edi
	callq	_flow_resources_alloc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_31
## %bb.32:
	movq	8(%r14), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 8(%rdx)
	movl	36(%r14), %eax
	movl	%eax, 36(%rdx)
	movl	16(%r14), %eax
	movl	%eax, 16(%rdx)
	movl	32(%r14), %ecx
	movl	%ecx, 32(%rdx)
	movl	(%r14), %ecx
	movl	%ecx, (%rdx)
	movl	$48, 20(%rdx)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	-140(%rbp), %edx
	testl	%eax, %eax
	jle	LBB0_40
## %bb.33:
	cmpl	$4, %edx
	jb	LBB0_40
## %bb.34:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	addq	$48, %r15
	movq	24(%r14), %r13
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%r13), %edx
	jl	LBB0_42
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_kern_spec_to_ib_spec
	testl	%eax, %eax
	jne	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_35 Depth=1
	movl	(%r15), %eax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addl	%eax, 20(%rsi)
	movslq	(%r13), %rcx
	movl	-140(%rbp), %edx
	subl	%ecx, %edx
	movl	%edx, -140(%rbp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	incl	%edi
	movl	16(%rsi), %eax
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %edi
	jge	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_35 Depth=1
	addq	%rcx, %r13
	addq	(%r15), %r15
	cmpl	$3, %edx
	ja	LBB0_35
LBB0_40:
	testl	%edx, %edx
	jne	LBB0_42
## %bb.41:
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_42
## %bb.43:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	16(%rdi), %rax
	movq	_IB_FLOW_DOMAIN_USER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	*8(%rax)
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_45
## %bb.44:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_51
LBB0_29:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_27:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_53
LBB0_31:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_52
LBB0_42:
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_pr_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_51
LBB0_37:
	movl	%eax, %r12d
	jmp	LBB0_51
LBB0_45:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rcx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_ib_set_flow
	leaq	-96(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r13), %eax
	movl	%eax, -96(%rbp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_uverbs_response
	testl	%eax, %eax
	je	LBB0_46
## %bb.49:
	movl	%eax, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_51
## %bb.50:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rdi
	callq	_atomic_dec
LBB0_51:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_ib_uverbs_flow_resources_free
LBB0_52:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_53:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_uobj_put_obj_read
LBB0_54:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_uobj_alloc_abort
LBB0_55:
	cmpl	$0, -144(%rbp)
	je	LBB0_57
## %bb.56:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_57
LBB0_46:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_uobj_put_obj_read
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	cmpl	$0, -144(%rbp)
	je	LBB0_48
## %bb.47:
	movq	%r14, %rdi
	callq	_kfree
LBB0_48:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_uobj_alloc_commit
	movl	%eax, %r12d
	jmp	LBB0_57
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CAP_NET_RAW,4,2                ## @CAP_NET_RAW
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_IB_FLOW_ATTR_FLAGS_RESERVED,4,2 ## @IB_FLOW_ATTR_FLAGS_RESERVED
	.comm	_IB_FLOW_ATTR_FLAGS_DONT_TRAP,4,2 ## @IB_FLOW_ATTR_FLAGS_DONT_TRAP
	.comm	_IB_FLOW_ATTR_ALL_DEFAULT,8,3   ## @IB_FLOW_ATTR_ALL_DEFAULT
	.comm	_IB_FLOW_ATTR_MC_DEFAULT,8,3    ## @IB_FLOW_ATTR_MC_DEFAULT
	.comm	_IB_FLOW_SPEC_SUPPORT_LAYERS,4,2 ## @IB_FLOW_SPEC_SUPPORT_LAYERS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UVERBS_OBJECT_FLOW,4,2         ## @UVERBS_OBJECT_FLOW
	.comm	_UVERBS_OBJECT_QP,4,2           ## @UVERBS_OBJECT_QP
	.comm	_IB_QPT_UD,8,3                  ## @IB_QPT_UD
	.comm	_IB_QPT_RAW_PACKET,8,3          ## @IB_QPT_RAW_PACKET
	.comm	_flows,4,2                      ## @flows
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create flow failed, flow %d: %d bytes left from uverb cmd\n"

	.comm	_IB_FLOW_DOMAIN_USER,4,2        ## @IB_FLOW_DOMAIN_USER
	.no_dead_strip	_ib_uverbs_ex_create_flow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_uverbs_ex_create_flow
_ib_uverbs_ex_create_flow:              ; @ib_uverbs_ex_create_flow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	add	x1, sp, #16
	add	x2, sp, #32
	mov	w3, #64
	bl	_uverbs_request_start
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [sp, #88]
	cbz	x8, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_5:
Lloh2:
	adrp	x8, _CAP_NET_RAW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAP_NET_RAW@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_16
; %bb.6:
	ldr	w8, [sp, #32]
Lloh5:
	adrp	x9, _IB_FLOW_ATTR_FLAGS_RESERVED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IB_FLOW_ATTR_FLAGS_RESERVED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.7:
Lloh8:
	adrp	x9, _IB_FLOW_ATTR_FLAGS_DONT_TRAP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_FLOW_ATTR_FLAGS_DONT_TRAP@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [sp, #40]
Lloh11:
	adrp	x9, _IB_FLOW_ATTR_ALL_DEFAULT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_FLOW_ATTR_ALL_DEFAULT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _IB_FLOW_ATTR_MC_DEFAULT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IB_FLOW_ATTR_MC_DEFAULT@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_2
LBB0_9:
	ldrsw	x8, [sp, #48]
Lloh17:
	adrp	x9, _IB_FLOW_SPEC_SUPPORT_LAYERS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IB_FLOW_SPEC_SUPPORT_LAYERS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_2
; %bb.10:
	ldrsw	x9, [sp, #52]
	cmp	x9, x8, lsl #2
	b.hi	LBB0_2
; %bb.11:
	ldr	x10, [sp, #72]
	ldr	x11, [x10]
	cbnz	x11, LBB0_2
; %bb.12:
	ldr	x10, [x10, #8]
	cbnz	x10, LBB0_2
; %bb.13:
	cbz	w8, LBB0_17
; %bb.14:
	add	w0, w9, #48
Lloh20:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_20
; %bb.15:
	mov	x20, x0
	ldp	q0, q1, [sp, #32]
	ldr	q2, [sp, #64]
	stp	q1, q2, [x0, #16]
	str	q0, [x0]
	add	x1, x0, #24
	ldr	w2, [sp, #52]
	add	x0, sp, #16
	bl	_uverbs_request_next
	mov	x23, x0
	cbnz	w0, LBB0_52
	b	LBB0_18
LBB0_16:
Lloh23:
	adrp	x8, _EPERM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_3
LBB0_17:
	add	x20, sp, #32
LBB0_18:
	add	x0, sp, #16
	bl	_uverbs_request_finish
	cbz	w0, LBB0_21
; %bb.19:
	mov	x23, x0
	b	LBB0_52
LBB0_20:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_21:
Lloh27:
	adrp	x8, _UVERBS_OBJECT_FLOW@GOTPAGE
Lloh28:
	ldr	x8, [x8, _UVERBS_OBJECT_FLOW@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x19
	bl	_uobj_alloc
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.22:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_52
LBB0_23:
Lloh30:
	adrp	x8, _UVERBS_OBJECT_QP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _UVERBS_OBJECT_QP@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w2, [sp, #80]
	mov	x3, x19
	bl	_uobj_get_obj_read
	cbz	x0, LBB0_27
; %bb.24:
	str	x0, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [x0]
Lloh33:
	adrp	x9, _IB_QPT_UD@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IB_QPT_UD@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_28
; %bb.25:
Lloh36:
	adrp	x9, _IB_QPT_RAW_PACKET@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IB_QPT_RAW_PACKET@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_28
; %bb.26:
Lloh39:
	adrp	x8, _EINVAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_41
LBB0_27:
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_51
LBB0_28:
Lloh44:
	adrp	x8, _flows@GOTPAGE
Lloh45:
	ldr	x8, [x8, _flows@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	ldr	w2, [sp, #48]
	bl	_struct_size
Lloh47:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh48:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_40
; %bb.29:
	mov	x22, x0
	ldr	w0, [sp, #48]
	bl	_flow_resources_alloc
	cbz	x0, LBB0_42
; %bb.30:
	mov	x25, x0
	mov	w24, #0
	ldr	x8, [x20, #8]
	str	x8, [x22, #8]
	ldr	w8, [x20, #36]
	str	w8, [x22, #36]
	ldr	w8, [x20, #16]
	str	w8, [x22, #16]
	ldr	w9, [x20, #32]
	str	w9, [x22, #32]
	ldr	w9, [x20]
	str	w9, [x22]
	mov	w9, #48
	str	w9, [x22, #20]
	ldr	w2, [sp, #52]
	cmp	w8, #1
	b.lt	LBB0_36
; %bb.31:
	cmp	w2, #4
	b.lo	LBB0_36
; %bb.32:
	mov	w24, #0
	add	x26, x22, #48
	ldr	x27, [x20, #24]
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	cmp	w2, w8
	b.lt	LBB0_43
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x19
	mov	x1, x27
	mov	x2, x26
	mov	x3, x25
	bl	_kern_spec_to_ib_spec
	cbnz	w0, LBB0_44
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	w8, [x26]
	ldr	w9, [x22, #20]
	add	w8, w9, w8
	str	w8, [x22, #20]
	ldrsw	x8, [x27]
	ldr	w9, [sp, #52]
	sub	w2, w9, w8
	str	w2, [sp, #52]
	add	x27, x27, x8
	ldr	x8, [x26]
	add	x26, x26, x8
	add	w24, w24, #1
	ldr	w8, [x22, #16]
	cmp	w24, w8
	ccmp	w2, #3, #0, lt
	b.hi	LBB0_33
LBB0_36:
	cbnz	w2, LBB0_43
; %bb.37:
	cmp	w24, w8
	b.ne	LBB0_43
; %bb.38:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x0, #16]
	ldr	x8, [x8, #8]
Lloh50:
	adrp	x9, _IB_FLOW_DOMAIN_USER@GOTPAGE
Lloh51:
	ldr	x9, [x9, _IB_FLOW_DOMAIN_USER@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x9]
	mov	x1, x22
	mov	x3, x19
	blr	x8
	mov	x24, x0
	bl	_IS_ERR
	cbz	x0, LBB0_45
; %bb.39:
	mov	x0, x24
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_48
LBB0_40:
Lloh53:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_41:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_50
LBB0_42:
Lloh55:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_49
LBB0_43:
Lloh58:
	adrp	x0, l_.str@PAGE
Lloh59:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_pr_warn
Lloh60:
	adrp	x8, _EINVAL@GOTPAGE
Lloh61:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_48
LBB0_44:
	mov	x23, x0
	b	LBB0_48
LBB0_45:
	ldr	x2, [sp]                        ; 8-byte Folded Reload
	ldr	x3, [x2, #16]
	mov	x0, x21
	mov	x1, x24
	mov	x4, x25
	bl	_ib_set_flow
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x21]
	str	w8, [sp, #24]
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #4
	bl	_uverbs_response
	cbz	w0, LBB0_54
; %bb.46:
	mov	x23, x0
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	mov	x0, x24
	blr	x8
	cbnz	w0, LBB0_48
; %bb.47:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x0, x8, #8
	bl	_atomic_dec
LBB0_48:
	mov	x0, x25
	bl	_ib_uverbs_flow_resources_free
LBB0_49:
	mov	x0, x22
	bl	_kfree
LBB0_50:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_uobj_put_obj_read
LBB0_51:
	mov	x0, x21
	mov	x1, x19
	bl	_uobj_alloc_abort
LBB0_52:
	ldr	w8, [sp, #48]
	cbz	w8, LBB0_4
; %bb.53:
	mov	x0, x20
	bl	_kfree
	b	LBB0_4
LBB0_54:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_uobj_put_obj_read
	mov	x0, x22
	bl	_kfree
	ldr	w8, [sp, #48]
	cbz	w8, LBB0_56
; %bb.55:
	mov	x0, x20
	bl	_kfree
LBB0_56:
	mov	x0, x21
	mov	x1, x19
	bl	_uobj_alloc_commit
	mov	x23, x0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CAP_NET_RAW,4,2                ; @CAP_NET_RAW
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_IB_FLOW_ATTR_FLAGS_RESERVED,4,2 ; @IB_FLOW_ATTR_FLAGS_RESERVED
	.comm	_IB_FLOW_ATTR_FLAGS_DONT_TRAP,4,2 ; @IB_FLOW_ATTR_FLAGS_DONT_TRAP
	.comm	_IB_FLOW_ATTR_ALL_DEFAULT,8,3   ; @IB_FLOW_ATTR_ALL_DEFAULT
	.comm	_IB_FLOW_ATTR_MC_DEFAULT,8,3    ; @IB_FLOW_ATTR_MC_DEFAULT
	.comm	_IB_FLOW_SPEC_SUPPORT_LAYERS,4,2 ; @IB_FLOW_SPEC_SUPPORT_LAYERS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UVERBS_OBJECT_FLOW,4,2         ; @UVERBS_OBJECT_FLOW
	.comm	_UVERBS_OBJECT_QP,4,2           ; @UVERBS_OBJECT_QP
	.comm	_IB_QPT_UD,8,3                  ; @IB_QPT_UD
	.comm	_IB_QPT_RAW_PACKET,8,3          ; @IB_QPT_RAW_PACKET
	.comm	_flows,4,2                      ; @flows
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create flow failed, flow %d: %d bytes left from uverb cmd\n"

	.comm	_IB_FLOW_DOMAIN_USER,4,2        ; @IB_FLOW_DOMAIN_USER
	.no_dead_strip	_ib_uverbs_ex_create_flow
.subsections_via_symbols
