	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bond_hw_addr_swap
_bond_hw_addr_swap:                     ## @bond_hw_addr_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.1:
	movq	%rdx, %rbx
	movq	(%r15), %rdi
	movl	(%rdi), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	movl	$-1, %esi
	callq	_dev_set_promiscuity
	movq	(%r15), %rdi
	movl	(%rdi), %eax
LBB0_3:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	movl	$-1, %esi
	callq	_dev_set_allmulti
	movq	(%r15), %rdi
LBB0_5:
	movl	(%rbx), %esi
	callq	_bond_hw_addr_flush
LBB0_6:
	testq	%r14, %r14
	je	LBB0_12
## %bb.7:
	movq	(%r15), %rdi
	movl	(%rdi), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_dev_set_promiscuity
	movq	(%r15), %rdi
	movl	(%rdi), %eax
LBB0_9:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_dev_set_allmulti
	movq	(%r15), %rdi
LBB0_11:
	callq	_netif_addr_lock_bh
	movl	(%r14), %edi
	movq	(%r15), %rsi
	callq	_dev_uc_sync
	movl	(%r14), %edi
	movq	(%r15), %rsi
	callq	_dev_mc_sync
	movq	(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_addr_unlock_bh           ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	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_hw_addr_swap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bond_hw_addr_swap
_bond_hw_addr_swap:                     ; @bond_hw_addr_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	x20, x1
	mov	x19, x0
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	x2, LBB0_6
; %bb.1:
	mov	x21, x2
	ldr	x0, [x19]
	ldr	w8, [x0]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_dev_set_promiscuity
	ldr	x0, [x19]
	ldr	w8, [x0]
LBB0_3:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_dev_set_allmulti
	ldr	x0, [x19]
LBB0_5:
	ldr	w1, [x21]
	bl	_bond_hw_addr_flush
LBB0_6:
	cbz	x20, LBB0_12
; %bb.7:
	ldr	x0, [x19]
	ldr	w8, [x0]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x20]
	mov	w1, #1
	bl	_dev_set_promiscuity
	ldr	x0, [x19]
	ldr	w8, [x0]
LBB0_9:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	w0, [x20]
	mov	w1, #1
	bl	_dev_set_allmulti
	ldr	x0, [x19]
LBB0_11:
	bl	_netif_addr_lock_bh
	ldr	w0, [x20]
	ldr	x1, [x19]
	bl	_dev_uc_sync
	ldr	w0, [x20]
	ldr	x1, [x19]
	bl	_dev_mc_sync
	ldr	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	_netif_addr_unlock_bh
LBB0_12:
	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_hw_addr_swap
.subsections_via_symbols
