	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v2_record_opt_fields
_hns_roce_v2_record_opt_fields:         ## @hns_roce_v2_record_opt_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	%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
	movl	(%rdi), %edi
	callq	_to_hr_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_hr_qp
	movq	_IB_QP_ACCESS_FLAGS@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	12(%r15), %ecx
	movl	%ecx, 16(%rax)
LBB0_2:
	movq	_IB_QP_MAX_DEST_RD_ATOMIC@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	8(%r15), %ecx
	movl	%ecx, 12(%rax)
LBB0_4:
	movq	_IB_QP_PORT@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	(%r15), %rcx
	leaq	-1(%rcx), %rdx
	movq	%rdx, (%rax)
	movq	(%r14), %rdx
	movl	-4(%rdx,%rcx,4), %ecx
	movl	%ecx, 8(%rax)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QP_ACCESS_FLAGS,4,2         ## @IB_QP_ACCESS_FLAGS
	.comm	_IB_QP_MAX_DEST_RD_ATOMIC,4,2   ## @IB_QP_MAX_DEST_RD_ATOMIC
	.comm	_IB_QP_PORT,4,2                 ## @IB_QP_PORT
	.no_dead_strip	_hns_roce_v2_record_opt_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_record_opt_fields
_hns_roce_v2_record_opt_fields:         ; @hns_roce_v2_record_opt_fields
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x0]
	bl	_to_hr_dev
	mov	x20, x0
	mov	x0, x22
	bl	_to_hr_qp
Lloh0:
	adrp	x8, _IB_QP_ACCESS_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QP_ACCESS_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #12]
	str	w8, [x0, #16]
LBB0_2:
Lloh3:
	adrp	x8, _IB_QP_MAX_DEST_RD_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QP_MAX_DEST_RD_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x19, #8]
	str	w8, [x0, #12]
LBB0_4:
Lloh6:
	adrp	x8, _IB_QP_PORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_QP_PORT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x0]
	ldr	x9, [x20]
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x0, #8]
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QP_ACCESS_FLAGS,4,2         ; @IB_QP_ACCESS_FLAGS
	.comm	_IB_QP_MAX_DEST_RD_ATOMIC,4,2   ; @IB_QP_MAX_DEST_RD_ATOMIC
	.comm	_IB_QP_PORT,4,2                 ; @IB_QP_PORT
	.no_dead_strip	_hns_roce_v2_record_opt_fields
.subsections_via_symbols
