	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_policy_ok
_xfrm_policy_ok:                        ## @xfrm_policy_ok
	.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
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	cmpq	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movq	_XFRM_MODE_TRANSPORT@GOTPCREL(%rip), %rdx
	movl	%ebx, %esi
	cmpq	(%rdx), %rax
	je	LBB0_12
## %bb.3:
	cmpl	%ebx, (%r14)
	jle	LBB0_4
LBB0_5:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %r13
	movq	8(%r14), %rax
	leal	2(%r13), %ebx
	movzwl	%cx, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%r13,8), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_xfrm_state_ok
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%r13,8), %rcx
	movq	(%rcx), %rcx
	movq	_XFRM_MODE_TRANSPORT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movslq	(%r14), %rcx
	incl	%ebx
	cmpq	%rcx, %r13
	jl	LBB0_6
## %bb.11:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_12
LBB0_1:
	movl	$-1, %esi
	cmpl	%ebx, (%r14)
	jg	LBB0_5
LBB0_4:
	movl	%esi, %ebx
	jmp	LBB0_12
LBB0_7:
	decl	%ebx
	jmp	LBB0_12
LBB0_9:
	negl	%ebx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$-1, %eax
	cmovnel	%eax, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_MODE_TRANSPORT,8,3        ## @XFRM_MODE_TRANSPORT
	.no_dead_strip	_xfrm_policy_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_policy_ok
_xfrm_policy_ok:                        ; @xfrm_policy_ok
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _XFRM_MODE_TRANSPORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XFRM_MODE_TRANSPORT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	x22, x2
	cmp	x8, x9
	b.ne	LBB0_3
	b	LBB0_11
LBB0_2:
	mov	w22, #-1
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, w2
	b.le	LBB0_8
; %bb.4:
	sxtw	x23, w2
	ldr	x8, [x20, #8]
	add	w24, w2, #2
Lloh3:
	adrp	x25, _XFRM_MODE_TRANSPORT@GOTPAGE
Lloh4:
	ldr	x25, [x25, _XFRM_MODE_TRANSPORT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x8, x23, lsl #3]
	mov	x0, x21
	mov	x2, x19
	bl	_xfrm_state_ok
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x8, x23, lsl #3]
	ldr	x9, [x9]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldrsw	x9, [x20]
	add	w24, w24, #1
	cmp	x23, x9
	b.lt	LBB0_5
LBB0_8:
	mov	x2, x22
	b	LBB0_11
LBB0_9:
	sub	w2, w24, #1
	b	LBB0_11
LBB0_10:
	cmn	w22, #1
	csneg	w2, w22, w24, ne
LBB0_11:
	mov	x0, x2
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_MODE_TRANSPORT,8,3        ; @XFRM_MODE_TRANSPORT
	.no_dead_strip	_xfrm_policy_ok
.subsections_via_symbols
