	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IPsecSaSendPacket              ## -- Begin function IPsecSaSendPacket
	.p2align	4, 0x90
_IPsecSaSendPacket:                     ## @IPsecSaSendPacket
	.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
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.2:
	movq	%rdx, %rbx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	movq	%rdi, %r14
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.6:
	movl	40(%r12), %esi
	movq	24(%r12), %rax
	movl	(%rax), %edx
	callq	_Copy
	movq	24(%r12), %rax
	movl	4(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_IkeBuild
	movq	%rax, %r15
	movl	-48(%rbp), %esi
	movq	24(%r12), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_IPsecSaUpdateIv
	movq	24(%r12), %rax
	movq	32(%r12), %rdi
	movl	-48(%rbp), %esi
	movl	(%rax), %edx
	callq	_IPsecSaUpdateIv
	testq	%r15, %r15
	jne	LBB0_8
	jmp	LBB0_11
LBB0_3:
	movq	16(%r12), %rdi
	callq	_FreeBuf
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	jmp	LBB0_11
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_IkeBuild
	movq	%rax, %r15
	testq	%r15, %r15
	je	LBB0_11
LBB0_8:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_FreeBuf
LBB0_10:
	movq	%r15, %rdi
	callq	_CloneBuf
	movq	%rax, 16(%r12)
	movq	_IKE_SA_RESEND_INTERVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movq	%rsi, 8(%r12)
	movl	(%r14), %edi
	callq	_AddInterrupt
	movq	_IKE_UDP_TYPE_ISAKMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %r8
	leaq	12(%r8), %rdx
	movl	(%r8), %r9d
	movl	8(%r8), %ecx
	addq	$4, %r8
	movl	(%r15), %eax
	movl	4(%r15), %ebx
	movq	%r14, %rdi
	pushq	%rax
	pushq	%rbx
	callq	_IkeSendUdpPacket
	addq	$16, %rsp
	movq	%r15, %rdi
	callq	_Free
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IKE_SA_RESEND_INTERVAL,8,3     ## @IKE_SA_RESEND_INTERVAL
	.comm	_IKE_UDP_TYPE_ISAKMP,4,2        ## @IKE_UDP_TYPE_ISAKMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IPsecSaSendPacket              ; -- Begin function IPsecSaSendPacket
	.p2align	2
_IPsecSaSendPacket:                     ; @IPsecSaSendPacket
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_10
; %bb.2:
	mov	x21, x2
	cbz	x2, LBB0_5
; %bb.3:
	mov	x20, x0
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w1, [x19, #40]
	ldr	x8, [x19, #24]
	ldr	w2, [x8]
	bl	_Copy
	ldr	x8, [x19, #24]
	ldr	w8, [x8, #4]
	str	w8, [sp, #4]
	mov	x1, sp
	mov	x0, x21
	bl	_IkeBuild
	mov	x21, x0
	ldr	w1, [sp]
	ldr	x8, [x19, #24]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_IPsecSaUpdateIv
	ldr	w1, [sp]
	ldp	x8, x0, [x19, #24]
	ldr	w2, [x8]
	bl	_IPsecSaUpdateIv
	cbnz	x21, LBB0_7
	b	LBB0_10
LBB0_5:
	ldr	x0, [x19, #16]
	bl	_FreeBuf
	stp	xzr, xzr, [x19, #8]
	b	LBB0_10
LBB0_6:
	mov	x0, x21
	mov	x1, #0
	bl	_IkeBuild
	mov	x21, x0
	cbz	x21, LBB0_10
LBB0_7:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_FreeBuf
LBB0_9:
	mov	x0, x21
	bl	_CloneBuf
Lloh0:
	adrp	x8, _IKE_SA_RESEND_INTERVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IKE_SA_RESEND_INTERVAL@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x9
	stp	x1, x0, [x19, #8]
	ldr	w0, [x20]
	bl	_AddInterrupt
Lloh3:
	adrp	x8, _IKE_UDP_TYPE_ISAKMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IKE_UDP_TYPE_ISAKMP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x19]
	add	x2, x8, #12
	ldr	w3, [x8, #8]
	add	x4, x8, #4
	ldr	w5, [x8]
	ldp	w7, w6, [x21]
	mov	x0, x20
	bl	_IkeSendUdpPacket
	mov	x0, x21
	bl	_Free
LBB0_10:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IKE_SA_RESEND_INTERVAL,8,3     ; @IKE_SA_RESEND_INTERVAL
	.comm	_IKE_UDP_TYPE_ISAKMP,4,2        ; @IKE_UDP_TYPE_ISAKMP
.subsections_via_symbols
