	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_foo1                           ## -- Begin function foo1
	.p2align	4, 0x90
_foo1:                                  ## @foo1
	.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
	xorl	%eax, %eax
	callq	_pthread_self
	leaq	L_.str(%rip), %rdi
	movq	_i@GOTPCREL(%rip), %rbx
	movl	%eax, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printf
	movl	$0, (%rbx)
	leaq	L_.str.1(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_pthread_self
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %edi
	callq	_sleep
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	cmpl	$9, %eax
	jl	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"thread %p, &i = %p\n"

	.comm	_i,4,2                          ## @i
L_.str.1:                               ## @.str.1
	.asciz	"thread %p, i = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_foo1                           ; -- Begin function foo1
	.p2align	2
_foo1:                                  ; @foo1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_pthread_self
	mov	x1, x0
Lloh0:
	adrp	x20, _i@GOTPAGE
Lloh1:
	ldr	x20, [x20, _i@GOTPAGEOFF]
	str	x20, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	str	wzr, [x20]
Lloh4:
	adrp	x19, l_.str.1@PAGE
Lloh5:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_pthread_self
	mov	x1, x0
	ldr	w8, [x20]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	mov	w0, #1
	bl	_sleep
	ldr	w8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	cmp	w8, #9
	b.lt	LBB0_1
; %bb.2:
	mov	x0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"thread %p, &i = %p\n"

	.comm	_i,4,2                          ; @i
l_.str.1:                               ; @.str.1
	.asciz	"thread %p, i = %d\n"

.subsections_via_symbols
