	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfkey_delete
_pfkey_delete:                          ## @pfkey_delete
	.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	$24, %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, %r15
	callq	_sock_net
	movq	%rax, %r14
	movq	_SADB_EXT_SA@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	$0, -8(%rbx,%rax,8)
	je	LBB0_2
## %bb.1:
	movq	_SADB_EXT_ADDRESS_SRC@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	-8(%rbx,%rax,8), %rdi
	movq	_SADB_EXT_ADDRESS_DST@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	-8(%rbx,%rax,8), %rsi
	callq	_present_and_same_family
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_pfkey_xfrm_state_lookup
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_security_xfrm_state_delete
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movq	%r14, %rdi
	callq	_xfrm_state_kern
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_5:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movq	%r14, %rdi
	callq	_xfrm_state_delete
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	movl	4(%r15), %eax
	movl	%eax, -48(%rbp)
	movl	(%r15), %eax
	movl	%eax, -52(%rbp)
	movq	_XFRM_MSG_DELSA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_km_state_notify
LBB0_11:
	xorl	%r15d, %r15d
	testl	%ebx, %ebx
	sete	%r15b
	movq	_current@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_audit_get_loginuid
	movl	%eax, %r12d
	movl	(%r13), %edi
	callq	_audit_get_sessionid
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_xfrm_audit_state_delete
	movq	%r14, %rdi
	callq	_xfrm_state_put
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SADB_EXT_SA,4,2                ## @SADB_EXT_SA
	.comm	_SADB_EXT_ADDRESS_SRC,4,2       ## @SADB_EXT_ADDRESS_SRC
	.comm	_SADB_EXT_ADDRESS_DST,4,2       ## @SADB_EXT_ADDRESS_DST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_XFRM_MSG_DELSA,4,2             ## @XFRM_MSG_DELSA
	.comm	_current,4,2                    ## @current
	.no_dead_strip	_pfkey_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfkey_delete
_pfkey_delete:                          ; @pfkey_delete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x20, x2
	bl	_sock_net
Lloh0:
	adrp	x8, _SADB_EXT_SA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SADB_EXT_SA@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x8, x19, x8, lsl #3
	ldur	x8, [x8, #-8]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _SADB_EXT_ADDRESS_SRC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SADB_EXT_ADDRESS_SRC@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	add	x8, x19, x8, lsl #3
	ldur	x0, [x8, #-8]
Lloh6:
	adrp	x8, _SADB_EXT_ADDRESS_DST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SADB_EXT_ADDRESS_DST@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	add	x8, x19, x8, lsl #3
	ldur	x1, [x8, #-8]
	bl	_present_and_same_family
	cbz	w0, LBB0_6
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_pfkey_xfrm_state_lookup
	cbz	x0, LBB0_8
; %bb.3:
	mov	x19, x0
	bl	_security_xfrm_state_delete
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.4:
	mov	x0, x19
	bl	_xfrm_state_kern
	cbz	x0, LBB0_9
; %bb.5:
Lloh9:
	adrp	x8, _EPERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_8:
Lloh14:
	adrp	x8, _ESRCH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
	b	LBB0_7
LBB0_9:
	mov	x0, x19
	bl	_xfrm_state_delete
	mov	x21, x0
	tbnz	w0, #31, LBB0_11
; %bb.10:
	ldr	d0, [x20]
	stur	d0, [sp, #4]
Lloh16:
	adrp	x8, _XFRM_MSG_DELSA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XFRM_MSG_DELSA@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_km_state_notify
LBB0_11:
	cmp	w21, #0
	cset	w20, eq
Lloh19:
	adrp	x23, _current@GOTPAGE
Lloh20:
	ldr	x23, [x23, _current@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_audit_get_loginuid
	mov	x22, x0
	ldr	w0, [x23]
	bl	_audit_get_sessionid
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	w4, #0
	bl	_xfrm_audit_state_delete
	mov	x0, x19
	bl	_xfrm_state_put
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SADB_EXT_SA,4,2                ; @SADB_EXT_SA
	.comm	_SADB_EXT_ADDRESS_SRC,4,2       ; @SADB_EXT_ADDRESS_SRC
	.comm	_SADB_EXT_ADDRESS_DST,4,2       ; @SADB_EXT_ADDRESS_DST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_XFRM_MSG_DELSA,4,2             ; @XFRM_MSG_DELSA
	.comm	_current,4,2                    ; @current
	.no_dead_strip	_pfkey_delete
.subsections_via_symbols
