	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %r13
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	leaq	-200(%rbp), %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movl	32(%r15), %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 8(%rbx)
	leaq	24(%r15), %r14
	movq	%r14, %rdi
	callq	_rdma_get_vlan_id
	movl	%eax, %r12d
	testl	%eax, %eax
	setne	%al
	cmpl	$4096, %r12d                    ## imm = 0x1000
	setl	%bl
	andb	%al, %bl
	cmpb	$1, %bl
	jne	LBB0_2
## %bb.1:
	movl	$33024, %edi                    ## imm = 0x8100
	callq	_cpu_to_be16
	movq	%rax, -80(%rbp)
	movq	_OCRDMA_ROCE_ETH_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movq	%rax, -64(%rbp)
	movl	(%r15), %eax
	shll	$13, %eax
	movzwl	%ax, %edi
	orl	%r12d, %edi
	callq	_cpu_to_be16
	movq	%rax, -72(%rbp)
	movl	$72, %r12d
	jmp	LBB0_3
LBB0_2:
	movq	_OCRDMA_ROCE_ETH_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movq	%rax, -80(%rbp)
	movl	$4, %r12d
LBB0_3:
	movq	-88(%rbp), %rdi
	movq	8(%r13), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	-96(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ocrdma_resolve_dgid
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	32(%r15), %edx
	movq	-176(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_ocrdma_query_gid
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	8(%r15), %edi
	shll	$24, %edi
	orl	12(%r15), %edi
	orl	$1610612736, %edi               ## imm = 0x60000000
	callq	_cpu_to_be32
	movq	%rax, -184(%rbp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	shll	$16, %edi
	orl	16(%r15), %edi
	orl	$6912, %edi                     ## imm = 0x1B00
	callq	_cpu_to_be32
	movq	%rax, -192(%rbp)
	movq	-200(%rbp), %rdi
	movq	24(%r15), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdi
	addq	$4, %rdi
	leaq	-128(%rbp), %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	%r12d, %edi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	leaq	-200(%rbp), %rsi
	movl	$72, %edx
	callq	_memcpy
	xorl	%eax, %eax
	testb	%bl, %bl
	je	LBB0_7
## %bb.6:
	movq	_OCRDMA_AV_VLAN_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%r14), %rdx
	orl	%ecx, (%rdx)
LBB0_7:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_ROCE_ETH_TYPE,4,2       ## @OCRDMA_ROCE_ETH_TYPE
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.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, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
	add	x0, sp, #72
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	ldr	w8, [x20, #32]
	str	w8, [x19, #8]
	add	x24, x20, #24
	mov	x0, x24
	bl	_rdma_get_vlan_id
	cmp	w0, #0
	mov	w8, #4096
	ccmp	w0, w8, #0, ne
	cset	w25, lt
	cmp	w25, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x23, x0
	mov	w0, #33024
	bl	_cpu_to_be16
	str	x0, [sp, #120]
Lloh0:
	adrp	x8, _OCRDMA_ROCE_ETH_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCRDMA_ROCE_ETH_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	x0, [sp, #136]
	ldr	w8, [x20]
	ubfiz	w8, w8, #13, #3
	orr	w0, w8, w23
	bl	_cpu_to_be16
	str	x0, [sp, #128]
	mov	w23, #72
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _OCRDMA_ROCE_ETH_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OCRDMA_ROCE_ETH_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	x0, [sp, #120]
	mov	w23, #4
LBB0_3:
	ldr	x0, [sp, #112]
	ldr	x1, [x22, #8]
Lloh6:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	x2, [sp, #104]
	mov	x0, x22
	mov	x1, x24
	bl	_ocrdma_resolve_dgid
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w2, [x20, #32]
	ldr	x3, [sp, #24]
	mov	x0, x22
	mov	w1, #1
	bl	_ocrdma_query_gid
	cbnz	w0, LBB0_7
; %bb.5:
	ldp	w8, w9, [x20, #8]
	orr	w8, w9, w8, lsl #24
	orr	w0, w8, #0x60000000
	bl	_cpu_to_be32
	str	x0, [sp, #16]
	ldr	w8, [x20, #16]
	orr	w8, w8, w21, lsl #16
	mov	w9, #6912
	orr	w0, w8, w9
	bl	_cpu_to_be32
	str	x0, [sp, #8]
	ldr	x0, [sp]
	ldr	x1, [x20, #24]
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x19]
	add	x0, x8, #4
	add	x1, sp, #72
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x19]
	add	x0, x8, w23, uxtw #2
	mov	x1, sp
	mov	w2, #72
	bl	_memcpy
	mov	w0, #0
	cbz	w25, LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _OCRDMA_AV_VLAN_VALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OCRDMA_AV_VLAN_VALID@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_7:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_ROCE_ETH_TYPE,4,2       ; @OCRDMA_ROCE_ETH_TYPE
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_OCRDMA_AV_VLAN_VALID,4,2       ; @OCRDMA_AV_VLAN_VALID
	.no_dead_strip	_set_av_attr
.subsections_via_symbols
