	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IPsecSendUdpPacket             ## -- Begin function IPsecSendUdpPacket
	.p2align	4, 0x90
_IPsecSendUdpPacket:                    ## @IPsecSendUdpPacket
	.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
	movl	$6424, %eax                     ## imm = 0x1918
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.2:
	movq	%r8, %r14
	testq	%r8, %r8
	je	LBB0_11
## %bb.3:
	movl	%r9d, %r13d
	testl	%r9d, %r9d
	je	LBB0_11
## %bb.4:
	movl	%ecx, -6452(%rbp)               ## 4-byte Spill
	leal	32(%r13), %r15d
	cmpl	$6401, %r15d                    ## imm = 0x1901
	movq	%rdi, -6464(%rbp)               ## 8-byte Spill
	jb	LBB0_6
## %bb.5:
	movl	%r15d, %edi
	movl	%edx, %ebx
	callq	_Malloc
	movl	%ebx, %edx
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_6:
	leaq	-6448(%rbp), %rbx
LBB0_7:
	movl	%edx, %edi
	callq	_Endian16
	movq	%rax, 24(%rbx)
	movl	-6452(%rbp), %edi               ## 4-byte Reload
	callq	_Endian16
	movq	%rax, 16(%rbx)
	movl	%r15d, %edi
	callq	_Endian16
	movq	%rax, 8(%rbx)
	movq	$0, (%rbx)
	leaq	128(%rbx), %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_Copy
	leaq	36(%r12), %rdi
	callq	_IsIP6
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	32(%r12), %edi
	callq	_IsIPsecSaTunnelMode
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	shlq	$4, %rcx
	movq	(%r12,%rcx), %rsi
	movq	8(%r12,%rcx), %rdi
	movq	_IP_PROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rcx
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_CalcChecksumForIPv6
	movq	%rax, (%rbx)
LBB0_9:
	movq	_IP_PROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-6464(%rbp), %rdi               ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_IPsecSendPacketByIkeClient
	cmpl	$6401, %r15d                    ## imm = 0x1901
	jb	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_Free
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$6424, %rsp                     ## imm = 0x1918
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IP_PROTO_UDP,4,2               ## @IP_PROTO_UDP
	.comm	_IPSEC_PORT_L2TP,4,2            ## @IPSEC_PORT_L2TP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IPsecSendUdpPacket             ; -- Begin function IPsecSendUdpPacket
	.p2align	2
_IPsecSendUdpPacket:                    ; @IPsecSendUdpPacket
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w9, #6416
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #2320
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_11
; %bb.2:
	mov	x24, x4
	cbz	x4, LBB0_11
; %bb.3:
	mov	x23, x5
	cbz	w5, LBB0_11
; %bb.4:
	mov	x25, x3
	mov	x26, x2
	mov	x20, x0
	add	w21, w23, #32
	mov	w8, #6401
	cmp	w21, w8
	b.lo	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_Malloc
	mov	x22, x0
	b	LBB0_7
LBB0_6:
	add	x22, sp, #8
LBB0_7:
	mov	x0, x26
	bl	_Endian16
	str	x0, [x22, #24]
	mov	x0, x25
	bl	_Endian16
	str	x0, [x22, #16]
	mov	x0, x21
	bl	_Endian16
	stp	xzr, x0, [x22]
	add	x0, x22, #128
	mov	x1, x24
	mov	x2, x23
	bl	_Copy
	add	x0, x19, #36
	bl	_IsIP6
Lloh5:
	adrp	x23, _IP_PROTO_UDP@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IP_PROTO_UDP@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x19, #32]
	bl	_IsIPsecSaTunnelMode
	cmp	w0, #0
	cset	w8, eq
	lsl	x8, x8, #4
	mov	w9, #8
	mov	w10, #24
	csel	x9, x10, x9, eq
	ldr	x0, [x19, x9]
	ldr	x1, [x19, x8]
	ldr	w2, [x23]
	mov	x3, x22
	mov	x4, x21
	mov	w5, #0
	bl	_CalcChecksumForIPv6
	str	x0, [x22]
LBB0_9:
	ldr	w4, [x23]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_IPsecSendPacketByIkeClient
	mov	w8, #6401
	cmp	w21, w8
	b.lo	LBB0_11
; %bb.10:
	mov	x0, x22
	bl	_Free
LBB0_11:
	ldur	x8, [x29, #-88]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #2320
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IP_PROTO_UDP,4,2               ; @IP_PROTO_UDP
	.comm	_IPSEC_PORT_L2TP,4,2            ; @IPSEC_PORT_L2TP
.subsections_via_symbols
