	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SearchOrCreateNewIkeClientForIkePacket ## -- Begin function SearchOrCreateNewIkeClientForIkePacket
	.p2align	4, 0x90
_SearchOrCreateNewIkeClientForIkePacket: ## @SearchOrCreateNewIkeClientForIkePacket
	.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
	testl	%r8d, %r8d
	je	LBB0_11
## %bb.1:
	movl	%edx, %ebx
	testl	%edx, %edx
	je	LBB0_11
## %bb.2:
	movq	%rcx, %r14
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.3:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.4:
	movq	%rdi, %r15
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.5:
	testq	%r9, %r9
	je	LBB0_11
## %bb.6:
	movl	%r8d, %r13d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_SearchIkeClientForIkePacket
	movq	%r14, %r8
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
LBB0_10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	movl	%r13d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SetIkeClientEndpoint           ## TAILCALL
LBB0_7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r8, %r14
	callq	_GetNumberOfIkeClientsFromIP
	movq	_IKE_QUOTA_MAX_NUM_CLIENTS_PER_IP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_11
## %bb.8:
	movl	(%r15), %edi
	callq	_LIST_NUM
	movq	_IKE_QUOTA_MAX_NUM_CLIENTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_9
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	movl	%r13d, %r8d
	callq	_NewIkeClient
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_Insert
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IKE_QUOTA_MAX_NUM_CLIENTS_PER_IP,8,3 ## @IKE_QUOTA_MAX_NUM_CLIENTS_PER_IP
	.comm	_IKE_QUOTA_MAX_NUM_CLIENTS,8,3  ## @IKE_QUOTA_MAX_NUM_CLIENTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SearchOrCreateNewIkeClientForIkePacket ; -- Begin function SearchOrCreateNewIkeClientForIkePacket
	.p2align	2
_SearchOrCreateNewIkeClientForIkePacket: ; @SearchOrCreateNewIkeClientForIkePacket
	.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
	cbz	w4, LBB0_10
; %bb.1:
	mov	x21, x2
	cbz	w2, LBB0_10
; %bb.2:
	mov	x20, x3
	cbz	x3, LBB0_10
; %bb.3:
	mov	x22, x1
	cbz	x1, LBB0_10
; %bb.4:
	mov	x23, x0
	cbz	x0, LBB0_10
; %bb.5:
	cbz	x5, LBB0_10
; %bb.6:
	mov	x19, x4
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_SearchIkeClientForIkePacket
	mov	x24, x0
	cbz	x0, LBB0_8
LBB0_7:
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_SetIkeClientEndpoint
LBB0_8:
	mov	x0, x23
	mov	x1, x22
	bl	_GetNumberOfIkeClientsFromIP
Lloh0:
	adrp	x8, _IKE_QUOTA_MAX_NUM_CLIENTS_PER_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IKE_QUOTA_MAX_NUM_CLIENTS_PER_IP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_10
; %bb.9:
	ldr	w0, [x23]
	bl	_LIST_NUM
Lloh3:
	adrp	x8, _IKE_QUOTA_MAX_NUM_CLIENTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IKE_QUOTA_MAX_NUM_CLIENTS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_11
LBB0_10:
	mov	x0, #0
	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_11:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_NewIkeClient
	mov	x24, x0
	ldr	w0, [x23]
	mov	x1, x24
	bl	_Insert
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IKE_QUOTA_MAX_NUM_CLIENTS_PER_IP,8,3 ; @IKE_QUOTA_MAX_NUM_CLIENTS_PER_IP
	.comm	_IKE_QUOTA_MAX_NUM_CLIENTS,8,3  ; @IKE_QUOTA_MAX_NUM_CLIENTS
.subsections_via_symbols
