	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bond_mc_swap
_bond_mc_swap:                          ## @bond_mc_swap
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_USES_PRIMARY
	testl	%eax, %eax
	je	LBB0_17
## %bb.1:
	testq	%r12, %r12
	je	LBB0_9
## %bb.2:
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edi
	movl	$-1, %esi
	callq	_dev_set_promiscuity
	movq	(%r14), %rax
	movl	(%rax), %ecx
LBB0_4:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.5:
	movl	(%r12), %edi
	movl	$-1, %esi
	callq	_dev_set_allmulti
	movq	(%r14), %rax
LBB0_6:
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	xorl	%ecx, %ecx
	callq	_dev_mc_delete
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
LBB0_9:
	testq	%r15, %r15
	je	LBB0_17
## %bb.10:
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_12
## %bb.11:
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_dev_set_promiscuity
	movq	(%r14), %rax
	movl	(%rax), %ecx
LBB0_12:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_14
## %bb.13:
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_dev_set_allmulti
	movq	(%r14), %rax
LBB0_14:
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	xorl	%ecx, %ecx
	callq	_dev_mc_add
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_15
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.no_dead_strip	_bond_mc_swap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bond_mc_swap
_bond_mc_swap:                          ; @bond_mc_swap
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_USES_PRIMARY
	cbz	w0, LBB0_15
; %bb.1:
Lloh0:
	adrp	x23, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IFF_PROMISC@GOTPAGEOFF]
Lloh2:
	adrp	x22, _IFF_ALLMULTI@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IFF_ALLMULTI@GOTPAGEOFF]
	cbz	x21, LBB0_8
; %bb.2:
	ldr	x8, [x20]
	ldr	w9, [x8]
	ldr	w10, [x23]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_dev_set_promiscuity
	ldr	x8, [x20]
	ldr	w9, [x8]
LBB0_4:
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_dev_set_allmulti
	ldr	x8, [x20]
LBB0_6:
	ldr	x24, [x8, #8]
	cbz	x24, LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldp	w2, w1, [x24]
	mov	w3, #0
	bl	_dev_mc_delete
	ldr	x24, [x24, #8]
	cbnz	x24, LBB0_7
LBB0_8:
	cbz	x19, LBB0_15
; %bb.9:
	ldr	x8, [x20]
	ldr	w9, [x8]
	ldr	w10, [x23]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_dev_set_promiscuity
	ldr	x8, [x20]
	ldr	w9, [x8]
LBB0_11:
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.12:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_dev_set_allmulti
	ldr	x8, [x20]
LBB0_13:
	ldr	x20, [x8, #8]
	cbz	x20, LBB0_15
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldp	w2, w1, [x20]
	mov	w3, #0
	bl	_dev_mc_add
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_14
LBB0_15:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.no_dead_strip	_bond_mc_swap
.subsections_via_symbols
