	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bdx_vlan_rx_vid
___bdx_vlan_rx_vid:                     ## @__bdx_vlan_rx_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, %ebx
	movl	%esi, %r12d
	callq	_netdev_priv
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DBG2
	xorl	%edi, %edi
	cmpl	$4096, %r12d                    ## imm = 0x1000
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_pr_err
	xorl	%eax, %eax
	callq	_RET
LBB0_2:
	movq	_regVLAN_0@GOTPCREL(%rip), %rax
	leal	31(%r12), %r13d
	testl	%r12d, %r12d
	cmovnsl	%r12d, %r13d
	sarl	$5, %r13d
	shll	$2, %r13d
	addl	(%rax), %r13d
	movl	$1, %r14d
	movl	%r12d, %ecx
	shll	%cl, %r14d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_READ_REG
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_DBG2
	movl	%ebx, %eax
	btsl	%r12d, %eax
	btrl	%r12d, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovnel	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DBG2
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_WRITE_REG
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RET                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTER,4,2                      ## @ENTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vid=%d value=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid VID: %u (> 4096)\n"

	.comm	_regVLAN_0,4,2                  ## @regVLAN_0
L_.str.2:                               ## @.str.2
	.asciz	"reg=%x, val=%x, bit=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"new val %x\n"

	.no_dead_strip	___bdx_vlan_rx_vid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bdx_vlan_rx_vid
___bdx_vlan_rx_vid:                     ; @__bdx_vlan_rx_vid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	bl	_netdev_priv
	mov	x19, x0
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DBG2
	cmp	w21, #4095
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_pr_err
	bl	_RET
LBB0_2:
Lloh4:
	adrp	x8, _regVLAN_0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _regVLAN_0@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	add	w9, w21, #31
	cmp	w21, #0
	csel	w9, w9, w21, lt
	asr	w9, w9, #5
	add	w22, w8, w9, lsl #2
	mov	w8, #1
	lsl	w23, w8, w21
	mov	x0, x19
	mov	x1, x22
	bl	_READ_REG
	mov	x21, x0
	stp	x21, x23, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_DBG2
	orr	w8, w21, w23
	bic	w9, w21, w23
	cmp	w20, #0
	csel	w20, w9, w8, eq
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_DBG2
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_WRITE_REG
	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
	add	sp, sp, #80
	b	_RET
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTER,4,2                      ; @ENTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vid=%d value=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid VID: %u (> 4096)\n"

	.comm	_regVLAN_0,4,2                  ; @regVLAN_0
l_.str.2:                               ; @.str.2
	.asciz	"reg=%x, val=%x, bit=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"new val %x\n"

	.no_dead_strip	___bdx_vlan_rx_vid
.subsections_via_symbols
