	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc_resize
_sc_resize:                             ## @sc_resize
	.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
	cmpl	$2, %esi
	jne	LBB0_8
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_3:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.4:
	cmpl	$0, -28(%rbp)
	jle	LBB0_8
## %bb.5:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_atomic_read
	movq	(%rbx), %rdi
	movl	-28(%rbp), %edx
	movl	%eax, %esi
	callq	__absolute
	movl	%eax, -28(%rbp)
	movq	_STRIPES_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_STRIPES_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_range_ok
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	-28(%rbp), %ebx
	movq	%r15, %rdi
	callq	_atomic_read
	cmpl	%eax, %ebx
	jne	LBB0_7
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	-28(%rbp), %esi
	movq	%r14, %rdi
	callq	_atomic_set
	movq	%r14, %rdi
	callq	_wake_do_raid
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EPERM,4,2                      ## @EPERM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_STRIPES_MIN,4,2                ## @STRIPES_MIN
	.comm	_STRIPES_MAX,4,2                ## @STRIPES_MAX
	.no_dead_strip	_sc_resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc_resize
_sc_resize:                             ; @sc_resize
	.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
	cmp	w1, #2
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	bl	_atomic_read
	cbz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	ldr	x0, [x20, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	ldr	w8, [sp, #12]
	cmp	w0, #1
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_6
; %bb.4:
	add	x21, x19, #4
	mov	x0, x21
	bl	_atomic_read
	mov	x1, x0
	ldr	x0, [x20]
	ldr	w2, [sp, #12]
	bl	__absolute
	str	w0, [sp, #12]
Lloh4:
	adrp	x8, _STRIPES_MIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STRIPES_MIN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _STRIPES_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STRIPES_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_range_ok
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w20, [sp, #12]
	mov	x0, x21
	bl	_atomic_read
	cmp	w20, w0
	b.ne	LBB0_9
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
LBB0_9:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_atomic_set
	mov	x0, x19
	bl	_wake_do_raid
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EPERM,4,2                      ; @EPERM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_STRIPES_MIN,4,2                ; @STRIPES_MIN
	.comm	_STRIPES_MAX,4,2                ; @STRIPES_MAX
	.no_dead_strip	_sc_resize
.subsections_via_symbols
