	.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	%edx, %r15d
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%rax), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r13), %edi
	movl	(%rbx), %esi
	movq	_H_PORT_CB1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_H_PORT_CB1_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %r8
	callq	_ehea_h_query_ehea_port
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	movq	_EINVAL@GOTPCREL(%rip), %r12
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	leal	63(%r15), %eax
	testl	%r15d, %r15d
	cmovnsl	%r15d, %eax
	sarl	$6, %eax
	movabsq	$-9223372036854775808, %rdx     ## imm = 0x8000000000000000
	movl	%r15d, %ecx
	shrq	%cl, %rdx
	movq	(%r14), %rcx
	cltq
	orq	%rdx, (%rcx,%rax,8)
	movl	(%r13), %edi
	movl	(%rbx), %esi
	movq	_H_PORT_CB1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_H_PORT_CB1_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %r8
	callq	_ehea_h_modify_ehea_port
	xorl	%ebx, %ebx
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	callq	_pr_err
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_free_page
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no mem for cb1\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"modify_ehea_port failed\n"

	.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, x2
	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:
	add	w8, w21, #63
	cmp	w21, #0
	csel	w8, w8, w21, lt
	asr	w8, w8, #6
	mov	x9, #-9223372036854775808
	lsr	x9, x9, x21
	ldr	x10, [x19]
	sbfiz	x8, x8, #3, #32
	ldr	x11, [x10, x8]
	orr	x9, x11, x9
	str	x9, [x10, x8]
	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.ne	LBB0_6
; %bb.3:
	mov	w20, #0
	b	LBB0_8
LBB0_4:
Lloh9:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x20, _EINVAL@GOTPAGE
Lloh14:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x20, _EINVAL@GOTPAGE
Lloh18:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_pr_err
	ldr	w8, [x20]
	neg	w20, w8
LBB0_8:
	mov	x0, x19
	bl	_free_page
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no mem for cb1\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.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\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"modify_ehea_port failed\n"

	.no_dead_strip	_ehea_vlan_rx_add_vid
.subsections_via_symbols
