	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfkey_xfrm_policy2msg_size
_pfkey_xfrm_policy2msg_size:            ## @pfkey_xfrm_policy2msg_size
	.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
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	callq	_pfkey_sockaddr_size
	movl	%eax, %r14d
	movl	(%r15), %r12d
	testl	%r12d, %r12d
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_pfkey_sockaddr_len
	addl	%eax, %r13d
	incq	%rbx
	movslq	(%r15), %r12
	cmpq	%r12, %rbx
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r13d, %r13d
LBB0_4:
	shll	$2, %r12d
	movq	%r15, %rdi
	callq	_pfkey_xfrm_policy2sec_ctx_size
                                        ## kill: def $eax killed $eax def $rax
	addl	%r14d, %r13d
	leal	(%r12,%r13,2), %ecx
	addl	%ecx, %eax
	addl	$28, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pfkey_xfrm_policy2msg_size
.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_size
_pfkey_xfrm_policy2msg_size:            ; @pfkey_xfrm_policy2msg_size
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_pfkey_sockaddr_size
	mov	x20, x0
	ldr	w22, [x19]
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x23, lsl #2]
	bl	_pfkey_sockaddr_len
	add	w21, w21, w0
	add	x23, x23, #1
	ldrsw	x22, [x19]
	cmp	x23, x22
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x19
	bl	_pfkey_xfrm_policy2sec_ctx_size
	add	w8, w21, w20
	lsl	w8, w8, #1
	add	w8, w8, w22, lsl #2
	add	w8, w8, w0
	add	w0, w8, #28
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pfkey_xfrm_policy2msg_size
.subsections_via_symbols
