	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_add_policy
_xfrm_add_policy:                       ## @xfrm_add_policy
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_sock_net
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_nlmsg_data
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_NETLINK_CB
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_NETLINK_CB
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_NETLINK_CB
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_verify_newpolicy_info
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_verify_sec_ctx_len
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_xfrm_policy_construct
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %r13
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	shrq	$32, %r15
	movq	(%r14), %rax
	movq	_XFRM_MSG_NEWPOLICY@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_xfrm_policy_insert
	movl	%eax, -44(%rbp)
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movq	%r13, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_xfrm_audit_policy_add
	cmpl	$0, -44(%rbp)
	je	LBB0_7
## %bb.5:
	movl	(%r13), %edi
	callq	_security_xfrm_policy_free
	movq	%r13, %rdi
	callq	_kfree
LBB0_6:
	movl	-44(%rbp), %eax
	jmp	LBB0_2
LBB0_7:
	movq	(%r14), %rax
	movq	%rax, -72(%rbp)
	movl	12(%r14), %eax
	movl	%eax, -60(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -64(%rbp)
	movl	(%rbx), %esi
	leaq	-72(%rbp), %rdx
	movq	%r13, %rdi
	callq	_km_policy_notify
	movq	%r13, %rdi
	callq	_xfrm_pol_put
	xorl	%eax, %eax
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_MSG_NEWPOLICY,8,3         ## @XFRM_MSG_NEWPOLICY
	.no_dead_strip	_xfrm_add_policy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_add_policy
_xfrm_add_policy:                       ; @xfrm_add_policy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x23, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x0]
	bl	_sock_net
	mov	x24, x0
	mov	x0, x19
	bl	_nlmsg_data
	mov	x20, x0
	mov	x0, x22
	bl	_NETLINK_CB
	mov	x21, x1
	mov	x0, x22
	bl	_NETLINK_CB
	mov	x25, x0
	mov	x0, x22
	bl	_NETLINK_CB
	mov	x22, x0
	mov	x0, x20
	bl	_verify_newpolicy_info
	cbnz	w0, LBB0_7
; %bb.1:
	mov	x0, x23
	bl	_verify_sec_ctx_len
	str	w0, [sp, #12]
	cbnz	w0, LBB0_7
; %bb.2:
	add	x3, sp, #12
	mov	x0, x24
	mov	x1, x20
	mov	x2, x23
	bl	_xfrm_policy_construct
	cbz	x0, LBB0_5
; %bb.3:
	mov	x23, x0
	lsr	x24, x25, #32
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _XFRM_MSG_NEWPOLICY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XFRM_MSG_NEWPOLICY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w2, eq
	ldr	w0, [x20]
	mov	x1, x23
	bl	_xfrm_policy_insert
	str	w0, [sp, #12]
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x23
	mov	x2, x21
	mov	x3, x24
	mov	x4, x22
	bl	_xfrm_audit_policy_add
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w0, [x23]
	bl	_security_xfrm_policy_free
	mov	x0, x23
	bl	_kfree
LBB0_5:
	ldr	w0, [sp, #12]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19]
	str	x8, [sp, #16]
	ldr	d0, [x19, #8]
	str	d0, [sp, #24]
	ldr	w1, [x20]
	add	x2, sp, #16
	mov	x0, x23
	bl	_km_policy_notify
	mov	x0, x23
	bl	_xfrm_pol_put
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_MSG_NEWPOLICY,8,3         ; @XFRM_MSG_NEWPOLICY
	.no_dead_strip	_xfrm_add_policy
.subsections_via_symbols
