	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usnic_ib_modify_qp             ## -- Begin function usnic_ib_modify_qp
	.p2align	4, 0x90
_usnic_ib_modify_qp:                    ## @usnic_ib_modify_qp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_usnic_dbg
	movq	%rbx, %rdi
	callq	_to_uqp_grp
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_mutex_lock
	movq	_IB_QP_PORT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	cmpl	$1, (%r15)
	jne	LBB0_5
LBB0_2:
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	4(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_usnic_ib_qp_grp_modify
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_usnic_err
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_IB_QP_PORT,4,2                 ## @IB_QP_PORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
L_.str.1:                               ## @.str.1
	.asciz	"Unhandled request, attr_mask=0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usnic_ib_modify_qp             ; -- Begin function usnic_ib_modify_qp
	.p2align	2
_usnic_ib_modify_qp:                    ; @usnic_ib_modify_qp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_usnic_dbg
	mov	x0, x19
	bl	_to_uqp_grp
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _IB_QP_PORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_QP_PORT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_5
LBB0_2:
Lloh5:
	adrp	x8, _IB_QP_STATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_QP_STATE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x21, #4]
	mov	x0, x19
	mov	x2, #0
	bl	_usnic_ib_qp_grp_modify
	mov	x20, x0
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_usnic_err
LBB0_5:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_IB_QP_PORT,4,2                 ; @IB_QP_PORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
l_.str.1:                               ; @.str.1
	.asciz	"Unhandled request, attr_mask=0x%x\n"

.subsections_via_symbols
