	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function me_ioctl
_me_ioctl:                              ## @me_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
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %rbx
	leal	-130(%r13), %eax
	cmpl	$8, %eax
	ja	LBB0_6
## %bb.1:
	xorl	%r12d, %r12d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	(%r15), %eax
	cmpl	$575, %eax                      ## imm = 0x23F
	jg	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_35
LBB0_5:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	jmp	LBB0_35
LBB0_6:
	movq	_me_ioctl_sx@GOTPCREL(%rip), %rdi
	callq	_sx_xlock
	movq	8(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_7
## %bb.8:
	leal	-128(%r13), %eax
	cmpl	$8, %eax
	ja	LBB0_32
## %bb.9:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_19:
	movq	%r14, %rdi
	callq	_ME_READY
	testl	%eax, %eax
	je	LBB0_16
## %bb.20:
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	$12, 8(%r15)
	cmpl	$135, %r13d
	je	LBB0_23
## %bb.21:
	cmpl	$134, %r13d
	jne	LBB0_25
## %bb.22:
	addq	$8, %r14
	jmp	LBB0_24
LBB0_4:
	movl	%eax, (%rbx)
	jmp	LBB0_35
LBB0_7:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_33
LBB0_29:
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_PRIV_NET_GRE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_priv_check
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.30:
	movl	4(%r15), %eax
	movq	_rt_numfibs@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_32
## %bb.31:
	movl	%eax, (%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_34
LBB0_10:
	movl	20(%r15), %eax
	cmpl	8(%r15), %eax
	jne	LBB0_32
## %bb.11:
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_32
## %bb.12:
	cmpl	$12, 12(%r15)
	jne	LBB0_32
## %bb.13:
	cmpl	$12, (%r15)
	jne	LBB0_32
## %bb.14:
	movl	16(%r15), %esi
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %esi
	je	LBB0_16
## %bb.15:
	movl	4(%r15), %edx
	cmpl	%eax, %edx
	jne	LBB0_17
LBB0_16:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_33
LBB0_32:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_33:
	movl	(%rax), %r12d
LBB0_34:
	movq	_me_ioctl_sx@GOTPCREL(%rip), %rdi
	callq	_sx_xunlock
LBB0_35:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movl	(%r14), %eax
	movl	%eax, 4(%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_34
LBB0_18:
	movq	%r14, %rdi
	callq	_me_delete_tunnel
	xorl	%r12d, %r12d
	jmp	LBB0_34
LBB0_23:
	addq	$4, %r14
LBB0_24:
	movl	(%r14), %eax
	movl	%eax, 4(%rbx)
LBB0_25:
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_sintosa
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_prison_if
	testl	%eax, %eax
	je	LBB0_26
## %bb.27:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	jmp	LBB0_34
LBB0_26:
	xorl	%r12d, %r12d
	jmp	LBB0_34
LBB0_17:
	movq	%r14, %rdi
	callq	_me_set_tunnel
	movl	%eax, %r12d
	jmp	LBB0_34
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_35
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_35
	.long	L0_0_set_35
.set L0_1_set_29, LBB0_29-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_32, LBB0_32-LJTI0_1
.set L0_1_set_28, LBB0_28-LJTI0_1
.set L0_1_set_19, LBB0_19-LJTI0_1
.set L0_1_set_18, LBB0_18-LJTI0_1
LJTI0_1:
	.long	L0_1_set_29
	.long	L0_1_set_10
	.long	L0_1_set_32
	.long	L0_1_set_32
	.long	L0_1_set_32
	.long	L0_1_set_28
	.long	L0_1_set_19
	.long	L0_1_set_19
	.long	L0_1_set_18
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_me_ioctl_sx,4,2                ## @me_ioctl_sx
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_curthread,8,3                  ## @curthread
	.comm	_PRIV_NET_GRE,4,2               ## @PRIV_NET_GRE
	.comm	_rt_numfibs,4,2                 ## @rt_numfibs
	.no_dead_strip	_me_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function me_ioctl
_me_ioctl:                              ; @me_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	x20, x2
	mov	x22, x1
	mov	x19, x0
	sub	w8, w1, #130
	cmp	w8, #8
	b.hi	LBB0_5
; %bb.1:
	mov	w21, #0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x20]
	cmp	w8, #575
	b.gt	LBB0_12
; %bb.3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	b	LBB0_26
LBB0_4:
	mov	w21, #0
Lloh5:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	b	LBB0_26
LBB0_5:
Lloh8:
	adrp	x0, _me_ioctl_sx@GOTPAGE
Lloh9:
	ldr	x0, [x0, _me_ioctl_sx@GOTPAGEOFF]
	bl	_sx_xlock
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_13
; %bb.6:
	sub	w8, w22, #128
	cmp	w8, #8
	b.hi	LBB0_23
; %bb.7:
Lloh10:
	adrp	x9, lJTI0_1@PAGE
Lloh11:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	mov	x0, x19
	bl	_ME_READY
	cbz	w0, LBB0_22
; %bb.9:
	add	x23, x20, #8
	mov	w21, #12
	mov	x0, x23
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh12:
	adrp	x8, _AF_INET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	w21, [x20, #8]
	cmp	w22, #135
	b.eq	LBB0_29
; %bb.10:
	cmp	w22, #134
	b.ne	LBB0_31
; %bb.11:
	add	x8, x19, #8
	b	LBB0_30
LBB0_12:
	mov	w21, #0
	str	w8, [x19]
	b	LBB0_26
LBB0_13:
Lloh15:
	adrp	x8, _ENXIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_24
LBB0_14:
Lloh17:
	adrp	x8, _curthread@GOTPAGE
Lloh18:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
Lloh20:
	adrp	x8, _PRIV_NET_GRE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PRIV_NET_GRE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_priv_check
	mov	x21, x0
	cbnz	w0, LBB0_25
; %bb.15:
	ldr	w8, [x20, #4]
Lloh23:
	adrp	x9, _rt_numfibs@GOTPAGE
Lloh24:
	ldr	x9, [x9, _rt_numfibs@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_23
; %bb.16:
	mov	w21, #0
	str	w8, [x19]
	b	LBB0_25
LBB0_17:
	ldr	w8, [x20, #20]
	ldr	w9, [x20, #8]
Lloh26:
	adrp	x10, _AF_INET@GOTPAGE
Lloh27:
	ldr	x10, [x10, _AF_INET@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, eq
	b.ne	LBB0_23
; %bb.18:
	ldr	w8, [x20, #12]
	cmp	w8, #12
	b.ne	LBB0_23
; %bb.19:
	ldr	w8, [x20]
	cmp	w8, #12
	b.ne	LBB0_23
; %bb.20:
	ldr	w1, [x20, #16]
Lloh29:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w1, w8
	b.eq	LBB0_22
; %bb.21:
	ldr	w2, [x20, #4]
	cmp	w2, w8
	b.ne	LBB0_33
LBB0_22:
Lloh32:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_24:
	ldr	w21, [x8]
LBB0_25:
Lloh36:
	adrp	x0, _me_ioctl_sx@GOTPAGE
Lloh37:
	ldr	x0, [x0, _me_ioctl_sx@GOTPAGEOFF]
	bl	_sx_xunlock
LBB0_26:
	mov	x0, x21
	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_27:
	mov	w21, #0
	ldr	w8, [x19]
	str	w8, [x20, #4]
	b	LBB0_25
LBB0_28:
	mov	x0, x19
	bl	_me_delete_tunnel
	mov	w21, #0
	b	LBB0_25
LBB0_29:
	add	x8, x19, #4
LBB0_30:
	ldr	w8, [x8]
	str	w8, [x23, #4]
LBB0_31:
Lloh38:
	adrp	x8, _curthread@GOTPAGE
Lloh39:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	ldr	w19, [x8]
	mov	x0, x23
	bl	_sintosa
	mov	x1, x0
	mov	x0, x19
	bl	_prison_if
	mov	x21, x0
	cbz	w0, LBB0_25
; %bb.32:
	mov	x0, x23
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	b	LBB0_25
LBB0_33:
	mov	x0, x19
	bl	_me_set_tunnel
	mov	x21, x0
	b	LBB0_25
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_26-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_26-LBB0_2)>>2
	.byte	(LBB0_26-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_23-LBB0_8)>>2
	.byte	(LBB0_23-LBB0_8)>>2
	.byte	(LBB0_23-LBB0_8)>>2
	.byte	(LBB0_27-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_28-LBB0_8)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_me_ioctl_sx,4,2                ; @me_ioctl_sx
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_curthread,8,3                  ; @curthread
	.comm	_PRIV_NET_GRE,4,2               ; @PRIV_NET_GRE
	.comm	_rt_numfibs,4,2                 ; @rt_numfibs
	.no_dead_strip	_me_ioctl
.subsections_via_symbols
