	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip6_tnl_ioctl
_ip6_tnl_ioctl:                         ## @ip6_tnl_ioctl
	.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
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_dev_net
	movq	%rax, %r13
	movq	_ip6_tnl_net_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_net_generic
	leal	-130(%rbx), %ecx
	cmpl	$2, %ecx
	jb	LBB0_10
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_28
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_35
## %bb.3:
	cmpq	%r12, (%rax)
	je	LBB0_4
LBB0_7:
	movq	%r12, %rdi
	callq	_netdev_priv
LBB0_8:
	addq	$8, %rax
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r14), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_copy_to_user
	testl	%eax, %eax
	jne	LBB0_5
## %bb.9:
	xorl	%r14d, %r14d
	jmp	LBB0_38
LBB0_10:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_38
## %bb.11:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	movl	$4, %edx
	callq	_copy_from_user
	movl	%r15d, %r14d
	testl	%eax, %eax
	jne	LBB0_38
## %bb.12:
	movl	-48(%rbp), %eax
	movq	_IPPROTO_IPV6@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
LBB0_15:
	xorl	%edx, %edx
	cmpl	$131, %ebx
	sete	%dl
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ip6_tnl_locate
	movq	%rax, %r14
	cmpl	$130, %ebx
	jne	LBB0_22
## %bb.16:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpq	%r12, (%r15)
	je	LBB0_22
## %bb.17:
	testq	%r14, %r14
	je	LBB0_20
## %bb.18:
	cmpq	%r12, (%r14)
	je	LBB0_21
## %bb.19:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_36
LBB0_28:
	movq	%rax, %r15
	movq	%r14, %rbx
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_38
## %bb.29:
	movq	%r15, %rax
	cmpq	%r12, (%r15)
	je	LBB0_30
LBB0_34:
	movq	%r12, %rdi
	callq	_unregister_netdevice
	xorl	%r14d, %r14d
	jmp	LBB0_38
LBB0_4:
	movl	(%r14), %esi
	leaq	-48(%rbp), %rdi
	movl	$4, %edx
	callq	_copy_from_user
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_36
LBB0_13:
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	_IPPROTO_IPIP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_15
LBB0_35:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_36:
	xorl	%r14d, %r14d
LBB0_37:
	subl	(%rax), %r14d
LBB0_38:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdi
	movl	$4, %edx
	callq	_copy_from_user
	testl	%eax, %eax
	jne	LBB0_38
## %bb.31:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_ip6_tnl_locate
	movl	%r12d, %r14d
	testq	%rax, %rax
	je	LBB0_38
## %bb.32:
	movq	(%rax), %r12
	cmpq	(%r15), %r12
	jne	LBB0_34
## %bb.33:
	xorl	%r14d, %r14d
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_6:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_ip6_tnl_locate
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_7
LBB0_20:
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, %r14
LBB0_21:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ip6_tnl_unlink
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ip6_tnl_change
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ip6_tnl_link
	movq	%r12, %rdi
	callq	_netdev_state_change
LBB0_22:
	testq	%r14, %r14
	movq	_EFAULT@GOTPCREL(%rip), %r15
	je	LBB0_25
## %bb.23:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	addq	$8, %r14
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_copy_to_user
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_38
## %bb.24:
	subl	(%r15), %r14d
	jmp	LBB0_38
LBB0_25:
	cmpl	$131, %ebx
	jne	LBB0_26
## %bb.27:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	jmp	LBB0_36
LBB0_26:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_ip6_tnl_net_id,4,2             ## @ip6_tnl_net_id
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPPROTO_IPV6,4,2               ## @IPPROTO_IPV6
	.comm	_IPPROTO_IPIP,4,2               ## @IPPROTO_IPIP
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_ip6_tnl_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip6_tnl_ioctl
_ip6_tnl_ioctl:                         ; @ip6_tnl_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_dev_net
	mov	x23, x0
Lloh0:
	adrp	x8, _ip6_tnl_net_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ip6_tnl_net_id@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_net_generic
	mov	x21, x0
	sub	w8, w22, #130
	cmp	w8, #2
	b.lo	LBB0_6
; %bb.1:
	cmp	w22, #129
	b.eq	LBB0_9
; %bb.2:
	cmp	w22, #128
	b.ne	LBB0_25
; %bb.3:
	ldr	x8, [x21]
	cmp	x8, x20
	b.eq	LBB0_19
LBB0_4:
	mov	x0, x20
	bl	_netdev_priv
LBB0_5:
	add	x1, x0, #8
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #4
	bl	_copy_to_user
	cbnz	w0, LBB0_20
	b	LBB0_28
LBB0_6:
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_12
; %bb.7:
Lloh9:
	adrp	x24, _EFAULT@GOTPAGE
Lloh10:
	ldr	x24, [x24, _EFAULT@GOTPAGEOFF]
	ldr	w25, [x24]
	ldr	w1, [x19]
	add	x0, sp, #8
	mov	w2, #4
	bl	_copy_from_user
	cbz	w0, LBB0_13
; %bb.8:
	neg	w0, w25
	b	LBB0_28
LBB0_9:
Lloh11:
	adrp	x22, _EPERM@GOTPAGE
Lloh12:
	ldr	x22, [x22, _EPERM@GOTPAGEOFF]
	ldr	w24, [x22]
Lloh13:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_12
; %bb.10:
	ldr	x8, [x21]
	cmp	x8, x20
	b.eq	LBB0_21
LBB0_11:
	mov	x0, x20
	bl	_unregister_netdevice
	mov	w0, #0
	b	LBB0_28
LBB0_12:
	neg	w0, w24
	b	LBB0_28
LBB0_13:
	ldr	w8, [sp, #8]
Lloh16:
	adrp	x9, _IPPROTO_IPV6@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IPPROTO_IPV6@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_23
LBB0_14:
	cmp	w22, #131
	cset	w2, eq
	add	x1, sp, #8
	mov	x0, x23
	bl	_ip6_tnl_locate
	mov	x23, x0
	cmp	w22, #130
	b.ne	LBB0_35
; %bb.15:
	ldr	x8, [x21]
	cmp	x8, x20
	b.eq	LBB0_35
; %bb.16:
	cbz	x23, LBB0_33
; %bb.17:
	ldr	x8, [x23]
	cmp	x8, x20
	b.eq	LBB0_34
; %bb.18:
Lloh19:
	adrp	x8, _EEXIST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_26
LBB0_19:
	ldr	w1, [x19]
	add	x0, sp, #8
	mov	w2, #4
	bl	_copy_from_user
	cbz	w0, LBB0_29
LBB0_20:
Lloh21:
	adrp	x8, _EFAULT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_26
LBB0_21:
Lloh23:
	adrp	x8, _EFAULT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
	ldr	w1, [x19]
	add	x0, sp, #8
	mov	w2, #4
	bl	_copy_from_user
	cbz	w0, LBB0_30
; %bb.22:
	neg	w0, w20
	b	LBB0_28
LBB0_23:
	cbz	w8, LBB0_14
; %bb.24:
Lloh26:
	adrp	x9, _IPPROTO_IPIP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IPPROTO_IPIP@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_14
LBB0_25:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_26:
	ldr	w8, [x8]
LBB0_27:
	neg	w0, w8
LBB0_28:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_29:
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #0
	bl	_ip6_tnl_locate
	cbnz	x0, LBB0_5
	b	LBB0_4
LBB0_30:
Lloh31:
	adrp	x8, _ENOENT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh33:
	ldr	w19, [x8]
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #0
	bl	_ip6_tnl_locate
	cbz	x0, LBB0_39
; %bb.31:
	ldr	x20, [x0]
	ldr	x8, [x21]
	cmp	x20, x8
	b.ne	LBB0_11
; %bb.32:
	ldr	w8, [x22]
	b	LBB0_27
LBB0_33:
	mov	x0, x20
	bl	_netdev_priv
	mov	x23, x0
LBB0_34:
	mov	x0, x21
	mov	x1, x23
	bl	_ip6_tnl_unlink
	add	x1, sp, #8
	mov	x0, x23
	bl	_ip6_tnl_change
	mov	x0, x21
	mov	x1, x23
	bl	_ip6_tnl_link
	mov	x0, x20
	bl	_netdev_state_change
LBB0_35:
	cbz	x23, LBB0_38
; %bb.36:
	ldr	w0, [x19]
	add	x1, x23, #8
	mov	w2, #4
	bl	_copy_to_user
	cbz	w0, LBB0_28
; %bb.37:
	ldr	w8, [x24]
	b	LBB0_27
LBB0_38:
Lloh34:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh36:
	adrp	x9, _ENOENT@GOTPAGE
Lloh37:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
	cmp	w22, #131
	csel	x8, x8, x9, eq
	b	LBB0_26
LBB0_39:
	neg	w0, w19
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ip6_tnl_net_id,4,2             ; @ip6_tnl_net_id
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPPROTO_IPV6,4,2               ; @IPPROTO_IPV6
	.comm	_IPPROTO_IPIP,4,2               ; @IPPROTO_IPIP
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_ip6_tnl_ioctl
.subsections_via_symbols
