	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ip_tunnel_create
___ip_tunnel_create:                    ## @__ip_tunnel_create
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IFNAMSIZ@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	(%r14), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_strlcpy
	jmp	LBB0_5
LBB0_2:
	movq	8(%r15), %rdi
	callq	_strlen
	movl	(%r12), %edx
	leal	-3(%rdx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_4
## %bb.3:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_4:
	movq	8(%r15), %rsi
	movq	%r13, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strlcpy
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_strncat
LBB0_5:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movl	(%r15), %edx
	movl	4(%r15), %edi
	movq	%r13, %rsi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_dev_net_set
	movq	%r13, %rdi
	movl	$37, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_dev_alloc_name
	testl	%eax, %eax
	js	LBB0_9
LBB0_10:
	movq	%r15, (%rbx)
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	(%r14), %rcx
	movq	%rcx, (%rax)
	movq	%rbx, %rdi
	callq	_register_netdevice
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_free_netdev
	jmp	LBB0_12
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_9:
	movl	%eax, %r12d
LBB0_12:
	movl	%r12d, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_E2BIG,4,2                      ## @E2BIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	___ip_tunnel_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ip_tunnel_create
___ip_tunnel_create:                    ; @__ip_tunnel_create
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _IFNAMSIZ@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IFNAMSIZ@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	x1, [x19]
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_strlcpy
	b	LBB0_5
LBB0_2:
	ldr	x0, [x20, #8]
	bl	_strlen
	ldr	w2, [x23]
	sub	w8, w2, #3
	cmp	w0, w8
	b.le	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _E2BIG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	ldr	x1, [x20, #8]
	mov	x0, x21
	bl	_strlcpy
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #2
	bl	_strncat
LBB0_5:
	bl	_ASSERT_RTNL
	ldp	w2, w0, [x20]
	mov	x1, x21
	bl	_alloc_netdev
	cbz	x0, LBB0_10
; %bb.6:
	mov	x23, x0
	mov	x1, x22
	bl	_dev_net_set
	mov	x0, x21
	mov	w1, #37
	bl	_strchr
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x23
	mov	x1, x21
	bl	_dev_alloc_name
	tbnz	w0, #31, LBB0_15
LBB0_8:
	str	x20, [x23]
	mov	x0, x23
	bl	_netdev_priv
	ldr	x8, [x19]
	str	x8, [x0]
	mov	x0, x23
	bl	_register_netdevice
	cbz	w0, LBB0_13
; %bb.9:
	mov	x21, x0
	mov	x0, x23
	bl	_free_netdev
	b	LBB0_12
LBB0_10:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	mov	x0, x21
	bl	_ERR_PTR
	mov	x23, x0
LBB0_13:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.14:
	mov	x0, x23
	sub	sp, x29, #48
	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_15:
	mov	x21, x0
	b	LBB0_12
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_E2BIG,4,2                      ; @E2BIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	___ip_tunnel_create
.subsections_via_symbols
