	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function freeze_array
_freeze_array:                          ## @freeze_array
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	incl	12(%rbx)
	incl	28(%rbx)
	incl	24(%rbx)
	movl	20(%rbx), %r12d
	leaq	16(%rbx), %rdi
	callq	_atomic_read
	movslq	%r15d, %rcx
	addq	(%rbx), %rcx
	xorl	%r15d, %r15d
	cmpq	%rcx, %rax
	sete	%r15b
	movl	8(%rbx), %r13d
	movq	%rbx, %rdi
	callq	_flush_pending_writes
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_wait_event_lock_irq_cmd
	decl	12(%rbx)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_freeze_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function freeze_array
_freeze_array:                          ; @freeze_array
	.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
	mov	x19, x1
	mov	x20, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	ldr	d0, [x20, #24]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x20, #24]
	ldr	w22, [x20, #20]
	add	x0, x20, #16
	bl	_atomic_read
	ldr	x8, [x20]
	add	x8, x8, w19, sxtw
	cmp	x0, x8
	cset	w19, eq
	ldr	w23, [x20, #8]
	mov	x0, x20
	bl	_flush_pending_writes
	mov	x3, x0
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	bl	_wait_event_lock_irq_cmd
	ldr	w8, [x20, #12]
	sub	w8, w8, #1
	str	w8, [x20, #12]
	mov	x0, x21
	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
	b	_spin_unlock_irq
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_freeze_array
.subsections_via_symbols
