	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test2                          ## -- Begin function test2
	.p2align	4, 0x90
_test2:                                 ## @test2
	.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
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	callq	_getuid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ipsec_set_policy
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ipsec_get_policylen
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ipsec_set_policy
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ipsec_get_policylen
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_pfkey_open
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_ipsec_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	leaq	L_str.15(%rip), %rdi
	callq	_puts
	movl	%r14d, %edi
	callq	_pfkey_send_spdflush
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_ipsec_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_6:
	movl	%r14d, %edi
	callq	_pfkey_recv
	movq	%rax, %rdi
	callq	_free
	leaq	L_str.16(%rip), %rdi
	callq	_puts
	movq	_addr@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	subq	$8, %rsp
	movl	%r14d, %edi
	movq	%rcx, %rsi
	movl	$128, %edx
	movl	$128, %r8d
	movl	$255, %r9d
	pushq	$0
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r12
	callq	_pfkey_send_spdsetidx
	addq	$32, %rsp
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_ipsec_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_8:
	movl	%r14d, %edi
	callq	_pfkey_recv
	movq	%rax, %rdi
	callq	_free
	leaq	L_str.24(%rip), %rdi
	callq	_puts
	movq	(%r13), %rcx
	subq	$8, %rsp
	movl	%r14d, %edi
	movq	%rcx, %rsi
	movl	$128, %edx
	movl	$128, %r8d
	movl	$255, %r9d
	pushq	$0
	pushq	%rbx
	pushq	%r15
	callq	_pfkey_send_spdupdate
	addq	$32, %rsp
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_ipsec_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_10:
	movl	%r14d, %edi
	callq	_pfkey_recv
	movq	%rax, %rdi
	callq	_free
	leaq	L_str.21(%rip), %rdi
	callq	_puts
	movl	$4, %edi
	callq	_sleep
	leaq	L_str.19(%rip), %rdi
	callq	_puts
	movq	(%r13), %rcx
	subq	$8, %rsp
	movl	%r14d, %edi
	movq	%rcx, %rsi
	movl	$128, %edx
	movl	$128, %r8d
	movl	$255, %r9d
	pushq	$0
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r12
	callq	_pfkey_send_spddelete
	addq	$32, %rsp
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_ipsec_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_12:
	movl	%r14d, %edi
	callq	_pfkey_recv
	movq	%rax, %rdi
	callq	_free
	leaq	L_str.20(%rip), %rdi
	callq	_puts
	movq	(%r13), %rcx
	subq	$8, %rsp
	movl	%r14d, %edi
	movq	%rcx, %rsi
	movl	$128, %edx
	movl	$128, %r8d
	movl	$255, %r9d
	pushq	$0
	movq	%rbx, %r12
	pushq	%rbx
	pushq	%r15
	callq	_pfkey_send_spdadd
	addq	$32, %rsp
	testq	%rax, %rax
	jns	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_ipsec_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_14:
	movl	%r14d, %edi
	callq	_test2sub
	movl	%eax, %ebx
	leaq	L_.str.11(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_pfkey_send_spdget
	testq	%rax, %rax
	jns	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	callq	_ipsec_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_16:
	movl	%r14d, %edi
	callq	_pfkey_recv
	movq	%rax, %rdi
	callq	_free
	leaq	L_str.21(%rip), %rdi
	callq	_puts
	movl	$4, %edi
	callq	_sleep
	leaq	L_str.22(%rip), %rdi
	callq	_puts
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_pfkey_send_spddelete2
	testq	%rax, %rax
	jns	LBB0_18
## %bb.17:
	xorl	%eax, %eax
	callq	_ipsec_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_18:
	movl	%r14d, %edi
	callq	_pfkey_recv
	movq	%rax, %rdi
	callq	_free
	leaq	L_str.23(%rip), %rdi
	callq	_puts
	movq	(%r13), %rcx
	subq	$8, %rsp
	movl	%r14d, %edi
	movq	%rcx, %rsi
	movl	$128, %edx
	movl	$128, %r8d
	movl	$255, %r9d
	pushq	$0
	pushq	%r12
	pushq	%r15
	pushq	$10
	pushq	$0
	callq	_pfkey_send_spdadd2
	addq	$48, %rsp
	testq	%rax, %rax
	jns	LBB0_20
## %bb.19:
	xorl	%eax, %eax
	callq	_ipsec_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_20:
	movl	%r14d, %edi
	callq	_test2sub
	leaq	L_str.24(%rip), %rdi
	callq	_puts
	movq	(%r13), %rcx
	subq	$8, %rsp
	movl	%r14d, %edi
	movq	%rcx, %rsi
	movl	$128, %edx
	movl	$128, %r8d
	movl	$255, %r9d
	pushq	$0
	pushq	%r12
	pushq	%r15
	callq	_pfkey_send_spdupdate
	addq	$32, %rsp
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	leaq	L_.str.14(%rip), %rdi
	callq	_warnx
LBB0_22:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out ipsec"

L_.str.1:                               ## @.str.1
	.asciz	"out ipsec ah/transport//use"

L_.str.3:                               ## @.str.3
	.asciz	"root privilege required."

L_.str.4:                               ## @.str.4
	.asciz	"ERROR: %s"

	.comm	_addr,8,3                       ## @addr
L_.str.11:                              ## @.str.11
	.asciz	"spdget(%u)\n"

L_.str.14:                              ## @.str.14
	.asciz	"ERROR: expecting failure."

L_str:                                  ## @str
	.asciz	"TEST2"

L_str.15:                               ## @str.15
	.asciz	"spdflush()"

L_str.16:                               ## @str.16
	.asciz	"spdsetidx()"

L_str.19:                               ## @str.19
	.asciz	"spddelete()"

L_str.20:                               ## @str.20
	.asciz	"spdadd()"

L_str.21:                               ## @str.21
	.asciz	"sleep(4)"

L_str.22:                               ## @str.22
	.asciz	"spddelete2()"

L_str.23:                               ## @str.23
	.asciz	"spdadd() with lifetime's 10(s)"

L_str.24:                               ## @str.24
	.asciz	"spdupdate()"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test2                          ; -- Begin function test2
	.p2align	2
_test2:                                 ; @test2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	bl	_getuid
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
Lloh4:
	adrp	x19, l_.str@PAGE
Lloh5:
	add	x19, x19, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	bl	_ipsec_set_policy
	mov	x22, x0
	bl	_ipsec_get_policylen
	mov	x23, x0
Lloh6:
	adrp	x19, l_.str.1@PAGE
Lloh7:
	add	x19, x19, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	bl	_ipsec_set_policy
	mov	x19, x0
	bl	_ipsec_get_policylen
	mov	x20, x0
	bl	_pfkey_open
	mov	x21, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
	bl	_ipsec_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
Lloh10:
	adrp	x0, l_str.15@PAGE
Lloh11:
	add	x0, x0, l_str.15@PAGEOFF
	bl	_puts
	mov	x0, x21
	bl	_pfkey_send_spdflush
	tbz	x0, #63, LBB0_6
; %bb.5:
	bl	_ipsec_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
	mov	x0, x21
	bl	_pfkey_recv
	bl	_free
Lloh14:
	adrp	x0, l_str.16@PAGE
Lloh15:
	add	x0, x0, l_str.16@PAGEOFF
	bl	_puts
Lloh16:
	adrp	x24, _addr@GOTPAGE
Lloh17:
	ldr	x24, [x24, _addr@GOTPAGEOFF]
	ldr	x1, [x24]
	str	wzr, [sp]
	mov	x0, x21
	mov	w2, #128
	mov	x3, x1
	mov	w4, #128
	mov	w5, #255
	mov	x6, x22
	mov	x7, x23
	bl	_pfkey_send_spdsetidx
	tbz	x0, #63, LBB0_8
; %bb.7:
	bl	_ipsec_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_8:
	mov	x0, x21
	bl	_pfkey_recv
	bl	_free
Lloh20:
	adrp	x0, l_str.24@PAGE
Lloh21:
	add	x0, x0, l_str.24@PAGEOFF
	bl	_puts
	ldr	x1, [x24]
	str	wzr, [sp]
	mov	x0, x21
	mov	w2, #128
	mov	x3, x1
	mov	w4, #128
	mov	w5, #255
	mov	x6, x19
	mov	x7, x20
	bl	_pfkey_send_spdupdate
	tbz	x0, #63, LBB0_10
; %bb.9:
	bl	_ipsec_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_10:
	mov	x0, x21
	bl	_pfkey_recv
	bl	_free
Lloh24:
	adrp	x0, l_str.21@PAGE
Lloh25:
	add	x0, x0, l_str.21@PAGEOFF
	bl	_puts
	mov	w0, #4
	bl	_sleep
Lloh26:
	adrp	x0, l_str.19@PAGE
Lloh27:
	add	x0, x0, l_str.19@PAGEOFF
	bl	_puts
	ldr	x1, [x24]
	str	wzr, [sp]
	mov	x0, x21
	mov	w2, #128
	mov	x3, x1
	mov	w4, #128
	mov	w5, #255
	mov	x6, x22
	mov	x7, x23
	bl	_pfkey_send_spddelete
	tbz	x0, #63, LBB0_12
; %bb.11:
	bl	_ipsec_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_12:
	mov	x0, x21
	bl	_pfkey_recv
	bl	_free
Lloh30:
	adrp	x0, l_str.20@PAGE
Lloh31:
	add	x0, x0, l_str.20@PAGEOFF
	bl	_puts
	ldr	x1, [x24]
	str	wzr, [sp]
	mov	x0, x21
	mov	w2, #128
	mov	x3, x1
	mov	w4, #128
	mov	w5, #255
	mov	x6, x19
	mov	x7, x20
	bl	_pfkey_send_spdadd
	tbz	x0, #63, LBB0_14
; %bb.13:
	bl	_ipsec_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_14:
	mov	x0, x21
	bl	_test2sub
	mov	x22, x0
	str	x22, [sp]
Lloh34:
	adrp	x0, l_.str.11@PAGE
Lloh35:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
	mov	x0, x21
	mov	x1, x22
	bl	_pfkey_send_spdget
	tbz	x0, #63, LBB0_16
; %bb.15:
	bl	_ipsec_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_16:
	mov	x0, x21
	bl	_pfkey_recv
	bl	_free
Lloh38:
	adrp	x0, l_str.21@PAGE
Lloh39:
	add	x0, x0, l_str.21@PAGEOFF
	bl	_puts
	mov	w0, #4
	bl	_sleep
Lloh40:
	adrp	x0, l_str.22@PAGE
Lloh41:
	add	x0, x0, l_str.22@PAGEOFF
	bl	_puts
	mov	x0, x21
	mov	x1, x22
	bl	_pfkey_send_spddelete2
	tbz	x0, #63, LBB0_18
; %bb.17:
	bl	_ipsec_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh42:
	adrp	x1, l_.str.4@PAGE
Lloh43:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_18:
	mov	x0, x21
	bl	_pfkey_recv
	bl	_free
Lloh44:
	adrp	x0, l_str.23@PAGE
Lloh45:
	add	x0, x0, l_str.23@PAGEOFF
	bl	_puts
	ldr	x1, [x24]
	stp	w20, wzr, [sp, #8]
	str	x19, [sp]
	mov	x0, x21
	mov	w2, #128
	mov	x3, x1
	mov	w4, #128
	mov	w5, #255
	mov	w6, #0
	mov	w7, #10
	bl	_pfkey_send_spdadd2
	tbz	x0, #63, LBB0_20
; %bb.19:
	bl	_ipsec_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh46:
	adrp	x1, l_.str.4@PAGE
Lloh47:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_20:
	mov	x0, x21
	bl	_test2sub
Lloh48:
	adrp	x0, l_str.24@PAGE
Lloh49:
	add	x0, x0, l_str.24@PAGEOFF
	bl	_puts
	ldr	x1, [x24]
	str	wzr, [sp]
	mov	x0, x21
	mov	w2, #128
	mov	x3, x1
	mov	w4, #128
	mov	w5, #255
	mov	x6, x19
	mov	x7, x20
	bl	_pfkey_send_spdupdate
	cbnz	x0, LBB0_22
; %bb.21:
Lloh50:
	adrp	x0, l_.str.14@PAGE
Lloh51:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_warnx
LBB0_22:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out ipsec"

l_.str.1:                               ; @.str.1
	.asciz	"out ipsec ah/transport//use"

l_.str.3:                               ; @.str.3
	.asciz	"root privilege required."

l_.str.4:                               ; @.str.4
	.asciz	"ERROR: %s"

	.comm	_addr,8,3                       ; @addr
l_.str.11:                              ; @.str.11
	.asciz	"spdget(%u)\n"

l_.str.14:                              ; @.str.14
	.asciz	"ERROR: expecting failure."

l_str:                                  ; @str
	.asciz	"TEST2"

l_str.15:                               ; @str.15
	.asciz	"spdflush()"

l_str.16:                               ; @str.16
	.asciz	"spdsetidx()"

l_str.19:                               ; @str.19
	.asciz	"spddelete()"

l_str.20:                               ; @str.20
	.asciz	"spdadd()"

l_str.21:                               ; @str.21
	.asciz	"sleep(4)"

l_str.22:                               ; @str.22
	.asciz	"spddelete2()"

l_str.23:                               ; @str.23
	.asciz	"spdadd() with lifetime's 10(s)"

l_str.24:                               ; @str.24
	.asciz	"spdupdate()"

.subsections_via_symbols
