	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfkey_xfrm_policy2msg
_pfkey_xfrm_policy2msg:                 ## @pfkey_xfrm_policy2msg
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	96(%rsi), %edi
	callq	_pfkey_sockaddr_size
	movl	%eax, %r14d
	movl	96(%r12), %edi
	callq	_pfkey_sockaddr_len
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_pfkey_xfrm_policy2msg_size
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_skb_put
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	callq	_memset
	movslq	%r14d, %r14
	addq	$40, %r14
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_skb_put
	movq	%rax, %rbx
	movq	%r14, %r15
	shrq	$2, %r15
	movl	%r15d, (%rax)
	movq	_SADB_EXT_ADDRESS_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	112(%r12), %edi
	callq	_pfkey_proto_from_xfrm
	movq	%rax, 24(%rbx)
	movl	124(%r12), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	leaq	120(%r12), %rdi
	movl	96(%r12), %ecx
	movl	116(%r12), %esi
	addq	$40, %rbx
	movq	%rbx, %rdx
	callq	_pfkey_sockaddr_fill
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_BUG
LBB0_2:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_skb_put
	movq	%rax, %rbx
	movl	%r15d, (%rax)
	movq	_SADB_EXT_ADDRESS_DST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	112(%r12), %edi
	callq	_pfkey_proto_from_xfrm
	movq	%rax, 24(%rbx)
	movl	108(%r12), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	leaq	104(%r12), %rdi
	movl	96(%r12), %ecx
	movl	100(%r12), %esi
	addq	$40, %rbx
	movq	%rbx, %rdx
	callq	_pfkey_sockaddr_fill
	movq	%r13, %rdi
	movl	$40, %esi
	callq	_skb_put
	movq	%rax, %rbx
	movl	$10, (%rax)
	movq	_SADB_EXT_LIFETIME_HARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	92(%r12), %edi
	callq	__X2KEY
	movq	%rax, 24(%rbx)
	movl	88(%r12), %edi
	callq	__X2KEY
	movq	%rax, 16(%rbx)
	movl	84(%r12), %eax
	movl	%eax, 8(%rbx)
	movl	80(%r12), %eax
	movl	%eax, 4(%rbx)
	movq	%r13, %rdi
	movl	$40, %esi
	callq	_skb_put
	movq	%rax, %rbx
	movl	$10, (%rax)
	movq	_SADB_EXT_LIFETIME_SOFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	76(%r12), %edi
	callq	__X2KEY
	movq	%rax, 24(%rbx)
	movl	72(%r12), %edi
	callq	__X2KEY
	movq	%rax, 16(%rbx)
	movl	68(%r12), %eax
	movl	%eax, 8(%rbx)
	movl	64(%r12), %eax
	movl	%eax, 4(%rbx)
	movq	%r13, %rdi
	movl	$40, %esi
	callq	_skb_put
	movl	$10, (%rax)
	movq	_SADB_EXT_LIFETIME_CURRENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movups	48(%r12), %xmm0
	movups	%xmm0, 16(%rax)
	movl	44(%r12), %ecx
	movl	%ecx, 8(%rax)
	movl	40(%r12), %ecx
	movl	%ecx, 4(%rax)
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_skb_put
	movl	$6, (%rax)
	movq	_SADB_X_EXT_POLICY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_IPSEC_POLICY_DISCARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	(%r12), %rcx
	movq	_XFRM_POLICY_ALLOW@GOTPCREL(%rip), %rdx
	movl	8(%r12), %esi
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.3:
	testl	%esi, %esi
	jne	LBB0_4
## %bb.5:
	movq	_IPSEC_POLICY_NONE@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_IPSEC_POLICY_IPSEC@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
LBB0_7:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	movl	%ecx, 4(%rax)
	movl	36(%r12), %ecx
	movl	%ecx, 12(%rax)
	movl	32(%r12), %ecx
	movl	%ecx, 8(%rax)
	testl	%esi, %esi
	jle	LBB0_20
## %bb.8:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$20, %ebx
	xorl	%r14d, %r14d
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	movslq	8(%r12), %rax
	addq	$40, %rbx
	cmpq	%rax, %r14
	jge	LBB0_20
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %r13
	movq	-20(%r13,%rbx), %rax
	movq	_XFRM_MODE_TUNNEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-12(%r13,%rbx), %edi
	callq	_pfkey_sockaddr_len
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	(%rax,%rax), %r12d
	addl	$32, %r12d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %eax
	subl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	movl	$32, %r12d
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_skb_put
	movq	%rax, %r15
	leal	7(%r12), %eax
	testl	%r12d, %r12d
	cmovnsl	%r12d, %eax
	sarl	$3, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, (%rcx)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	%r12d, (%r15)
	movl	-4(%r13,%rbx), %eax
	movl	%eax, 28(%r15)
	movq	-20(%r13,%rbx), %rdi
	callq	_pfkey_mode_from_xfrm
	testl	%eax, %eax
	js	LBB0_24
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, 4(%r15)
	movq	_IPSEC_LEVEL_REQUIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	4(%r13,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_IPSEC_LEVEL_UNIQUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r15)
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, 12(%r13,%rbx)
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_IPSEC_LEVEL_USE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r15)
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, 16(%r15)
	movq	-20(%r13,%rbx), %rax
	movq	_XFRM_MODE_TUNNEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	32(%r15), %rdx
	leaq	(%rbx,%r13), %rdi
	movl	-12(%r13,%rbx), %ecx
	xorl	%esi, %esi
	callq	_pfkey_sockaddr_fill
	leaq	(%rbx,%r13), %rdi
	addq	$-8, %rdi
	movslq	-64(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%r15,%rax,4), %rdx
	addq	$32, %rdx
	movl	-12(%r13,%rbx), %ecx
	xorl	%esi, %esi
	callq	_pfkey_sockaddr_fill
	jmp	LBB0_19
LBB0_20:
	movq	16(%r12), %r14
	testq	%r14, %r14
	je	LBB0_22
## %bb.21:
	movq	%r12, %rdi
	callq	_pfkey_xfrm_policy2sec_ctx_size
	movl	%eax, %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_skb_put
	sarl	$2, %ebx
	movl	%ebx, (%rax)
	movq	_SADB_X_EXT_SEC_CTX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movl	12(%r14), %ecx
	movl	%ecx, 12(%rax)
	movl	8(%r14), %ecx
	movl	%ecx, 8(%rax)
	movl	(%r14), %edx
	movl	%edx, 4(%rax)
	leaq	20(%rax), %rdi
	movl	4(%r14), %esi
	callq	_memcpy
LBB0_22:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	sarl	$2, %eax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 8(%rbx)
	addq	$12, %r12
	movq	%r12, %rdi
	callq	_atomic_read
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_23:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SADB_EXT_ADDRESS_SRC,4,2       ## @SADB_EXT_ADDRESS_SRC
	.comm	_SADB_EXT_ADDRESS_DST,4,2       ## @SADB_EXT_ADDRESS_DST
	.comm	_SADB_EXT_LIFETIME_HARD,4,2     ## @SADB_EXT_LIFETIME_HARD
	.comm	_SADB_EXT_LIFETIME_SOFT,4,2     ## @SADB_EXT_LIFETIME_SOFT
	.comm	_SADB_EXT_LIFETIME_CURRENT,4,2  ## @SADB_EXT_LIFETIME_CURRENT
	.comm	_SADB_X_EXT_POLICY,4,2          ## @SADB_X_EXT_POLICY
	.comm	_IPSEC_POLICY_DISCARD,4,2       ## @IPSEC_POLICY_DISCARD
	.comm	_XFRM_POLICY_ALLOW,8,3          ## @XFRM_POLICY_ALLOW
	.comm	_IPSEC_POLICY_IPSEC,4,2         ## @IPSEC_POLICY_IPSEC
	.comm	_IPSEC_POLICY_NONE,4,2          ## @IPSEC_POLICY_NONE
	.comm	_XFRM_MODE_TUNNEL,8,3           ## @XFRM_MODE_TUNNEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPSEC_LEVEL_REQUIRE,4,2        ## @IPSEC_LEVEL_REQUIRE
	.comm	_IPSEC_LEVEL_UNIQUE,4,2         ## @IPSEC_LEVEL_UNIQUE
	.comm	_IPSEC_LEVEL_USE,4,2            ## @IPSEC_LEVEL_USE
	.comm	_SADB_X_EXT_SEC_CTX,4,2         ## @SADB_X_EXT_SEC_CTX
	.no_dead_strip	_pfkey_xfrm_policy2msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfkey_xfrm_policy2msg
_pfkey_xfrm_policy2msg:                 ; @pfkey_xfrm_policy2msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x1, #96]
	bl	_pfkey_sockaddr_size
	mov	x25, x0
	ldr	w0, [x19, #96]
	bl	_pfkey_sockaddr_len
	mov	x23, x0
	mov	x0, x19
	bl	_pfkey_xfrm_policy2msg_size
	mov	x27, x0
	mov	x0, x22
	mov	w1, #32
	bl	_skb_put
	mov	x21, x0
	mov	w1, #0
	mov	x2, x27
	bl	_memset
	sxtw	x8, w25
	add	x25, x8, #40
	mov	x0, x22
	mov	x1, x25
	bl	_skb_put
	mov	x26, x0
	lsr	x20, x25, #2
	str	w20, [x0]
Lloh0:
	adrp	x8, _SADB_EXT_ADDRESS_SRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SADB_EXT_ADDRESS_SRC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	ldr	w0, [x19, #112]
	bl	_pfkey_proto_from_xfrm
	str	x0, [x26, #24]
	ldr	w8, [x19, #124]
	str	w8, [x26, #16]
	str	xzr, [x26, #8]
	add	x0, x19, #120
	ldr	w1, [x19, #116]
	add	x2, x26, #40
	ldr	w3, [x19, #96]
	bl	_pfkey_sockaddr_fill
	cbnz	w0, LBB0_2
; %bb.1:
	bl	_BUG
LBB0_2:
	mov	x0, x22
	mov	x1, x25
	bl	_skb_put
	mov	x25, x0
	str	w20, [x0]
Lloh3:
	adrp	x8, _SADB_EXT_ADDRESS_DST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SADB_EXT_ADDRESS_DST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	ldr	w0, [x19, #112]
	bl	_pfkey_proto_from_xfrm
	str	x0, [x25, #24]
	ldr	w8, [x19, #108]
	str	w8, [x25, #16]
	str	xzr, [x25, #8]
	add	x0, x19, #104
	add	x2, x25, #40
	ldp	w3, w1, [x19, #96]
	bl	_pfkey_sockaddr_fill
	mov	x0, x22
	mov	w1, #40
	bl	_skb_put
	mov	x25, x0
	mov	w20, #10
	str	w20, [x0]
Lloh6:
	adrp	x8, _SADB_EXT_LIFETIME_HARD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SADB_EXT_LIFETIME_HARD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	ldr	w0, [x19, #92]
	bl	__X2KEY
	str	x0, [x25, #24]
	ldr	w0, [x19, #88]
	bl	__X2KEY
	str	x0, [x25, #16]
	ldr	d0, [x19, #80]
	stur	d0, [x25, #4]
	mov	x0, x22
	mov	w1, #40
	bl	_skb_put
	mov	x25, x0
	str	w20, [x0]
Lloh9:
	adrp	x8, _SADB_EXT_LIFETIME_SOFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SADB_EXT_LIFETIME_SOFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	ldr	w0, [x19, #76]
	bl	__X2KEY
	str	x0, [x25, #24]
	ldr	w0, [x19, #72]
	bl	__X2KEY
	str	x0, [x25, #16]
	ldr	d0, [x19, #64]
	stur	d0, [x25, #4]
	mov	x0, x22
	mov	w1, #40
	bl	_skb_put
	str	w20, [x0]
Lloh12:
	adrp	x8, _SADB_EXT_LIFETIME_CURRENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SADB_EXT_LIFETIME_CURRENT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	ldp	x9, x8, [x19, #48]
	stp	x9, x8, [x0, #16]
	ldr	d0, [x19, #40]
	stur	d0, [x0, #4]
	mov	x0, x22
	mov	w1, #24
	bl	_skb_put
	mov	x25, x0
	mov	w8, #6
	str	w8, [x0]
Lloh15:
	adrp	x8, _SADB_X_EXT_POLICY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SADB_X_EXT_POLICY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _IPSEC_POLICY_DISCARD@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IPSEC_POLICY_DISCARD@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
	ldr	x9, [x19]
Lloh21:
	adrp	x8, _XFRM_POLICY_ALLOW@GOTPAGE
Lloh22:
	ldr	x8, [x8, _XFRM_POLICY_ALLOW@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x8]
	ldr	w8, [x19, #8]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
Lloh24:
	adrp	x9, _IPSEC_POLICY_NONE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IPSEC_POLICY_NONE@GOTPAGEOFF]
Lloh26:
	adrp	x10, _IPSEC_POLICY_IPSEC@GOTPAGE
Lloh27:
	ldr	x10, [x10, _IPSEC_POLICY_IPSEC@GOTPAGEOFF]
	cmp	w8, #0
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	str	w9, [x25, #16]
LBB0_4:
	add	w9, w24, #1
	str	w9, [x25, #4]
	ldr	d0, [x19, #32]
	str	d0, [x25, #8]
	cmp	w8, #1
	str	x21, [sp]                       ; 8-byte Folded Spill
	str	w27, [sp, #12]                  ; 4-byte Folded Spill
	b.lt	LBB0_17
; %bb.5:
	mov	x27, #0
	mov	x28, #0
Lloh28:
	adrp	x20, _XFRM_MODE_TUNNEL@GOTPAGE
Lloh29:
	ldr	x20, [x20, _XFRM_MODE_TUNNEL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x19, #8]
	add	x27, x27, #40
	cmp	x28, x8
	b.ge	LBB0_17
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19, #24]
	ldr	x8, [x21, x27]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x21, x27
	ldr	w0, [x8, #8]
	bl	_pfkey_sockaddr_len
	mov	x23, x0
	lsl	w8, w0, #1
	add	w26, w8, #32
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	sub	w8, w8, w23, lsl #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w26, #32
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	x1, x26
	bl	_skb_put
	mov	x24, x0
	add	w8, w26, #7
	cmp	w26, #0
	csel	w8, w8, w26, lt
	ldr	w9, [x25]
	add	w8, w9, w8, asr #3
	str	w8, [x25]
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	str	w26, [x24]
	add	x26, x21, x27
	ldr	w8, [x26, #16]
	str	w8, [x24, #28]
	ldr	x0, [x26]
	bl	_pfkey_mode_from_xfrm
	tbnz	w0, #31, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	str	w0, [x24, #4]
Lloh30:
	adrp	x8, _IPSEC_LEVEL_REQUIRE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IPSEC_LEVEL_REQUIRE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x24, #24]
	ldr	x8, [x26, #24]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh33:
	adrp	x9, _IPSEC_LEVEL_UNIQUE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IPSEC_LEVEL_UNIQUE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	str	w9, [x24, #24]
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x21, x27
	ldr	x9, [x9, #32]
	cbz	x9, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh36:
	adrp	x9, _IPSEC_LEVEL_USE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IPSEC_LEVEL_USE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	str	w9, [x24, #24]
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x8, [x24, #16]
	ldr	x8, [x21, x27]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #32
	add	x21, x21, x27
	add	x0, x21, #20
	ldr	w3, [x21, #8]
	mov	w1, #0
	mov	x2, x24
	bl	_pfkey_sockaddr_fill
	add	x0, x21, #12
	add	x2, x24, w23, sxtw #2
	ldr	w3, [x21, #8]
	mov	w1, #0
	bl	_pfkey_sockaddr_fill
	b	LBB0_6
LBB0_17:
	ldr	x20, [x19, #16]
	cbz	x20, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_pfkey_xfrm_policy2sec_ctx_size
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	bl	_skb_put
	asr	w8, w23, #2
	str	w8, [x0]
Lloh39:
	adrp	x8, _SADB_X_EXT_SEC_CTX@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SADB_X_EXT_SEC_CTX@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	ldr	d0, [x20, #8]
	str	d0, [x0, #8]
	ldp	w2, w1, [x20]
	str	w2, [x0, #4]
	add	x0, x0, #20
	bl	_memcpy
LBB0_19:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	asr	w8, w8, #2
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	str	w8, [x20, #8]
	add	x0, x19, #12
	bl	_atomic_read
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20, #12]
	b	LBB0_21
LBB0_20:
Lloh42:
	adrp	x8, _EINVAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_SADB_EXT_ADDRESS_SRC,4,2       ; @SADB_EXT_ADDRESS_SRC
	.comm	_SADB_EXT_ADDRESS_DST,4,2       ; @SADB_EXT_ADDRESS_DST
	.comm	_SADB_EXT_LIFETIME_HARD,4,2     ; @SADB_EXT_LIFETIME_HARD
	.comm	_SADB_EXT_LIFETIME_SOFT,4,2     ; @SADB_EXT_LIFETIME_SOFT
	.comm	_SADB_EXT_LIFETIME_CURRENT,4,2  ; @SADB_EXT_LIFETIME_CURRENT
	.comm	_SADB_X_EXT_POLICY,4,2          ; @SADB_X_EXT_POLICY
	.comm	_IPSEC_POLICY_DISCARD,4,2       ; @IPSEC_POLICY_DISCARD
	.comm	_XFRM_POLICY_ALLOW,8,3          ; @XFRM_POLICY_ALLOW
	.comm	_IPSEC_POLICY_IPSEC,4,2         ; @IPSEC_POLICY_IPSEC
	.comm	_IPSEC_POLICY_NONE,4,2          ; @IPSEC_POLICY_NONE
	.comm	_XFRM_MODE_TUNNEL,8,3           ; @XFRM_MODE_TUNNEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPSEC_LEVEL_REQUIRE,4,2        ; @IPSEC_LEVEL_REQUIRE
	.comm	_IPSEC_LEVEL_UNIQUE,4,2         ; @IPSEC_LEVEL_UNIQUE
	.comm	_IPSEC_LEVEL_USE,4,2            ; @IPSEC_LEVEL_USE
	.comm	_SADB_X_EXT_SEC_CTX,4,2         ; @SADB_X_EXT_SEC_CTX
	.no_dead_strip	_pfkey_xfrm_policy2msg
.subsections_via_symbols
