	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmac_set_multicast
_bmac_set_multicast:                    ## @bmac_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	(%rdi), %eax
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	cmpl	$65, 4(%r15)
	jl	LBB0_5
LBB0_2:
	movq	_BHASH0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_bmwrite
	movq	_BHASH1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_bmwrite
	movq	_BHASH2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_bmwrite
	movq	_BHASH3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_17
## %bb.3:
	movq	%r15, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bmwrite                        ## TAILCALL
LBB0_5:
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.6:
	movq	_RXCFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_bmread
	movq	_RxPromiscEnable@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	movl	(%rbx), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_17
## %bb.7:
	movzwl	%ax, %edx
	movq	%r15, %rdi
	jmp	LBB0_4
LBB0_8:
	movq	8(%r15), %r14
	movq	_RXCFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_bmread
                                        ## kill: def $ax killed $ax def $eax
	movq	_RxPromiscEnable@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%rbx), %esi
	movzwl	%cx, %edx
	movq	%r15, %rdi
	callq	_bmwrite
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	jge	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	movq	8(%r14), %r14
	testb	$1, (%rsi)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$6, %edi
	callq	_ether_crc_le
	movl	%eax, %ecx
	shrl	$26, %ecx
	andb	$15, %cl
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	sarl	$30, %eax
	cltq
	orl	%edx, -48(%rbp,%rax,4)
	movl	4(%r15), %eax
	jmp	LBB0_13
LBB0_14:
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %r14d
	jmp	LBB0_15
LBB0_9:
	xorl	%r14d, %r14d
	xorl	%edx, %edx
LBB0_15:
	movq	_BHASH0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_bmwrite
	movq	_BHASH1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_bmwrite
	movq	_BHASH2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_bmwrite
	movq	_BHASH3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_BHASH0,4,2                     ## @BHASH0
	.comm	_BHASH1,4,2                     ## @BHASH1
	.comm	_BHASH2,4,2                     ## @BHASH2
	.comm	_BHASH3,4,2                     ## @BHASH3
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_RXCFG,4,2                      ## @RXCFG
	.comm	_RxPromiscEnable,2,1            ## @RxPromiscEnable
	.no_dead_strip	_bmac_set_multicast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmac_set_multicast
_bmac_set_multicast:                    ; @bmac_set_multicast
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x19, #4]
	cmp	w9, #65
	b.lt	LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _BHASH0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BHASH0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_bmwrite
Lloh9:
	adrp	x8, _BHASH1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BHASH1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_bmwrite
Lloh12:
	adrp	x8, _BHASH2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BHASH2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_bmwrite
Lloh15:
	adrp	x8, _BHASH3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BHASH3@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.3:
	mov	x0, x19
	mov	w2, #65535
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_bmwrite
LBB0_5:
Lloh21:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
Lloh24:
	adrp	x20, _RXCFG@GOTPAGE
Lloh25:
	ldr	x20, [x20, _RXCFG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_bmread
Lloh26:
	adrp	x8, _RxPromiscEnable@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RxPromiscEnable@GOTPAGEOFF]
	ldrh	w8, [x8]
	ldr	w1, [x20]
	ldr	x9, [sp, #24]
Lloh28:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_17
; %bb.7:
	orr	w2, w8, w0
	mov	x0, x19
	b	LBB0_4
LBB0_8:
	ldr	x20, [x19, #8]
Lloh31:
	adrp	x21, _RXCFG@GOTPAGE
Lloh32:
	ldr	x21, [x21, _RXCFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bmread
Lloh33:
	adrp	x8, _RxPromiscEnable@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RxPromiscEnable@GOTPAGEOFF]
	ldrh	w8, [x8]
	eor	w8, w8, #0xffff
	and	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bmwrite
	stp	xzr, xzr, [sp, #8]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.9:
	mov	w21, #0
	mov	w22, #1
	add	x23, sp, #8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w21, w21, #1
	cmp	w21, w8
	b.ge	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	x1, x20, [x20]
	ldrb	w9, [x1]
	tbz	w9, #0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #6
	bl	_ether_crc_le
	ubfx	w8, w0, #26, #4
	lsl	w8, w22, w8
	asr	w9, w0, #30
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x23, x9]
	orr	w8, w8, w10
	str	w8, [x23, x9]
	ldr	w8, [x19, #4]
	b	LBB0_10
LBB0_13:
	ldp	w2, w20, [sp, #8]
	b	LBB0_15
LBB0_14:
	mov	w20, #0
	mov	w2, #0
LBB0_15:
Lloh35:
	adrp	x8, _BHASH0@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BHASH0@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bmwrite
Lloh38:
	adrp	x8, _BHASH1@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BHASH1@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_bmwrite
Lloh41:
	adrp	x8, _BHASH2@GOTPAGE
Lloh42:
	ldr	x8, [x8, _BHASH2@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_bmwrite
Lloh44:
	adrp	x8, _BHASH3@GOTPAGE
Lloh45:
	ldr	x8, [x8, _BHASH3@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	ldr	x8, [sp, #24]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	mov	w2, #0
	b	LBB0_4
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_BHASH0,4,2                     ; @BHASH0
	.comm	_BHASH1,4,2                     ; @BHASH1
	.comm	_BHASH2,4,2                     ; @BHASH2
	.comm	_BHASH3,4,2                     ; @BHASH3
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_RXCFG,4,2                      ; @RXCFG
	.comm	_RxPromiscEnable,2,1            ; @RxPromiscEnable
	.no_dead_strip	_bmac_set_multicast
.subsections_via_symbols
