	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfkey_spdget
_pfkey_spdget:                          ## @pfkey_spdget
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rdi, %r13
	callq	_sock_net
	movq	%rax, %r15
	movl	$0, -44(%rbp)
	movq	_SADB_X_EXT_POLICY@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	-8(%rbx,%rax,8), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.3:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_xfrm_policy_id2dir
	movl	%eax, %r12d
	movq	_XFRM_POLICY_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jae	LBB0_1
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	_SADB_X_SPDDELETE2@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%r9d, %r9d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %rcx
	sete	%r9b
	movq	_DUMMY_MARK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XFRM_POLICY_TYPE_MAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %r8d
	leaq	-44(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movl	%r12d, %ecx
	callq	_xfrm_policy_byid
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	cmpq	%rbx, -80(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	cmpl	$0, -44(%rbp)
	sete	%bl
	movq	_current@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_audit_get_loginuid
	movl	%eax, %r13d
	movl	(%r14), %edi
	callq	_audit_get_sessionid
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_xfrm_audit_policy_delete
	cmpl	$0, -44(%rbp)
	jne	LBB0_10
## %bb.8:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	12(%rcx), %eax
	movl	%eax, -60(%rbp)
	movl	8(%rcx), %eax
	movl	%eax, -64(%rbp)
	movl	$1, -68(%rbp)
	movq	_XFRM_MSG_DELPOLICY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_km_policy_notify
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_9:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	callq	_key_pol_get_resp
	movl	%eax, -44(%rbp)
LBB0_10:
	movq	%r15, %rdi
	callq	_xfrm_pol_put
	movl	-44(%rbp), %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SADB_X_EXT_POLICY,4,2          ## @SADB_X_EXT_POLICY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_XFRM_POLICY_MAX,4,2            ## @XFRM_POLICY_MAX
	.comm	_SADB_X_SPDDELETE2,8,3          ## @SADB_X_SPDDELETE2
	.comm	_DUMMY_MARK,4,2                 ## @DUMMY_MARK
	.comm	_XFRM_POLICY_TYPE_MAIN,4,2      ## @XFRM_POLICY_TYPE_MAIN
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_current,4,2                    ## @current
	.comm	_XFRM_MSG_DELPOLICY,4,2         ## @XFRM_MSG_DELPOLICY
	.no_dead_strip	_pfkey_spdget
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfkey_spdget
_pfkey_spdget:                          ; @pfkey_spdget
	.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	x20, x3
	mov	x19, x2
	mov	x22, x0
	bl	_sock_net
	str	wzr, [sp, #28]
Lloh0:
	adrp	x8, _SADB_X_EXT_POLICY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SADB_X_EXT_POLICY@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x8, x20, x8, lsl #3
	ldur	x23, [x8, #-8]
	cbz	x23, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	w0, [x23]
	bl	_xfrm_policy_id2dir
Lloh3:
	adrp	x8, _XFRM_POLICY_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XFRM_POLICY_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hs	LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	x24, [x19]
Lloh6:
	adrp	x8, _SADB_X_SPDDELETE2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SADB_X_SPDDELETE2@GOTPAGEOFF]
Lloh8:
	ldr	x25, [x8]
	cmp	x24, x25
Lloh9:
	adrp	x8, _DUMMY_MARK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DUMMY_MARK@GOTPAGEOFF]
	cset	w5, eq
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _XFRM_POLICY_TYPE_MAIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XFRM_POLICY_TYPE_MAIN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	w4, [x23]
	add	x6, sp, #28
	mov	x0, x21
	mov	x3, x20
	bl	_xfrm_policy_byid
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	cmp	x24, x25
	b.ne	LBB0_10
; %bb.4:
	ldr	w8, [sp, #28]
	cmp	w8, #0
	cset	w22, eq
Lloh15:
	adrp	x24, _current@GOTPAGE
Lloh16:
	ldr	x24, [x24, _current@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_audit_get_loginuid
	mov	x23, x0
	ldr	w0, [x24]
	bl	_audit_get_sessionid
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	w4, #0
	bl	_xfrm_audit_policy_delete
	ldr	w8, [sp, #28]
	cbnz	w8, LBB0_11
; %bb.5:
	ldr	d0, [x19, #8]
	str	d0, [sp, #16]
	mov	w8, #1
Lloh17:
	adrp	x9, _XFRM_MSG_DELPOLICY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _XFRM_MSG_DELPOLICY@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_km_policy_notify
	b	LBB0_11
LBB0_6:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
LBB0_9:
Lloh22:
	adrp	x8, _ENOENT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_key_pol_get_resp
	str	w0, [sp, #28]
LBB0_11:
	mov	x0, x21
	bl	_xfrm_pol_put
	ldr	w0, [sp, #28]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SADB_X_EXT_POLICY,4,2          ; @SADB_X_EXT_POLICY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_XFRM_POLICY_MAX,4,2            ; @XFRM_POLICY_MAX
	.comm	_SADB_X_SPDDELETE2,8,3          ; @SADB_X_SPDDELETE2
	.comm	_DUMMY_MARK,4,2                 ; @DUMMY_MARK
	.comm	_XFRM_POLICY_TYPE_MAIN,4,2      ; @XFRM_POLICY_TYPE_MAIN
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_current,4,2                    ; @current
	.comm	_XFRM_MSG_DELPOLICY,4,2         ; @XFRM_MSG_DELPOLICY
	.no_dead_strip	_pfkey_spdget
.subsections_via_symbols
