	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_notify_policy
_key_notify_policy:                     ## @key_notify_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	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_pfkey_xfrm_policy2msg_prep
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_PTR_ERR
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_pfkey_xfrm_policy2msg
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	(%r12), %rbx
	movq	_PF_KEY_V2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	cmpq	$0, 16(%r15)
	movq	(%r15), %rdi
	je	LBB0_7
## %bb.5:
	movq	_XFRM_MSG_DELPOLICY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_7
## %bb.6:
	movq	_SADB_X_SPDDELETE2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_7:
	callq	_event2poltype
LBB0_8:
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movl	12(%r15), %eax
	movl	%eax, 4(%rbx)
	movl	8(%r15), %eax
	movl	%eax, (%rbx)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_BROADCAST_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_xp_net
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_pfkey_broadcast
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_KEY_V2,4,2                  ## @PF_KEY_V2
	.comm	_XFRM_MSG_DELPOLICY,8,3         ## @XFRM_MSG_DELPOLICY
	.comm	_SADB_X_SPDDELETE2,4,2          ## @SADB_X_SPDDELETE2
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_BROADCAST_ALL,4,2              ## @BROADCAST_ALL
	.no_dead_strip	_key_notify_policy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_notify_policy
_key_notify_policy:                     ; @key_notify_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	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_pfkey_xfrm_policy2msg_prep
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_PTR_ERR
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_pfkey_xfrm_policy2msg
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	x22, [x19]
Lloh0:
	adrp	x8, _PF_KEY_V2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_KEY_V2@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #20]
	ldr	x8, [x21, #16]
	ldr	x0, [x21]
	cbz	x8, LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _XFRM_MSG_DELPOLICY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XFRM_MSG_DELPOLICY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _SADB_X_SPDDELETE2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SADB_X_SPDDELETE2@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
	bl	_event2poltype
LBB0_7:
	str	w0, [x22, #16]
	str	xzr, [x22, #8]
	ldr	d0, [x21, #8]
	str	d0, [x22]
Lloh9:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
Lloh12:
	adrp	x8, _BROADCAST_ALL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BROADCAST_ALL@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_xp_net
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, #0
	bl	_pfkey_broadcast
LBB0_8:
	mov	w0, #0
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_KEY_V2,4,2                  ; @PF_KEY_V2
	.comm	_XFRM_MSG_DELPOLICY,8,3         ; @XFRM_MSG_DELPOLICY
	.comm	_SADB_X_SPDDELETE2,4,2          ; @SADB_X_SPDDELETE2
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_BROADCAST_ALL,4,2              ; @BROADCAST_ALL
	.no_dead_strip	_key_notify_policy
.subsections_via_symbols
