	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipsec_ioctl
_ipsec_ioctl:                           ## @ipsec_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	leal	-131(%rbx), %eax
	cmpl	$11, %eax
	ja	LBB0_9
## %bb.1:
	xorl	%r12d, %r12d
	movl	$3330, %ecx                     ## imm = 0xD02
	btl	%eax, %ecx
	jb	LBB0_28
## %bb.2:
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$2, %eax
	jne	LBB0_9
## %bb.4:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r14)
	jmp	LBB0_28
LBB0_5:
	movl	8(%r15), %eax
	movq	_IPSEC_MTU_MIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_7
## %bb.6:
	movq	_IPSEC_MTU_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_7
## %bb.8:
	movl	%eax, 8(%r14)
	jmp	LBB0_28
LBB0_9:
	movq	_ipsec_ioctl_sx@GOTPCREL(%rip), %rdi
	callq	_sx_xlock
	movq	(%r14), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.11:
	addl	$-128, %ebx
	cmpl	$16, %ebx
	ja	LBB0_25
## %bb.12:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_14:
	movl	8(%r14), %edx
	testl	%edx, %edx
	je	LBB0_15
## %bb.16:
	movq	_IPSEC_DIR_OUTBOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ipsec_getsaidx
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_28
LBB0_10:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_18:
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_PRIV_NET_SETIFFIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_priv_check
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.19:
	movl	(%r15), %eax
	movq	_rt_numfibs@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_25
## %bb.20:
	movl	%eax, 4(%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_27
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_17:
	movl	4(%r14), %eax
	movl	%eax, (%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_27
LBB0_13:
	movq	%r14, %rdi
	callq	_ipsec_delete_tunnel
	xorl	%r12d, %r12d
	jmp	LBB0_27
LBB0_22:
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_PRIV_NET_SETIFCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_priv_check
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.23:
	movq	%r15, %rdi
	callq	_ifr_data_get_ptr
	leaq	-36(%rbp), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_copyin
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.24:
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	callq	_ipsec_set_reqid
	movl	%eax, %r12d
	jmp	LBB0_27
LBB0_21:
	movl	(%r14), %eax
	movl	%eax, -36(%rbp)
	movq	%r15, %rdi
	callq	_ifr_data_get_ptr
	leaq	-36(%rbp), %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_copyout
	movl	%eax, %r12d
	jmp	LBB0_27
LBB0_15:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %r12d
LBB0_27:
	movq	_ipsec_ioctl_sx@GOTPCREL(%rip), %rdi
	callq	_sx_xunlock
LBB0_28:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_17
	.long	L0_0_set_25
	.long	L0_0_set_14
	.long	L0_0_set_25
	.long	L0_0_set_14
	.long	L0_0_set_25
	.long	L0_0_set_13
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_22
	.long	L0_0_set_21
	.end_data_region
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IPSEC_MTU_MIN,4,2              ## @IPSEC_MTU_MIN
	.comm	_IPSEC_MTU_MAX,4,2              ## @IPSEC_MTU_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ipsec_ioctl_sx,4,2             ## @ipsec_ioctl_sx
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_IPSEC_DIR_OUTBOUND,4,2         ## @IPSEC_DIR_OUTBOUND
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_curthread,8,3                  ## @curthread
	.comm	_PRIV_NET_SETIFFIB,4,2          ## @PRIV_NET_SETIFFIB
	.comm	_rt_numfibs,4,2                 ## @rt_numfibs
	.comm	_PRIV_NET_SETIFCAP,4,2          ## @PRIV_NET_SETIFCAP
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.no_dead_strip	_ipsec_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipsec_ioctl
_ipsec_ioctl:                           ; @ipsec_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	sub	w8, w1, #131
	cmp	w8, #11
	b.hi	LBB0_8
; %bb.1:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #3330
	tst	w9, w10
	b.eq	LBB0_3
; %bb.2:
	mov	w19, #0
	b	LBB0_28
LBB0_3:
	cbz	w8, LBB0_6
; %bb.4:
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.5:
	mov	w19, #0
Lloh0:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #12]
	orr	w8, w9, w8
	str	w8, [x20, #12]
	b	LBB0_28
LBB0_6:
	ldr	w8, [x21, #8]
Lloh3:
	adrp	x9, _IPSEC_MTU_MIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPSEC_MTU_MIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _IPSEC_MTU_MAX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IPSEC_MTU_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.le	LBB0_13
; %bb.7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
	b	LBB0_28
LBB0_8:
Lloh12:
	adrp	x0, _ipsec_ioctl_sx@GOTPAGE
Lloh13:
	ldr	x0, [x0, _ipsec_ioctl_sx@GOTPAGEOFF]
	bl	_sx_xlock
	ldr	x20, [x20]
	cbz	x20, LBB0_14
; %bb.9:
	sub	w8, w19, #128
	cmp	w8, #16
	b.hi	LBB0_18
; %bb.10:
Lloh14:
	adrp	x9, lJTI0_0@PAGE
Lloh15:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_11
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
	ldr	w2, [x20, #8]
	cbz	w2, LBB0_25
; %bb.12:
Lloh16:
	adrp	x8, _IPSEC_DIR_OUTBOUND@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IPSEC_DIR_OUTBOUND@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ipsec_getsaidx
Lloh19:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_26
LBB0_13:
	mov	w19, #0
	str	w8, [x20, #8]
	b	LBB0_28
LBB0_14:
Lloh21:
	adrp	x8, _ENXIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_26
LBB0_15:
Lloh23:
	adrp	x8, _curthread@GOTPAGE
Lloh24:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh25:
	ldr	x0, [x8]
Lloh26:
	adrp	x8, _PRIV_NET_SETIFFIB@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PRIV_NET_SETIFFIB@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_priv_check
	mov	x19, x0
	cbnz	w0, LBB0_27
; %bb.16:
	ldr	w8, [x21]
Lloh29:
	adrp	x9, _rt_numfibs@GOTPAGE
Lloh30:
	ldr	x9, [x9, _rt_numfibs@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_18
; %bb.17:
	mov	w19, #0
	str	w8, [x20, #4]
	b	LBB0_27
LBB0_18:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_26
LBB0_19:
	mov	w19, #0
	ldr	w8, [x20, #4]
	str	w8, [x21]
	b	LBB0_27
LBB0_20:
	mov	x0, x20
	bl	_ipsec_delete_tunnel
	mov	w19, #0
	b	LBB0_27
LBB0_21:
Lloh34:
	adrp	x8, _curthread@GOTPAGE
Lloh35:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh36:
	ldr	x0, [x8]
Lloh37:
	adrp	x8, _PRIV_NET_SETIFCAP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PRIV_NET_SETIFCAP@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_priv_check
	mov	x19, x0
	cbnz	w0, LBB0_27
; %bb.22:
	mov	x0, x21
	bl	_ifr_data_get_ptr
	add	x1, sp, #12
	mov	w2, #4
	bl	_copyin
	mov	x19, x0
	cbnz	w0, LBB0_27
; %bb.23:
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_ipsec_set_reqid
	mov	x19, x0
	b	LBB0_27
LBB0_24:
	ldr	w8, [x20]
	str	w8, [sp, #12]
	mov	x0, x21
	bl	_ifr_data_get_ptr
	mov	x1, x0
	add	x0, sp, #12
	mov	w2, #4
	bl	_copyout
	mov	x19, x0
	b	LBB0_27
LBB0_25:
Lloh40:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
LBB0_26:
	ldr	w19, [x8]
LBB0_27:
Lloh42:
	adrp	x0, _ipsec_ioctl_sx@GOTPAGE
Lloh43:
	ldr	x0, [x0, _ipsec_ioctl_sx@GOTPAGEOFF]
	bl	_sx_xunlock
LBB0_28:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_20-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_21-LBB0_11)>>2
	.byte	(LBB0_24-LBB0_11)>>2
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_IPSEC_MTU_MIN,4,2              ; @IPSEC_MTU_MIN
	.comm	_IPSEC_MTU_MAX,4,2              ; @IPSEC_MTU_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ipsec_ioctl_sx,4,2             ; @ipsec_ioctl_sx
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_IPSEC_DIR_OUTBOUND,4,2         ; @IPSEC_DIR_OUTBOUND
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_curthread,8,3                  ; @curthread
	.comm	_PRIV_NET_SETIFFIB,4,2          ; @PRIV_NET_SETIFFIB
	.comm	_rt_numfibs,4,2                 ; @rt_numfibs
	.comm	_PRIV_NET_SETIFCAP,4,2          ; @PRIV_NET_SETIFCAP
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.no_dead_strip	_ipsec_ioctl
.subsections_via_symbols
