	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xfrm_state_add                 ## -- Begin function xfrm_state_add
	.p2align	4, 0x90
_xfrm_state_add:                        ## @xfrm_state_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_xs_net
	movl	36(%rbx), %r14d
	andl	32(%rbx), %r14d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rdi
	movq	_IPSEC_PROTO_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xfrm_id_proto_match
	movl	%eax, %r15d
	movl	(%rbx), %r12d
	movq	_xfrm_state_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	___xfrm_state_locate
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r13
	movq	_EEXIST@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_xfrm_state_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_16
LBB0_2:
	movl	%r12d, %r13d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.4:
	movq	40(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.8:
	movq	%r12, %r15
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	___xfrm_find_acq_byseq
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r14
	movq	16(%rax), %rax
	cmpq	16(%rbx), %rax
	jne	LBB0_6
## %bb.11:
	movq	%r14, %rdi
	addq	$24, %rdi
	leaq	24(%rbx), %rsi
	movl	%r13d, %r12d
	movl	%r13d, %edx
	callq	_xfrm_addr_cmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.12:
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_3:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_5:
	xorl	%r14d, %r14d
	movq	%r12, %r15
	jmp	LBB0_6
LBB0_9:
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r13d, %r12d
LBB0_7:
	leaq	32(%rbx), %rsi
	movl	8(%rbx), %r8d
	movl	12(%rbx), %ecx
	movq	16(%rbx), %r9
	leaq	24(%rbx), %r10
	leaq	4(%rbx), %rax
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%r12d, %edx
	pushq	$0
	pushq	%rax
	pushq	%r10
	callq	___find_acq_core
	addq	$32, %rsp
	movq	%r14, %r13
	movq	%rax, %r14
LBB0_13:
	movq	%rbx, %rdi
	callq	___xfrm_state_bump_genids
	movq	%rbx, %rdi
	callq	___xfrm_state_insert
	movq	_xfrm_state_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	testq	%r14, %r14
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_xfrm_state_delete
	movq	%r14, %rdi
	callq	_xfrm_state_put
LBB0_15:
	xorl	%ebx, %ebx
	testq	%r13, %r13
	je	LBB0_17
LBB0_16:
	movq	%r13, %rdi
	callq	_xfrm_state_put
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPSEC_PROTO_ANY,4,2            ## @IPSEC_PROTO_ANY
	.comm	_xfrm_state_lock,4,2            ## @xfrm_state_lock
	.comm	_EEXIST,4,2                     ## @EEXIST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xfrm_state_add                 ; -- Begin function xfrm_state_add
	.p2align	2
_xfrm_state_add:                        ; @xfrm_state_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, x0
	bl	_xs_net
	mov	x20, x0
	mov	x21, x19
	ldr	w25, [x21, #32]!
	ldr	w26, [x19, #36]
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x8, _IPSEC_PROTO_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPSEC_PROTO_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_xfrm_id_proto_match
	mov	x22, x0
	ldr	w23, [x19]
Lloh3:
	adrp	x0, _xfrm_state_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _xfrm_state_lock@GOTPAGEOFF]
	bl	_spin_lock_bh
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	___xfrm_state_locate
	cbz	x0, LBB0_2
; %bb.1:
	mov	x24, x0
Lloh5:
	adrp	x8, _EEXIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w19, w8
Lloh8:
	adrp	x0, _xfrm_state_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _xfrm_state_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
	b	LBB0_14
LBB0_2:
	cbz	w22, LBB0_8
; %bb.3:
	ldr	x2, [x19, #40]
	cbz	x2, LBB0_9
; %bb.4:
	and	w1, w26, w25
	mov	x0, x20
	bl	___xfrm_find_acq_byseq
	mov	x22, x0
	cbz	x0, LBB0_10
; %bb.5:
	ldr	x8, [x22, #16]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	add	x0, x22, #24
	add	x1, x19, #24
	mov	x2, x23
	bl	_xfrm_addr_cmp
	cbnz	x0, LBB0_10
; %bb.7:
	mov	x24, #0
	b	LBB0_11
LBB0_8:
	mov	x24, #0
	mov	x22, #0
	b	LBB0_11
LBB0_9:
	mov	x22, #0
LBB0_10:
	ldp	w4, w3, [x19, #8]
	add	x6, x19, #24
	add	x7, x19, #4
	ldr	x5, [x19, #16]
	str	wzr, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	___find_acq_core
	mov	x24, x22
	mov	x22, x0
LBB0_11:
	mov	x0, x19
	bl	___xfrm_state_bump_genids
	mov	x0, x19
	bl	___xfrm_state_insert
Lloh10:
	adrp	x0, _xfrm_state_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _xfrm_state_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
	cbz	x22, LBB0_13
; %bb.12:
	mov	x0, x22
	bl	_xfrm_state_delete
	mov	x0, x22
	bl	_xfrm_state_put
LBB0_13:
	mov	w19, #0
	mov	w0, #0
	cbz	x24, LBB0_15
LBB0_14:
	mov	x0, x24
	bl	_xfrm_state_put
	mov	x0, x19
LBB0_15:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IPSEC_PROTO_ANY,4,2            ; @IPSEC_PROTO_ANY
	.comm	_xfrm_state_lock,4,2            ; @xfrm_state_lock
	.comm	_EEXIST,4,2                     ; @EEXIST
.subsections_via_symbols
