	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clone_policy
_clone_policy:                          ## @clone_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_xp_net
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_xfrm_policy_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movl	40(%r15), %eax
	movl	%eax, 40(%rbx)
	movl	36(%r15), %edi
	movq	%rbx, %rsi
	addq	$36, %rsi
	callq	_security_xfrm_policy_clone
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	movl	32(%r15), %eax
	movl	%eax, 32(%rbx)
	movl	28(%r15), %eax
	movl	%eax, 28(%rbx)
	movl	24(%r15), %eax
	movl	%eax, 24(%rbx)
	movl	(%r15), %edx
	movl	%edx, (%rbx)
	movups	8(%r15), %xmm0
	movups	%xmm0, 8(%rbx)
	movl	4(%rbx), %edi
	movl	4(%r15), %esi
	shll	$2, %edx
	callq	_memcpy
	movq	_xfrm_policy_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_write_lock_bh
	movq	_XFRM_POLICY_MAX@GOTPCREL(%rip), %rax
	movslq	%r14d, %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	___xfrm_policy_link
	movq	%r15, %rdi
	callq	_write_unlock_bh
	movq	%rbx, %rdi
	callq	_xfrm_pol_put
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_xfrm_policy_lock,4,2           ## @xfrm_policy_lock
	.comm	_XFRM_POLICY_MAX,8,3            ## @XFRM_POLICY_MAX
	.no_dead_strip	_clone_policy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clone_policy
_clone_policy:                          ; @clone_policy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_xp_net
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_xfrm_policy_alloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldp	w0, w8, [x21, #36]
	str	w8, [x19, #40]
	add	x1, x19, #36
	bl	_security_xfrm_policy_clone
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
	b	LBB0_4
LBB0_3:
	ldr	w8, [x21, #32]
	str	w8, [x19, #32]
	ldr	d0, [x21, #24]
	str	d0, [x19, #24]
	ldr	w8, [x21]
	str	w8, [x19]
	ldur	q0, [x21, #8]
	stur	q0, [x19, #8]
	ldr	w0, [x19, #4]
	ldr	w1, [x21, #4]
	lsl	w2, w8, #2
	bl	_memcpy
Lloh3:
	adrp	x21, _xfrm_policy_lock@GOTPAGE
Lloh4:
	ldr	x21, [x21, _xfrm_policy_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_write_lock_bh
Lloh5:
	adrp	x8, _XFRM_POLICY_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XFRM_POLICY_MAX@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x1, x8, w20, sxtw
	mov	x0, x19
	bl	___xfrm_policy_link
	mov	x0, x21
	bl	_write_unlock_bh
	mov	x0, x19
	bl	_xfrm_pol_put
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_xfrm_policy_lock,4,2           ; @xfrm_policy_lock
	.comm	_XFRM_POLICY_MAX,8,3            ; @XFRM_POLICY_MAX
	.no_dead_strip	_clone_policy
.subsections_via_symbols
