	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_at_max_writeback_rate
_set_at_max_writeback_rate:             ## @set_at_max_writeback_rate
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpl	$0, 12(%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	addq	$8, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_atomic_inc_return
	movl	%eax, %r12d
	leaq	4(%rbx), %r13
	movq	%r13, %rdi
	callq	_atomic_read
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,2), %eax
	cmpl	%eax, %r12d
	jl	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_atomic_read
	cmpl	$1, %eax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_atomic_set
LBB0_4:
	leaq	24(%r15), %rdi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atomic_long_set
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	$0, 16(%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_atomic_read
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,2), %eax
	cmpl	%eax, %r15d
	jl	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_atomic_read
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_set_at_max_writeback_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_at_max_writeback_rate
_set_at_max_writeback_rate:             ; @set_at_max_writeback_rate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_atomic_inc_return
	mov	x23, x0
	add	x22, x19, #4
	mov	x0, x22
	bl	_atomic_read
	add	w8, w0, w0, lsl #1
	cmp	w23, w8, lsl #1
	b.lt	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_atomic_read
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_atomic_set
LBB0_4:
	add	x0, x20, #24
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_atomic_long_set
	stp	xzr, xzr, [x20, #8]
	str	xzr, [x20]
	mov	x0, x21
	bl	_atomic_read
	mov	x20, x0
	mov	x0, x22
	bl	_atomic_read
	add	w8, w0, w0, lsl #1
	cmp	w20, w8, lsl #1
	b.ge	LBB0_7
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	bl	_atomic_read
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_set_at_max_writeback_rate
.subsections_via_symbols
