	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _mlx4_ib_modify_qp
__mlx4_ib_modify_qp:                    ## @_mlx4_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	20(%rdi), %edi
	callq	_to_mdev
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_to_mqp
	movq	%rax, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leaq	8(%r15), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	%rbx, %rcx
	movq	_IB_QP_CUR_STATE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	%rbx, %rax
	cmoveq	%r15, %rax
	movl	(%rax), %r13d
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	movl	%r13d, %ebx
	testl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	4(%rcx), %ebx
LBB0_2:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edx
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%r12d, %ecx
	callq	_ib_modify_qp_is_ok
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	cmpq	$0, 8(%r14)
	je	LBB0_11
## %bb.4:
	movq	_IB_QPS_RESET@GOTPCREL(%rip), %rcx
	movq	_IB_QPS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	(%rcx), %r13d
	jne	LBB0_6
## %bb.5:
	cmpl	%eax, %ebx
	je	LBB0_8
LBB0_6:
	cmpl	%eax, %r13d
	jne	LBB0_22
## %bb.7:
	movq	_IB_QPS_RTR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_22
LBB0_8:
	movq	_MLX4_IB_MODIFY_QP_RSS_SUP_ATTR_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%r12d, %eax
	je	LBB0_11
## %bb.9:
	movl	16(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %r8d
	xorl	%ebx, %ebx
	movl	%r12d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_23
LBB0_10:
	movl	(%r14), %r8d
	movl	16(%r14), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r9d
	jmp	LBB0_55
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	callq	_mlx4_is_bonded
	testq	%rax, %rax
	je	LBB0_21
## %bb.12:
	movq	_IB_QP_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r12d, %eax
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_25
## %bb.13:
	movq	_IB_QPS_RESET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	jne	LBB0_24
## %bb.14:
	movq	_IB_QPS_INIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_24
## %bb.15:
	movl	(%r14), %eax
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_20
## %bb.16:
	movq	_IB_QPT_UD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_20
## %bb.17:
	movq	_IB_QPT_UC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_20
## %bb.18:
	movq	_IB_QPT_RAW_PACKET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_20
## %bb.19:
	movq	_IB_QPT_XRC_INI@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_25
LBB0_20:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx4_ib_bond_next_port
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	%rax, 8(%r8)
	jmp	LBB0_25
LBB0_21:
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_25
LBB0_22:
	movl	16(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %ecx
	xorl	%ebx, %ebx
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_23:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_56
LBB0_24:
	notl	%eax
	andl	%eax, %r12d
LBB0_25:
	movq	_IB_QP_PORT@GOTPCREL(%rip), %rsi
	testl	%r12d, (%rsi)
	je	LBB0_31
## %bb.26:
	movq	8(%r8), %rdx
	testq	%rdx, %rdx
	je	LBB0_28
## %bb.27:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rax), %rdx
	jle	LBB0_29
LBB0_28:
	movl	(%r14), %r9d
	movl	16(%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_54
LBB0_29:
	movl	(%r14), %eax
	movq	_IB_QPT_RAW_PACKET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_31
## %bb.30:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$16, %rdi
	movl	%edx, %esi
	callq	_rdma_port_get_link_layer
	movq	_IB_QP_PORT@GOTPCREL(%rip), %rsi
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	_IB_LINK_LAYER_ETHERNET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_56
LBB0_31:
	movq	_IB_QP_PKEY_INDEX@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_36
## %bb.32:
	testl	%r12d, (%rsi)
	je	LBB0_34
## %bb.33:
	movq	8(%r8), %rax
	jmp	LBB0_35
LBB0_34:
	movl	4(%r15), %eax
LBB0_35:
	movq	16(%r8), %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	cltq
	cmpq	(%rcx,%rax,8), %rdx
	jge	LBB0_53
LBB0_36:
	movq	_IB_QP_MAX_QP_RD_ATOMIC@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_39
## %bb.37:
	movq	24(%r8), %rdx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	cmpq	8(%rax), %rdx
	jle	LBB0_39
## %bb.38:
	movl	(%r14), %r9d
	movl	16(%r14), %esi
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_54
LBB0_39:
	movq	_IB_QP_MAX_DEST_RD_ATOMIC@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_42
## %bb.40:
	movq	32(%r8), %rdx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	cmpq	16(%rax), %rdx
	jle	LBB0_42
## %bb.41:
	movl	(%r14), %r9d
	movl	16(%r14), %esi
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_54
LBB0_42:
	cmpl	%ebx, %r13d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_44
## %bb.43:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_IB_QPS_RESET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_57
LBB0_44:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_47
## %bb.45:
	movq	_IB_QPS_INIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_47
## %bb.46:
	movl	8(%r8), %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_bringup_rss_rwqs
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_57
LBB0_47:
	movq	_MLX4_IB_QP_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	movq	%r8, %rdx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	%ebx, %r9d
	callq	___mlx4_ib_modify_qp
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_50
## %bb.48:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_50
## %bb.49:
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_bring_down_rss_rwqs
LBB0_50:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	callq	_mlx4_is_bonded
	testq	%rax, %rax
	je	LBB0_57
## %bb.51:
	movq	_IB_QP_PORT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_57
## %bb.52:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	$1, 8(%rax)
	jmp	LBB0_57
LBB0_53:
	movl	(%r14), %r9d
	movl	16(%r14), %esi
	leaq	L_.str.4(%rip), %rdi
LBB0_54:
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r13d, %ecx
	movl	%ebx, %r8d
LBB0_55:
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_56:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_57:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_QP_CUR_STATE,4,2            ## @IB_QP_CUR_STATE
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qpn 0x%x: invalid attribute mask specified for transition %d to %d. qp_type %d, attr_mask 0x%x\n"

	.comm	_IB_QPS_RESET,4,2               ## @IB_QPS_RESET
	.comm	_IB_QPS_INIT,4,2                ## @IB_QPS_INIT
	.comm	_IB_QPS_RTR,4,2                 ## @IB_QPS_RTR
L_.str.1:                               ## @.str.1
	.asciz	"qpn 0x%x: RSS QP unsupported transition %d to %d\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MLX4_IB_MODIFY_QP_RSS_SUP_ATTR_MSK,4,2 ## @MLX4_IB_MODIFY_QP_RSS_SUP_ATTR_MSK
L_.str.2:                               ## @.str.2
	.asciz	"qpn 0x%x: RSS QP unsupported attribute mask 0x%x for transition %d to %d\n"

	.comm	_IB_QP_PORT,4,2                 ## @IB_QP_PORT
	.comm	_IB_QPT_RC,4,2                  ## @IB_QPT_RC
	.comm	_IB_QPT_UD,4,2                  ## @IB_QPT_UD
	.comm	_IB_QPT_UC,4,2                  ## @IB_QPT_UC
	.comm	_IB_QPT_RAW_PACKET,4,2          ## @IB_QPT_RAW_PACKET
	.comm	_IB_QPT_XRC_INI,4,2             ## @IB_QPT_XRC_INI
L_.str.3:                               ## @.str.3
	.asciz	"qpn 0x%x: invalid port number (%d) specified for transition %d to %d. qp_type %d\n"

	.comm	_IB_LINK_LAYER_ETHERNET,8,3     ## @IB_LINK_LAYER_ETHERNET
	.comm	_IB_QP_PKEY_INDEX,4,2           ## @IB_QP_PKEY_INDEX
L_.str.4:                               ## @.str.4
	.asciz	"qpn 0x%x: invalid pkey index (%d) specified for transition %d to %d. qp_type %d\n"

	.comm	_IB_QP_MAX_QP_RD_ATOMIC,4,2     ## @IB_QP_MAX_QP_RD_ATOMIC
L_.str.5:                               ## @.str.5
	.asciz	"qpn 0x%x: max_rd_atomic (%d) too large. Transition %d to %d. qp_type %d\n"

	.comm	_IB_QP_MAX_DEST_RD_ATOMIC,4,2   ## @IB_QP_MAX_DEST_RD_ATOMIC
L_.str.6:                               ## @.str.6
	.asciz	"qpn 0x%x: max_dest_rd_atomic (%d) too large. Transition %d to %d. qp_type %d\n"

	.comm	_MLX4_IB_QP_SRC,4,2             ## @MLX4_IB_QP_SRC
	.no_dead_strip	__mlx4_ib_modify_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _mlx4_ib_modify_qp
__mlx4_ib_modify_qp:                    ; @_mlx4_ib_modify_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x26, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	w0, [x0, #20]
	bl	_to_mdev
	mov	x27, x0
	mov	x0, x24
	bl	_to_mqp
	mov	x28, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
Lloh3:
	adrp	x8, _IB_QP_CUR_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QP_CUR_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	csel	x8, x28, x23, eq
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _IB_QP_STATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_QP_STATE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x25, x21
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	ldr	w25, [x23, #4]
LBB0_2:
	ldr	w2, [x24]
	mov	x0, x21
	mov	x1, x25
	mov	x3, x22
	bl	_ib_modify_qp_is_ok
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_11
; %bb.4:
Lloh9:
	adrp	x8, _IB_QPS_RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_QPS_RESET@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x8]
Lloh12:
	adrp	x8, _IB_QPS_INIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_QPS_INIT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w21, w9
	ccmp	w25, w8, #0, eq
	b.eq	LBB0_8
; %bb.5:
Lloh15:
	adrp	x9, _IB_QPS_RTR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IB_QPS_RTR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w21, w8
	ccmp	w25, w9, #0, eq
	b.eq	LBB0_8
; %bb.6:
	ldr	w1, [x24, #16]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x25
	b	LBB0_10
LBB0_7:
	ldr	w1, [x24, #16]
	ldr	w8, [x24]
	stp	x8, x22, [sp]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x25
	b	LBB0_50
LBB0_8:
Lloh22:
	adrp	x8, _MLX4_IB_MODIFY_QP_RSS_SUP_ATTR_MSK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MLX4_IB_MODIFY_QP_RSS_SUP_ATTR_MSK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	bics	wzr, w22, w8
	b.eq	LBB0_11
; %bb.9:
	ldr	w1, [x24, #16]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	str	x25, [sp]
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x22
	mov	x3, x21
LBB0_10:
	bl	_pr_debug
Lloh27:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_51
LBB0_11:
	ldr	x0, [x27, #8]
	bl	_mlx4_is_bonded
Lloh30:
	adrp	x11, _IB_QP_PORT@GOTPAGE
Lloh31:
	ldr	x11, [x11, _IB_QP_PORT@GOTPAGEOFF]
	cbz	x0, LBB0_21
; %bb.12:
	ldr	w8, [x11]
	tst	w8, w22
	b.eq	LBB0_21
; %bb.13:
Lloh32:
	adrp	x9, _IB_QPS_RESET@GOTPAGE
Lloh33:
	ldr	x9, [x9, _IB_QPS_RESET@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _IB_QPS_INIT@GOTPAGE
Lloh36:
	ldr	x10, [x10, _IB_QPS_INIT@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	cmp	w21, w9
	ccmp	w25, w10, #0, eq
	b.eq	LBB0_15
; %bb.14:
	bic	w22, w22, w8
	b	LBB0_21
LBB0_15:
	ldr	w8, [x24]
Lloh38:
	adrp	x9, _IB_QPT_RC@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IB_QPT_RC@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_20
; %bb.16:
Lloh41:
	adrp	x9, _IB_QPT_UD@GOTPAGE
Lloh42:
	ldr	x9, [x9, _IB_QPT_UD@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_20
; %bb.17:
Lloh44:
	adrp	x9, _IB_QPT_UC@GOTPAGE
Lloh45:
	ldr	x9, [x9, _IB_QPT_UC@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_20
; %bb.18:
Lloh47:
	adrp	x9, _IB_QPT_RAW_PACKET@GOTPAGE
Lloh48:
	ldr	x9, [x9, _IB_QPT_RAW_PACKET@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_20
; %bb.19:
Lloh50:
	adrp	x9, _IB_QPT_XRC_INI@GOTPAGE
Lloh51:
	ldr	x9, [x9, _IB_QPT_XRC_INI@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_21
LBB0_20:
	mov	x0, x27
	bl	_mlx4_ib_bond_next_port
Lloh53:
	adrp	x11, _IB_QP_PORT@GOTPAGE
Lloh54:
	ldr	x11, [x11, _IB_QP_PORT@GOTPAGEOFF]
	str	x0, [x23, #8]
LBB0_21:
	ldr	w8, [x11]
	tst	w8, w22
	b.eq	LBB0_27
; %bb.22:
	ldr	x2, [x23, #8]
	cbz	x2, LBB0_24
; %bb.23:
	ldr	x8, [x27]
	cmp	x2, x8
	b.le	LBB0_25
LBB0_24:
	ldr	w1, [x24, #16]
	ldr	w8, [x24]
	stp	x25, x8, [sp]
Lloh55:
	adrp	x0, l_.str.3@PAGE
Lloh56:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_49
LBB0_25:
	ldr	w8, [x24]
Lloh57:
	adrp	x9, _IB_QPT_RAW_PACKET@GOTPAGE
Lloh58:
	ldr	x9, [x9, _IB_QPT_RAW_PACKET@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_27
; %bb.26:
	add	x0, x27, #16
	mov	x1, x2
	bl	_rdma_port_get_link_layer
Lloh60:
	adrp	x11, _IB_QP_PORT@GOTPAGE
Lloh61:
	ldr	x11, [x11, _IB_QP_PORT@GOTPAGEOFF]
Lloh62:
	adrp	x8, _IB_LINK_LAYER_ETHERNET@GOTPAGE
Lloh63:
	ldr	x8, [x8, _IB_LINK_LAYER_ETHERNET@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_51
LBB0_27:
Lloh65:
	adrp	x8, _IB_QP_PKEY_INDEX@GOTPAGE
Lloh66:
	ldr	x8, [x8, _IB_QP_PKEY_INDEX@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_32
; %bb.28:
	ldr	w8, [x11]
	tst	w8, w22
	b.eq	LBB0_30
; %bb.29:
	ldr	x8, [x23, #8]
	b	LBB0_31
LBB0_30:
	ldr	w8, [x28, #4]
LBB0_31:
	ldr	x2, [x23, #16]
	ldr	x9, [x27, #8]
	ldr	x9, [x9]
	sbfiz	x8, x8, #3, #32
	ldr	x8, [x9, x8]
	cmp	x2, x8
	b.ge	LBB0_48
LBB0_32:
Lloh68:
	adrp	x8, _IB_QP_MAX_QP_RD_ATOMIC@GOTPAGE
Lloh69:
	ldr	x8, [x8, _IB_QP_MAX_QP_RD_ATOMIC@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_35
; %bb.33:
	ldr	x2, [x23, #24]
	ldr	x8, [x27, #8]
	ldr	x8, [x8, #8]
	cmp	x2, x8
	b.le	LBB0_35
; %bb.34:
	ldr	w1, [x24, #16]
	ldr	w8, [x24]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	stp	x25, x8, [sp]
Lloh71:
	adrp	x0, l_.str.5@PAGE
Lloh72:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_49
LBB0_35:
Lloh73:
	adrp	x8, _IB_QP_MAX_DEST_RD_ATOMIC@GOTPAGE
Lloh74:
	ldr	x8, [x8, _IB_QP_MAX_DEST_RD_ATOMIC@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_38
; %bb.36:
	ldr	x2, [x23, #32]
	ldr	x8, [x27, #8]
	ldr	x8, [x8, #16]
	cmp	x2, x8
	b.le	LBB0_38
; %bb.37:
	ldr	w1, [x24, #16]
	ldr	w8, [x24]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	stp	x25, x8, [sp]
Lloh76:
	adrp	x0, l_.str.6@PAGE
Lloh77:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_49
LBB0_38:
Lloh78:
	adrp	x8, _IB_QPS_RESET@GOTPAGE
Lloh79:
	ldr	x8, [x8, _IB_QPS_RESET@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
	cmp	w21, w25
	ccmp	w21, w8, #0, eq
	b.eq	LBB0_52
; %bb.39:
	mov	x28, x11
	ldr	x0, [x24, #8]
	cbz	x0, LBB0_42
; %bb.40:
Lloh81:
	adrp	x8, _IB_QPS_INIT@GOTPAGE
Lloh82:
	ldr	x8, [x8, _IB_QPS_INIT@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_42
; %bb.41:
	ldr	w1, [x23, #8]
	mov	x2, x26
	bl	_bringup_rss_rwqs
	mov	x20, x0
	cbnz	w0, LBB0_51
LBB0_42:
Lloh84:
	adrp	x8, _MLX4_IB_QP_SRC@GOTPAGE
Lloh85:
	ldr	x8, [x8, _MLX4_IB_QP_SRC@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
	mov	x0, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x25
	mov	x6, x26
	bl	___mlx4_ib_modify_qp
	mov	x20, x0
	ldr	x0, [x24, #8]
	cbz	x0, LBB0_45
; %bb.43:
	cbz	w20, LBB0_45
; %bb.44:
	mov	x1, x26
	bl	_bring_down_rss_rwqs
LBB0_45:
	ldr	x0, [x27, #8]
	bl	_mlx4_is_bonded
	cbz	x0, LBB0_51
; %bb.46:
	ldr	w8, [x28]
	tst	w8, w22
	b.eq	LBB0_51
; %bb.47:
	mov	w8, #1
	str	x8, [x23, #8]
	b	LBB0_51
LBB0_48:
	ldr	w1, [x24, #16]
	ldr	w8, [x24]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	stp	x25, x8, [sp]
Lloh87:
	adrp	x0, l_.str.4@PAGE
Lloh88:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_49:
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x21
LBB0_50:
	bl	_pr_debug
LBB0_51:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_52:
	mov	w20, #0
	b	LBB0_51
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh87, Lloh88
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_QP_CUR_STATE,4,2            ; @IB_QP_CUR_STATE
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qpn 0x%x: invalid attribute mask specified for transition %d to %d. qp_type %d, attr_mask 0x%x\n"

	.comm	_IB_QPS_RESET,4,2               ; @IB_QPS_RESET
	.comm	_IB_QPS_INIT,4,2                ; @IB_QPS_INIT
	.comm	_IB_QPS_RTR,4,2                 ; @IB_QPS_RTR
l_.str.1:                               ; @.str.1
	.asciz	"qpn 0x%x: RSS QP unsupported transition %d to %d\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MLX4_IB_MODIFY_QP_RSS_SUP_ATTR_MSK,4,2 ; @MLX4_IB_MODIFY_QP_RSS_SUP_ATTR_MSK
l_.str.2:                               ; @.str.2
	.asciz	"qpn 0x%x: RSS QP unsupported attribute mask 0x%x for transition %d to %d\n"

	.comm	_IB_QP_PORT,4,2                 ; @IB_QP_PORT
	.comm	_IB_QPT_RC,4,2                  ; @IB_QPT_RC
	.comm	_IB_QPT_UD,4,2                  ; @IB_QPT_UD
	.comm	_IB_QPT_UC,4,2                  ; @IB_QPT_UC
	.comm	_IB_QPT_RAW_PACKET,4,2          ; @IB_QPT_RAW_PACKET
	.comm	_IB_QPT_XRC_INI,4,2             ; @IB_QPT_XRC_INI
l_.str.3:                               ; @.str.3
	.asciz	"qpn 0x%x: invalid port number (%d) specified for transition %d to %d. qp_type %d\n"

	.comm	_IB_LINK_LAYER_ETHERNET,8,3     ; @IB_LINK_LAYER_ETHERNET
	.comm	_IB_QP_PKEY_INDEX,4,2           ; @IB_QP_PKEY_INDEX
l_.str.4:                               ; @.str.4
	.asciz	"qpn 0x%x: invalid pkey index (%d) specified for transition %d to %d. qp_type %d\n"

	.comm	_IB_QP_MAX_QP_RD_ATOMIC,4,2     ; @IB_QP_MAX_QP_RD_ATOMIC
l_.str.5:                               ; @.str.5
	.asciz	"qpn 0x%x: max_rd_atomic (%d) too large. Transition %d to %d. qp_type %d\n"

	.comm	_IB_QP_MAX_DEST_RD_ATOMIC,4,2   ; @IB_QP_MAX_DEST_RD_ATOMIC
l_.str.6:                               ; @.str.6
	.asciz	"qpn 0x%x: max_dest_rd_atomic (%d) too large. Transition %d to %d. qp_type %d\n"

	.comm	_MLX4_IB_QP_SRC,4,2             ; @MLX4_IB_QP_SRC
	.no_dead_strip	__mlx4_ib_modify_qp
.subsections_via_symbols
