	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_tmpl_resolve_one
_xfrm_tmpl_resolve_one:                 ## @xfrm_tmpl_resolve_one
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_xp_net
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_xfrm_flowi_daddr
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r12d, %esi
	callq	_xfrm_flowi_saddr
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r15)
	jle	LBB0_1
## %bb.2:
	movq	%r15, %r8
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	movl	%ecx, -48(%rbp)
	movq	%rax, %rdi
	callq	_xfrm_state_put
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 12(%r15,%r12)
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r8), %rax
	addq	$24, %r12
	cmpq	%rax, %rbx
	jge	LBB0_22
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r8), %r15
	movq	(%r15,%r12), %rax
	movq	_XFRM_MODE_TUNNEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	_XFRM_MODE_BEET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%r12), %rax
	addq	$20, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	16(%r15,%r12), %r14
	movzwl	8(%r15,%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movzwl	%ax, %r13d
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_xfrm_addr_any
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	leaq	-116(%rbp), %r14
	movq	%r14, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_xfrm_get_saddr
	movl	%eax, -48(%rbp)
	testl	%eax, %eax
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_8
	jmp	LBB0_18
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%r12), %rcx
	movzwl	-52(%rbp), %eax                 ## 2-byte Folded Reload
	movl	%eax, (%rsp)
	movq	%rdi, %r13
	movq	%r14, %rsi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	leaq	-48(%rbp), %r9
	callq	_xfrm_state_find
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rcx
	movq	_XFRM_STATE_VALID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movslq	%edx, %rcx
	incl	%edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %eax
	movq	_ESRCH@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movl	%eax, -48(%rbp)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rdx
	movq	_XFRM_STATE_ERROR@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	jmp	LBB0_14
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_22
LBB0_18:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_21
## %bb.19:
	movl	%eax, %ebx
	incq	%rbx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	movq	(%r14,%rax,8), %rdi
	callq	_xfrm_state_put
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_20
LBB0_21:
	movl	-48(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_22:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_MODE_TUNNEL,8,3           ## @XFRM_MODE_TUNNEL
	.comm	_XFRM_MODE_BEET,8,3             ## @XFRM_MODE_BEET
	.comm	_XFRM_STATE_VALID,8,3           ## @XFRM_STATE_VALID
	.comm	_XFRM_STATE_ERROR,8,3           ## @XFRM_STATE_ERROR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ESRCH,4,2                      ## @ESRCH
	.no_dead_strip	_xfrm_tmpl_resolve_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_tmpl_resolve_one
_xfrm_tmpl_resolve_one:                 ; @xfrm_tmpl_resolve_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_xp_net
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	mov	x0, x20
	mov	x1, x22
	bl	_xfrm_flowi_daddr
	mov	x25, x0
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	mov	x0, x20
	mov	x1, x22
	bl	_xfrm_flowi_saddr
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x26, x0
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x19, #0
	mov	x24, #0
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh0:
	adrp	x9, _XFRM_STATE_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XFRM_STATE_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _EINVAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #44]
	bl	_xfrm_state_put
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x20, x19
	ldr	w8, [x8, #12]
	cbz	w8, LBB0_14
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x21]
	add	x19, x19, #24
	cmp	x24, x8
	b.ge	LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x21, #8]
	add	x23, x20, x19
	ldr	x8, [x23]
Lloh7:
	adrp	x9, _XFRM_MODE_TUNNEL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _XFRM_MODE_TUNNEL@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _XFRM_MODE_BEET@GOTPAGE
Lloh11:
	ldr	x10, [x10, _XFRM_MODE_BEET@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	mov	x27, x25
	mov	x28, x26
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x23, #20
	add	x28, x23, #16
	ldrh	w22, [x23, #8]
	mov	x0, x28
	mov	x1, x22
	bl	_xfrm_addr_any
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x28, sp, #40
	add	x1, sp, #40
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x2, x27
	mov	x3, x22
	bl	_xfrm_get_saddr
	str	w0, [sp, #44]
	cbnz	w0, LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	w6, w22, #0xffff
	add	x5, sp, #44
	mov	x0, x27
	mov	x1, x28
	ldr	x2, [sp, #32]                   ; 8-byte Folded Reload
	mov	x3, x23
	mov	x4, x21
	bl	_xfrm_state_find
	cbz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x0]
Lloh13:
	adrp	x9, _XFRM_STATE_VALID@GOTPAGE
Lloh14:
	ldr	x9, [x9, _XFRM_STATE_VALID@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	str	x0, [x8, w9, sxtw #3]
	add	w8, w9, #1
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	mov	x26, x28
	mov	x25, x27
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #44]
Lloh16:
	adrp	x9, _ESRCH@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ESRCH@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmn	w8, w9
	b.ne	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh19:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #44]
	b	LBB0_3
LBB0_13:
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	b	LBB0_18
LBB0_14:
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, #1
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	b.lt	LBB0_17
; %bb.15:
	mov	w8, w8
	add	x19, x8, #1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	sub	w8, w19, #2
	ldr	x0, [x20, w8, uxtw #3]
	bl	_xfrm_state_put
	sub	x19, x19, #1
	cmp	x19, #1
	b.hi	LBB0_16
LBB0_17:
	ldr	w8, [sp, #44]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
LBB0_18:
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_MODE_TUNNEL,8,3           ; @XFRM_MODE_TUNNEL
	.comm	_XFRM_MODE_BEET,8,3             ; @XFRM_MODE_BEET
	.comm	_XFRM_STATE_VALID,8,3           ; @XFRM_STATE_VALID
	.comm	_XFRM_STATE_ERROR,8,3           ; @XFRM_STATE_ERROR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ESRCH,4,2                      ; @ESRCH
	.no_dead_strip	_xfrm_tmpl_resolve_one
.subsections_via_symbols
