	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_new_ae
_xfrm_new_ae:                           ## @xfrm_new_ae
	.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	%rdx, %r15
	movq	%rsi, %r14
	movl	(%rdi), %edi
	callq	_sock_net
	movq	%rax, %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_nlmsg_data
	movq	%rax, %r13
	movq	_XFRMA_REPLAY_VAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_XFRMA_LTIME_VAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r15,%rcx,8), %rcx
	orq	(%r15,%rax,8), %rcx
	je	LBB0_7
## %bb.1:
	movq	_NLM_F_REPLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.2:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_xfrm_mark_get
	movq	%r13, %rdx
	addq	$12, %rdx
	movl	8(%r13), %ecx
	movl	(%r13), %r9d
	movl	4(%r13), %r8d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_xfrm_state_lookup_with_mark
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	8(%rax), %rax
	movq	_XFRM_STATE_VALID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_xfrm_update_ae_params
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movl	12(%r14), %eax
	movl	%eax, -44(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -48(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -52(%rbp)
	movq	_XFRM_AE_CU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_km_state_notify
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r12, %rdi
	callq	_xfrm_state_put
	jmp	LBB0_7
LBB0_3:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_XFRMA_REPLAY_VAL,8,3           ## @XFRMA_REPLAY_VAL
	.comm	_XFRMA_LTIME_VAL,8,3            ## @XFRMA_LTIME_VAL
	.comm	_NLM_F_REPLACE,4,2              ## @NLM_F_REPLACE
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_XFRM_STATE_VALID,8,3           ## @XFRM_STATE_VALID
	.comm	_XFRM_AE_CU,4,2                 ## @XFRM_AE_CU
	.no_dead_strip	_xfrm_new_ae
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_new_ae
_xfrm_new_ae:                           ; @xfrm_new_ae
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x2
	mov	x19, x1
	ldr	w0, [x0]
	bl	_sock_net
	mov	x22, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_nlmsg_data
Lloh3:
	adrp	x8, _XFRMA_REPLAY_VAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XFRMA_REPLAY_VAL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
Lloh6:
	adrp	x9, _XFRMA_LTIME_VAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XFRMA_LTIME_VAL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x9, [x21, x9, lsl #3]
	orr	x8, x9, x8
	cbz	x8, LBB0_7
; %bb.1:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _NLM_F_REPLACE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NLM_F_REPLACE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.2:
	mov	x23, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	_xfrm_mark_get
	mov	x1, x0
	add	x2, x23, #12
	ldp	w4, w3, [x23, #4]
	ldr	w5, [x23]
	mov	x0, x22
	bl	_xfrm_state_lookup_with_mark
	cbz	x0, LBB0_6
; %bb.3:
	mov	x22, x0
	ldr	x8, [x0, #8]
Lloh12:
	adrp	x9, _XFRM_STATE_VALID@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XFRM_STATE_VALID@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_spin_lock_bh
	mov	x0, x22
	mov	x1, x21
	bl	_xfrm_update_ae_params
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	w8, [x19, #12]
	str	w8, [sp, #28]
	ldur	d0, [x19, #4]
	stur	d0, [sp, #20]
Lloh15:
	adrp	x8, _XFRM_AE_CU@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XFRM_AE_CU@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	add	x1, sp, #16
	mov	x0, x22
	bl	_km_state_notify
	mov	w20, #0
LBB0_5:
	mov	x0, x22
	bl	_xfrm_state_put
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _ESRCH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_XFRMA_REPLAY_VAL,8,3           ; @XFRMA_REPLAY_VAL
	.comm	_XFRMA_LTIME_VAL,8,3            ; @XFRMA_LTIME_VAL
	.comm	_NLM_F_REPLACE,4,2              ; @NLM_F_REPLACE
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_XFRM_STATE_VALID,8,3           ; @XFRM_STATE_VALID
	.comm	_XFRM_AE_CU,4,2                 ; @XFRM_AE_CU
	.no_dead_strip	_xfrm_new_ae
.subsections_via_symbols
