	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm6996_hw_apply
_adm6996_hw_apply:                      ## @adm6996_hw_apply
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_to_adm
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_pr_devel
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, 20(%rbx)
	movl	(%rbx), %eax
	je	LBB0_4
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	8(%rbx), %rax
	movq	_ADM6996L@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_adm6996_enable_vlan_6996l
	jmp	LBB0_8
LBB0_4:
	testl	%eax, %eax
	je	LBB0_14
## %bb.5:
	movq	8(%rbx), %rax
	movq	_ADM6996L@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.6:
	movq	%rbx, %rdi
	callq	_adm6996_disable_vlan_6996l
	jmp	LBB0_13
LBB0_7:
	movq	%rbx, %rdi
	callq	_adm6996_enable_vlan
LBB0_8:
	movl	$1, (%rbx)
LBB0_9:
	movq	%rbx, %rdi
	callq	_adm6996_apply_port_pvids
	movq	8(%rbx), %rax
	movq	_ADM6996L@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_adm6996_apply_vlan_filters_6996l
	jmp	LBB0_14
LBB0_11:
	movq	%rbx, %rdi
	callq	_adm6996_apply_vlan_filters
	jmp	LBB0_14
LBB0_12:
	movq	%rbx, %rdi
	callq	_adm6996_disable_vlan
LBB0_13:
	movl	$0, (%rbx)
LBB0_14:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hw_apply\n"

	.comm	_ADM6996L,8,3                   ## @ADM6996L
	.no_dead_strip	_adm6996_hw_apply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm6996_hw_apply
_adm6996_hw_apply:                      ; @adm6996_hw_apply
	.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
	bl	_to_adm
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_devel
	add	x19, x20, #16
	mov	x0, x19
	bl	_mutex_lock
	ldr	w9, [x20, #20]
	ldr	w8, [x20]
	cbz	w9, LBB0_4
; %bb.1:
Lloh2:
	adrp	x21, _ADM6996L@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ADM6996L@GOTPAGEOFF]
	cbnz	w8, LBB0_9
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	mov	x0, x20
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	bl	_adm6996_enable_vlan_6996l
	b	LBB0_8
LBB0_4:
	cbz	w8, LBB0_14
; %bb.5:
	ldr	x8, [x20, #8]
Lloh4:
	adrp	x9, _ADM6996L@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ADM6996L@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	mov	x0, x20
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.6:
	bl	_adm6996_disable_vlan_6996l
	b	LBB0_13
LBB0_7:
	bl	_adm6996_enable_vlan
LBB0_8:
	mov	w8, #1
	str	w8, [x20]
LBB0_9:
	mov	x0, x20
	bl	_adm6996_apply_port_pvids
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	mov	x0, x20
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	bl	_adm6996_apply_vlan_filters_6996l
	b	LBB0_14
LBB0_11:
	bl	_adm6996_apply_vlan_filters
	b	LBB0_14
LBB0_12:
	bl	_adm6996_disable_vlan
LBB0_13:
	str	wzr, [x20]
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hw_apply\n"

	.comm	_ADM6996L,8,3                   ; @ADM6996L
	.no_dead_strip	_adm6996_hw_apply
.subsections_via_symbols
