	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8695_set_multicast
_ks8695_set_multicast:                  ## @ks8695_set_multicast
	.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	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_KS8695_DRXC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_ks8695_readreg
	movl	%eax, %ebx
	movl	(%r15), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movq	_DRXC_RA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %ebx
	jmp	LBB0_4
LBB0_2:
	notl	%ecx
	testl	%ecx, %eax
	je	LBB0_4
## %bb.3:
	movq	_DRXC_RA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %ebx
LBB0_4:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_DRXC_RM@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	movl	4(%r15), %edx
	movq	_KS8695_NR_ADDRESSES@GOTPCREL(%rip), %rcx
	movq	_DRXC_RM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	(%rcx), %edx
	jle	LBB0_8
## %bb.7:
	orl	%eax, %ebx
	jmp	LBB0_9
LBB0_8:
	notl	%eax
	andl	%eax, %ebx
	movl	8(%r15), %esi
	movq	%r14, %rdi
	callq	_ks8695_init_partial_multicast
LBB0_9:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ks8695_writereg                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KS8695_DRXC,4,2                ## @KS8695_DRXC
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_DRXC_RA,4,2                    ## @DRXC_RA
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_DRXC_RM,4,2                    ## @DRXC_RM
	.comm	_KS8695_NR_ADDRESSES,4,2        ## @KS8695_NR_ADDRESSES
	.no_dead_strip	_ks8695_set_multicast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8695_set_multicast
_ks8695_set_multicast:                  ; @ks8695_set_multicast
	.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, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x22, _KS8695_DRXC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _KS8695_DRXC@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ks8695_readreg
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _DRXC_RA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRXC_RA@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w0, w9, w0
	b	LBB0_4
LBB0_2:
	bics	wzr, w8, w9
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x9, _DRXC_RA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DRXC_RA@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	bic	w0, w0, w9
LBB0_4:
Lloh11:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _DRXC_RM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRXC_RM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w21, w8, w0
	b	LBB0_9
LBB0_6:
Lloh17:
	adrp	x8, _KS8695_NR_ADDRESSES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KS8695_NR_ADDRESSES@GOTPAGEOFF]
	ldr	w2, [x20, #4]
Lloh19:
	ldr	w9, [x8]
Lloh20:
	adrp	x8, _DRXC_RM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DRXC_RM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w2, w9
	b.le	LBB0_8
; %bb.7:
	orr	w21, w8, w0
	b	LBB0_9
LBB0_8:
	bic	w21, w0, w8
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_ks8695_init_partial_multicast
LBB0_9:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	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	_ks8695_writereg
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_KS8695_DRXC,4,2                ; @KS8695_DRXC
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_DRXC_RA,4,2                    ; @DRXC_RA
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_DRXC_RM,4,2                    ; @DRXC_RM
	.comm	_KS8695_NR_ADDRESSES,4,2        ; @KS8695_NR_ADDRESSES
	.no_dead_strip	_ks8695_set_multicast
.subsections_via_symbols
