	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetThreadWork                  ## -- Begin function GetThreadWork
	.p2align	4, 0x90
_GetThreadWork:                         ## @GetThreadWork
	.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	_ThreadLock
	movq	_dispatch@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	_workcount@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %ebx
	cmpl	%esi, %ecx
	je	LBB0_5
## %bb.1:
	leal	(%rcx,%rcx), %eax
	leal	(%rax,%rax,4), %eax
	cltd
	idivl	%esi
	movq	_oldf@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, (%rdx)
	movq	_pacifier@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	__printf
	movl	(%r14), %ecx
LBB0_4:
	leal	1(%rcx), %eax
	movl	%eax, (%r14)
	movl	%ecx, %ebx
LBB0_5:
	xorl	%eax, %eax
	callq	_ThreadUnlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dispatch,4,2                   ## @dispatch
	.comm	_workcount,4,2                  ## @workcount
	.comm	_oldf,4,2                       ## @oldf
	.comm	_pacifier,8,3                   ## @pacifier
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%i..."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetThreadWork                  ; -- Begin function GetThreadWork
	.p2align	2
_GetThreadWork:                         ; @GetThreadWork
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_ThreadLock
Lloh0:
	adrp	x20, _dispatch@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dispatch@GOTPAGEOFF]
	ldr	w19, [x20]
Lloh2:
	adrp	x8, _workcount@GOTPAGE
Lloh3:
	ldr	x8, [x8, _workcount@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w19, #-1
	b	LBB0_6
LBB0_2:
	add	w9, w19, w19, lsl #2
	lsl	w9, w9, #1
	sdiv	w1, w9, w8
Lloh5:
	adrp	x8, _oldf@GOTPAGE
Lloh6:
	ldr	x8, [x8, _oldf@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w1, w9
	b.eq	LBB0_5
; %bb.3:
	str	w1, [x8]
Lloh7:
	adrp	x8, _pacifier@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pacifier@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	__printf
	ldr	w19, [x20]
LBB0_5:
	add	w8, w19, #1
	str	w8, [x20]
LBB0_6:
	bl	_ThreadUnlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_dispatch,4,2                   ; @dispatch
	.comm	_workcount,4,2                  ; @workcount
	.comm	_oldf,4,2                       ; @oldf
	.comm	_pacifier,8,3                   ; @pacifier
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%i..."

.subsections_via_symbols
