	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xfrm_state_update              ## -- Begin function xfrm_state_update
	.p2align	4, 0x90
_xfrm_state_update:                     ## @xfrm_state_update
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	68(%rdi), %edi
	movq	_IPSEC_PROTO_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xfrm_id_proto_match
	movl	%eax, %r15d
	movq	_xfrm_state_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	movl	64(%r12), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	___xfrm_state_locate
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_xfrm_state_kern
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_xfrm_state_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	movq	%r14, %rdi
	callq	_xfrm_state_put
	testl	%ebx, %ebx
	jne	LBB0_23
	jmp	LBB0_8
LBB0_1:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	movq	24(%r14), %rax
	movq	_XFRM_STATE_ACQ@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	___xfrm_state_insert
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
LBB0_5:
	movq	_xfrm_state_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	testl	%ebx, %ebx
	jne	LBB0_23
LBB0_8:
	testq	%r12, %r12
	je	LBB0_9
## %bb.10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	24(%r14), %rax
	movq	_XFRM_STATE_VALID@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_22
## %bb.11:
	movq	56(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.12:
	movq	56(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	movl	$4, %edx
	callq	_memcpy
LBB0_14:
	movq	48(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.15:
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	movl	$4, %edx
	callq	_memcpy
LBB0_17:
	testl	%r15d, %r15d
	jne	LBB0_20
## %bb.18:
	leaq	44(%r14), %rbx
	leaq	44(%r12), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_20:
	leaq	40(%r14), %rdi
	addq	$40, %r12
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	$0, 32(%r14)
	movq	%r14, %rdi
	addq	$16, %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	callq	_mod_timer
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r14)
	je	LBB0_22
## %bb.21:
	movq	%r14, %rdi
	callq	_xfrm_state_check_expire
LBB0_22:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	%r14, %rdi
	callq	_xfrm_state_put
	jmp	LBB0_23
LBB0_9:
	movq	%r14, %rdi
	callq	_xfrm_state_delete
	movq	%r14, %rdi
	callq	_xfrm_state_put
	xorl	%ebx, %ebx
LBB0_23:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	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	_ESRCH,4,2                      ## @ESRCH
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_XFRM_STATE_ACQ,8,3             ## @XFRM_STATE_ACQ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_XFRM_STATE_VALID,8,3           ## @XFRM_STATE_VALID
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xfrm_state_update              ; -- Begin function xfrm_state_update
	.p2align	2
_xfrm_state_update:                     ; @xfrm_state_update
	.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	x20, x0
	ldr	w0, [x0, #68]
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	x21, x0
Lloh3:
	adrp	x0, _xfrm_state_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _xfrm_state_lock@GOTPAGEOFF]
	bl	_spin_lock_bh
	ldr	w2, [x20, #64]
	mov	x0, x20
	mov	x1, x21
	bl	___xfrm_state_locate
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_xfrm_state_kern
	cbz	x0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _EEXIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
Lloh8:
	adrp	x0, _xfrm_state_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _xfrm_state_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_xfrm_state_put
	cbnz	w22, LBB0_25
	b	LBB0_8
LBB0_3:
Lloh10:
	adrp	x8, _ESRCH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_4:
	ldr	x8, [x19, #24]
Lloh13:
	adrp	x9, _XFRM_STATE_ACQ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _XFRM_STATE_ACQ@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	___xfrm_state_insert
	mov	x20, #0
LBB0_6:
	mov	w22, #0
LBB0_7:
Lloh16:
	adrp	x0, _xfrm_state_lock@GOTPAGE
Lloh17:
	ldr	x0, [x0, _xfrm_state_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
	cbnz	w22, LBB0_25
LBB0_8:
	cbz	x20, LBB0_22
; %bb.9:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [x19, #24]
Lloh21:
	adrp	x9, _XFRM_STATE_VALID@GOTPAGE
Lloh22:
	ldr	x9, [x9, _XFRM_STATE_VALID@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_23
; %bb.10:
	ldr	x1, [x20, #56]
	cbz	x1, LBB0_13
; %bb.11:
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_13
; %bb.12:
	mov	w2, #4
	bl	_memcpy
LBB0_13:
	ldr	x1, [x20, #48]
	cbz	x1, LBB0_16
; %bb.14:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_16
; %bb.15:
	mov	w2, #4
	bl	_memcpy
LBB0_16:
	cbnz	w21, LBB0_19
; %bb.17:
	add	x21, x19, #44
	add	x22, x20, #44
	mov	x0, x21
	mov	x1, x22
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x21
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
LBB0_19:
	add	x0, x19, #40
	add	x1, x20, #40
	mov	w2, #4
	bl	_memcpy
	str	xzr, [x19, #32]
Lloh24:
	adrp	x8, _jiffies@GOTPAGE
Lloh25:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	add	x0, x19, #16
Lloh26:
	ldr	x8, [x8]
Lloh27:
	adrp	x9, _HZ@GOTPAGE
Lloh28:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_mod_timer
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_xfrm_state_check_expire
LBB0_21:
	mov	w22, #0
	b	LBB0_24
LBB0_22:
	mov	x0, x19
	bl	_xfrm_state_delete
	mov	x0, x19
	bl	_xfrm_state_put
	mov	w22, #0
	b	LBB0_25
LBB0_23:
	neg	w22, w22
LBB0_24:
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_xfrm_state_put
LBB0_25:
	mov	x0, x22
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IPSEC_PROTO_ANY,4,2            ; @IPSEC_PROTO_ANY
	.comm	_xfrm_state_lock,4,2            ; @xfrm_state_lock
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_XFRM_STATE_ACQ,8,3             ; @XFRM_STATE_ACQ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_XFRM_STATE_VALID,8,3           ; @XFRM_STATE_VALID
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
.subsections_via_symbols
