	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macvlan_open
_macvlan_open:                          ## @macvlan_open
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	(%rax), %rdi
	movq	8(%rax), %r15
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_dev_set_promiscuity
LBB0_7:
	movq	%r12, %rdi
	callq	_macvlan_hash_add
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	4(%r14), %esi
	callq	_macvlan_addr_busy
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_dev_unicast_add
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_dev_set_allmulti
	testl	%eax, %eax
	jns	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_dev_unicast_delete
	jmp	LBB0_9
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.no_dead_strip	_macvlan_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macvlan_open
_macvlan_open:                          ; @macvlan_open
	.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
	ldp	x0, x21, [x0]
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x21
	mov	w1, #1
	bl	_dev_set_promiscuity
LBB0_2:
	mov	x0, x19
	bl	_macvlan_hash_add
	mov	w22, #0
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w1, [x20, #4]
	bl	_macvlan_addr_busy
	cbz	x0, LBB0_6
; %bb.4:
	neg	w22, w22
LBB0_5:
	mov	x0, x22
	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
	ret
LBB0_6:
	ldr	w1, [x20, #4]
	mov	x0, x21
	bl	_dev_unicast_add
	tbnz	w0, #31, LBB0_10
; %bb.7:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.8:
	mov	x0, x21
	mov	w1, #1
	bl	_dev_set_allmulti
	tbz	w0, #31, LBB0_2
; %bb.9:
	mov	x22, x0
	ldr	w1, [x20, #4]
	mov	x0, x21
	bl	_dev_unicast_delete
	b	LBB0_5
LBB0_10:
	mov	x22, x0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.no_dead_strip	_macvlan_open
.subsections_via_symbols
