	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_vlan_rx_add_vid
_ehea_vlan_rx_add_vid:                  ## @ehea_vlan_rx_add_vid
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%rax), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r12), %edi
	movl	(%r15), %esi
	movq	_H_PORT_CB1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_H_PORT_CB1_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %r8
	callq	_ehea_h_query_ehea_port
	movq	_H_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.4:
	movabsq	$-9223372036854775808, %rax     ## imm = 0x8000000000000000
	movl	%r14d, %ecx
	shrq	%cl, %rax
	movq	(%rbx), %rcx
	shrl	$3, %r14d
	andl	$8184, %r14d                    ## imm = 0x1FF8
	orq	%rax, (%rcx,%r14)
	movl	(%r12), %edi
	movl	(%r15), %esi
	movq	_H_PORT_CB1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_H_PORT_CB1_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %r8
	callq	_ehea_h_modify_ehea_port
	cmpq	(%r13), %rax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	callq	_ehea_error
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_page                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no mem for cb1"

	.comm	_H_PORT_CB1,4,2                 ## @H_PORT_CB1
	.comm	_H_PORT_CB1_ALL,4,2             ## @H_PORT_CB1_ALL
	.comm	_H_SUCCESS,8,3                  ## @H_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"query_ehea_port failed"

L_.str.2:                               ## @.str.2
	.asciz	"modify_ehea_port failed"

	.no_dead_strip	_ehea_vlan_rx_add_vid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_vlan_rx_add_vid
_ehea_vlan_rx_add_vid:                  ; @ehea_vlan_rx_add_vid
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_zeroed_page
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x22]
	ldr	w1, [x20]
Lloh3:
	adrp	x23, _H_PORT_CB1@GOTPAGE
Lloh4:
	ldr	x23, [x23, _H_PORT_CB1@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh5:
	adrp	x24, _H_PORT_CB1_ALL@GOTPAGE
Lloh6:
	ldr	x24, [x24, _H_PORT_CB1_ALL@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x4, x19
	bl	_ehea_h_query_ehea_port
Lloh7:
	adrp	x25, _H_SUCCESS@GOTPAGE
Lloh8:
	ldr	x25, [x25, _H_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	mov	x8, #-9223372036854775808
	lsr	x8, x8, x21
	ldr	x9, [x19]
	lsr	w10, w21, #3
	and	x10, x10, #0x1ff8
	ldr	x11, [x9, x10]
	orr	x8, x11, x8
	str	x8, [x9, x10]
	ldr	w0, [x22]
	ldr	w1, [x20]
	ldr	w2, [x23]
	ldr	w3, [x24]
	mov	x4, x19
	bl	_ehea_h_modify_ehea_port
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.3:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_ehea_error
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_free_page
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no mem for cb1"

	.comm	_H_PORT_CB1,4,2                 ; @H_PORT_CB1
	.comm	_H_PORT_CB1_ALL,4,2             ; @H_PORT_CB1_ALL
	.comm	_H_SUCCESS,8,3                  ; @H_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"query_ehea_port failed"

l_.str.2:                               ; @.str.2
	.asciz	"modify_ehea_port failed"

	.no_dead_strip	_ehea_vlan_rx_add_vid
.subsections_via_symbols
