	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_tmpl
_validate_tmpl:                         ## @validate_tmpl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_XFRM_MAX_DEPTH@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jge	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	testl	%edi, %edi
	jle	LBB0_9
## %bb.3:
	movl	%edi, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rcx,4), %edi
	testl	%edi, %edi
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, (%rsi,%rcx,4)
	movl	%edx, %edi
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$129, %edi
	jne	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_4
LBB0_9:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_MAX_DEPTH,4,2             ## @XFRM_MAX_DEPTH
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_validate_tmpl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_tmpl
_validate_tmpl:                         ; @validate_tmpl
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _XFRM_MAX_DEPTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFRM_MAX_DEPTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ge	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.3:
	mov	w8, w0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x1]
	cbnz	w9, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w2, [x1]
	mov	x9, x2
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #129
	b.ne	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x1, #4
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_8:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_MAX_DEPTH,4,2             ; @XFRM_MAX_DEPTH
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_validate_tmpl
.subsections_via_symbols
