	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_av_attr
_set_av_attr:                           ## @set_av_attr
	.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	$376, %rsp                      ## imm = 0x178
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r12d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-304(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$112, %edx
	callq	_memset
	leaq	-416(%rbp), %rdi
	xorl	%esi, %esi
	movl	$112, %edx
	callq	_memset
	movl	16(%r15), %edi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rsi
	callq	_ocrdma_hdr_type_to_proto_num
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	16(%rbp), %r13d
	movq	_ETH_P_IBOE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	movl	$27, %eax
	movl	$17, %r12d
	cmovel	%eax, %r12d
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	cmpl	$4096, %r13d                    ## imm = 0x1000
	jge	LBB0_4
## %bb.5:
	testl	%r13d, %r13d
	jne	LBB0_8
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_4:
	movl	(%r15), %r13d
	testl	%r13d, %r13d
	jne	LBB0_8
LBB0_6:
	cmpq	$0, 24(%r15)
	je	LBB0_9
## %bb.7:
	movl	16(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	16(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_8:
	movl	$33024, %edi                    ## imm = 0x8100
	callq	_cpu_to_be16
	movq	%rax, -216(%rbp)
	movl	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, -200(%rbp)
	movl	4(%r15), %edi
	andl	$7, %edi
	movq	_OCRDMA_VID_PCP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	orl	%r13d, %edi
	callq	_cpu_to_be16
	movq	%rax, -208(%rbp)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	$112, %ebx
LBB0_10:
	movq	-304(%rbp), %rdi
	movq	8(%r15), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	-224(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ocrdma_resolve_dmac
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.11:
	movq	%r14, %rdi
	callq	_rdma_ah_read_grh
	movq	%rax, %r14
	movl	24(%rax), %eax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, 16(%r13)
	movq	8(%r13), %rdi
	leaq	-304(%rbp), %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movq	_RDMA_NETWORK_IPV4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movl	$17664, %edi                    ## imm = 0x4500
	orl	(%r14), %edi
	callq	_htons
	movq	%rax, -192(%rbp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be16
	movq	%rax, -120(%rbp)
	movq	_IP_DF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, -128(%rbp)
	xorl	%edi, %edi
	callq	_htons
	movq	%rax, -136(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -184(%rbp)
	movl	%r12d, -180(%rbp)
	leaq	-56(%rbp), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_rdma_gid2ip
	movl	-56(%rbp), %eax
	movl	%eax, -140(%rbp)
	addq	$16, %r14
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_rdma_gid2ip
	movl	-48(%rbp), %eax
	movl	%eax, -144(%rbp)
	movl	%ebx, %edi
	shlq	$2, %rdi
	addq	8(%r13), %rdi
	leaq	-192(%rbp), %rsi
	jmp	LBB0_14
LBB0_13:
	movq	-400(%rbp), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	(%r14), %edi
	shll	$24, %edi
	orl	8(%r14), %edi
	orl	$1610612736, %edi               ## imm = 0x60000000
	callq	_cpu_to_be32
	movq	%rax, -376(%rbp)
	movq	-392(%rbp), %rdi
	movq	16(%r14), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	shll	$16, %eax
	shll	$8, %r12d
	orl	%eax, %r12d
	orl	4(%r14), %r12d
	movl	%r12d, %edi
	callq	_cpu_to_be32
	movq	%rax, -384(%rbp)
	movl	%ebx, %edi
	shlq	$2, %rdi
	addq	8(%r13), %rdi
	leaq	-416(%rbp), %rsi
LBB0_14:
	movl	$112, %edx
	callq	_memcpy
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_15
## %bb.16:
	movq	_OCRDMA_AV_VLAN_VALID@GOTPCREL(%rip), %rax
	movq	8(%r13), %rcx
	movl	4(%rcx), %edi
	orl	(%rax), %edi
	movl	%edi, 4(%rcx)
	jmp	LBB0_17
LBB0_9:
	movl	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, -216(%rbp)
	movl	$4, %ebx
	jmp	LBB0_10
LBB0_15:
	movq	8(%r13), %rax
	movl	4(%rax), %edi
LBB0_17:
	callq	_cpu_to_le32
	movq	8(%r13), %rcx
	movl	%eax, 4(%rcx)
	xorl	%r13d, %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$376, %rsp                      ## imm = 0x178
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETH_P_IBOE,4,2                 ## @ETH_P_IBOE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ocrdma%d:Using VLAN with PFC is recommended\n"

L_.str.1:                               ## @.str.1
	.asciz	"ocrdma%d:Using VLAN 0 for this connection\n"

	.comm	_OCRDMA_VID_PCP_SHIFT,4,2       ## @OCRDMA_VID_PCP_SHIFT
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_RDMA_NETWORK_IPV4,8,3          ## @RDMA_NETWORK_IPV4
	.comm	_IP_DF,4,2                      ## @IP_DF
	.comm	_OCRDMA_AV_VLAN_VALID,4,2       ## @OCRDMA_AV_VLAN_VALID
	.no_dead_strip	_set_av_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_av_attr
_set_av_attr:                           ; @set_av_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #448
	.cfi_def_cfa_offset 448
	stp	x28, x27, [sp, #352]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #368]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #384]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #400]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #416]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #432]            ; 16-byte Folded Spill
	add	x29, sp, #432
	.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	x23, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x19, x1
	mov	x25, x0
	sub	x0, x29, #192
	mov	w1, #0
	mov	w2, #112
	bl	_memset
	add	x0, sp, #128
	mov	w1, #0
	mov	w2, #112
	bl	_memset
	ldr	w0, [x25, #16]
	ldr	x1, [x19]
	bl	_ocrdma_hdr_type_to_proto_num
	cbz	w0, LBB0_4
; %bb.1:
	mov	x26, x0
Lloh0:
	adrp	x8, _ETH_P_IBOE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_IBOE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #17
	mov	w10, #27
	cmp	w0, w8
	csel	w27, w10, w9, eq
	cbz	w23, LBB0_5
; %bb.2:
	cmp	w23, #1, lsl #12                ; =4096
	b.ge	LBB0_5
; %bb.3:
	cbnz	w23, LBB0_8
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_5:
	ldr	w23, [x25]
	cbnz	w23, LBB0_8
LBB0_6:
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_15
; %bb.7:
	ldr	w1, [x25, #16]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	w1, [x25, #16]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_8:
	mov	w0, #33024
	bl	_cpu_to_be16
	stur	x0, [x29, #-104]
	mov	x0, x26
	bl	_cpu_to_be16
	stur	x0, [x29, #-88]
	ldr	w8, [x25, #4]
	and	w8, w8, #0x7
Lloh10:
	adrp	x9, _OCRDMA_VID_PCP_SHIFT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _OCRDMA_VID_PCP_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w0, w8, w23
	bl	_cpu_to_be16
	stur	x0, [x29, #-96]
	mov	w8, #1
	str	w8, [x20]
	mov	w23, #112
LBB0_9:
	ldur	x0, [x29, #-192]
	ldr	x1, [x25, #8]
Lloh13:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_memcpy
	ldur	x2, [x29, #-112]
	mov	x0, x25
	mov	x1, x24
	bl	_ocrdma_resolve_dmac
	cbnz	w0, LBB0_18
; %bb.10:
	mov	x0, x24
	bl	_rdma_ah_read_grh
	mov	x24, x0
	ldr	w8, [x0, #24]
	str	w8, [x19, #16]
	ldr	x0, [x19, #8]
	sub	x1, x29, #192
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _RDMA_NETWORK_IPV4@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RDMA_NETWORK_IPV4@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [x24]
	mov	w9, #17664
	orr	w0, w8, w9
	bl	_htons
	str	x0, [sp, #16]
	mov	x0, x21
	bl	_cpu_to_be16
	str	x0, [sp, #88]
Lloh19:
	adrp	x8, _IP_DF@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IP_DF@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_htons
	str	x0, [sp, #80]
	mov	w0, #0
	bl	_htons
	str	x0, [sp, #72]
	ldr	w8, [x24, #4]
	stp	w8, w27, [sp, #24]
	add	x0, sp, #8
	mov	x1, x22
	bl	_rdma_gid2ip
	ldr	w8, [sp, #8]
	str	w8, [sp, #68]
	add	x1, x24, #16
	mov	x0, sp
	bl	_rdma_gid2ip
	ldr	w8, [sp]
	str	w8, [sp, #64]
	ldr	x8, [x19, #8]
	add	x0, x8, w23, uxtw #2
	add	x1, sp, #16
	b	LBB0_13
LBB0_12:
	ldr	x0, [sp, #144]
	ldr	x1, [x22]
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x24]
	ldr	w9, [x24, #8]
	orr	w8, w9, w8, lsl #24
	orr	w0, w8, #0x60000000
	bl	_cpu_to_be32
	str	x0, [sp, #168]
	ldr	x0, [sp, #152]
	ldr	x1, [x24, #16]
	mov	w2, #8
	bl	_memcpy
	lsl	w8, w21, #16
	bfi	w8, w27, #8, #5
	ldr	w9, [x24, #4]
	orr	w0, w9, w8
	bl	_cpu_to_be32
	str	x0, [sp, #160]
	ldr	x8, [x19, #8]
	add	x0, x8, w23, uxtw #2
	add	x1, sp, #128
LBB0_13:
	mov	w2, #112
	bl	_memcpy
	ldr	w8, [x20]
	cbz	w8, LBB0_16
; %bb.14:
Lloh22:
	adrp	x8, _OCRDMA_AV_VLAN_VALID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OCRDMA_AV_VLAN_VALID@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	w10, [x9, #4]
	orr	w0, w10, w8
	str	w0, [x9, #4]
	b	LBB0_17
LBB0_15:
	mov	x0, x26
	bl	_cpu_to_be16
	stur	x0, [x29, #-104]
	mov	w23, #4
	b	LBB0_9
LBB0_16:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
LBB0_17:
	bl	_cpu_to_le32
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #8]
	str	w8, [x9, #4]
LBB0_18:
	ldp	x29, x30, [sp, #432]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #416]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #400]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #384]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #368]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #352]            ; 16-byte Folded Reload
	add	sp, sp, #448
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETH_P_IBOE,4,2                 ; @ETH_P_IBOE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ocrdma%d:Using VLAN with PFC is recommended\n"

l_.str.1:                               ; @.str.1
	.asciz	"ocrdma%d:Using VLAN 0 for this connection\n"

	.comm	_OCRDMA_VID_PCP_SHIFT,4,2       ; @OCRDMA_VID_PCP_SHIFT
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_RDMA_NETWORK_IPV4,8,3          ; @RDMA_NETWORK_IPV4
	.comm	_IP_DF,4,2                      ; @IP_DF
	.comm	_OCRDMA_AV_VLAN_VALID,4,2       ; @OCRDMA_AV_VLAN_VALID
	.no_dead_strip	_set_av_attr
.subsections_via_symbols
