	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qedr_gsi_build_header
_qedr_gsi_build_header:                 ## @qedr_gsi_build_header
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -152(%rbp)                 ## 8-byte Spill
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_ud_wr
	movl	4(%rax), %edi
	callq	_get_qedr_ah
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_rdma_ah_read_grh
	movq	%rax, %rbx
	movq	16(%rax), %r13
	movq	$0, -72(%rbp)
	xorl	%r14d, %r14d
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_rdma_read_gid_l2_fields
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_25
## %bb.1:
	movq	-152(%rbp), %r15                ## 8-byte Reload
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	movq	-144(%rbp), %r12                ## 8-byte Reload
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdx
	movq	_VLAN_CFI_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	cmpq	%rax, %rdx
	setl	%r8b
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movl	(%r10), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.2:
	movq	%r10, %rdx
	movq	8(%r10), %rdx
	cmpl	$4, %eax
	jae	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_4:
	movq	%rbx, %r9
	movl	%eax, %esi
	andl	$-4, %esi
	leaq	-4(%rsi), %rdi
	movq	%rdi, %r11
	shrq	$2, %r11
	incq	%r11
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	movq	%r11, %rdi
	andq	$-2, %rdi
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rbx,8), %xmm2
	movdqu	16(%rdx,%rbx,8), %xmm3
	movdqu	32(%rdx,%rbx,8), %xmm4
	movdqu	48(%rdx,%rbx,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rbx
	addq	$-2, %rdi
	jne	LBB0_7
## %bb.8:
	testb	$1, %r11b
	je	LBB0_10
LBB0_9:
	movdqu	(%rdx,%rbx,8), %xmm2
	movdqu	16(%rdx,%rbx,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_10:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %r14d
	cmpq	%rax, %rsi
	movq	%r9, %rbx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rdx,%rsi,8), %r14d
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_11
LBB0_12:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movb	%r8b, %cl
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rdx
	movq	_IB_GID_TYPE_ROCE_UDP_ENCAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdx
	sete	%bl
	jne	LBB0_13
## %bb.14:
	leaq	8(%rsi), %rdi
	movl	%ecx, %r13d
	callq	_ipv6_addr_v4mapped
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	testq	%rax, %rax
	setne	%al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	sete	%r8b
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	cmoveq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movq	_ROCE_V2_IPV4@GOTPCREL(%rip), %rdx
	cmoveq	_ROCE_V2_IPV6@GOTPCREL(%rip), %rdx
	leal	(%r8,%r8), %r9d
	addl	$4, %r9d
	jmp	LBB0_15
LBB0_13:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %r8d
	movq	_ROCE_V1@GOTPCREL(%rip), %rdx
	movq	_ETH_P_IBOE@GOTPCREL(%rip), %rax
	xorl	%r9d, %r9d
LBB0_15:
	movq	(%rax), %r13
	movl	(%rdx), %eax
	movl	%eax, (%r15)
	subq	$8, %rsp
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
                                        ## kill: def $r8d killed $r8d killed $r8
	pushq	%r12
	pushq	$0
	pushq	%rbx
	callq	_ib_ud_header_init
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_DP_ERR
	jmp	LBB0_25
LBB0_17:
	movl	156(%r12), %edi
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %esi
	callq	_ether_addr_copy
	movl	152(%r12), %edi
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_ether_addr_copy
	movq	-120(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, -128(%rbp)                ## 8-byte Folded Reload
	jge	LBB0_19
## %bb.18:
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_htons
	movq	%rax, 144(%r12)
	movq	-72(%rbp), %rdi
	callq	_htons
	movq	%rax, 168(%r12)
	movq	%r13, %rdi
	callq	_htons
	movq	%rax, 160(%r12)
	jmp	LBB0_20
LBB0_19:
	movq	%r13, %rdi
	callq	_htons
	movq	%rax, 144(%r12)
LBB0_20:
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	_IB_SEND_SOLICITED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	4(%rdi), %eax
	setne	%cl
	movl	%ecx, 112(%r12)
	movq	_QEDR_ROCE_PKEY_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 136(%r12)
	callq	_ud_wr
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 128(%r12)
	movl	(%rbx), %edi
	leal	1(%rdi), %eax
	movl	%eax, (%rbx)
	andl	$16777215, %edi                 ## imm = 0xFFFFFF
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_htonl
	movq	%rax, 120(%r12)
	movq	_IB_OPCODE_UD_SEND_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%r12)
	movl	$-2147418112, %edi              ## imm = 0x80010000
	callq	_htonl
	movq	%rax, 104(%r12)
	movq	_QEDR_GSI_QPN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 96(%r12)
	testb	%r15b, %r15b
	je	LBB0_21
## %bb.22:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movl	(%r14), %edi
	callq	_htonl
	movq	%rax, 56(%r12)
	movq	_IP_DF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_htons
	movq	%rax, 48(%r12)
	movl	8(%r14), %eax
	movl	%eax, 40(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_qedr_get_ipv4_from_gid
	movq	%rax, 32(%r12)
	movl	4(%r14), %edi
	callq	_qedr_get_ipv4_from_gid
	movq	%rax, 24(%r12)
	jmp	LBB0_23
LBB0_21:
	movl	12(%r14), %eax
	movl	%eax, 88(%r12)
	movl	(%r14), %eax
	movl	%eax, 72(%r12)
	movl	8(%r14), %eax
	movl	%eax, 84(%r12)
	movl	4(%r14), %eax
	movl	%eax, 80(%r12)
	leaq	76(%r12), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
LBB0_23:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r15d, %r15d
	cmpq	%rcx, %rax
	jne	LBB0_25
## %bb.24:
	movq	_QEDR_ROCE_V2_UDP_SPORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_htons
	movq	%rax, 16(%r12)
	movq	_ROCE_V2_UDP_DPORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_htons
	movq	%rax, 8(%r12)
	movq	$0, (%r12)
LBB0_25:
	movl	%r15d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	testb	$1, %r11b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_VLAN_CFI_MASK,8,3              ## @VLAN_CFI_MASK
	.comm	_IB_GID_TYPE_ROCE_UDP_ENCAP,8,3 ## @IB_GID_TYPE_ROCE_UDP_ENCAP
	.comm	_ETH_P_IBOE,8,3                 ## @ETH_P_IBOE
	.comm	_ROCE_V1,4,2                    ## @ROCE_V1
	.comm	_ETH_P_IP,8,3                   ## @ETH_P_IP
	.comm	_ROCE_V2_IPV4,4,2               ## @ROCE_V2_IPV4
	.comm	_ETH_P_IPV6,8,3                 ## @ETH_P_IPV6
	.comm	_ROCE_V2_IPV6,4,2               ## @ROCE_V2_IPV6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gsi post send: failed to init header\n"

	.comm	_ETH_P_8021Q,8,3                ## @ETH_P_8021Q
	.comm	_IB_SEND_SOLICITED,4,2          ## @IB_SEND_SOLICITED
	.comm	_QEDR_ROCE_PKEY_DEFAULT,4,2     ## @QEDR_ROCE_PKEY_DEFAULT
	.comm	_IB_OPCODE_UD_SEND_ONLY,4,2     ## @IB_OPCODE_UD_SEND_ONLY
	.comm	_QEDR_GSI_QPN,4,2               ## @QEDR_GSI_QPN
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_IP_DF,8,3                      ## @IP_DF
	.comm	_QEDR_ROCE_V2_UDP_SPORT,8,3     ## @QEDR_ROCE_V2_UDP_SPORT
	.comm	_ROCE_V2_UDP_DPORT,8,3          ## @ROCE_V2_UDP_DPORT
	.no_dead_strip	_qedr_gsi_build_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qedr_gsi_build_header
_qedr_gsi_build_header:                 ; @qedr_gsi_build_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x4
	mov	x19, x3
	mov	x23, x2
	mov	x22, x1
	mov	x24, x0
	mov	x0, x2
	bl	_ud_wr
	ldr	w0, [x0, #4]
	bl	_get_qedr_ah
	mov	x25, x0
	bl	_rdma_ah_read_grh
	mov	x20, x0
	ldr	x21, [x0, #16]
	str	xzr, [sp, #56]
	add	x1, sp, #56
	mov	x0, x21
	mov	x2, #0
	bl	_rdma_read_gid_l2_fields
	mov	x27, x0
	cbnz	w0, LBB0_24
; %bb.1:
Lloh0:
	adrp	x8, _VLAN_CFI_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLAN_CFI_MASK@GOTPAGEOFF]
	ldr	x9, [sp, #56]
Lloh2:
	ldr	x10, [x8]
	cmp	x9, x10
	cset	w3, lt
	ldr	w8, [x23]
	cmp	w8, #1
	str	x22, [sp, #48]                  ; 8-byte Folded Spill
	stp	x10, x9, [sp, #16]              ; 16-byte Folded Spill
	b.lt	LBB0_4
; %bb.2:
	ldr	x9, [x23, #8]
	cmp	w8, #8
	b.hs	LBB0_5
; %bb.3:
	mov	x10, #0
	mov	w28, #0
	b	LBB0_8
LBB0_4:
	mov	w28, #0
	b	LBB0_10
LBB0_5:
	and	x10, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x11, x9, #32
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x12, x12, #8
	b.ne	LBB0_6
; %bb.7:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w28, s0
	cmp	x10, x8
	b.eq	LBB0_10
LBB0_8:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #8
	add	w28, w28, w10
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	ldr	x9, [x21]
Lloh3:
	adrp	x8, _IB_GID_TYPE_ROCE_UDP_ENCAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_GID_TYPE_ROCE_UDP_ENCAP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x9, [sp, #32]               ; 16-byte Folded Spill
	cmp	x9, x8
	cset	w27, eq
	b.ne	LBB0_12
; %bb.11:
	add	x0, x21, #8
	mov	x22, x3
	bl	_ipv6_addr_v4mapped
	mov	x3, x22
Lloh6:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh8:
	adrp	x9, _ETH_P_IPV6@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ETH_P_IPV6@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	cset	w9, ne
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	cset	w4, eq
Lloh10:
	adrp	x9, _ROCE_V2_IPV4@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ROCE_V2_IPV4@GOTPAGEOFF]
Lloh12:
	adrp	x10, _ROCE_V2_IPV6@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ROCE_V2_IPV6@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	mov	w10, #4
	mov	w11, #6
	csel	w5, w11, w10, eq
	b	LBB0_13
LBB0_12:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	mov	w5, #0
	mov	w4, #1
Lloh14:
	adrp	x9, _ROCE_V1@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ROCE_V1@GOTPAGEOFF]
Lloh16:
	adrp	x8, _ETH_P_IBOE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETH_P_IBOE@GOTPAGEOFF]
LBB0_13:
	ldr	x22, [x8]
	ldr	w8, [x9]
	str	w8, [x26]
	str	x19, [sp]
	mov	x0, x28
	mov	w1, #0
	mov	w2, #1
	mov	x6, x27
	mov	w7, #0
	bl	_ib_ud_header_init
	cbz	w0, LBB0_15
; %bb.14:
	mov	x27, x0
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_DP_ERR
	b	LBB0_24
LBB0_15:
	ldr	w0, [x19, #156]
	ldr	w1, [x25]
	bl	_ether_addr_copy
	ldr	w0, [x19, #152]
	ldr	x8, [x24]
	ldr	w1, [x8]
	bl	_ether_addr_copy
	ldp	x9, x8, [sp, #16]               ; 16-byte Folded Reload
	cmp	x8, x9
	ldr	x24, [sp, #48]                  ; 8-byte Folded Reload
	b.ge	LBB0_17
; %bb.16:
Lloh20:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
	bl	_htons
	str	x0, [x19, #144]
	ldr	x0, [sp, #56]
	bl	_htons
	str	x0, [x19, #168]
	mov	x0, x22
	bl	_htons
	str	x0, [x19, #160]
	b	LBB0_18
LBB0_17:
	mov	x0, x22
	bl	_htons
	str	x0, [x19, #144]
LBB0_18:
	ldr	w8, [x23, #4]
Lloh23:
	adrp	x9, _IB_SEND_SOLICITED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IB_SEND_SOLICITED@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19, #112]
Lloh26:
	adrp	x8, _QEDR_ROCE_PKEY_DEFAULT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _QEDR_ROCE_PKEY_DEFAULT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x19, #136]
	mov	x0, x23
	bl	_ud_wr
	ldr	w0, [x0]
	bl	_htonl
	str	x0, [x19, #128]
	ldr	w8, [x24]
	add	w9, w8, #1
	str	w9, [x24]
	and	w0, w8, #0xffffff
	bl	_htonl
	str	x0, [x19, #120]
Lloh29:
	adrp	x8, _IB_OPCODE_UD_SEND_ONLY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IB_OPCODE_UD_SEND_ONLY@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x19, #116]
	mov	w0, #-2147418112
	bl	_htonl
	str	x0, [x19, #104]
Lloh32:
	adrp	x8, _QEDR_GSI_QPN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _QEDR_GSI_QPN@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [x19, #96]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	tbz	w8, #0, LBB0_20
; %bb.19:
Lloh35:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x19, #64]
	ldr	w0, [x20]
	bl	_htonl
	str	x0, [x19, #56]
Lloh38:
	adrp	x8, _IP_DF@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IP_DF@GOTPAGEOFF]
Lloh40:
	ldr	x0, [x8]
	bl	_htons
	str	x0, [x19, #48]
	ldr	w8, [x20, #8]
	str	w8, [x19, #40]
	ldr	w0, [x21, #8]
	bl	_qedr_get_ipv4_from_gid
	str	x0, [x19, #32]
	ldr	w0, [x20, #4]
	bl	_qedr_get_ipv4_from_gid
	str	x0, [x19, #24]
	b	LBB0_21
LBB0_20:
	ldr	w8, [x20]
	str	w8, [x19, #72]
	ldr	d0, [x20, #8]
	stur	d0, [x19, #84]
	ldr	w8, [x20, #4]
	str	w8, [x19, #80]
	add	x0, x19, #76
	ldr	w1, [x21, #8]
	mov	w2, #4
	bl	_memcpy
LBB0_21:
	ldp	x9, x8, [sp, #32]               ; 16-byte Folded Reload
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.22:
Lloh41:
	adrp	x8, _QEDR_ROCE_V2_UDP_SPORT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _QEDR_ROCE_V2_UDP_SPORT@GOTPAGEOFF]
Lloh43:
	ldr	x0, [x8]
	bl	_htons
	str	x0, [x19, #16]
Lloh44:
	adrp	x8, _ROCE_V2_UDP_DPORT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ROCE_V2_UDP_DPORT@GOTPAGEOFF]
Lloh46:
	ldr	x0, [x8]
	bl	_htons
	mov	w27, #0
	stp	xzr, x0, [x19]
	b	LBB0_24
LBB0_23:
	mov	w27, #0
LBB0_24:
	mov	x0, x27
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_VLAN_CFI_MASK,8,3              ; @VLAN_CFI_MASK
	.comm	_IB_GID_TYPE_ROCE_UDP_ENCAP,8,3 ; @IB_GID_TYPE_ROCE_UDP_ENCAP
	.comm	_ETH_P_IBOE,8,3                 ; @ETH_P_IBOE
	.comm	_ROCE_V1,4,2                    ; @ROCE_V1
	.comm	_ETH_P_IP,8,3                   ; @ETH_P_IP
	.comm	_ROCE_V2_IPV4,4,2               ; @ROCE_V2_IPV4
	.comm	_ETH_P_IPV6,8,3                 ; @ETH_P_IPV6
	.comm	_ROCE_V2_IPV6,4,2               ; @ROCE_V2_IPV6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gsi post send: failed to init header\n"

	.comm	_ETH_P_8021Q,8,3                ; @ETH_P_8021Q
	.comm	_IB_SEND_SOLICITED,4,2          ; @IB_SEND_SOLICITED
	.comm	_QEDR_ROCE_PKEY_DEFAULT,4,2     ; @QEDR_ROCE_PKEY_DEFAULT
	.comm	_IB_OPCODE_UD_SEND_ONLY,4,2     ; @IB_OPCODE_UD_SEND_ONLY
	.comm	_QEDR_GSI_QPN,4,2               ; @QEDR_GSI_QPN
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_IP_DF,8,3                      ; @IP_DF
	.comm	_QEDR_ROCE_V2_UDP_SPORT,8,3     ; @QEDR_ROCE_V2_UDP_SPORT
	.comm	_ROCE_V2_UDP_DPORT,8,3          ; @ROCE_V2_UDP_DPORT
	.no_dead_strip	_qedr_gsi_build_header
.subsections_via_symbols
