	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_tunnel_newlink              ## -- Begin function ip_tunnel_newlink
	.p2align	4, 0x90
_ip_tunnel_newlink:                     ## @ip_tunnel_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	%rdx, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	callq	_dev_net
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_net_generic
	movq	%rax, %r12
	movq	(%r14), %rdx
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_ip_tunnel_find
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_2:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%r13), %eax
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_register_netdevice
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	(%r14), %rax
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_IFLA_ADDRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rbx,%rax,8)
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_eth_hw_addr_random
LBB0_6:
	movq	%r14, %rdi
	callq	_ip_tunnel_bind_dev
	movq	_IFLA_MTU@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rbx,%rcx,8)
	jne	LBB0_8
## %bb.7:
	movl	%eax, 8(%r14)
LBB0_8:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ip_tunnel_add
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_ARPHRD_ETHER,8,3               ## @ARPHRD_ETHER
	.comm	_IFLA_ADDRESS,8,3               ## @IFLA_ADDRESS
	.comm	_IFLA_MTU,8,3                   ## @IFLA_MTU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_tunnel_newlink              ; -- Begin function ip_tunnel_newlink
	.p2align	2
_ip_tunnel_newlink:                     ; @ip_tunnel_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	x23, x2
	mov	x20, x1
	mov	x19, x0
	bl	_dev_net
	mov	x22, x0
	mov	x0, x19
	bl	_netdev_priv
	mov	x21, x0
	ldr	w1, [x0, #4]
	mov	x0, x22
	bl	_net_generic
	mov	x22, x0
	ldr	x2, [x19]
	mov	x1, x23
	bl	_ip_tunnel_find
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	ldr	w8, [x23]
	str	w8, [x21]
	mov	x0, x19
	bl	_register_netdevice
	cbnz	w0, LBB0_9
; %bb.3:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ARPHRD_ETHER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARPHRD_ETHER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _IFLA_ADDRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFLA_ADDRESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x20, x8, lsl #3]
	cbnz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_eth_hw_addr_random
LBB0_6:
	mov	x0, x19
	bl	_ip_tunnel_bind_dev
Lloh9:
	adrp	x8, _IFLA_MTU@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IFLA_MTU@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x8, [x20, x8, lsl #3]
	cbnz	x8, LBB0_8
; %bb.7:
	str	w0, [x19, #8]
LBB0_8:
	mov	x0, x22
	mov	x1, x21
	bl	_ip_tunnel_add
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_ARPHRD_ETHER,8,3               ; @ARPHRD_ETHER
	.comm	_IFLA_ADDRESS,8,3               ; @IFLA_ADDRESS
	.comm	_IFLA_MTU,8,3                   ; @IFLA_MTU
.subsections_via_symbols
