	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz9477_set_vlan_table
_ksz9477_set_vlan_table:                ## @ksz9477_set_vlan_table
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_mutex_lock
	movq	_REG_SW_VLAN_ENTRY__4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	callq	_ksz_write32
	movq	_REG_SW_VLAN_ENTRY_UNTAG__4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	movq	%rbx, %rdi
	callq	_ksz_write32
	movq	_REG_SW_VLAN_ENTRY_PORTS__4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r15), %rdx
	movq	%rbx, %rdi
	callq	_ksz_write32
	movq	_REG_SW_VLAN_ENTRY_INDEX__2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VLAN_INDEX_M@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	andq	%r14, %rdx
	movq	%rbx, %rdi
	callq	_ksz_write16
	movq	_REG_SW_VLAN_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_VLAN_START@GOTPCREL(%rip), %rax
	movq	_VLAN_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ksz_write8
	movq	%rbx, %rdi
	callq	_ksz9477_wait_vlan_ctrl_ready
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_3
LBB0_2:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ksz_write8
	movq	(%r15), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rax, (%rcx)
	movq	8(%r15), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rax, 8(%rcx)
	movq	16(%r15), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rax, 16(%rcx)
LBB0_3:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SW_VLAN_ENTRY__4,4,2       ## @REG_SW_VLAN_ENTRY__4
	.comm	_REG_SW_VLAN_ENTRY_UNTAG__4,4,2 ## @REG_SW_VLAN_ENTRY_UNTAG__4
	.comm	_REG_SW_VLAN_ENTRY_PORTS__4,4,2 ## @REG_SW_VLAN_ENTRY_PORTS__4
	.comm	_REG_SW_VLAN_ENTRY_INDEX__2,4,2 ## @REG_SW_VLAN_ENTRY_INDEX__2
	.comm	_VLAN_INDEX_M,8,3               ## @VLAN_INDEX_M
	.comm	_REG_SW_VLAN_CTRL,4,2           ## @REG_SW_VLAN_CTRL
	.comm	_VLAN_START,4,2                 ## @VLAN_START
	.comm	_VLAN_WRITE,4,2                 ## @VLAN_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to write vlan table\n"

	.no_dead_strip	_ksz9477_set_vlan_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz9477_set_vlan_table
_ksz9477_set_vlan_table:                ; @ksz9477_set_vlan_table
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _REG_SW_VLAN_ENTRY__4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_SW_VLAN_ENTRY__4@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x20]
	mov	x0, x19
	bl	_ksz_write32
Lloh3:
	adrp	x8, _REG_SW_VLAN_ENTRY_UNTAG__4@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_SW_VLAN_ENTRY_UNTAG__4@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x2, [x20, #8]
	mov	x0, x19
	bl	_ksz_write32
Lloh6:
	adrp	x8, _REG_SW_VLAN_ENTRY_PORTS__4@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_SW_VLAN_ENTRY_PORTS__4@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x2, [x20, #16]
	mov	x0, x19
	bl	_ksz_write32
Lloh9:
	adrp	x8, _REG_SW_VLAN_ENTRY_INDEX__2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_SW_VLAN_ENTRY_INDEX__2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _VLAN_INDEX_M@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VLAN_INDEX_M@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	and	x2, x8, x21
	mov	x0, x19
	bl	_ksz_write16
Lloh15:
	adrp	x23, _REG_SW_VLAN_CTRL@GOTPAGE
Lloh16:
	ldr	x23, [x23, _REG_SW_VLAN_CTRL@GOTPAGEOFF]
Lloh17:
	adrp	x8, _VLAN_START@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VLAN_START@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _VLAN_WRITE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VLAN_WRITE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_ksz_write8
	mov	x0, x19
	bl	_ksz9477_wait_vlan_ctrl_ready
	mov	x22, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	b	LBB0_3
LBB0_2:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_ksz_write8
	ldr	x8, [x19, #8]
	lsl	x9, x21, #3
	ldr	x8, [x8, x9]
	ldr	x10, [x20]
	str	x10, [x8]
	ldr	x8, [x20, #8]
	ldr	x10, [x19, #8]
	ldr	x10, [x10, x9]
	str	x8, [x10, #8]
	ldr	x8, [x20, #16]
	ldr	x10, [x19, #8]
	ldr	x9, [x10, x9]
	str	x8, [x9, #16]
LBB0_3:
	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	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SW_VLAN_ENTRY__4,4,2       ; @REG_SW_VLAN_ENTRY__4
	.comm	_REG_SW_VLAN_ENTRY_UNTAG__4,4,2 ; @REG_SW_VLAN_ENTRY_UNTAG__4
	.comm	_REG_SW_VLAN_ENTRY_PORTS__4,4,2 ; @REG_SW_VLAN_ENTRY_PORTS__4
	.comm	_REG_SW_VLAN_ENTRY_INDEX__2,4,2 ; @REG_SW_VLAN_ENTRY_INDEX__2
	.comm	_VLAN_INDEX_M,8,3               ; @VLAN_INDEX_M
	.comm	_REG_SW_VLAN_CTRL,4,2           ; @REG_SW_VLAN_CTRL
	.comm	_VLAN_START,4,2                 ; @VLAN_START
	.comm	_VLAN_WRITE,4,2                 ; @VLAN_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to write vlan table\n"

	.no_dead_strip	_ksz9477_set_vlan_table
.subsections_via_symbols
