	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sgx_tcs_validate
_sgx_tcs_validate:                      ## @sgx_tcs_validate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 32(%rdi)
	jne	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	testl	%eax, (%rdi)
	jne	LBB0_11
## %bb.2:
	testl	%eax, 4(%rbx)
	jne	LBB0_11
## %bb.3:
	testl	%eax, 8(%rbx)
	jne	LBB0_11
## %bb.4:
	movl	12(%rbx), %eax
	notl	%eax
	testl	$4095, %eax                     ## imm = 0xFFF
	jne	LBB0_11
## %bb.5:
	movl	16(%rbx), %eax
	notl	%eax
	testl	$4095, %eax                     ## imm = 0xFFF
	jne	LBB0_11
## %bb.6:
	movq	24(%rbx), %rdi
	callq	_nitems
	testl	%eax, %eax
	jle	LBB0_7
## %bb.8:
	xorl	%r14d, %r14d
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rdi
	cmpq	$0, (%rdi,%r14,8)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	callq	_nitems
	movslq	%eax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r14
	jl	LBB0_10
	jmp	LBB0_12
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sgx_tcs_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sgx_tcs_validate
_sgx_tcs_validate:                      ; @sgx_tcs_validate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #32]
	cbnz	x8, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #1
	tst	w8, w9
	b.ne	LBB0_10
; %bb.2:
	ldr	w9, [x19, #4]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.3:
	ldr	w9, [x19, #8]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.4:
	ldr	w8, [x19, #12]
	mvn	w8, w8
	tst	w8, #0xfff
	b.ne	LBB0_10
; %bb.5:
	ldr	w8, [x19, #16]
	mvn	w8, w8
	tst	w8, #0xfff
	b.ne	LBB0_10
; %bb.6:
	ldr	x0, [x19, #24]
	bl	_nitems
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #24]
	ldr	x8, [x0, x20, lsl #3]
	cbnz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	bl	_nitems
	mov	x8, x0
	mov	w0, #0
	cmp	x20, w8, sxtw
	b.lt	LBB0_8
	b	LBB0_11
LBB0_10:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sgx_tcs_validate
.subsections_via_symbols
