	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_update_vid
_fm10k_update_vid:                      ## @fm10k_update_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_netdev_priv
	xorl	%r13d, %r13d
	testl	%r12d, %r12d
	je	LBB0_32
## %bb.1:
	movq	%rax, %rbx
	movq	_VLAN_N_VID@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jle	LBB0_2
## %bb.4:
	movq	48(%rbx), %rax
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.5:
	cmpq	$0, 40(%rbx)
	je	LBB0_7
## %bb.6:
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_32
LBB0_8:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %esi
	movl	%r12d, %edi
	callq	_set_bit
	movl	16(%rbx), %esi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_clear_bit
	cmpl	$0, (%rbx)
	jg	LBB0_10
	jmp	LBB0_15
LBB0_7:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %esi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_set_bit
	cmpl	$0, (%rbx)
	jle	LBB0_15
LBB0_10:
	xorl	%r14d, %r14d
	movq	_FM10K_VLAN_CLEAR@GOTPCREL(%rip), %r15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	notl	%ecx
	andl	(%r12), %ecx
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%ecx, (%r12)
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jge	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rax
	movq	(%rax,%r14,8), %r12
	movq	_VLAN_N_VID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decl	%edi
	andl	(%r12), %edi
	movl	16(%rbx), %esi
	callq	_test_bit
	movl	(%r15), %ecx
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	orl	(%r12), %ecx
	jmp	LBB0_14
LBB0_15:
	cmpq	$0, 40(%rbx)
	jne	LBB0_32
## %bb.16:
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jne	LBB0_18
## %bb.17:
	cmpl	%r12d, 32(%rbx)
	je	LBB0_32
LBB0_18:
	movq	___FM10K_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_32
## %bb.19:
	movq	%rbx, %rdi
	callq	_fm10k_mbx_lock
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_20
LBB0_21:
	movl	4(%rbx), %esi
	movl	36(%rbx), %edx
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_fm10k_queue_mac_request
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_31
## %bb.22:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_28
## %bb.23:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_28
## %bb.24:
	xorl	%r13d, %r13d
	jmp	LBB0_25
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_28
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	(%rcx,%r13,8), %rcx
	incq	%r13
	testq	%rcx, %rcx
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	4(%r14), %esi
	addl	%r13d, %esi
	movl	4(%rcx), %edx
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_fm10k_queue_mac_request
	movl	(%r14), %eax
	jmp	LBB0_27
LBB0_20:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_fm10k_queue_vlan_request
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_31
	jmp	LBB0_21
LBB0_28:
	testl	%r15d, %r15d
	je	LBB0_30
## %bb.29:
	movq	_VLAN_N_VID@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_30:
	addl	%r12d, %r15d
	movl	%r15d, 8(%rbx)
	movq	_fm10k_uc_vlan_unsync@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	___dev_uc_unsync
	movq	_fm10k_mc_vlan_unsync@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	___dev_mc_unsync
	xorl	%r13d, %r13d
LBB0_31:
	movq	%rbx, %rdi
	callq	_fm10k_mbx_unlock
LBB0_32:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLAN_N_VID,4,2                 ## @VLAN_N_VID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_FM10K_VLAN_CLEAR,4,2           ## @FM10K_VLAN_CLEAR
	.comm	___FM10K_DOWN,4,2               ## @__FM10K_DOWN
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_fm10k_uc_vlan_unsync,4,2       ## @fm10k_uc_vlan_unsync
	.comm	_fm10k_mc_vlan_unsync,4,2       ## @fm10k_mc_vlan_unsync
	.no_dead_strip	_fm10k_update_vid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_update_vid
_fm10k_update_vid:                      ; @fm10k_update_vid
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	cbz	w21, LBB0_19
; %bb.1:
Lloh0:
	adrp	x24, _VLAN_N_VID@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VLAN_N_VID@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w21
	b.le	LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	x25, [x0, #48]
	cbz	w22, LBB0_7
; %bb.3:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_8
; %bb.4:
Lloh2:
	adrp	x8, _EACCES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_20
LBB0_7:
	ldr	w1, [x19, #16]
	mov	x0, x21
	bl	_set_bit
	ldr	w1, [x19, #16]
	mov	x0, x21
	bl	_clear_bit
	b	LBB0_9
LBB0_8:
	ldr	w1, [x19, #16]
	mov	x0, x21
	bl	_set_bit
LBB0_9:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.10:
	mov	x23, #0
Lloh6:
	adrp	x26, _FM10K_VLAN_CLEAR@GOTPAGE
Lloh7:
	ldr	x26, [x26, _FM10K_VLAN_CLEAR@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [x27]
	bic	w8, w9, w8
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	str	w8, [x27]
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x27, [x8, x23, lsl #3]
	ldr	w8, [x27]
	ldr	w9, [x24]
	sub	w9, w9, #1
	and	w0, w9, w8
	ldr	w1, [x19, #16]
	bl	_test_bit
	ldr	w8, [x26]
	cbz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [x27]
	orr	w8, w9, w8
	b	LBB0_12
LBB0_15:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_19
; %bb.16:
	cbnz	w22, LBB0_18
; %bb.17:
	ldr	w8, [x19, #32]
	cmp	w8, w21
	b.eq	LBB0_19
LBB0_18:
Lloh8:
	adrp	x8, ___FM10K_DOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, ___FM10K_DOWN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	_test_bit
	cbz	x0, LBB0_21
LBB0_19:
	mov	w23, #0
LBB0_20:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	mov	x0, x19
	bl	_fm10k_mbx_lock
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_30
LBB0_22:
	ldr	w1, [x19, #4]
	ldr	w2, [x19, #36]
	mov	x0, x19
	mov	x3, x21
	mov	x4, x22
	bl	_fm10k_queue_mac_request
	mov	x23, x0
	cbnz	w0, LBB0_31
; %bb.23:
	cbz	x25, LBB0_29
; %bb.24:
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.25:
	mov	x23, #0
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_29
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25, #8]
	ldr	x9, [x9, x23, lsl #3]
	cbz	x9, LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w8, [x25, #4]
	add	x23, x23, #1
	add	w1, w8, w23
	ldr	w2, [x9, #4]
	mov	x0, x19
	mov	x3, x21
	mov	x4, x22
	bl	_fm10k_queue_mac_request
	ldr	w8, [x25]
	cmp	x23, w8, sxtw
	b.lt	LBB0_27
LBB0_29:
	ldr	w8, [x24]
	cmp	w22, #0
	csel	w8, wzr, w8, eq
	add	w8, w8, w21
	str	w8, [x19, #8]
Lloh14:
	adrp	x8, _fm10k_uc_vlan_unsync@GOTPAGE
Lloh15:
	ldr	x8, [x8, _fm10k_uc_vlan_unsync@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	___dev_uc_unsync
Lloh17:
	adrp	x8, _fm10k_mc_vlan_unsync@GOTPAGE
Lloh18:
	ldr	x8, [x8, _fm10k_mc_vlan_unsync@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	___dev_mc_unsync
	mov	w23, #0
	b	LBB0_31
LBB0_30:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x3, x22
	bl	_fm10k_queue_vlan_request
	mov	x23, x0
	cbz	w0, LBB0_22
LBB0_31:
	mov	x0, x19
	bl	_fm10k_mbx_unlock
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_VLAN_N_VID,4,2                 ; @VLAN_N_VID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_FM10K_VLAN_CLEAR,4,2           ; @FM10K_VLAN_CLEAR
	.comm	___FM10K_DOWN,4,2               ; @__FM10K_DOWN
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_fm10k_uc_vlan_unsync,4,2       ; @fm10k_uc_vlan_unsync
	.comm	_fm10k_mc_vlan_unsync,4,2       ; @fm10k_mc_vlan_unsync
	.no_dead_strip	_fm10k_update_vid
.subsections_via_symbols
