	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_tunnel_ioctl                ## -- Begin function ip_tunnel_ioctl
	.p2align	4, 0x90
_ip_tunnel_ioctl:                       ## @ip_tunnel_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_dev_net
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_netdev_priv
	movl	12(%rax), %esi
	movq	%r15, %rdi
	callq	_net_generic
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_BUG_ON
	leal	-130(%r13), %eax
	cmpl	$2, %eax
	jb	LBB0_5
## %bb.1:
	cmpl	$129, %r13d
	je	LBB0_13
## %bb.2:
	cmpl	$128, %r13d
	jne	LBB0_32
## %bb.3:
	cmpq	%r12, (%rbx)
	je	LBB0_23
LBB0_4:
	movq	%r12, %rdi
	callq	_netdev_priv
	jmp	LBB0_24
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	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.6:
	movq	%rbx, %r14
	cmpl	$0, 16(%rbx)
	je	LBB0_8
## %bb.7:
	movq	_IP_DF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	orl	%eax, 12(%r14)
LBB0_8:
	movq	_TUNNEL_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_21
## %bb.9:
	testl	%eax, 4(%r14)
	je	LBB0_22
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movl	4(%rax), %edx
	movq	%r14, %rsi
	callq	_ip_tunnel_find
	cmpl	$131, %r13d
	jne	LBB0_16
## %bb.11:
	testq	%rax, %rax
	jne	LBB0_16
## %bb.12:
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_ip_tunnel_create
	jmp	LBB0_35
LBB0_13:
	movq	%r14, %r13
	movq	_EPERM@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	subl	(%r15), %r14d
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_38
## %bb.14:
	cmpq	%r12, (%rbx)
	je	LBB0_25
LBB0_15:
	movq	%r12, %rdi
	callq	_unregister_netdevice
	jmp	LBB0_37
LBB0_16:
	cmpl	$130, %r13d
	jne	LBB0_35
## %bb.17:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%r12, (%rcx)
	je	LBB0_35
## %bb.18:
	testq	%rax, %rax
	je	LBB0_28
## %bb.19:
	cmpq	%r12, (%rax)
	je	LBB0_36
## %bb.20:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_33
LBB0_21:
	movl	$0, 24(%r14)
	testl	%eax, 4(%r14)
	jne	LBB0_10
LBB0_22:
	movl	$0, 20(%r14)
	jmp	LBB0_10
LBB0_23:
	movl	4(%r12), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ip_tunnel_find
	testq	%rax, %rax
	je	LBB0_4
LBB0_24:
	addq	$8, %rax
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$28, %edx
	callq	_memcpy
	jmp	LBB0_37
LBB0_25:
	movq	%rbx, %rdi
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movl	4(%r12), %edx
	movq	%r13, %rsi
	callq	_ip_tunnel_find
	testq	%rax, %rax
	je	LBB0_38
## %bb.26:
	movq	%rax, %r12
	xorl	%r14d, %r14d
	subl	(%r15), %r14d
	movq	(%rbx), %rdi
	callq	_netdev_priv
	cmpq	%rax, %r12
	je	LBB0_38
## %bb.27:
	movq	(%r12), %r12
	jmp	LBB0_15
LBB0_28:
	movl	8(%r14), %edi
	callq	_ipv4_is_multicast
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:
	movq	_IFF_BROADCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IFF_POINTOPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ecx, %eax
	jmp	LBB0_31
LBB0_30:
	movl	8(%r14), %eax
	testl	%eax, %eax
	movq	_IFF_POINTOPOINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmovnel	%edx, %eax
	movq	_IFF_BROADCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_31:
	orl	%edx, %ecx
	xorl	(%r12), %eax
	testl	%eax, %ecx
	je	LBB0_34
LBB0_32:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_33:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_38
LBB0_34:
	movq	%r12, %rdi
	callq	_netdev_priv
LBB0_35:
	testq	%rax, %rax
	je	LBB0_39
LBB0_36:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	movl	$1, %r8d
	callq	_ip_tunnel_update
LBB0_37:
	xorl	%r14d, %r14d
LBB0_38:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	cmpl	$131, %r13d
	jne	LBB0_41
## %bb.40:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	jmp	LBB0_33
LBB0_41:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_IP_DF,4,2                      ## @IP_DF
	.comm	_TUNNEL_KEY,4,2                 ## @TUNNEL_KEY
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_IFF_BROADCAST,4,2              ## @IFF_BROADCAST
	.comm	_IFF_POINTOPOINT,4,2            ## @IFF_POINTOPOINT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_tunnel_ioctl                ; -- Begin function ip_tunnel_ioctl
	.p2align	2
_ip_tunnel_ioctl:                       ; @ip_tunnel_ioctl
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_dev_net
	mov	x23, x0
	mov	x0, x20
	bl	_netdev_priv
	ldr	w1, [x0, #12]
	mov	x0, x23
	bl	_net_generic
	mov	x21, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	sub	w8, w22, #130
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.1:
	cmp	w22, #129
	b.eq	LBB0_18
; %bb.2:
	cmp	w22, #128
	b.ne	LBB0_39
; %bb.3:
	ldr	x8, [x21]
	cmp	x8, x20
	b.eq	LBB0_27
LBB0_4:
	mov	x0, x20
	bl	_netdev_priv
	b	LBB0_28
LBB0_5:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_21
; %bb.6:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _IP_DF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IP_DF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htons
	ldr	w8, [x19, #12]
	orr	w8, w8, w0
	str	w8, [x19, #12]
LBB0_8:
	ldr	w9, [x19]
Lloh9:
	adrp	x8, _TUNNEL_KEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TUNNEL_KEY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_10
; %bb.9:
	str	wzr, [x19, #24]
LBB0_10:
	ldr	w9, [x19, #4]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.11:
	str	wzr, [x19, #20]
LBB0_12:
	ldr	x8, [x21]
	ldr	w2, [x8, #4]
	mov	x0, x21
	mov	x1, x19
	bl	_ip_tunnel_find
	mov	x1, x0
	cmp	w22, #131
	b.ne	LBB0_22
; %bb.13:
	cbnz	x1, LBB0_22
; %bb.14:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x19
	bl	_ip_tunnel_create
LBB0_15:
	mov	x1, x0
LBB0_16:
	cbz	x1, LBB0_29
LBB0_17:
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	mov	w4, #1
	bl	_ip_tunnel_update
	mov	w0, #0
	b	LBB0_41
LBB0_18:
Lloh12:
	adrp	x22, _EPERM@GOTPAGE
Lloh13:
	ldr	x22, [x22, _EPERM@GOTPAGEOFF]
	ldr	w23, [x22]
Lloh14:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_33
; %bb.19:
	ldr	x8, [x21]
	cmp	x8, x20
	b.eq	LBB0_30
LBB0_20:
	mov	x0, x20
	bl	_unregister_netdevice
	mov	w0, #0
	b	LBB0_41
LBB0_21:
	neg	w0, w24
	b	LBB0_41
LBB0_22:
	cmp	w22, #130
	b.ne	LBB0_16
; %bb.23:
	ldr	x8, [x21]
	cmp	x8, x20
	b.eq	LBB0_16
; %bb.24:
	cbz	x1, LBB0_34
; %bb.25:
	ldr	x8, [x1]
	cmp	x8, x20
	b.eq	LBB0_17
; %bb.26:
Lloh17:
	adrp	x8, _EEXIST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_40
LBB0_27:
	ldr	w2, [x20, #4]
	mov	x0, x21
	mov	x1, x19
	bl	_ip_tunnel_find
	cbz	x0, LBB0_4
LBB0_28:
	add	x1, x0, #8
	mov	x0, x19
	mov	w2, #28
	bl	_memcpy
	mov	w0, #0
	b	LBB0_41
LBB0_29:
Lloh19:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh21:
	adrp	x9, _ENOENT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
	cmp	w22, #131
	csel	x8, x8, x9, eq
	b	LBB0_40
LBB0_30:
Lloh23:
	adrp	x8, _ENOENT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh25:
	ldr	w23, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x21
	mov	x1, x19
	bl	_ip_tunnel_find
	cbz	x0, LBB0_33
; %bb.31:
	mov	x19, x0
	ldr	w20, [x22]
	ldr	x0, [x21]
	bl	_netdev_priv
	cmp	x19, x0
	b.eq	LBB0_36
; %bb.32:
	ldr	x20, [x19]
	b	LBB0_20
LBB0_33:
	neg	w0, w23
	b	LBB0_41
LBB0_34:
	ldr	w0, [x19, #8]
	bl	_ipv4_is_multicast
	cbz	w0, LBB0_37
; %bb.35:
Lloh26:
	adrp	x8, _IFF_BROADCAST@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IFF_BROADCAST@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x8]
Lloh29:
	adrp	x8, _IFF_POINTOPOINT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IFF_POINTOPOINT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	mov	x10, x9
	b	LBB0_38
LBB0_36:
	neg	w0, w20
	b	LBB0_41
LBB0_37:
	ldr	w9, [x19, #8]
Lloh32:
	adrp	x8, _IFF_POINTOPOINT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IFF_POINTOPOINT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w9, #0
	csel	w10, wzr, w8, eq
Lloh35:
	adrp	x9, _IFF_BROADCAST@GOTPAGE
Lloh36:
	ldr	x9, [x9, _IFF_BROADCAST@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
LBB0_38:
	ldr	w11, [x20]
	eor	w10, w11, w10
	orr	w8, w9, w8
	tst	w8, w10
	b.eq	LBB0_42
LBB0_39:
Lloh38:
	adrp	x8, _EINVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_40:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_41:
	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_42:
	mov	x0, x20
	bl	_netdev_priv
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_IP_DF,4,2                      ; @IP_DF
	.comm	_TUNNEL_KEY,4,2                 ; @TUNNEL_KEY
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_IFF_BROADCAST,4,2              ; @IFF_BROADCAST
	.comm	_IFF_POINTOPOINT,4,2            ; @IFF_POINTOPOINT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
