	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_tp
_check_tp:                              ## @check_tp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.1:
	movq	_ATM_ANYCLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_14
## %bb.2:
	movq	_ATM_UBR@GOTPCREL(%rip), %rsi
	movq	8(%rdi), %rcx
	cmpq	(%rsi), %rdx
	je	LBB0_6
## %bb.3:
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.4:
	cmpl	$0, 24(%rdi)
	je	LBB0_12
## %bb.5:
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_12:
	xorl	%ecx, %ecx
	cmpq	$0, 16(%rdi)
	je	LBB0_13
LBB0_6:
	movq	_ATM_MAX_PCR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	je	LBB0_11
## %bb.7:
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.8:
	movq	16(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.9:
	cmpq	%rdx, %rsi
	je	LBB0_14
## %bb.10:
	cmpq	%rsi, %rcx
	jle	LBB0_14
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ecx
	movl	%ecx, %eax
LBB0_14:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATM_ANYCLASS,8,3               ## @ATM_ANYCLASS
	.comm	_ATM_UBR,8,3                    ## @ATM_UBR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATM_MAX_PCR,8,3                ## @ATM_MAX_PCR
	.no_dead_strip	_check_tp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_tp
_check_tp:                              ; @check_tp
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ATM_ANYCLASS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATM_ANYCLASS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
Lloh3:
	adrp	x9, _ATM_UBR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATM_UBR@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x9]
	ldr	x9, [x0, #8]
	cmp	x8, x10
	ccmp	x9, #0, #0, ne
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x0, #24]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_10
LBB0_5:
	mov	x9, #0
LBB0_6:
Lloh6:
	adrp	x8, _ATM_MAX_PCR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATM_MAX_PCR@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x8]
	cmp	x9, x10
	b.eq	LBB0_10
; %bb.7:
	mov	w8, #0
	cbz	x9, LBB0_11
; %bb.8:
	ldr	x11, [x0, #16]
	cbz	x11, LBB0_11
; %bb.9:
	cmp	x11, x10
	ccmp	x9, x11, #4, ne
	b.le	LBB0_11
LBB0_10:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_11:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ATM_ANYCLASS,8,3               ; @ATM_ANYCLASS
	.comm	_ATM_UBR,8,3                    ; @ATM_UBR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATM_MAX_PCR,8,3                ; @ATM_MAX_PCR
	.no_dead_strip	_check_tp
.subsections_via_symbols
