	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vrf_newlink
_vrf_newlink:                           ## @vrf_newlink
	.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	%r8, %r15
	movq	%rcx, %rbx
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	movq	_IFLA_VRF_TABLE@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.4:
	callq	_nla_get_u32
	movq	%rax, (%r12)
	movq	_RT_TABLE_UNSPEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	(%r13), %rax
	movq	(%rbx,%rax,8), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_NL_SET_ERR_MSG_ATTR
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_NL_SET_ERR_MSG
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_IFF_L3MDEV_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_register_netdevice
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movq	%r14, %rdi
	callq	_dev_net
	movq	_vrf_net_id@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_net_generic
	xorl	%ebx, %ebx
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.8:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_vrf_add_fib_rules
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_unregister_netdevice
	movl	%r12d, %ebx
	jmp	LBB0_11
LBB0_10:
	movl	$0, (%r15)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_VRF_TABLE,8,3             ## @IFLA_VRF_TABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VRF table id is missing"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RT_TABLE_UNSPEC,8,3            ## @RT_TABLE_UNSPEC
L_.str.1:                               ## @.str.1
	.asciz	"Invalid VRF table id"

	.comm	_IFF_L3MDEV_MASTER,4,2          ## @IFF_L3MDEV_MASTER
	.comm	_vrf_net_id,4,2                 ## @vrf_net_id
	.no_dead_strip	_vrf_newlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vrf_newlink
_vrf_newlink:                           ; @vrf_newlink
	.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, x4
	mov	x21, x3
	mov	x19, x1
	mov	x0, x1
	bl	_netdev_priv
	cbz	x21, LBB0_4
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x23, _IFLA_VRF_TABLE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IFLA_VRF_TABLE@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_4
; %bb.2:
	bl	_nla_get_u32
	str	x0, [x22]
Lloh2:
	adrp	x8, _RT_TABLE_UNSPEC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RT_TABLE_UNSPEC@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x23]
	ldr	x1, [x21, x8, lsl #3]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_NL_SET_ERR_MSG_ATTR
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_NL_SET_ERR_MSG
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	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_7:
Lloh12:
	adrp	x8, _IFF_L3MDEV_MASTER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IFF_L3MDEV_MASTER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_register_netdevice
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.8:
	mov	x0, x19
	bl	_dev_net
Lloh15:
	adrp	x8, _vrf_net_id@GOTPAGE
Lloh16:
	ldr	x8, [x8, _vrf_net_id@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_net_generic
	ldr	w8, [x0]
	cbz	w8, LBB0_11
; %bb.9:
	mov	x21, x0
	mov	x0, x19
	bl	_vrf_add_fib_rules
	mov	x20, x0
	cbz	w0, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_unregister_netdevice
	b	LBB0_6
LBB0_11:
	mov	w20, #0
	b	LBB0_6
LBB0_12:
	str	wzr, [x21]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_VRF_TABLE,8,3             ; @IFLA_VRF_TABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VRF table id is missing"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RT_TABLE_UNSPEC,8,3            ; @RT_TABLE_UNSPEC
l_.str.1:                               ; @.str.1
	.asciz	"Invalid VRF table id"

	.comm	_IFF_L3MDEV_MASTER,4,2          ; @IFF_L3MDEV_MASTER
	.comm	_vrf_net_id,4,2                 ; @vrf_net_id
	.no_dead_strip	_vrf_newlink
.subsections_via_symbols
