	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks_set_rx_mode
_ks_set_rx_mode:                        ## @ks_set_rx_mode
	.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	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$1, %esi
	jmp	LBB0_5
LBB0_2:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ks_set_mcast
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
LBB0_5:
	callq	_ks_set_promis
LBB0_6:
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_17
## %bb.7:
	movl	4(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_17
## %bb.8:
	movq	_MAX_MCAST_LST@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_9
## %bb.16:
	movl	%ecx, (%r14)
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ks_set_mcast                   ## TAILCALL
LBB0_17:
	movl	$0, (%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ks_clear_mcast                 ## TAILCALL
LBB0_9:
	movq	8(%rbx), %rbx
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.10:
	movq	_MAC_ADDR_LEN@GOTPCREL(%rip), %r13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	testb	$1, (%rsi)
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	(%r15), %r12d
	jge	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r14), %rax
	movslq	%r12d, %rcx
	incl	%r12d
	movl	(%rax,%rcx,4), %edi
	movl	(%r13), %edx
	callq	_memcpy
	jmp	LBB0_14
LBB0_15:
	movl	%r12d, (%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ks_set_grpaddr                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_MAX_MCAST_LST,4,2              ## @MAX_MCAST_LST
	.comm	_MAC_ADDR_LEN,4,2               ## @MAC_ADDR_LEN
	.no_dead_strip	_ks_set_rx_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks_set_rx_mode
_ks_set_rx_mode:                        ; @ks_set_rx_mode
	.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, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	x0, x19
	bics	wzr, w9, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w1, #1
	bl	_ks_set_mcast
	b	LBB0_6
LBB0_4:
	mov	w1, #0
LBB0_5:
	bl	_ks_set_promis
LBB0_6:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _IFF_MULTICAST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IFF_MULTICAST@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_10
; %bb.8:
Lloh9:
	adrp	x21, _MAX_MCAST_LST@GOTPAGE
Lloh10:
	ldr	x21, [x21, _MAX_MCAST_LST@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.le	LBB0_11
; %bb.9:
	str	w9, [x19]
	mov	x0, x19
	mov	w1, #1
	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
	b	_ks_set_mcast
LBB0_10:
	str	wzr, [x19]
	mov	x0, x19
	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
	b	_ks_clear_mcast
LBB0_11:
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_17
; %bb.12:
	mov	w8, #0
Lloh11:
	adrp	x22, _MAC_ADDR_LEN@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MAC_ADDR_LEN@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x9, [x19, #8]
	add	w23, w8, #1
	ldr	w0, [x9, w8, sxtw #2]
	ldr	w2, [x22]
	bl	_memcpy
	mov	x8, x23
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_18
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20]
	ldrb	w9, [x1]
	tbz	w9, #0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w9, [x21]
	cmp	w8, w9
	b.lt	LBB0_13
	b	LBB0_18
LBB0_17:
	mov	w8, #0
LBB0_18:
	str	w8, [x19]
	mov	x0, x19
	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
	b	_ks_set_grpaddr
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_MAX_MCAST_LST,4,2              ; @MAX_MCAST_LST
	.comm	_MAC_ADDR_LEN,4,2               ; @MAC_ADDR_LEN
	.no_dead_strip	_ks_set_rx_mode
.subsections_via_symbols
