	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v2_set_abs_fields
_hns_roce_v2_set_abs_fields:            ## @hns_roce_v2_set_abs_fields
	.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	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	16(%rbp), %r13
	movl	(%rdi), %edi
	callq	_to_hr_dev
	movq	_IB_QPS_RESET@GOTPCREL(%rip), %rcx
	movq	_IB_QPS_INIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%r15d, (%rcx)
	jne	LBB0_3
## %bb.1:
	cmpl	%r14d, %edx
	jne	LBB0_3
## %bb.2:
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_modify_qp_reset_to_init
	jmp	LBB0_12
LBB0_3:
	cmpl	%r15d, %edx
	jne	LBB0_6
## %bb.4:
	cmpl	%r14d, %edx
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_modify_qp_init_to_init
	xorl	%r14d, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_IB_QPS_RTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%r15d, %edx
	jne	LBB0_8
## %bb.7:
	cmpl	%r14d, %ecx
	jne	LBB0_8
## %bb.13:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_modify_qp_init_to_rtr          ## TAILCALL
LBB0_8:
	cmpl	%r15d, %ecx
	jne	LBB0_10
## %bb.9:
	movq	_IB_QPS_RTS@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_10
## %bb.14:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_modify_qp_rtr_to_rts           ## TAILCALL
LBB0_10:
	movq	%rax, %rbx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_hns_roce_v2_check_qp_stat
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_IB_QPS_RTS,4,2                 ## @IB_QPS_RTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal state for QP!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hns_roce_v2_set_abs_fields
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_v2_set_abs_fields
_hns_roce_v2_set_abs_fields:            ; @hns_roce_v2_set_abs_fields
	.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	x19, x6
	mov	x20, x5
	mov	x24, x4
	mov	x25, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w0, [x0]
	bl	_to_hr_dev
Lloh0:
	adrp	x8, _IB_QPS_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QPS_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _IB_QPS_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QPS_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, w25
	ccmp	w8, w24, #0, eq
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, w25
	ccmp	w8, w24, #0, eq
	b.eq	LBB0_7
; %bb.2:
Lloh6:
	adrp	x9, _IB_QPS_RTR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_QPS_RTR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w25
	ccmp	w9, w24, #0, eq
	b.eq	LBB0_10
; %bb.3:
Lloh9:
	adrp	x8, _IB_QPS_RTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_QPS_RTS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w9, w25
	ccmp	w8, w24, #0, eq
	b.eq	LBB0_11
; %bb.4:
	mov	x26, x0
	mov	x0, x25
	mov	x1, x24
	bl	_hns_roce_v2_check_qp_stat
	cbnz	x0, LBB0_8
; %bb.5:
	ldr	w0, [x26]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_modify_qp_reset_to_init
	b	LBB0_8
LBB0_7:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_modify_qp_init_to_init
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
LBB0_10:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, 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
	b	_modify_qp_init_to_rtr
LBB0_11:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, 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
	b	_modify_qp_rtr_to_rts
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_IB_QPS_RTS,4,2                 ; @IB_QPS_RTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal state for QP!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hns_roce_v2_set_abs_fields
.subsections_via_symbols
