	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usnic_ib_qp_grp_create         ## -- Begin function usnic_ib_qp_grp_create
	.p2align	4, 0x90
_usnic_ib_qp_grp_create:                ## @usnic_ib_qp_grp_create
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%r8), %ebx
	leaq	4(%rsi), %rdi
	callq	_lockdep_assert_held
	movq	_min_transport_spec@GOTPCREL(%rip), %rax
	leaq	(,%rbx,4), %rdi
	addq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_usnic_vnic_res_spec_satisfied
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_usnic_err
	movq	%r15, %rdi
	callq	_log_spec
	jmp	LBB0_20
LBB0_2:
	movq	%r13, %rbx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movl	(%rbx), %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_alloc_res_chunk_list
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_19
LBB0_3:
	xorl	%r14d, %r14d
LBB0_15:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_qp_grp_and_vf_bind
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.9:
	leaq	36(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%r14), %rdi
	callq	_spin_lock_init
	movq	%r13, 24(%r14)
	movq	_IB_QPS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_create_and_add_flow
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_usnic_err
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_17
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_19
LBB0_13:
	movq	%r14, %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	callq	_qp_grp_id_from_flow
	testl	%eax, %eax
	je	LBB0_14
## %bb.16:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_release_and_remove_flow
	jmp	LBB0_17
LBB0_12:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_17:
	movq	%r14, %rdi
	callq	_qp_grp_and_vf_unbind
LBB0_18:
	movq	(%r14), %rdi
	callq	_free_qp_grp_res
LBB0_19:
	movq	%r14, %rdi
	callq	_kfree
LBB0_20:
	movl	%r12d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_14:
	movl	8(%r14), %eax
	movl	%eax, 12(%r14)
	movq	%r14, %rdi
	callq	_usnic_ib_sysfs_qpn_add
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_min_transport_spec,8,3         ## @min_transport_spec
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Spec does not meet minimum req for transport %d\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IB_QPS_RESET,4,2               ## @IB_QPS_RESET
	.comm	_current,8,3                    ## @current
L_.str.1:                               ## @.str.1
	.asciz	"Unable to create and add flow with err %ld\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usnic_ib_qp_grp_create         ; -- Begin function usnic_ib_qp_grp_create
	.p2align	2
_usnic_ib_qp_grp_create:                ; @usnic_ib_qp_grp_create
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x4
	mov	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	ldr	w19, [x4]
	add	x0, x1, #4
	bl	_lockdep_assert_held
Lloh0:
	adrp	x8, _min_transport_spec@GOTPAGE
Lloh1:
	ldr	x8, [x8, _min_transport_spec@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x19, lsl #2
	mov	x1, x24
	bl	_usnic_vnic_res_spec_satisfied
	cbz	w0, LBB0_2
; %bb.1:
	mov	x25, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_usnic_err
	mov	x0, x24
	bl	_log_spec
	mov	x0, x25
	b	LBB0_17
LBB0_2:
Lloh5:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_19
; %bb.3:
	ldr	w0, [x23]
	mov	x1, x24
	mov	x2, x19
	bl	_alloc_res_chunk_list
	str	x0, [x19]
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x0, [x19]
	cbz	x0, LBB0_10
; %bb.5:
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_16
LBB0_6:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_qp_grp_and_vf_bind
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.7:
	add	x0, x19, #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	bl	_spin_lock_init
	str	x21, [x19, #24]
Lloh8:
	adrp	x8, _IB_QPS_RESET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_QPS_RESET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _current@GOTPAGE
Lloh12:
	ldr	x9, [x9, _current@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_create_and_add_flow
	mov	x20, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_usnic_err
	cbz	x20, LBB0_13
; %bb.9:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_14
LBB0_10:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_11:
	add	x1, x19, #8
	mov	x0, x20
	bl	_qp_grp_id_from_flow
	cbz	w0, LBB0_18
; %bb.12:
	mov	x22, x0
	mov	x0, x20
	bl	_release_and_remove_flow
	b	LBB0_14
LBB0_13:
Lloh19:
	adrp	x8, _EFAULT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	mov	x0, x19
	bl	_qp_grp_and_vf_unbind
LBB0_15:
	ldr	x0, [x19]
	bl	_free_qp_grp_res
LBB0_16:
	mov	x0, x19
	bl	_kfree
	mov	x0, x22
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_18:
	ldr	w8, [x19, #8]
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_usnic_ib_sysfs_qpn_add
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_min_transport_spec,8,3         ; @min_transport_spec
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Spec does not meet minimum req for transport %d\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IB_QPS_RESET,4,2               ; @IB_QPS_RESET
	.comm	_current,8,3                    ; @current
l_.str.1:                               ; @.str.1
	.asciz	"Unable to create and add flow with err %ld\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
