	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recover_bandwidth
_recover_bandwidth:                     ## @recover_bandwidth
	.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	%rdi, %r15
	callq	_recover_io_reset
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	callq	_RSBandwidth
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movl	$1, %ebx
	movq	_S_BANDWIDTH@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_atomic_inc
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_IO_WORK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r15), %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r14d
	movq	_IO_RECOVER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r15), %rdi
	callq	_atomic_read
	imull	8(%r15), %eax
	cltd
	idivl	24(%r15)
	movl	%eax, %ecx
	movl	%r14d, %eax
	cltd
	idivl	12(%r15)
	cmpl	%eax, %ecx
	jle	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	movq	_S_NO_BANDWIDTH@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_IO_WORK,8,3                    ## @IO_WORK
	.comm	_IO_RECOVER,8,3                 ## @IO_RECOVER
	.comm	_S_NO_BANDWIDTH,8,3             ## @S_NO_BANDWIDTH
	.comm	_S_BANDWIDTH,8,3                ## @S_BANDWIDTH
	.no_dead_strip	_recover_bandwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recover_bandwidth
_recover_bandwidth:                     ; @recover_bandwidth
	.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
	mov	x19, x0
	bl	_recover_io_reset
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_RSBandwidth
	cbz	x0, LBB0_4
LBB0_2:
	mov	w20, #1
Lloh0:
	adrp	x8, _S_BANDWIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_BANDWIDTH@GOTPAGEOFF]
LBB0_3:
	ldr	x9, [x19]
	ldr	x8, [x8]
	add	x0, x8, x9
	bl	_atomic_inc
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x9, _IO_WORK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IO_WORK@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_atomic_read
	cbz	w0, LBB0_2
; %bb.5:
	mov	x20, x0
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _IO_RECOVER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IO_RECOVER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_atomic_read
	ldp	w8, w9, [x19, #8]
	mul	w8, w8, w0
	ldr	w10, [x19, #24]
	sdiv	w8, w8, w10
	sdiv	w9, w20, w9
	cmp	w8, w9
	b.le	LBB0_2
; %bb.6:
	mov	w20, #0
Lloh8:
	adrp	x8, _S_NO_BANDWIDTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S_NO_BANDWIDTH@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IO_WORK,8,3                    ; @IO_WORK
	.comm	_IO_RECOVER,8,3                 ; @IO_RECOVER
	.comm	_S_NO_BANDWIDTH,8,3             ; @S_NO_BANDWIDTH
	.comm	_S_BANDWIDTH,8,3                ; @S_BANDWIDTH
	.no_dead_strip	_recover_bandwidth
.subsections_via_symbols
