	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88172_set_multicast
_ax88172_set_multicast:                 ## @ax88172_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	%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, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%r12), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	movl	$141, %edx
	testl	%eax, (%rcx)
	jne	LBB0_9
## %bb.1:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	movl	$142, %edx
	testl	%eax, (%rcx)
	jne	LBB0_9
## %bb.2:
	movq	8(%r12), %rax
	movq	_AX_MAX_MCAST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_9
## %bb.3:
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	16(%r12), %r13
	movq	(%r14), %rdi
	movq	_AX_MCAST_FILTER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	cmpq	$0, 8(%r12)
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	movq	_ETH_ALEN@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	8(%r13), %esi
	callq	_ether_crc
	movl	%eax, %ecx
	shrl	$26, %ecx
	andb	$7, %cl
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	(%r14), %r9
	sarl	$29, %eax
	cltq
	orl	%edx, (%r9,%rax,4)
	movq	(%r13), %r13
	incq	%rbx
	cmpq	%rbx, 8(%r12)
	jg	LBB0_7
	jmp	LBB0_8
LBB0_4:
	movl	$140, %edx
	jmp	LBB0_9
LBB0_10:
	movq	(%r14), %r9
LBB0_8:
	movq	_AX_CMD_WRITE_MULTI_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AX_MCAST_FILTER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_asix_write_cmd_async
	movl	$156, %edx
LBB0_9:
	movq	_AX_CMD_WRITE_RX_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_asix_write_cmd_async           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_AX_MAX_MCAST,8,3               ## @AX_MAX_MCAST
	.comm	_AX_MCAST_FILTER_SIZE,4,2       ## @AX_MCAST_FILTER_SIZE
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_AX_CMD_WRITE_MULTI_FILTER,4,2  ## @AX_CMD_WRITE_MULTI_FILTER
	.comm	_AX_CMD_WRITE_RX_CTL,4,2        ## @AX_CMD_WRITE_RX_CTL
	.no_dead_strip	_ax88172_set_multicast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88172_set_multicast
_ax88172_set_multicast:                 ; @ax88172_set_multicast
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	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]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w2, #141
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _AX_MAX_MCAST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AX_MAX_MCAST@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
LBB0_4:
	mov	w2, #142
LBB0_5:
Lloh9:
	adrp	x8, _AX_CMD_WRITE_RX_CTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AX_CMD_WRITE_RX_CTL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_asix_write_cmd_async
LBB0_6:
	cbz	x8, LBB0_10
; %bb.7:
	ldr	x22, [x20, #16]
	ldr	x0, [x19]
Lloh12:
	adrp	x21, _AX_MCAST_FILTER_SIZE@GOTPAGE
Lloh13:
	ldr	x21, [x21, _AX_MCAST_FILTER_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x23, #0
Lloh14:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh15:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	mov	w25, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	w1, [x22, #8]
	bl	_ether_crc
	ubfx	w8, w0, #26, #3
	lsl	w8, w25, w8
	ldr	x5, [x19]
	asr	w9, w0, #29
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x5, x9]
	orr	w8, w8, w10
	str	w8, [x5, x9]
	ldr	x22, [x22]
	add	x23, x23, #1
	ldr	x8, [x20, #8]
	cmp	x8, x23
	b.gt	LBB0_9
	b	LBB0_12
LBB0_10:
	mov	w2, #140
	b	LBB0_5
LBB0_11:
	ldr	x5, [x19]
LBB0_12:
Lloh16:
	adrp	x8, _AX_CMD_WRITE_MULTI_FILTER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AX_CMD_WRITE_MULTI_FILTER@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w4, [x21]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_asix_write_cmd_async
	mov	w2, #156
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_AX_MAX_MCAST,8,3               ; @AX_MAX_MCAST
	.comm	_AX_MCAST_FILTER_SIZE,4,2       ; @AX_MCAST_FILTER_SIZE
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_AX_CMD_WRITE_MULTI_FILTER,4,2  ; @AX_CMD_WRITE_MULTI_FILTER
	.comm	_AX_CMD_WRITE_RX_CTL,4,2        ; @AX_CMD_WRITE_RX_CTL
	.no_dead_strip	_ax88172_set_multicast
.subsections_via_symbols
