	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_thread_id                ## -- Begin function write_thread_id
	.p2align	4, 0x90
_write_thread_id:                       ## @write_thread_id
	.cfi_startproc
## %bb.0:
	movl	%ecx, %eax
	movl	%esi, %r9d
	testl	%r8d, %r8d
	je	LBB0_1
## %bb.5:
	movl	%edx, %ecx
	testl	%edx, %edx
	jle	LBB0_6
## %bb.7:
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdx
	movl	%r9d, %esi
	movl	%eax, %r8d
	xorl	%eax, %eax
	jmp	_snprintf                       ## TAILCALL
LBB0_1:
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	leaq	L_.str.1(%rip), %rdx
	movl	%r9d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	jmp	_snprintf                       ## TAILCALL
LBB0_6:
	movl	$-1, %eax
	retq
LBB0_9:
	leaq	L_.str.2(%rip), %rdx
	movl	%r9d, %esi
	xorl	%eax, %eax
	jmp	_snprintf                       ## TAILCALL
LBB0_2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rsi
	movl	%r9d, %edx
	callq	_strncpy
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-1"

L_.str.1:                               ## @.str.1
	.asciz	"%x"

L_.str.2:                               ## @.str.2
	.asciz	"p%x.-1"

L_.str.3:                               ## @.str.3
	.asciz	"p%x.%x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_thread_id                ; -- Begin function write_thread_id
	.p2align	2
_write_thread_id:                       ; @write_thread_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x9, x1
	cbz	w4, LBB0_4
; %bb.1:
	mov	x8, x2
	cmp	w2, #1
	b.lt	LBB0_6
; %bb.2:
	tbnz	w3, #31, LBB0_7
; %bb.3:
	str	x3, [sp]
Lloh0:
	adrp	x2, l_.str.3@PAGE
Lloh1:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, x9
	mov	x3, x8
	bl	_snprintf
	b	LBB0_10
LBB0_4:
	tbnz	w3, #31, LBB0_9
; %bb.5:
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x9
                                        ; kill: def $w3 killed $w3 killed $x3
	b	LBB0_8
LBB0_6:
	mov	w0, #-1
	b	LBB0_10
LBB0_7:
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x9
	mov	x3, x8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_snprintf
LBB0_9:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x9
	bl	_strncpy
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	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"

l_.str.1:                               ; @.str.1
	.asciz	"%x"

l_.str.2:                               ; @.str.2
	.asciz	"p%x.-1"

l_.str.3:                               ; @.str.3
	.asciz	"p%x.%x"

.subsections_via_symbols
