	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ef10_filter_add_vlan
_efx_ef10_filter_add_vlan:              ## @efx_ef10_filter_add_vlan
	.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, %r12d
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	addq	$4, %rdi
	callq	_efx_rwsem_assert_write_locked
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_efx_ef10_filter_find_vlan
	movq	%rax, %rdi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%r12d, %r8d
	callq	_netif_err
	movq	_EALREADY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_23:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	movl	%r12d, 32(%rax)
	movq	24(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	movq	_EFX_EF10_FILTER_ID_INVALID@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	24(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	24(%r13), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_9
LBB0_10:
	movq	16(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	movq	_EFX_EF10_FILTER_ID_INVALID@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	16(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	16(%r13), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_12
LBB0_13:
	movq	_EFX_EF10_NUM_DEFAULT_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.14:
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_16
## %bb.15:
	xorl	%ecx, %ecx
	jmp	LBB0_18
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_16:
	andl	$-4, %edx
	xorl	%ecx, %ecx
	movq	_EFX_EF10_FILTER_ID_INVALID@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rdi
	movq	8(%r13), %rbx
	movq	%rdi, (%rbx,%rcx,8)
	movq	(%rsi), %rdi
	movq	8(%r13), %rbx
	movq	%rdi, 8(%rbx,%rcx,8)
	movq	(%rsi), %rdi
	movq	8(%r13), %rbx
	movq	%rdi, 16(%rbx,%rcx,8)
	movq	(%rsi), %rdi
	movq	8(%r13), %rbx
	movq	%rdi, 24(%rbx,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_17
LBB0_18:
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	_EFX_EF10_FILTER_ID_INVALID@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rsi
	movq	8(%r13), %rdi
	movq	%rsi, (%rdi,%rcx,8)
	incq	%rcx
	decq	%rax
	jne	LBB0_20
LBB0_21:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_efx_dev_registered
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_efx_ef10_filter_vlan_sync_rx_mode
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VLAN %u already added\n"

	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFX_EF10_FILTER_ID_INVALID,8,3 ## @EFX_EF10_FILTER_ID_INVALID
	.comm	_EFX_EF10_NUM_DEFAULT_FILTERS,4,2 ## @EFX_EF10_NUM_DEFAULT_FILTERS
	.no_dead_strip	_efx_ef10_filter_add_vlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ef10_filter_add_vlan
_efx_ef10_filter_add_vlan:              ; @efx_ef10_filter_add_vlan
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
	add	x0, x0, #4
	bl	_efx_rwsem_assert_write_locked
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_efx_ef10_filter_find_vlan
	bl	_WARN_ON
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x22
	bl	_netif_err
Lloh5:
	adrp	x8, _EALREADY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
	b	LBB0_17
LBB0_3:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_4:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_16
; %bb.5:
	mov	x21, x0
	str	w22, [x0, #32]
	ldr	x0, [x0, #24]
	bl	_ARRAY_SIZE
Lloh12:
	adrp	x22, _EFX_EF10_FILTER_ID_INVALID@GOTPAGE
Lloh13:
	ldr	x22, [x22, _EFX_EF10_FILTER_ID_INVALID@GOTPAGEOFF]
	cbz	w0, LBB0_8
; %bb.6:
	mov	x23, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x21, #24]
	str	x8, [x9, x23, lsl #3]
	add	x23, x23, #1
	ldr	x0, [x21, #24]
	bl	_ARRAY_SIZE
	cmp	x23, w0, uxtw
	b.lo	LBB0_7
LBB0_8:
	ldr	x0, [x21, #16]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_11
; %bb.9:
	mov	x23, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x21, #16]
	str	x8, [x9, x23, lsl #3]
	add	x23, x23, #1
	ldr	x0, [x21, #16]
	bl	_ARRAY_SIZE
	cmp	x23, w0, uxtw
	b.lo	LBB0_10
LBB0_11:
Lloh14:
	adrp	x8, _EFX_EF10_NUM_DEFAULT_FILTERS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EFX_EF10_NUM_DEFAULT_FILTERS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x8]
	cbz	w9, LBB0_14
; %bb.12:
	mov	x8, #0
	lsl	x9, x9, #3
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x22]
	ldr	x11, [x21, #8]
	str	x10, [x11, x8]
	add	x8, x8, #8
	cmp	x9, x8
	b.ne	LBB0_13
LBB0_14:
	mov	x0, x21
	mov	x1, x20
	bl	_list_add_tail
	mov	x0, x19
	bl	_efx_dev_registered
	cbz	x0, LBB0_18
; %bb.15:
	mov	x0, x19
	mov	x1, x21
	bl	_efx_ef10_filter_vlan_sync_rx_mode
	mov	w0, #0
	b	LBB0_18
LBB0_16:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VLAN %u already added\n"

	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFX_EF10_FILTER_ID_INVALID,8,3 ; @EFX_EF10_FILTER_ID_INVALID
	.comm	_EFX_EF10_NUM_DEFAULT_FILTERS,4,2 ; @EFX_EF10_NUM_DEFAULT_FILTERS
	.no_dead_strip	_efx_ef10_filter_add_vlan
.subsections_via_symbols
