	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ef10_add_vlan
_efx_ef10_add_vlan:                     ## @efx_ef10_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
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_efx_ef10_find_vlan
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	testq	%r12, %r12
	je	LBB0_8
## %bb.2:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	movq	%r12, %r8
	callq	_netif_warn
	movq	_EALREADY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r15
	movq	%r12, 8(%rax)
	leaq	4(%r14), %rsi
	movq	%rax, %rdi
	callq	_list_add_tail
	cmpq	$0, 8(%r13)
	je	LBB0_8
## %bb.5:
	movq	%r13, %rdi
	callq	_mutex_lock
	leaq	4(%r13), %rbx
	movq	%rbx, %rdi
	callq	_down_write
	movq	8(%r15), %rsi
	movq	%r13, %rdi
	callq	_efx_ef10_filter_add_vlan
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_up_write
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	$0, %ebx
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	callq	_list_del
	movq	%r15, %rdi
	callq	_kfree
	movl	%r12d, %ebx
	jmp	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_efx_ef10_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_add_vlan
_efx_ef10_add_vlan:                     ; @efx_ef10_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	x20, x0
	ldr	x19, [x0, #24]
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x22
	bl	_efx_ef10_find_vlan
	cbz	x0, LBB0_3
; %bb.1:
	cbz	x22, LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x22
	bl	_netif_warn
Lloh5:
	adrp	x8, _EALREADY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x21, x0
	str	x22, [x0, #8]
	add	x1, x19, #4
	bl	_list_add_tail
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_mutex_lock
	add	x23, x20, #4
	mov	x0, x23
	bl	_down_write
	ldr	x1, [x21, #8]
	mov	x0, x20
	bl	_efx_ef10_filter_add_vlan
	mov	x22, x0
	mov	x0, x23
	bl	_up_write
	mov	x0, x20
	bl	_mutex_unlock
	cbz	w22, LBB0_9
; %bb.6:
	mov	x0, x21
	bl	_list_del
	mov	x0, x21
	bl	_kfree
	b	LBB0_9
LBB0_7:
	neg	w22, w23
	b	LBB0_9
LBB0_8:
	mov	w22, #0
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.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	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_efx_ef10_add_vlan
.subsections_via_symbols
