	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IkeBuildDeletePayload          ## -- Begin function IkeBuildDeletePayload
	.p2align	4, 0x90
_IkeBuildDeletePayload:                 ## @IkeBuildDeletePayload
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	leaq	-40(%rbp), %rdi
	movl	$16, %esi
	callq	_Zero
	movq	_IKE_SA_DOI_IPSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Endian32
	movl	%eax, -28(%rbp)
	movl	(%r15), %edi
	callq	_LIST_NUM
	movl	%eax, %edi
	callq	_Endian16
	movl	%eax, -32(%rbp)
	movl	4(%r15), %eax
	movl	%eax, -36(%rbp)
	movl	(%r15), %edi
	callq	_LIST_NUM
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_LIST_DATA
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_NewBuf
	movq	%rax, %r14
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	movl	$16, %edx
	callq	_WriteBuf
	movl	(%r15), %edi
	callq	_LIST_NUM
	testl	%eax, %eax
	jle	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_LIST_DATA
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_WriteBuf
	incl	%ebx
	movl	(%r15), %edi
	callq	_LIST_NUM
	cmpl	%eax, %ebx
	jl	LBB0_5
	jmp	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
LBB0_6:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IKE_SA_DOI_IPSEC,4,2           ## @IKE_SA_DOI_IPSEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IkeBuildDeletePayload          ; -- Begin function IkeBuildDeletePayload
	.p2align	2
_IkeBuildDeletePayload:                 ; @IkeBuildDeletePayload
	.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_6
; %bb.1:
	mov	x19, x0
	mov	x0, sp
	mov	w1, #16
	bl	_Zero
Lloh0:
	adrp	x8, _IKE_SA_DOI_IPSEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IKE_SA_DOI_IPSEC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_Endian32
	str	w0, [sp, #12]
	ldr	w0, [x19]
	bl	_LIST_NUM
	bl	_Endian16
	ldp	w8, w9, [x19]
	stp	w9, w0, [sp, #4]
	mov	x0, x8
	bl	_LIST_NUM
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.2:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_LIST_DATA
	ldr	w8, [x0]
	str	w8, [sp]
LBB0_3:
	bl	_NewBuf
	mov	x20, x0
	mov	x1, sp
	mov	w2, #16
	bl	_WriteBuf
	ldr	w0, [x19]
	bl	_LIST_NUM
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x21
	bl	_LIST_DATA
	ldr	x1, [x0, #8]
	ldr	w2, [x0]
	mov	x0, x20
	bl	_WriteBuf
	add	w21, w21, #1
	ldr	w0, [x19]
	bl	_LIST_NUM
	cmp	w21, w0
	b.lt	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	x20, #0
LBB0_7:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IKE_SA_DOI_IPSEC,4,2           ; @IKE_SA_DOI_IPSEC
.subsections_via_symbols
