	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfkey_add
_pfkey_add:                             ## @pfkey_add
	.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, %r14
	callq	_sock_net
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_pfkey_msg2xfrm_state
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	callq	_xfrm_state_hold
	movq	(%r14), %rax
	movq	_SADB_ADD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_xfrm_state_add
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_xfrm_state_update
LBB0_4:
	movl	%eax, %r15d
	xorl	%r12d, %r12d
	testl	%eax, %eax
	sete	%r12b
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_audit_get_loginuid
	movl	%eax, %r13d
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_audit_get_sessionid
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_xfrm_audit_state_add
	testl	%r15d, %r15d
	js	LBB0_5
## %bb.6:
	movq	(%r14), %rax
	movq	_SADB_ADD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	movq	_XFRM_MSG_NEWSA@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_XFRM_STATE_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	___xfrm_state_put
	jmp	LBB0_10
LBB0_7:
	movq	_XFRM_MSG_UPDSA@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	12(%r14), %eax
	movl	%eax, -52(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_km_state_notify
LBB0_10:
	movq	%rbx, %rdi
	callq	_xfrm_state_put
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SADB_ADD,8,3                   ## @SADB_ADD
	.comm	_current,4,2                    ## @current
	.comm	_XFRM_STATE_DEAD,4,2            ## @XFRM_STATE_DEAD
	.comm	_XFRM_MSG_NEWSA,4,2             ## @XFRM_MSG_NEWSA
	.comm	_XFRM_MSG_UPDSA,4,2             ## @XFRM_MSG_UPDSA
	.no_dead_strip	_pfkey_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfkey_add
_pfkey_add:                             ; @pfkey_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x3
	mov	x20, x2
	bl	_sock_net
	mov	x1, x20
	mov	x2, x19
	bl	_pfkey_msg2xfrm_state
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_2:
	mov	x0, x19
	bl	_xfrm_state_hold
	ldr	x8, [x20]
Lloh0:
	adrp	x24, _SADB_ADD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SADB_ADD@GOTPAGEOFF]
	ldr	x9, [x24]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	bl	_xfrm_state_add
	b	LBB0_5
LBB0_4:
	bl	_xfrm_state_update
LBB0_5:
	mov	x21, x0
	cmp	w0, #0
	cset	w22, eq
Lloh2:
	adrp	x25, _current@GOTPAGE
Lloh3:
	ldr	x25, [x25, _current@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_audit_get_loginuid
	mov	x23, x0
	ldr	w0, [x25]
	bl	_audit_get_sessionid
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	w4, #0
	bl	_xfrm_audit_state_add
	tbnz	w21, #31, LBB0_7
; %bb.6:
	ldr	x8, [x20]
	ldr	x9, [x24]
Lloh4:
	adrp	x10, _XFRM_MSG_NEWSA@GOTPAGE
Lloh5:
	ldr	x10, [x10, _XFRM_MSG_NEWSA@GOTPAGEOFF]
Lloh6:
	adrp	x11, _XFRM_MSG_UPDSA@GOTPAGE
Lloh7:
	ldr	x11, [x11, _XFRM_MSG_UPDSA@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	d0, [x20, #8]
	str	d0, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_km_state_notify
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _XFRM_STATE_DEAD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XFRM_STATE_DEAD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	___xfrm_state_put
LBB0_8:
	mov	x0, x19
	bl	_xfrm_state_put
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SADB_ADD,8,3                   ; @SADB_ADD
	.comm	_current,4,2                    ; @current
	.comm	_XFRM_STATE_DEAD,4,2            ; @XFRM_STATE_DEAD
	.comm	_XFRM_MSG_NEWSA,4,2             ; @XFRM_MSG_NEWSA
	.comm	_XFRM_MSG_UPDSA,4,2             ; @XFRM_MSG_UPDSA
	.no_dead_strip	_pfkey_add
.subsections_via_symbols
