	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iflib_vlan_register
_iflib_vlan_register:                   ## @iflib_vlan_register
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_if_getsoftc
	cmpq	%rbx, %rax
	je	LBB0_1
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.2:
	cmpl	$4095, %r15d                    ## imm = 0xFFF
	jg	LBB0_7
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iflib_in_detach
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	callq	_CTX_LOCK
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_IFDI_VLAN_REGISTER
	movl	%r14d, %edi
	callq	_if_getcapenable
	movq	_IFCAP_VLAN_HWFILTER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_iflib_if_init_locked
LBB0_6:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CTX_UNLOCK                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFCAP_VLAN_HWFILTER,4,2        ## @IFCAP_VLAN_HWFILTER
	.no_dead_strip	_iflib_vlan_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iflib_vlan_register
_iflib_vlan_register:                   ; @iflib_vlan_register
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	bl	_if_getsoftc
	cmp	x0, x22
	b.eq	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	cbz	w21, LBB0_1
; %bb.3:
	cmp	w21, #4095
	b.gt	LBB0_1
; %bb.4:
	mov	x19, x0
	bl	_iflib_in_detach
	cbnz	x0, LBB0_1
; %bb.5:
	mov	x0, x19
	bl	_CTX_LOCK
	mov	x0, x19
	mov	x1, x21
	bl	_IFDI_VLAN_REGISTER
	mov	x0, x20
	bl	_if_getcapenable
Lloh0:
	adrp	x8, _IFCAP_VLAN_HWFILTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFCAP_VLAN_HWFILTER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_iflib_if_init_locked
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_CTX_UNLOCK
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IFCAP_VLAN_HWFILTER,4,2        ; @IFCAP_VLAN_HWFILTER
	.no_dead_strip	_iflib_vlan_register
.subsections_via_symbols
