	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_add_sa
_xfrm_add_sa:                           ## @xfrm_add_sa
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_sock_net
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_nlmsg_data
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_NETLINK_CB
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_NETLINK_CB
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_NETLINK_CB
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_verify_newsa_info
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %r12
	leaq	-44(%rbp), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_xfrm_state_construct
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %r15
	shrq	$32, %rbx
	movq	%rax, %rdi
	callq	_xfrm_state_hold
	movq	(%r12), %rax
	movq	_XFRM_MSG_NEWSA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_xfrm_state_add
	jmp	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	callq	_xfrm_state_update
LBB0_5:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, -44(%rbp)
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movq	%r15, %rdi
	movl	%ebx, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_xfrm_audit_state_add
	cmpl	$0, -44(%rbp)
	js	LBB0_6
## %bb.7:
	movl	12(%r12), %eax
	movl	%eax, -76(%rbp)
	movl	8(%r12), %eax
	movl	%eax, -80(%rbp)
	movq	(%r12), %rax
	movq	%rax, -88(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	callq	_km_state_notify
	jmp	LBB0_8
LBB0_6:
	movq	_XFRM_STATE_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	___xfrm_state_put
LBB0_8:
	movq	%r15, %rdi
	callq	_xfrm_state_put
LBB0_9:
	movl	-44(%rbp), %eax
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_MSG_NEWSA,8,3             ## @XFRM_MSG_NEWSA
	.comm	_XFRM_STATE_DEAD,4,2            ## @XFRM_STATE_DEAD
	.no_dead_strip	_xfrm_add_sa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_add_sa
_xfrm_add_sa:                           ; @xfrm_add_sa
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x0]
	bl	_sock_net
	mov	x23, x0
	mov	x0, x19
	bl	_nlmsg_data
	mov	x24, x0
	mov	x0, x22
	bl	_NETLINK_CB
	mov	x20, x1
	mov	x0, x22
	bl	_NETLINK_CB
	mov	x25, x0
	mov	x0, x22
	bl	_NETLINK_CB
	mov	x22, x0
	mov	x0, x24
	mov	x1, x21
	bl	_verify_newsa_info
	str	w0, [sp, #28]
	cbnz	w0, LBB0_10
; %bb.1:
	add	x3, sp, #28
	mov	x0, x23
	mov	x1, x24
	mov	x2, x21
	bl	_xfrm_state_construct
	cbz	x0, LBB0_9
; %bb.2:
	mov	x21, x0
	lsr	x23, x25, #32
	bl	_xfrm_state_hold
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _XFRM_MSG_NEWSA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XFRM_MSG_NEWSA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	x0, x21
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	bl	_xfrm_state_add
	b	LBB0_5
LBB0_4:
	bl	_xfrm_state_update
LBB0_5:
	str	w0, [sp, #28]
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x21
	mov	x2, x20
	mov	x3, x23
	mov	x4, x22
	bl	_xfrm_audit_state_add
	ldr	w8, [sp, #28]
	tbnz	w8, #31, LBB0_7
; %bb.6:
	ldr	d0, [x19, #8]
	str	d0, [sp, #16]
	ldr	x8, [x19]
	str	x8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_km_state_notify
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _XFRM_STATE_DEAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XFRM_STATE_DEAD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x21
	bl	___xfrm_state_put
LBB0_8:
	mov	x0, x21
	bl	_xfrm_state_put
LBB0_9:
	ldr	w0, [sp, #28]
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_MSG_NEWSA,8,3             ; @XFRM_MSG_NEWSA
	.comm	_XFRM_STATE_DEAD,4,2            ; @XFRM_STATE_DEAD
	.no_dead_strip	_xfrm_add_sa
.subsections_via_symbols
