	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_user_state_lookup
_xfrm_user_state_lookup:                ## @xfrm_user_state_lookup
	.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, %r14
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-56(%rbp), %rsi
	movq	%rdx, %rdi
	callq	_xfrm_mark_get
	movl	%eax, %r12d
	movl	4(%rbx), %edi
	movq	_IPSEC_PROTO_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xfrm_id_proto_match
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	8(%rbx), %rdx
	movl	12(%rbx), %ecx
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_xfrm_state_lookup_with_mark
	testq	%r14, %r14
	jne	LBB0_6
	jmp	LBB0_8
LBB0_2:
	movq	$0, -48(%rbp)
	movq	_XFRMA_SRCADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_verify_one_addr
	movq	-48(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	8(%rbx), %rdx
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_xfrm_state_lookup_byaddr
	testq	%r14, %r14
	jne	LBB0_6
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_8
LBB0_6:
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	negl	%r13d
	movl	%r13d, (%r14)
LBB0_8:
	addq	$24, %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	_ESRCH,4,2                      ## @ESRCH
	.comm	_XFRMA_SRCADDR,4,2              ## @XFRMA_SRCADDR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_xfrm_user_state_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_user_state_lookup
_xfrm_user_state_lookup:                ; @xfrm_user_state_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x2
	bl	_xfrm_mark_get
	mov	x22, x0
	ldr	w0, [x21, #4]
Lloh0:
	adrp	x8, _IPSEC_PROTO_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPSEC_PROTO_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_xfrm_id_proto_match
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ESRCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	add	x2, x21, #8
	ldr	w3, [x21, #12]
	ldp	w5, w4, [x21]
	mov	x0, x20
	mov	x1, x22
	bl	_xfrm_state_lookup_with_mark
	cbnz	x19, LBB0_5
	b	LBB0_7
LBB0_2:
	str	xzr, [sp]
Lloh6:
	adrp	x8, _XFRMA_SRCADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XFRMA_SRCADDR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x23
	bl	_verify_one_addr
	ldr	x3, [sp]
	cbz	x3, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _ESRCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
	add	x2, x21, #8
	ldp	w5, w4, [x21]
	mov	x0, x20
	mov	x1, x22
	bl	_xfrm_state_lookup_byaddr
	cbnz	x19, LBB0_5
	b	LBB0_7
LBB0_4:
	mov	x0, #0
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	cbz	x19, LBB0_7
LBB0_5:
	cbnz	x0, LBB0_7
; %bb.6:
	neg	w8, w23
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IPSEC_PROTO_ANY,4,2            ; @IPSEC_PROTO_ANY
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_XFRMA_SRCADDR,4,2              ; @XFRMA_SRCADDR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_xfrm_user_state_lookup
.subsections_via_symbols
