	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_ctv
_read_ctv:                              ## @read_ctv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_THM_CTV1@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_THM_CTV2@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_thm_readw
	movq	_CTV_TEMP_ERROR@GOTPCREL(%rip), %rdx
	movl	%eax, %esi
	sarl	$6, %esi
	xorl	%ecx, %ecx
	testl	%eax, (%rdx)
	cmovel	%esi, %ecx
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THM_CTV2,4,2                   ## @THM_CTV2
	.comm	_THM_CTV1,4,2                   ## @THM_CTV1
	.comm	_CTV_TEMP_ERROR,4,2             ## @CTV_TEMP_ERROR
	.no_dead_strip	_read_ctv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_ctv
_read_ctv:                              ; @read_ctv
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _THM_CTV2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THM_CTV2@GOTPAGEOFF]
Lloh2:
	adrp	x9, _THM_CTV1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _THM_CTV1@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	bl	_thm_readw
Lloh4:
	adrp	x8, _CTV_TEMP_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CTV_TEMP_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	asr	w9, w0, #6
	tst	w8, w0
	csel	w0, w9, wzr, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_THM_CTV2,4,2                   ; @THM_CTV2
	.comm	_THM_CTV1,4,2                   ; @THM_CTV1
	.comm	_CTV_TEMP_ERROR,4,2             ; @CTV_TEMP_ERROR
	.no_dead_strip	_read_ctv
.subsections_via_symbols
