	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wait_busy_940                  ## -- Begin function wait_busy_940
	.p2align	4, 0x90
_wait_busy_940:                         ## @wait_busy_940
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_shared_ctl@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_6
## %bb.1:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %ebx
	movl	$8192, %edi                     ## imm = 0x2000
	callq	_spend_cycles
	movq	(%r15), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	jb	LBB0_2
LBB0_4:
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	jb	LBB0_6
## %bb.5:
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %r14
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	8(%rax), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	12(%rax), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	16(%rax), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	20(%rax), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	24(%rax), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	28(%rax), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_crashed_940@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_shared_ctl,8,3                 ## @shared_ctl
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"940 crashed (cnt: %i, ve: "

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

	.comm	_crashed_940,4,2                ## @crashed_940
L_str:                                  ## @str
	.asciz	")"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wait_busy_940                  ; -- Begin function wait_busy_940
	.p2align	2
_wait_busy_940:                         ; @wait_busy_940
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _shared_ctl@GOTPAGE
Lloh1:
	ldr	x20, [x20, _shared_ctl@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_5
; %bb.1:
	mov	w8, #0
	mov	w19, #65535
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x8
	mov	w0, #8192
	bl	_spend_cycles
	add	w8, w21, #1
	ldr	x9, [x20]
	ldr	x10, [x9, #16]
	cmp	x10, #0
	ccmp	w21, w19, #2, ne
	b.lo	LBB0_2
; %bb.3:
	mov	w8, #65535
	cmp	w21, w8
	b.lo	LBB0_5
; %bb.4:
	ldr	w8, [x9]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh4:
	adrp	x19, l_.str.1@PAGE
Lloh5:
	add	x19, x19, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_printf
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #4]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #8]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #12]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #16]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #20]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #24]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #28]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
Lloh6:
	adrp	x0, l_str@PAGE
Lloh7:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh8:
	adrp	x8, _crashed_940@GOTPAGE
Lloh9:
	ldr	x8, [x8, _crashed_940@GOTPAGEOFF]
	mov	w9, #1
Lloh10:
	str	w9, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_shared_ctl,8,3                 ; @shared_ctl
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"940 crashed (cnt: %i, ve: "

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

	.comm	_crashed_940,4,2                ; @crashed_940
l_str:                                  ; @str
	.asciz	")"

.subsections_via_symbols
