	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_build_ud_hdr
_ocrdma_build_ud_hdr:                   ## @ocrdma_build_ud_hdr
	.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
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_ud_wr
	movl	8(%rax), %edi
	callq	_get_ocrdma_ah
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_ud_wr
	movl	4(%rax), %eax
	movl	%eax, 16(%r14)
	movq	(%rbx), %rax
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	addq	$8, %rbx
	jmp	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	callq	_ud_wr
	movq	%rax, %rbx
LBB0_3:
	movl	(%rbx), %eax
	movl	%eax, 12(%r14)
	movl	12(%r15), %eax
	movl	%eax, 8(%r14)
	movl	8(%r15), %eax
	movl	%eax, 4(%r14)
	movq	(%r15), %rax
	movq	_OCRDMA_AV_VLAN_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_OCRDMA_FLAG_AH_VLAN_PR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_OCRDMA_WQE_FLAGS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, (%r14)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
	.comm	_OCRDMA_AV_VLAN_VALID,4,2       ## @OCRDMA_AV_VLAN_VALID
	.comm	_OCRDMA_FLAG_AH_VLAN_PR,4,2     ## @OCRDMA_FLAG_AH_VLAN_PR
	.comm	_OCRDMA_WQE_FLAGS_SHIFT,4,2     ## @OCRDMA_WQE_FLAGS_SHIFT
	.no_dead_strip	_ocrdma_build_ud_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_build_ud_hdr
_ocrdma_build_ud_hdr:                   ; @ocrdma_build_ud_hdr
	.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
	mov	x0, x2
	bl	_ud_wr
	ldr	w0, [x0, #8]
	bl	_get_ocrdma_ah
	mov	x20, x0
	mov	x0, x21
	bl	_ud_wr
	ldr	w8, [x0, #4]
	str	w8, [x19, #16]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _IB_QPT_GSI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPT_GSI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x0, x22, #8
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_ud_wr
LBB0_3:
	ldr	w8, [x0]
	str	w8, [x19, #12]
	ldr	d0, [x20, #8]
	stur	d0, [x19, #4]
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _OCRDMA_AV_VLAN_VALID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OCRDMA_AV_VLAN_VALID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _OCRDMA_FLAG_AH_VLAN_PR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OCRDMA_FLAG_AH_VLAN_PR@GOTPAGEOFF]
Lloh8:
	adrp	x9, _OCRDMA_WQE_FLAGS_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _OCRDMA_WQE_FLAGS_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	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	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
	.comm	_OCRDMA_AV_VLAN_VALID,4,2       ; @OCRDMA_AV_VLAN_VALID
	.comm	_OCRDMA_FLAG_AH_VLAN_PR,4,2     ; @OCRDMA_FLAG_AH_VLAN_PR
	.comm	_OCRDMA_WQE_FLAGS_SHIFT,4,2     ; @OCRDMA_WQE_FLAGS_SHIFT
	.no_dead_strip	_ocrdma_build_ud_hdr
.subsections_via_symbols
