	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks_set_mcast
_ks_set_mcast:                          ## @ks_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, (%rdi)
	callq	_ks_stop_rx
	movq	_KS_RXCR1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_ks_rdreg16
	movq	_RXCR1_FILTER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_RXCR1_RXAE@GOTPCREL(%rip), %rax
	movq	_RXCR1_RXMAFMA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	_RXCR1_RXPAFMA@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	jmp	LBB0_3
LBB0_2:
	movq	_RXCR1_RXPAFMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_3:
	orl	%ecx, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_ks_wrreg16
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ks_start_rx                    ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KS_RXCR1,4,2                   ## @KS_RXCR1
	.comm	_RXCR1_FILTER_MASK,4,2          ## @RXCR1_FILTER_MASK
	.comm	_RXCR1_RXAE,4,2                 ## @RXCR1_RXAE
	.comm	_RXCR1_RXMAFMA,4,2              ## @RXCR1_RXMAFMA
	.comm	_RXCR1_RXPAFMA,4,2              ## @RXCR1_RXPAFMA
	.no_dead_strip	_ks_set_mcast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks_set_mcast
_ks_set_mcast:                          ; @ks_set_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
	mov	x20, x1
	mov	x19, x0
	str	w1, [x0]
	bl	_ks_stop_rx
Lloh0:
	adrp	x21, _KS_RXCR1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _KS_RXCR1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ks_rdreg16
Lloh2:
	adrp	x8, _RXCR1_FILTER_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RXCR1_FILTER_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
	cbz	w20, LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _RXCR1_RXAE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RXCR1_RXAE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _RXCR1_RXMAFMA@GOTPAGE
Lloh9:
	ldr	x10, [x10, _RXCR1_RXMAFMA@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh11:
	adrp	x10, _RXCR1_RXPAFMA@GOTPAGE
Lloh12:
	ldr	x10, [x10, _RXCR1_RXPAFMA@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w9, w10
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x9, _RXCR1_RXPAFMA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RXCR1_RXPAFMA@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
LBB0_3:
	orr	w2, w9, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ks_wrreg16
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	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	_ks_start_rx
LBB0_5:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_KS_RXCR1,4,2                   ; @KS_RXCR1
	.comm	_RXCR1_FILTER_MASK,4,2          ; @RXCR1_FILTER_MASK
	.comm	_RXCR1_RXAE,4,2                 ; @RXCR1_RXAE
	.comm	_RXCR1_RXMAFMA,4,2              ; @RXCR1_RXMAFMA
	.comm	_RXCR1_RXPAFMA,4,2              ; @RXCR1_RXPAFMA
	.no_dead_strip	_ks_set_mcast
.subsections_via_symbols
