	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_thread_id                 ## -- Begin function read_thread_id
	.p2align	4, 0x90
_read_thread_id:                        ## @read_thread_id
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.1:
	cmpb	$112, (%rbx)
	jne	LBB0_11
## %bb.2:
	incq	%rbx
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_strchr
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movq	%rax, %r13
	incq	%r13
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_r_str_startswith
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_r_str_startswith
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movl	$-1, (%r15)
	movl	$-1, (%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_r_str_startswith
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	$-1, (%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_13:
	movsbl	(%rbx), %edi
	callq	_isxdigit
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtol
	movl	%eax, (%r15)
	movl	%eax, (%r14)
	jmp	LBB0_16
LBB0_14:
	movl	$-1, %r12d
	jmp	LBB0_16
LBB0_6:
	movsbl	(%rbx), %edi
	callq	_isxdigit
	testl	%eax, %eax
	je	LBB0_16
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_r_str_startswith
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtol
	movl	%eax, (%r14)
	movl	$-1, (%r15)
	jmp	LBB0_16
LBB0_9:
	movsbl	(%r13), %edi
	callq	_isxdigit
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtol
	movl	%eax, (%r14)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtol
	movl	%eax, (%r15)
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-1"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_thread_id                 ; -- Begin function read_thread_id
	.p2align	2
_read_thread_id:                        ; @read_thread_id
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cbz	w3, LBB0_6
; %bb.1:
	ldrb	w8, [x21]
	cmp	w8, #112
	b.ne	LBB0_6
; %bb.2:
	add	x21, x21, #1
	mov	x0, x21
	mov	w1, #46
	bl	_strchr
	cbz	x0, LBB0_16
; %bb.3:
	add	x22, x0, #1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_r_str_startswith
	cbz	x0, LBB0_11
; %bb.4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_r_str_startswith
	mov	x8, x0
	mov	w0, #-1
	cbz	x8, LBB0_17
; %bb.5:
	str	w0, [x19]
	str	w0, [x20]
	mov	w0, #0
	b	LBB0_17
LBB0_6:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_r_str_startswith
	cbz	x0, LBB0_9
; %bb.7:
	mov	w0, #0
LBB0_8:
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_17
LBB0_9:
	ldrsb	w0, [x21]
	bl	_isxdigit
	cbz	w0, LBB0_16
; %bb.10:
	mov	x0, x21
	mov	x1, #0
	mov	w2, #16
	bl	_strtol
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	str	w8, [x20]
	b	LBB0_17
LBB0_11:
	ldrsb	w0, [x21]
	bl	_isxdigit
	cbz	w0, LBB0_16
; %bb.12:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_r_str_startswith
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x21
	mov	x1, #0
	mov	w2, #16
	bl	_strtol
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20]
	b	LBB0_8
LBB0_14:
	ldrsb	w0, [x22]
	bl	_isxdigit
	cbz	w0, LBB0_16
; %bb.15:
	mov	x0, x21
	mov	x1, #0
	mov	w2, #16
	bl	_strtol
	str	w0, [x20]
	mov	x0, x22
	mov	x1, #0
	mov	w2, #16
	bl	_strtol
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_17
LBB0_16:
	mov	w0, #-1
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-1"

.subsections_via_symbols
