	.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	%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, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	24(%rax), %r14
	movl	16(%rax), %edi
	callq	_macvlan_passthru
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_MACVLAN_FLAG_NOPROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_dev_set_promiscuity
	testl	%eax, %eax
	js	LBB0_7
LBB0_3:
	movq	%r12, %rdi
	callq	_macvlan_hash_add
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_4:
	movq	_EADDRINUSE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	16(%r12), %edi
	movl	8(%r15), %esi
	callq	_macvlan_addr_busy
	testq	%rax, %rax
	jne	LBB0_23
## %bb.5:
	movq	_NETIF_F_HW_L2FW_DOFFLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_8
## %bb.6:
	movq	16(%r14), %rax
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*8(%rax)
	movq	%rax, %rdi
	movq	%rax, 8(%r12)
	jmp	LBB0_9
LBB0_8:
	movq	8(%r12), %rdi
LBB0_9:
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	$0, 8(%r12)
	movl	8(%r15), %esi
	movq	%r14, %rdi
	callq	_dev_uc_add
	testl	%eax, %eax
	js	LBB0_7
LBB0_11:
	movl	4(%r15), %eax
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_dev_set_allmulti
	testl	%eax, %eax
	js	LBB0_19
## %bb.13:
	movl	4(%r15), %eax
LBB0_14:
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.15:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_dev_set_promiscuity
	testl	%eax, %eax
	jns	LBB0_3
## %bb.16:
	movl	%eax, %ebx
	movl	(%r13), %eax
	testl	%eax, 4(%r15)
	je	LBB0_20
## %bb.17:
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_dev_set_allmulti
	jmp	LBB0_20
LBB0_7:
	movl	%eax, %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	%eax, %ebx
LBB0_20:
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.21:
	movq	16(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movq	$0, 8(%r12)
	jmp	LBB0_23
LBB0_22:
	movl	8(%r15), %esi
	movq	%r14, %rdi
	callq	_dev_uc_del
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_MACVLAN_FLAG_NOPROMISC,4,2     ## @MACVLAN_FLAG_NOPROMISC
	.comm	_EADDRINUSE,4,2                 ## @EADDRINUSE
	.comm	_NETIF_F_HW_L2FW_DOFFLOAD,4,2   ## @NETIF_F_HW_L2FW_DOFFLOAD
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.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	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, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	w0, [x0, #16]
	bl	_macvlan_passthru
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _MACVLAN_FLAG_NOPROMISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MACVLAN_FLAG_NOPROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #1
	bl	_dev_set_promiscuity
	tbnz	w0, #31, LBB0_17
LBB0_3:
	mov	x0, x19
	bl	_macvlan_hash_add
	mov	w22, #0
	b	LBB0_18
LBB0_4:
Lloh3:
	adrp	x8, _EADDRINUSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EADDRINUSE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldr	w0, [x19, #16]
	ldr	w1, [x21, #8]
	bl	_macvlan_addr_busy
	cbz	x0, LBB0_6
; %bb.5:
	neg	w22, w22
	b	LBB0_18
LBB0_6:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _NETIF_F_HW_L2FW_DOFFLOAD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NETIF_F_HW_L2FW_DOFFLOAD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	str	x0, [x19, #8]
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_9
	b	LBB0_10
LBB0_8:
	ldr	x0, [x19, #8]
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_10
LBB0_9:
	str	xzr, [x19, #8]
	ldr	w1, [x21, #8]
	mov	x0, x20
	bl	_dev_uc_add
	tbnz	w0, #31, LBB0_17
LBB0_10:
	ldr	w8, [x21, #4]
Lloh9:
	adrp	x23, _IFF_ALLMULTI@GOTPAGE
Lloh10:
	ldr	x23, [x23, _IFF_ALLMULTI@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
	mov	x0, x20
	mov	w1, #1
	bl	_dev_set_allmulti
	tbnz	w0, #31, LBB0_19
; %bb.12:
	ldr	w8, [x21, #4]
LBB0_13:
Lloh11:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.14:
	mov	x0, x20
	mov	w1, #1
	bl	_dev_set_promiscuity
	tbz	w0, #31, LBB0_3
; %bb.15:
	mov	x22, x0
	ldr	w8, [x21, #4]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.16:
	mov	x0, x20
	mov	w1, #-1
	bl	_dev_set_allmulti
	b	LBB0_20
LBB0_17:
	mov	x22, x0
LBB0_18:
	mov	x0, x22
	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
LBB0_19:
	mov	x22, x0
LBB0_20:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_22
; %bb.21:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	str	xzr, [x19, #8]
	b	LBB0_18
LBB0_22:
	ldr	w1, [x21, #8]
	mov	x0, x20
	bl	_dev_uc_del
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MACVLAN_FLAG_NOPROMISC,4,2     ; @MACVLAN_FLAG_NOPROMISC
	.comm	_EADDRINUSE,4,2                 ; @EADDRINUSE
	.comm	_NETIF_F_HW_L2FW_DOFFLOAD,4,2   ; @NETIF_F_HW_L2FW_DOFFLOAD
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.no_dead_strip	_macvlan_open
.subsections_via_symbols
