	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks_clear_mcast
_ks_clear_mcast:                        ## @ks_clear_mcast
	.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
	movq	_HW_MCAST_SIZE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rcx,%rdx,8)
	incq	%rdx
	movq	(%rax), %r15
	cmpq	%r15, %rdx
	jb	LBB0_2
## %bb.3:
	cmpq	$4, %r15
	jb	LBB0_6
## %bb.4:
	shrq	%r15
	andq	$-2, %r15
	xorl	%ebx, %ebx
	movq	_KS_MAHTR0@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ks_wrreg16
	addq	$2, %rbx
	cmpq	%rbx, %r15
	jne	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_MCAST_SIZE,8,3              ## @HW_MCAST_SIZE
	.comm	_KS_MAHTR0,8,3                  ## @KS_MAHTR0
	.no_dead_strip	_ks_clear_mcast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks_clear_mcast
_ks_clear_mcast:                        ; @ks_clear_mcast
	.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
Lloh0:
	adrp	x8, _HW_MCAST_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_MCAST_SIZE@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x9, #0
	ldr	x10, [x0]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x10, x9, lsl #3]
	add	x9, x9, #1
	ldr	x11, [x8]
	cmp	x9, x11
	b.lo	LBB0_2
; %bb.3:
	cmp	x11, #4
	b.lo	LBB0_6
; %bb.4:
	mov	x20, #0
	lsr	x8, x11, #1
	and	x21, x8, #0x7ffffffffffffffe
Lloh2:
	adrp	x22, _KS_MAHTR0@GOTPAGE
Lloh3:
	ldr	x22, [x22, _KS_MAHTR0@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x1, x20, x8
	mov	x0, x19
	mov	w2, #0
	bl	_ks_wrreg16
	add	x20, x20, #2
	cmp	x21, x20
	b.ne	LBB0_5
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_MCAST_SIZE,8,3              ; @HW_MCAST_SIZE
	.comm	_KS_MAHTR0,8,3                  ; @KS_MAHTR0
	.no_dead_strip	_ks_clear_mcast
.subsections_via_symbols
