	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_get_policy
_xfrm_get_policy:                       ## @xfrm_get_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	$88, %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, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	callq	_sock_net
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_XFRM_POLICY_TYPE_MAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-120(%rbp), %rsi
	movq	%r15, %rdi
	callq	_xfrm_mark_get
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_nlmsg_data
	movq	%rax, %r12
	movq	(%rbx), %rcx
	movq	_XFRM_MSG_DELPOLICY@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	cmpq	%r14, %rcx
	sete	%r13b
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_copy_from_user_policy_type
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	movl	(%r12), %edi
	callq	_verify_policy_dir
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_19
## %bb.2:
	xorl	%eax, %eax
	movb	%r13b, %al
	movq	%rax, %r13
	movq	8(%r12), %r8
	testq	%r8, %r8
	je	LBB0_7
## %bb.3:
	movl	-48(%rbp), %edx
	movq	%r12, %r15
	movl	(%r12), %ecx
	subq	$8, %rsp
	leaq	-44(%rbp), %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %r9d
	pushq	%rax
	callq	_xfrm_policy_byid
	addq	$16, %rsp
	movq	%rax, %r13
	testq	%r13, %r13
	je	LBB0_18
LBB0_4:
	cmpq	%r14, -112(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_11
## %bb.5:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_NETLINK_CB
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_NETLINK_CB
	movq	%rax, %r12
	shrq	$32, %r12
	movq	%r14, %rdi
	callq	_NETLINK_CB
	xorl	%esi, %esi
	cmpl	$0, -44(%rbp)
	sete	%sil
	movq	%r13, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_xfrm_audit_policy_delete
	cmpl	$0, -44(%rbp)
	jne	LBB0_15
## %bb.6:
	movq	8(%r15), %rax
	movq	%rax, -80(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -96(%rbp)
	movl	12(%rbx), %eax
	movl	%eax, -84(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -88(%rbp)
	movl	(%r15), %esi
	leaq	-96(%rbp), %rdx
	movq	%r13, %rdi
	callq	_km_policy_notify
	jmp	LBB0_15
LBB0_7:
	movq	_XFRMA_SEC_CTX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_verify_sec_ctx_len
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_19
## %bb.8:
	movq	$0, -96(%rbp)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.9:
	callq	_nla_data
	leaq	-96(%rbp), %rdi
	movq	%rax, %rsi
	callq	_security_xfrm_policy_alloc
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_19
## %bb.10:
	movq	-96(%rbp), %r9
	jmp	LBB0_17
LBB0_11:
	movl	(%r15), %edx
	movl	12(%rbx), %ecx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_xfrm_policy_netlink
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	jmp	LBB0_14
LBB0_13:
	movl	(%r12), %r15d
	movq	%r14, %rdi
	callq	_NETLINK_CB
	shrq	$32, %rdx
	movl	%r15d, %edi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_nlmsg_unicast
LBB0_14:
	movl	%eax, -44(%rbp)
LBB0_15:
	movq	%r13, %rdi
	callq	_xfrm_pol_put
	movl	-44(%rbp), %eax
	jmp	LBB0_19
LBB0_16:
	xorl	%r9d, %r9d
LBB0_17:
	movl	-48(%rbp), %edx
	movl	(%r12), %ecx
	movq	%r12, %r15
	movq	%r12, %r8
	addq	$16, %r8
	leaq	-44(%rbp), %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	pushq	%rax
	pushq	%r13
	callq	_xfrm_policy_bysel_ctx
	addq	$16, %rsp
	movq	%rax, %r13
	movq	-96(%rbp), %rdi
	callq	_security_xfrm_policy_free
	testq	%r13, %r13
	jne	LBB0_4
LBB0_18:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_POLICY_TYPE_MAIN,4,2      ## @XFRM_POLICY_TYPE_MAIN
	.comm	_XFRM_MSG_DELPOLICY,8,3         ## @XFRM_MSG_DELPOLICY
	.comm	_XFRMA_SEC_CTX,8,3              ## @XFRMA_SEC_CTX
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_xfrm_get_policy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_get_policy
_xfrm_get_policy:                       ; @xfrm_get_policy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x25, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_sock_net
	mov	x22, x0
Lloh0:
	adrp	x8, _XFRM_POLICY_TYPE_MAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFRM_POLICY_TYPE_MAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #44]
	add	x1, sp, #8
	mov	x0, x25
	bl	_xfrm_mark_get
	mov	x23, x0
	mov	x0, x19
	bl	_nlmsg_data
	mov	x21, x0
	ldr	x27, [x19]
Lloh3:
	adrp	x8, _XFRM_MSG_DELPOLICY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XFRM_MSG_DELPOLICY@GOTPAGEOFF]
Lloh5:
	ldr	x28, [x8]
	cmp	x27, x28
	cset	w24, eq
	add	x0, sp, #44
	mov	x1, x25
	bl	_copy_from_user_policy_type
	cbnz	w0, LBB0_19
; %bb.1:
	ldr	w0, [x21]
	bl	_verify_policy_dir
	str	w0, [sp, #40]
	cbnz	w0, LBB0_19
; %bb.2:
	ldr	x4, [x21, #8]
	cbz	x4, LBB0_7
; %bb.3:
	ldr	w2, [sp, #44]
	ldr	w3, [x21]
	add	x6, sp, #40
	mov	x0, x22
	mov	x1, x23
	mov	x5, x24
	bl	_xfrm_policy_byid
	mov	x23, x0
	cbz	x23, LBB0_18
LBB0_4:
	cmp	x27, x28
	b.ne	LBB0_11
; %bb.5:
	mov	x0, x20
	bl	_NETLINK_CB
	mov	x22, x1
	mov	x0, x20
	bl	_NETLINK_CB
	lsr	x24, x0, #32
	mov	x0, x20
	bl	_NETLINK_CB
	mov	x4, x0
	ldr	w8, [sp, #40]
	cmp	w8, #0
	cset	w1, eq
	mov	x0, x23
	mov	x2, x22
	mov	x3, x24
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_xfrm_audit_policy_delete
	ldr	w8, [sp, #40]
	cbnz	w8, LBB0_15
; %bb.6:
	ldr	x8, [x21, #8]
	str	x8, [sp, #32]
	ldr	x8, [x19]
	str	x8, [sp, #16]
	ldr	d0, [x19, #8]
	str	d0, [sp, #24]
	ldr	w1, [x21]
	add	x2, sp, #16
	mov	x0, x23
	bl	_km_policy_notify
	b	LBB0_15
LBB0_7:
Lloh6:
	adrp	x8, _XFRMA_SEC_CTX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XFRMA_SEC_CTX@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x26, [x25, x8, lsl #3]
	mov	x0, x25
	bl	_verify_sec_ctx_len
	str	w0, [sp, #40]
	cbnz	w0, LBB0_19
; %bb.8:
	str	xzr, [sp, #16]
	cbz	x26, LBB0_16
; %bb.9:
	mov	x0, x26
	bl	_nla_data
	mov	x1, x0
	add	x0, sp, #16
	bl	_security_xfrm_policy_alloc
	str	w0, [sp, #40]
	cbnz	w0, LBB0_19
; %bb.10:
	ldr	x5, [sp, #16]
	b	LBB0_17
LBB0_11:
	ldr	w2, [x21]
	ldr	w3, [x19, #12]
	mov	x0, x20
	mov	x1, x23
	bl	_xfrm_policy_netlink
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_PTR_ERR
	b	LBB0_14
LBB0_13:
	ldr	w21, [x22]
	mov	x0, x20
	bl	_NETLINK_CB
	lsr	x2, x1, #32
	mov	x0, x21
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_nlmsg_unicast
LBB0_14:
	str	w0, [sp, #40]
LBB0_15:
	mov	x0, x23
	bl	_xfrm_pol_put
	ldr	w0, [sp, #40]
	b	LBB0_19
LBB0_16:
	mov	x5, #0
LBB0_17:
	ldr	w2, [sp, #44]
	mov	x4, x21
	ldr	w3, [x4], #16
	add	x7, sp, #40
	mov	x0, x22
	mov	x1, x23
	mov	x6, x24
	bl	_xfrm_policy_bysel_ctx
	mov	x23, x0
	ldr	x0, [sp, #16]
	bl	_security_xfrm_policy_free
	cbnz	x23, LBB0_4
LBB0_18:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_POLICY_TYPE_MAIN,4,2      ; @XFRM_POLICY_TYPE_MAIN
	.comm	_XFRM_MSG_DELPOLICY,8,3         ; @XFRM_MSG_DELPOLICY
	.comm	_XFRMA_SEC_CTX,8,3              ; @XFRMA_SEC_CTX
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_xfrm_get_policy
.subsections_via_symbols
