	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_compile_policy
_xfrm_compile_policy:                   ## @xfrm_compile_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_sock_net
	cmpl	$129, (%r14)
	jne	LBB0_5
## %bb.1:
	movq	_IP_XFRM_POLICY@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_6
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	movl	%ecx, (%r15)
	cmpl	$8, %r13d
	jb	LBB0_9
## %bb.3:
	movq	%rax, %rbx
	movq	%r12, %r14
	movq	%r12, %rdi
	callq	_verify_newpolicy_info
	testq	%rax, %rax
	jne	LBB0_4
## %bb.10:
	leaq	8(%r14), %r12
	movslq	%r13d, %rax
	movabsq	$17179869176, %r13              ## imm = 0x3FFFFFFF8
	addq	%rax, %r13
	shrq	$2, %r13
	movl	4(%r14), %edx
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_validate_tmpl
	testq	%rax, %rax
	jne	LBB0_4
## %bb.12:
	movl	(%r14), %eax
	movq	_XFRM_POLICY_OUT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_14
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	movl	%eax, (%r15)
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_xfrm_policy_alloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_copy_from_user_policy
	movq	_XFRM_POLICY_TYPE_MAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_copy_templates
	movl	(%r14), %eax
	jmp	LBB0_8
LBB0_16:
	movq	_ENOBUFS@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_IP_XFRM_POLICY,4,2             ## @IP_XFRM_POLICY
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_XFRM_POLICY_OUT,4,2            ## @XFRM_POLICY_OUT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_XFRM_POLICY_TYPE_MAIN,4,2      ## @XFRM_POLICY_TYPE_MAIN
	.comm	_IPV6_XFRM_POLICY,4,2           ## @IPV6_XFRM_POLICY
	.no_dead_strip	_xfrm_compile_policy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_compile_policy
_xfrm_compile_policy:                   ; @xfrm_compile_policy
	.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, x4
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x24, x0
	bl	_sock_net
	ldr	w8, [x24]
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _IP_XFRM_POLICY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IP_XFRM_POLICY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
	cmp	w23, #8
	b.lo	LBB0_6
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	bl	_verify_newpolicy_info
	cbnz	x0, LBB0_6
; %bb.4:
	add	x22, x20, #8
	sxtw	x8, w23
	mov	x9, #17179869176
	add	x8, x8, x9
	lsr	x23, x8, #2
	ldr	w2, [x20, #4]
	mov	x0, x23
	mov	x1, x22
	bl	_validate_tmpl
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _XFRM_POLICY_OUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XFRM_POLICY_OUT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_12
LBB0_6:
	mov	x21, #0
	b	LBB0_11
LBB0_7:
	mov	x21, #0
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	x21, #0
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_10:
	str	w8, [x19]
LBB0_11:
	mov	x0, x21
	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
LBB0_12:
Lloh13:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_xfrm_policy_alloc
	mov	x21, x0
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x21
	mov	x1, x20
	bl	_copy_from_user_policy
Lloh16:
	adrp	x8, _XFRM_POLICY_TYPE_MAIN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XFRM_POLICY_TYPE_MAIN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_copy_templates
	ldr	w8, [x20]
	b	LBB0_10
LBB0_14:
Lloh19:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IP_XFRM_POLICY,4,2             ; @IP_XFRM_POLICY
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_XFRM_POLICY_OUT,4,2            ; @XFRM_POLICY_OUT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_XFRM_POLICY_TYPE_MAIN,4,2      ; @XFRM_POLICY_TYPE_MAIN
	.comm	_IPV6_XFRM_POLICY,4,2           ; @IPV6_XFRM_POLICY
	.no_dead_strip	_xfrm_compile_policy
.subsections_via_symbols
